palbaseDocs

Palbase Commerce & Promotions · API

POST/commerce/returns/{return_id}/reject

Turn a return down

Turn a return down, with a note of why (at most 500 characters) the buyer reads on the return. A return that is over — refunded, exchanged, closed — answers 409 return_state. A return turned down gives nothing back; the buyer may ask for another, and the project approves one its store turned down (POST /commerce/returns/{return_id}/approve). 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 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>/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 RejectReturn of commerce's contract.