Cancel Bag
Cancels a specific bag within an order and forwards the cancellation to the merchant's external commerce platform for processing. The bag must be in an ACCEPTED, SUBMITTED, COMPLETED, or PARTIALLY_REFUNDED state to qualify for cancellation. If the external cancellation succeeds, a full refund is automatically processed and included in the response. Returns an OrderCancellation object containing the bag cancellation record and, if applicable, the associated refund. Both successful and failed cancellations return HTTP 202 Accepted.
ID of the order containing the bag to cancel
11111ID of the bag to cancel
22222API token for authentication
Application secret key
Application ID
10000Request to cancel an Order. Only orders that have not yet been fulfilled can be canceled. By default, items will be restocked and the customer will not be notified.
Custom message describing the reason for the cancellation.
Code that best represents the reason for the cancellation.
OTHERPossible values: Should the items be restocked. In most cases this should be true since only unfulfilled orders can be cancelled.
trueShould the customer be notified by the merchants system that a cancellation has occurred.
falsesuccess
Order Refund
Unique ID of the Refund.
ID of the Order being refunded
ID of the Bag being refunded
ID of the merchant making the refund
ID of the App that created the Order
ID of the Transaction being refunded
ID of the Payment Transaction in Violet
ID of the Transaction in the Payment Gateway
Amount being refunded. In Cents
Amount being taken back from the associated transfer to the merchant. In Cents
Amount being taken back from the associated transfer to the developer. In Cents
Amount in fractional currency unit (e.g. cents) being taken back from the associated transfer to the merchant, in platform currency.
Amount in fractional currency unit (e.g. cents) being taken back from the associated transfer to the developer, in platform currency.
Reason for refund
Reason code for refund
Currency set for this refund by the external ecom platform
Currency used by the platform account for the payment provider that processed this Refund
Status of the Refund
Unique identifiers of the Transfer Reversal objects in Violet that are associated with this transfer.
Date of creation
Date of last update
ID of the refund on the external commerce platform. This value will only be populated if the external commerce platform supports refund ID's.
Tax amount being refunded. In Cents.
accepted
bad request
not found
internal server error
Last updated
Was this helpful?