Royal Mail
App · 15 actions
Manage Royal Mail Click & Drop orders, labels and manifests.
Actions
| Action | What it does |
|---|---|
| Create manifest | Create manifest. |
| Create order | Create order. |
| Delete order | Delete order. |
| Get API version | Get API version. |
| Get manifest | Get manifest. |
| Get order | Get order. |
| Get order details | Get order details. |
| Get order label | Get order label. |
| List carriers | List carriers. |
| List online postage services | List online postage services. |
| List order details | List order details. |
| List orders | List orders. |
| List shipping services | List shipping services. |
| Retry manifest | Retry manifest. |
| Set order status | Set order status. |
Create manifest
Create manifest.
Inputs
- Shipping account
shipping_accounttext - Shipping account to manifest.
- Skip paperwork
skip_paperworktrue/false - Skip generating manifest paperwork.
Outputs
dataobject- The response from Royal Mail.
Example output
{
"data": {
"manifests": [
{}
]
}
}Create order
Create order.
Inputs
- Order reference
order_referencetext - Your own reference for the order.
- Recipient
recipientobjectRequired - Recipient’s address and contact details.
- Order date
order_datedate and timeRequired - When the order was placed.
- Subtotal
subtotalnumberRequired - Order subtotal.At least 0.
- Shipping cost
shipping_costnumberRequired - Shipping cost charged to the buyer.At least 0.
- Total
totalnumberRequired - Total amount charged.At least 0.
- Currency code
currency_codetext - Three-letter order currency.
- Packages
packageslist - Packages and the items they contain.
Outputs
dataobject- The response from Royal Mail.
Example output
{
"data": {
"createdOrders": [
{
"orderIdentifier": 1,
"orderReference": "example"
}
],
"errorsCount": 1,
"successCount": 1
}
}Delete order
Delete order.
Inputs
- Order identifier
order_identifiernumberRequired - Numeric order ID returned by Click & Drop.At least 1.
Outputs
dataobject- The response from Royal Mail.
Example output
{
"data": {
"deletedOrders": [
{}
]
}
}Get API version
Get API version.
Inputs
None.
Outputs
dataobject- The response from Royal Mail.
Example output
{
"data": {
"build": "example",
"release": "example"
}
}Get manifest
Get manifest.
Inputs
- Manifest ID
manifest_idtextRequired - Manifest ID from Create manifest.
Outputs
dataobject- The response from Royal Mail.
Example output
{
"data": {
"documentStatus": "example",
"manifestStatus": "example",
"pdf": "example"
}
}Get order
Get order.
Inputs
- Order identifier
order_identifiernumberRequired - Numeric order ID returned by Click & Drop.At least 1.
Outputs
datalist- The response from Royal Mail.
Example output
{
"data": [
{
"orderIdentifier": 1,
"orderReference": "example"
}
]
}Get order details
Get order details.
Inputs
- Order identifier
order_identifiernumberRequired - Numeric order ID returned by Click & Drop.At least 1.
Outputs
datalist- The response from Royal Mail.
Example output
{
"data": [
{
"orderIdentifier": 1,
"orderReference": "example"
}
]
}Get order label
Get order label.
Inputs
- Order identifier
order_identifiernumberRequired - Numeric order ID returned by Click & Drop.At least 1.
- Document type
document_typetextRequired - Which document to download.One of:
postageLabel,despatchNote,CN22,CN23,commercialInvoice. - Include return label
include_return_labeltrue/false - Include the return label.
Outputs
dataobject- The response from Royal Mail.
Example output
{
"data": {
"content_base64": "example",
"content_type": "example"
}
}List carriers
List carriers.
Inputs
None.
Outputs
datalist- The response from Royal Mail.
Example output
{
"data": [
{}
]
}List online postage services
List online postage services.
Inputs
- Country
countrytextRequired - Three-letter destination country code.
- Weight
weightnumber - Package weight in grams.At least 1.
- Postcode
postcodetext - Destination postcode.
- Package format
package_formattext - Package size.One of:
Letter,LargeLetter,SmallParcel,MediumParcel,LargeParcel.
Outputs
dataobject- The response from Royal Mail.
Example output
{
"data": {
"guidanceText": "example",
"services": [
{}
]
}
}List order details
List order details.
Inputs
- Page size
page_sizenumber - Number of orders per page.From 1 to 100.
- Start time
start_timedate and time - Earliest order creation time.
- End time
end_timedate and time - Latest order creation time.
- Continuation token
continuation_tokentext - Continuation token from the previous page.
Outputs
dataobject- The response from Royal Mail.
Example output
{
"data": {
"continuationToken": "example",
"orders": [
{
"orderIdentifier": 1,
"orderReference": "example"
}
]
}
}List orders
List orders.
Inputs
- Page size
page_sizenumber - Number of orders per page.From 1 to 100.
- Start time
start_timedate and time - Earliest order creation time.
- End time
end_timedate and time - Latest order creation time.
- Continuation token
continuation_tokentext - Continuation token from the previous page.
Outputs
dataobject- The response from Royal Mail.
Example output
{
"data": {
"continuationToken": "example",
"orders": [
{
"orderIdentifier": 1,
"orderReference": "example"
}
]
}
}List shipping services
List shipping services.
Inputs
- Country code
country_codetext - Three-letter destination country code, such as GBR.
- Postcode
postcodetext - Destination postcode.
- Package weight
package_weightnumber - Package weight in grams.At least 1.
- Carrier ID
carrier_idtext - Carrier ID from List carriers.
- Shipping account
shipping_accounttext - Shipping account name.
Outputs
datalist- The response from Royal Mail.
Example output
{
"data": [
{}
]
}Retry manifest
Retry manifest.
Inputs
- Manifest ID
manifest_idtextRequired - Failed manifest ID.
Outputs
dataobject- The response from Royal Mail.
Example output
{
"data": {}
}Set order status
Set order status.
Inputs
- Updates
updateslistRequired - Status updates, each with one order identifier or reference and its new status.
Outputs
dataobject- The response from Royal Mail.
Example output
{
"data": {
"errors": [
{}
],
"updatedOrders": [
{}
]
}
}