palbaseDocs

Palbase Commerce & Promotions · API

POST/commerce/stores/{store_id}/returns/{return_id}/approve

Approve buyer RMA return

Approve a buyer's return that was asked for. A return in any other state — one the store turned down among them — answers 409 return_state. A return its store turned down is approved by the project's server alone, and only while its lines still have what it asks for: when the same units were asked for again since, the answer is 409 return_replaced.

Called by a signed-in user of your app, with their token and the publishable key; or your server, with the project's secret key.

Path

store_idstring · requiredPath parameter store_id.
return_idstring · requiredPath parameter return_id.
curl
curl -X POST "https://<your-ref>.palbase.studio/commerce/stores/<store_id>/returns/<return_id>/approve" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{}'

Responses

200Approve buyer RMA return

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

Operation SellerApproveReturn of commerce's contract.