Return a single PDF file with generated label and/or associated document(s)
Changed on<b>Reserved for OBA customers only</b>
The account "Label format" settings page will control the page format settings used to print the postage label and associated documents. Certain combinations of these settings may prevent associated documents from being printed together with the postage label within a single document. If this occurs the documentType option can be used in a separate call to print missing documents.
Request
- Base URLhttps://api.parcel.royalmail.com/api/v1
- URLhttps://api.parcel.royalmail.com/api/v1/orders/{orderIdentifiers}/label
- AuthAPI key in header Authorization
Path parameters
One or several Order Identifiers or Order References separated by semicolon. Order Identifiers are integer numbers. Order References are strings - each must be percent-encoded and surrounded by double quotation marks. The maximum number of identifiers is 100.
Query parameters
Document generation mode. When documentType is set to "postageLabel" the additional parameters below must be used. These additional parameters will be ignored when documentType is not set to "postageLabel". When documentType is set to "commercialInvoice" the includeCommercialInvoice parameter applies.
Include returns label. Required when documentType is set to 'postageLabel'
Include CN22/CN23 with label. Optional parameter. If this parameter is used the setting will override the default account behaviour specified in the "Label format" setting "Generate customs declarations with orders"
Includes the commercial invoice with the label. Only applies when documentType is "commercialInvoice".
Response
Return the PDF file with labels
Changes
- info
added the new optional
queryrequest parameterincludeCommercialInvoice
- info