palbaseDocs

Palbase Commerce & Promotions · API

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

Turn a buyer's return down

Turn a return of the store's down, with a note of why (at most 500 characters) the buyer reads on the return. The store does not take its own word back: the project approves a return its store turned down. Emits commerce.return.rejected. A return whose completion asked for its money is not turned down until payments says for certain that nothing was given (409 return_state): complete it.

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>/reject" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{}'

Responses

200The return, turned down

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

Operation SellerRejectReturn of commerce's contract.