Skip to content
gist.link ↗

shippingLabelFile

Query Shop API — POST https://shop.api.gist.link/graphql

A fulfillment’s label file (base64), fetched from the shipping service. ADMIN.

shop:query:shippingLabelFile

The calling IAM key must hold this permission (or a wildcard that covers it: shop:query:* or shop:*) and the access token must have been minted with audience=shop. See Permissions.

type Query {
shippingLabelFile(fulfillmentId: String!): ShippingLabelFile!
}
Argument Type Required Description
fulfillmentId String! Yes —

ShippingLabelFile! — see the Shop types reference.

Terminal window
curl https://shop.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query ShippingLabelFile($fulfillmentId: String!) { shippingLabelFile(fulfillmentId: $fulfillmentId) { filename content_type data_base64 } }",
"variables": {
"fulfillmentId": "example"
}
}
JSON