Invoices

Approve or reject a return request

POST
/v1/stores/{storeId}/invoices/returns/{returnId}/decision

Authorization

AuthorizationBearer <token>

API key from Settings → API keys

In: header

Path Parameters

storeId*string
returnId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/stores/string/invoices/returns/string/decision" \  -H "Content-Type: application/json" \  -d '{    "decision": "approved"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",  "status": "string",  "reason": "string",  "merchantNote": "string",  "refundMinor": -9007199254740991,  "refundId": "3324897f-393a-4bf6-b3af-0b999cbc2521",  "items": [    {      "orderLineId": "3bba51e3-a0c1-4b14-a700-b2d3b8ed156d",      "qty": -9007199254740991    }  ],  "requestedAt": "string",  "decidedAt": "string",  "receivedAt": "string"}