POST/v1/tenants/{tenantId}/ecom_stores/{eComStoreId}/orders/{salesOrderId}/refunds/{refundId}/confirm

Confirm refund

Marks the credit document financially settled after the refund has been processed.

Parameters

tenantIdrequired
eComStoreIdrequired
salesOrderIdrequired
refundIdrequired

Request body (optional)

application/json

Request body for confirming a refund on a return invoice

refundedAmountoptional

Amount refunded, if applicable

  • Format: BigDecimal
Example"299.00"
statusrequired

Refund status

Allowed values"CONFIRMED""FAILED"
Example"CONFIRMED"

Responses

200Response

No response body documented.

400Bad Request - Refund is not a return order invoice or is not open

Bad Request - Refund is not a return order invoice or is not open

application/json
errorrequired

Stable error code

Example"INVALID_REQUEST"
messagerequired

Human-readable error message

Example"Invalid customer ID format"
resolutionrequired

Suggested next action

Example"Correct the customer ID and retry the request"
401Unauthorized - Invalid or missing authentication

Unauthorized - Invalid or missing authentication

application/json
errorrequired

Stable error code

Example"INVALID_REQUEST"
messagerequired

Human-readable error message

Example"Invalid customer ID format"
resolutionrequired

Suggested next action

Example"Correct the customer ID and retry the request"
403
application/json
errorrequired

Stable error code

Example"INVALID_REQUEST"
messagerequired

Human-readable error message

Example"Invalid customer ID format"
resolutionrequired

Suggested next action

Example"Correct the customer ID and retry the request"
404Not Found - Refund not found or does not belong to this ecom store's order

Not Found - Refund not found or does not belong to this ecom store's order

application/json
errorrequired

Stable error code

Example"INVALID_REQUEST"
messagerequired

Human-readable error message

Example"Invalid customer ID format"
resolutionrequired

Suggested next action

Example"Correct the customer ID and retry the request"
500
application/json
errorrequired

Stable error code

Example"INVALID_REQUEST"
messagerequired

Human-readable error message

Example"Invalid customer ID format"
resolutionrequired

Suggested next action

Example"Correct the customer ID and retry the request"