Cancel Bag
Path parameters
order_idinteger · int64Required
bag_idinteger · int64Required
Header parameters
X-Violet-TokenstringRequired
X-Violet-App-SecretstringRequired
X-Violet-App-Idinteger · int32Required
Body
reasonstring · max: 255Optional
Custom message describing the reason for the cancellation.
reason_codestring · enum · max: 255OptionalDefault:
Code that best represents the reason for the cancellation.
OTHERPossible values: restock_itemsbooleanOptionalDefault:
Should the items be restocked. In most cases this should be true since only unfulfilled orders can be cancelled.
truenotify_customerbooleanOptionalDefault:
Should the customer be notified by the merchants system that a cancellation has occurred.
falseResponses
200
success
application/json
202
accepted
application/json
400
bad request
application/json
404
not found
application/json
post
/orders/{order_id}/bags/{bag_id}/cancelLast updated
Was this helpful?