younifyd
Menu

Get order documents

Get order documents

GET/shops/{shopKey}/countries/{countryCode}/orders/{orderIdentifier}/documents

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Get order documents action (under Orders).
  3. Fill in the fields below, then reference the result from later steps as {{getOrderDocuments.response.data}}.

Request

Path parameters

shopKeystringrequired

The shop key.

countryCodestringrequired

The shop country code; use shop country ID instead of country code when a country is ambiguous within a shop.

orderIdentifieroneOfrequired

Order ID or reference key If you are using a reference key, it is highly recommended to use the encoded equal sign (%3D) instead of the plain =

Response

Returns 200 with an object. Read it in later steps with {{getOrderDocuments.response.data.<field>}}.

entitiesarray<object>
idintegerrequired

Document id (distinct from order identifiers).

availabilityStatusbooleanrequired

Whether the document content can be fetched.

createdAtstring (date-time)required
formatstringrequired

File format of the document (`pdf` for PDF binaries, `eml` for email messages).

One ofpdfeml

typestringrequired

Document category. PDF-backed types (for example `merchant_partial_invoice`) return PDF bytes from the show endpoint, same as [order invoices](/en/core-documentation/checkout-guide/features/transactions-and-orders#get-order-invoice). Email-backed types (for example `email_shipment`) are built from JSON stored at the document's storage path and returned as `message/rfc822`.

One ofmerchant_partial_invoicereturn_cost_corrective_invoiceemail_shipment

cursorobject
nextstring

The cursor pointing to the next page. If null there is no next page available.

json
{
  "entities": [
    {
      "id": 0,
      "availabilityStatus": false,
      "createdAt": "2026-03-19T14:30:00+00:00",
      "format": "pdf",
      "type": "merchant_partial_invoice"
    }
  ],
  "cursor": {
    "next": "MQ=="
  }
}

Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.

Get order documents — SCAYLE Admin — Documentation