Refund Bag

Initiate a refund on a Bag. This can be a full refund or a partial refund depending on the amounts you provide. This action will attempt to refund the external order in the merchants system.

The Bag must be in a refundable state. Any Bag's that have a status of IN_PROGRESS, REFUNDED, or CANCELED cannot be refunded.

Refund Bag

post
Path parameters
order_idinteger · int64Required
bag_idinteger · int64Required
Header parameters
X-Violet-TokenstringRequired
X-Violet-App-SecretstringRequired
X-Violet-App-Idinteger · int32Required
Body

Request used to initiate a bag refund.

reasonstring | nullableOptional

Custom reason message for the refund.

restock_itemsboolean | nullableOptional

Should the items be restocked. Set to true when the order is being returned.

Default: false
notify_customerboolean | nullableOptional

Should the customer be notified by the merchants system of the refund. If no value is provided the merchants default system configuration for this feature will be used.

Default: false
amount_refundedinteger · int32 | nullableOptional

Amount that should be refunded in cents. If no value is provided the full bag amount will be refunded.

Responses
post
/orders/{order_id}/bags/{bag_id}/refunds
default

default response

Last updated

Was this helpful?