Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Sale__send Invoice To Courier

Authenticated x-tenant { collectionName: 'sale__Invoice', permissions: ['*', 'update'], } Requires a signed-in staff user. Needs the `sale__Invoice` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONsale__sendInvoiceToCourier(input: SendToCourierInput!): SendToCourierResponse!

Authenticated x-tenant { collectionName: 'sale__Invoice', permissions: ['*', 'update'], } Requires a signed-in staff user. Needs the sale__Invoice update permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

input*

Returns

  1. sale__sendInvoiceToCourier
items*
Example Request
mutation Sale__sendInvoiceToCourier($input: SendToCourierInput!) {  sale__sendInvoiceToCourier(input: $input) {    items {      consignmentId      invoice      status      trackingCode    }  }}
Variables
{  "input": {    "provider": "PATHAO"  }}
Example Response
{  "data": {    "sale__sendInvoiceToCourier": {      "items": [        {          "consignmentId": "string",          "invoice": "string",          "status": "string",          "trackingCode": "string"        }      ]    }  }}