Orders
Get an item’s download link
A short-lived link to the file of one line of a paid order. `itemId` is the line’s `items[].id`.
Authorization
bearer orders:writeAuthorizationBearer <token>
A v1 API key; the scope named is the one the route needs.
In: header
Scope: orders:write
Path Parameters
orderId*string
Match
^[A-Za-z0-9_-]{1,64}$Length
1 <= length <= 64itemId*string
Match
^[A-Za-z0-9_-]{1,64}$Length
1 <= length <= 64Header Parameters
Idempotency-Key?string
Names the act so a retry under it lands on the stored answer (idempotency-key).
Length
1 <= length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
curl -X POST "https://example.com/v1/orders/string/items/string/download" \ -H "Content-Type: application/json" \ -d '{}'{ "downloadUrl": "http://example.com", "expiresAt": "2019-08-24T14:15:22Z", "contentType": "string", "fileName": "string", "fileSize": 0}Read an order’s documents GET
The order’s invoice and its credit notes as issued, with the buyer’s billing as printed.
Preview a refund GET
What a refund of the order would move, before you ask for one, and why it would be refused now. Leave out `amount` for the rest of the order; every figure is in the order’s currency.