Royal Mail Return Label via Sapient
Generates a Royal Mail return label through Sapient (Intersoft) so a customer can post an item back to you. Use it inside return flows when you need to hand the shopper a printable label.
What it does
- Authenticates with Sapient (Intersoft) using your client credentials.
- Creates a return shipment from the shipper and recipient addresses you provide.
- Returns the printable return label as a base64-encoded PDF.
Inputs
| Name | Type | Description |
|---|---|---|
| Shipping Account Id | String | Shipping Account Id from intersoft |
| Shipper Address Line 1 | String | Shipper address line 1 |
| Shipper Town | String | Shipper town |
| Shipper contact Name | String | Shipper Name |
| Shipper country code | String | Shipper country code |
| Shipper Address Line 2 | String | Shipper address line 2 |
| Shipper Post Code | String | Shipper zip code |
| Recipient Company Name | String | Recipient Company Name |
| Recipient address line 1 | String | Recipient address addresss line 1 |
| Recipient address line 2 | String | Recipient address addresss line 3 |
| Recipient address line 3 | String | Recipient address addresss line 3 |
| Recipient Post Code | String | Recipient post code |
| Recipient town | String | Recipient city/town) |
| Recipient Country Code | String | Recipient coutry code |
| Order Number | String | Customer Order Number used as shipping reference |
| Sapient Client Id | String (sensitive) | Sapient Client Id |
| Sapient Client Secret | String (sensitive) | Sapient Client Secret |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Whether the label was succesfully created |
| Return Label | String | The return label in base64 |
Notes
- The label is returned as base64-encoded PDF content, so decode or attach it before showing it to the customer.
- The action uses the Royal Mail returns service via Sapient/Intersoft, so you need valid Sapient client credentials.