AppOpenOrderReturn
POST
/apps/orders/{id}/returns
const url = 'https://your-store.myciqra.com/apps/orders/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/returns';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"amount":1,"reason":"example","reasonId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-store.myciqra.com/apps/orders/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/returns \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "amount": 1, "reason": "example", "reasonId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Required scope: write_returns — an installation token without it receives 403.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Body
Section titled “Request Body”Responses
Section titled “Responses”OK
Media typeapplication/json
object
id
required
string format: uuid
orderId
required
string format: uuid
status
required
Example
{ "status": "Requested"}