Royal Mail · Example Payload

Create Return

Example request and response for creating a Royal Mail tracked return label.

ShippingPostal ServicesLabelsTrackingLogisticsBarcodesClick and DropUK

Create Return is an example object payload from Royal Mail, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

summarydescriptionrequestresponse

Example Payload

Raw ↑
{
  "summary": "Create a return shipment",
  "description": "Example request and response for creating a Royal Mail tracked return label.",
  "request": {
    "service": {
      "serviceCode": "TSN",
      "serviceRegisterCode": ""
    },
    "shipment": {
      "shippingAddress": {
        "firstName": "Jane",
        "lastName": "Smith",
        "addressLine1": "10 Downing Street",
        "city": "London",
        "postcode": "SW1A 2AA",
        "country": "United Kingdom",
        "countryIsoCode": "GB"
      },
      "returnAddress": {
        "companyName": "Example Shop Ltd",
        "addressLine1": "1 Warehouse Road",
        "city": "Manchester",
        "postcode": "M1 1AE",
        "country": "United Kingdom",
        "countryIsoCode": "GB"
      },
      "customerReference": {
        "reference": "RETURN-ORD-2026-001"
      }
    }
  },
  "response": {
    "shipment": {
      "trackingNumber": "TR123456789GB",
      "uniqueItemId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
    },
    "qrCode": "iVBORw0KGgoAAAANSUhEUgAAAMgAAADI...",
    "label": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZw..."
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/create-return"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.