Retry Purchase
/storefront-public/api/v1/purchases/{purchaseId}/retryAuthorization
bearer In: header
Path Parameters
The purchase's id (a UUID), as POST /purchases answers it in purchase.id.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/storefront-public/api/v1/purchases/string/retry"{ "purchase": { "id": "string", "status": "pending_approval", "totalMinor": 0, "chargedMinor": 0, "currency": "AED", "lines": [ { "id": "string", "skuId": "string", "skuName": "string", "quantity": 1, "unitPriceMinor": 0, "lineTotalMinor": 0, "status": "pending", "mintedCount": -9007199254740991, "failureReason": "string" } ], "note": "string", "tags": [ "string" ], "idempotencyKey": "string", "createdAt": "string", "completedAt": "string", "resale": { "buyer": { "membershipId": "string", "displayName": "string" }, "soldFor": { "totalMinor": 0, "chargedMinor": 0 } }, "awaitingApproval": { "_tag": "Store" } }, "licenses": [ { "id": "string", "code": "string", "skuId": "string", "skuName": "string", "purpose": "sale", "purchaseId": "string", "status": "unused", "durationMinutes": 1, "activatedAt": "string", "expiresAt": "string", "holderDisplay": "string", "lastSeenAt": "string", "note": "string", "tags": [ "string" ], "refreshedAt": "string", "createdAt": "string" } ]}Quote Key Action POST
Prices a support action on a key without running it: what RunKeyAction would charge now, and what revoking the key would refund. Refused for the same reasons RunKeyAction would be, short of funds and the provider call.
Run Key Action POST
Runs a support action on a key the reseller owns. A key of another reseller or store is not found, and the provider is never called for it. The key is read from the provider first, and the action refused unless the key is in a state it applies to. A priced action is charged before the provider is called and released if the provider refuses it; a provider that does not answer leaves the action pending with its charge held, asked again under the same id when the key is next opened, and the key takes no other action meanwhile.
