Print a Royal Mail QR code as a label
create_royal_mail_labelTurns a Royal Mail QR code (the kind you show at a Post Office: Vinted digital labels, eBay Royal Mail QR codes, ASOS returns and other Royal Mail "Labels to Go" QR codes) into a 6x4 shipping label the user can print at home instead of queuing. If the user has an image or PDF of the QR code, call this with no arguments: a panel lets them pick the file, which is read on their device. Only pass qr_text if you already have the exact decoded text from a QR decoder. Never transcribe a QR code from an image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qr_text | No | The exact text a QR decoder returned for the QR code, unchanged, including every space. It is fields like QRCode=..., 1DBarcode=... and SendersDetails=... separated by |. Omit this if you only have an image of the QR code. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postBy | No | The date to post the parcel by, dd/mm/yyyy. | |
| status | Yes | ready: the label was made from qr_text. needs_file: the user still has to pick their QR code in the panel. | |
| siteUrl | No | Prince of Post, where the user can drop their QR code if the panel does not appear. | |
| postcode | No | Last line of the delivery address, normally the postcode. | |
| printUrl | No | Opens the label on Prince of Post, ready to print at its true 6x4 size. | |
| recipient | No | First line of the delivery address. | |
| trackingNumber | No |