Checkout

Choose what happens to paid items that ran out of stock: refund, store credit or (if the store allows it) wait for a restock

POST
/v1/public/stores/{storeId}/invoices/{uniqueId}/unavailable-choice

Path Parameters

storeId*string
uniqueId*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/public/stores/string/invoices/string/unavailable-choice" \  -H "Content-Type: application/json" \  -d '{    "choice": "refund"  }'
{  "state": "open",  "choice": "refund",  "amountMinor": -9007199254740991,  "currency": "string",  "options": [    "refund"  ],  "refundIsManual": true,  "paidWithBalance": true,  "manual": true}