palbaseDocs

Palbase Commerce & Promotions · API

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

Request RMA return for a store order

Request RMA return for a store order. 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 a signed-in user of your app, with their token and the publishable key.

Path

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

Responses

201Request RMA return for a store order

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

Operation RequestMyReturn of commerce's contract.