Przejdź do głównej zawartości

Skopiuj zamówienie

POST
/api/v5/Orders/{orderId}/copy
curl --request POST \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v5/Orders/1/copy \
--header 'Authorization: Bearer <token>'

Tworzy nowe zamówienie z tym samym źródłem, nabywcą i pozycjami, ale z czystym stanem operacyjnym.

orderId
wymagane
integer format: int64

Success

Typ treściapplication/json
object
id
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
payload
nullable
result
nullable
status
string
Dozwolone wartości: New InProgress Completed Failed
command
string
nullable
scope
string
nullable
scopeValue
string
nullable
silentMode
boolean
ajsChainId
string
nullable
ajsChainVisits
string
nullable
Example
{
"status": "New"
}