palbaseDocs

Palbase Commerce & Promotions · API

POST/commerce/store-orders/{store_order_id}/returns

Create RMA return or partial-refund request

Create RMA return or partial-refund request. A return is of an order that was paid, and an order's returns together give back no more than it was paid: a line's amounts within the line's total, refund_shipping_amount within the shipping the buyer paid (409 refund_exceeds_paid). A return's fees, deductions and exchange difference are the store's to set, not the buyer's (403 return_amounts_forbidden). A line named that is no line of this store order is 404 order_line_not_found.

Called by your server, with the project's secret key.

Path

store_order_idstring · requiredPath parameter store_order_id.
curl
curl -X POST "https://<your-ref>.palbase.studio/commerce/store-orders/<store_order_id>/returns" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{}'

Responses

201Create RMA return or partial-refund request

defaultStandard Palbase JSON error envelope (`error` and `error_description`).

Operation CreateReturn of commerce's contract.