Preview letter price
preview_letter_priceCalculates the exact price of a letter WITHOUT creating an order or charging anything. Always call this (or create_letter_order without confirming) before create_letter_order, and show the price to the user before sending money.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | Number of content pages (excludes the address page). | |
| colour | No | Print in colour instead of black & white. | |
| content | No | Plain-text letter body. Required unless contentUploadPath is supplied. | |
| senderName | No | ||
| doubleSided | No | Print double-sided (duplex). | |
| senderLine1 | No | ||
| serviceClass | Yes | Royal Mail service to send with. Domestic: SECOND_CLASS, FIRST_CLASS, SECOND_CLASS_SIGNED, SIGNED_FOR, SPECIAL_DELIVERY, TRACKED_48, TRACKED_24. International: INTERNATIONAL_STANDARD, INTERNATIONAL_TRACKED, INTERNATIONAL_TRACKED_SIGNED. | |
| recipientCity | Yes | ||
| recipientName | Yes | ||
| recipientLine1 | Yes | ||
| recipientLine2 | No | ||
| senderPostcode | No | ||
| recipientCountry | No | ISO 3166-1 alpha-2 country code, e.g. GB, US, FR. | GB |
| contentUploadPath | No | Path returned by the customer's own upload flow (POST /api/v1/uploads/request-url) for a pre-uploaded PDF/DOCX. The MCP server cannot upload files itself. | |
| recipientPostcode | Yes |