Update fulfillment order
POST
/merchants/{merchantCode}/fulfillmentOrders/{orderNumber}
const url = 'https://order.shopgate.io/v1/merchants/example/fulfillmentOrders/example?includeInternalIds=false&getOriginalImageUrls=true';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"status":"new","notes":"Please wrap each item individually.","posTransactionId":"528a-1","cancellationReason":"expired","lineItems":[{"id":10,"status":"new","quantity":5,"quantityChangeReason":"wrongItem","product":{"code":"24-MB02"}}],"fulfillmentSlot":{"id":"5_2019-09-03"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://order.shopgate.io/v1/merchants/example/fulfillmentOrders/example?includeInternalIds=false&getOriginalImageUrls=true' \ --header 'Content-Type: application/json' \ --data '{ "status": "new", "notes": "Please wrap each item individually.", "posTransactionId": "528a-1", "cancellationReason": "expired", "lineItems": [ { "id": 10, "status": "new", "quantity": 5, "quantityChangeReason": "wrongItem", "product": { "code": "24-MB02" } } ], "fulfillmentSlot": { "id": "5_2019-09-03" } }'Update fulfillment order
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”merchantCode
required
string
Unique merchant code which represents the unique “merchant account”.
orderNumber
required
string
Unique order number
Query Parameters
Section titled “Query Parameters”includeInternalIds
boolean
The entity gets extended with the internal ID of Shopgate, this query cannot be used by external clients.
fields
string format: csv
Available fields: salesOrder
getOriginalImageUrls
boolean
Request Body
Section titled “Request Body”Media typeapplication/json
object
status
string
notes
Customer notes where the shopper can provide special instructions. The notes are shown in the In-Store App & Admin.
string | null
Example
Please wrap each item individually.posTransactionId
Transaction id of the POS
string
Example
528a-1cancellationReason
string
lineItems
Array<object>
object
id
Line Item id of the item to update. In case of an insert this field is not required
number
Example
10status
string
Example
newquantity
number
Example
5quantityChangeReason
Reason for a quantity change. Needs to be set if a new quantity is set. Deprecated reasons:
- wrongAttribute
- wrongProduct
- changedMind
- brokenOrDamaged
- outOfStock
string
product
object
code
string
Example
24-MB02fulfillmentSlot
object
id
required
Id of the fulfillment slot
string
Example
5_2019-09-03Responses
Section titled “Responses”Fulfillment order updated
Media typeapplication/json
Order not found
Media typeapplication/json
default
Section titled “default”Unexpected error
Media typeapplication/json
object
code
Machine readable error code
string
message
required
Human readable error code
string
Example
{ "code": "internal.database", "message": "Internal Database Error"}
