Orders
Read an order’s documents
The order’s invoice and its credit notes as issued, with the buyer’s billing as printed.
Authorization
bearer orders:readAuthorizationBearer <token>
A v1 API key; the scope named is the one the route needs.
In: header
Scope: orders:read
Path Parameters
orderId*string
Match
^[A-Za-z0-9_-]{1,64}$Length
1 <= length <= 64Response Body
application/json
application/problem+json
curl -X GET "https://example.com/v1/orders/string/documents"{ "orderId": "string", "invoice": { "plane": "string", "number": "string", "status": "string", "issuedAt": "2019-08-24T14:15:22Z", "sellerEntity": "string", "total": { "amount": -9007199254740991, "currency": "string" }, "billing": { "state": "shown", "name": "string", "address": { "line1": "string", "line2": "string", "city": "string", "state": "string", "postalCode": "string", "country": "string" }, "vatId": "string", "nip": "string", "country": "string" } }, "creditNotes": [ { "number": "string", "kind": "string", "correctsInvoice": "string", "issuedAt": "2019-08-24T14:15:22Z", "net": { "amount": -9007199254740991, "currency": "string" }, "tax": { "amount": -9007199254740991, "currency": "string" }, "gross": { "amount": -9007199254740991, "currency": "string" }, "reason": "string" } ]}