Palbase Commerce & Promotions · API
POST
/commerce/returns/{return_id}/approveApprove RMA return
Approve a return that was asked for — or one its store turned down: who runs the marketplace has the last word. A return in any other state 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 your server, with the project's secret key.
Path
return_idstring · requiredPath parameter return_id.curl
curl -X POST "https://<your-ref>.palbase.studio/commerce/returns/<return_id>/approve" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{}'Responses
200Approve RMA return
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation ApproveReturn of commerce's contract.