API documentation
Version 1. Connect your store, ERP or warehouse system to our shipping platform.
- Overview
- Quick start
- Authentication
- General rules
- Errors
- Objects
- Rates
- Warehouses
- Create a shipment
- Validate without creating
- Shipment
- Label
- Tracking
- Cancel
- Balance
- Pickup points
- Courier pickup
- Customs
- Statuses
- Testing your integration
- Full example
- Not in version 1
- Changes
Overview
The API gives your system the same shipping options you see in your personal account:
- rates of all carriers available to you, with prices under your contract;
- delivery to the door or to a pickup point (a carrier office or locker where the recipient collects the parcel);
- shipping from your own address or from one of our partner warehouses;
- shipping labels (PDF 100×150 mm), tracking, cancellation and your balance.
Who can use it. Customers with a postpaid contract: a shipment goes into work right after it is created, the invoice is paid later. A shipment is created only if its price is not greater than available in GET /balance: your balance plus your credit limit, or just your balance if there is no limit.
How to get access. Create a key yourself in your personal account: Security (Безопасность) → API BoxPost → Create key (Создать ключ). The key is shown once, does not expire and is deleted in the same place. The section is available to customers with a postpaid contract.
Quick start
- Rates —
POST /rates: send the parcel, get the available rates with codes and prices. - Validate (recommended) — the same request as create with
"validate_only": true: everything is checked and priced, nothing is created. - Create —
POST /shipmentswith the chosentariff_code. The response contains the shipment number andlabel_status: pending. - Poll —
GET /shipments/{number}every 10–30 seconds untillabel_statusisreadyorerror. - Label —
GET /shipments/{number}/label.
Authentication
Send your key in every request:
Authorization: Bearer
The key works only for this API: it does not open the personal account. Keep it like a password.
- Where to get it. Personal account → Security (Безопасность) → API BoxPost → Create key (Создать ключ): enter your password and a name for the key (for example, the name of your system). The key is shown once — copy it right away.
- Expiry. The key does not expire. You can have several keys, each works on its own. We send you an email about every new key.
- Where to delete it. In the same section: Delete (Удалить) next to the key. A deleted key stops working immediately (401). Delete a key you no longer need or that may have leaked, and create a new one.
- Without a postpaid contract keys do not work (403
no_contract) and new keys cannot be created; existing keys can still be deleted.
General rules
- Base URL:
https://www.boxpost.global/api/v1— the address of this site followed by/api/v1. - Requests and responses are JSON in UTF-8 (
Content-Type: application/json). Labels are PDF. - Date and time: ISO 8601 in UTC, e.g.
2026-11-12T06:11:55Z. Dates without time:2026-11-12. - Prices include VAT:
priceis the total to pay,price_untaxedis without VAT andtax_amountis the VAT (price_untaxed + tax_amount = price). VAT depends on the route and on your profile. - Weights are in kg, dimensions in cm.
- Fields not described here may appear in responses later: ignore unknown fields.
- Creates of one account — all users of your company — are processed one at a time: each next one is checked against the balance after the previous one. Validation without creating does not wait in this queue. If the server is too busy with simultaneous requests, it repeats the request itself; if that does not help, you get 503
busy— repeat the request later.
Errors
Every error has the same shape:
{
"code": "validation_error",
"message": "Данные не прошли проверку",
"fields": {
"recipient.zip": "Не подходит под формат страны, пример: 08011",
"items[0].hs_code": "Обязателен для таможни: 6–10 цифр"
}
}
code— machine-readable, stable between versions: use it in your code;message— text for a person (currently in Russian);fields— field path → what is wrong, when the problem is in specific fields (recipient.email,items[1].made_in,pickup…).
| HTTP | code | When |
|---|---|---|
| 400 | validation_error, invalid_json, no_sender | The request did not pass validation. See fields |
| 401 | unauthorized | No key, or the key is wrong, deleted or expired |
| 402 | insufficient_funds | The shipment price is greater than available: top up the balance or contact your manager. required, available, currency — see POST /shipments |
| 403 | no_contract | The API is available to customers with a postpaid contract |
| 403 | profile_required | Your profile in the personal account is incomplete or the current agreement is not accepted |
| 403 | client_blocked | Your account is blocked: shipments cannot be created or cancelled; shipments already sent are delivered |
| 404 | not_found | The shipment does not exist or is not yours |
| 404 | not_found | There is no such API method: unknown path under /api/v1/. The answer is the same with and without a key |
| 405 | method_not_allowed | The path exists but takes another HTTP method; message and the Allow header name the right one |
| 409 | label_not_ready, label_error, too_late, cancel_rejected | The action is not possible right now |
| 422 | tariff_unavailable | The rate is not available for this shipment; available_codes lists the codes that are |
| 500 | internal_error | Internal error, try again later |
| 503 | rates_unavailable | Carrier rates cannot be calculated right now, try again later |
| 503 | busy | Too many simultaneous requests, try again later |
Label errors
When a shipment has label_status: error, it also has label_error_code and label_error (text for a person):
label_error_code | Meaning | What to do |
|---|---|---|
missing_data | Data required for the label is missing (for example, the recipient street) | Fix the data, cancel the shipment and create a new one with the same reference |
carrier_rejected | The carrier rejected the shipment; the carrier's text (up to 500 characters, in the carrier's language) is in label_error | Fix the data as the carrier says, cancel the shipment and create a new one with the same reference |
internal | A problem on our side | Wait: we will retry and label_status becomes ready. Or cancel and create again |
Objects
Address
Used for recipient and sender.
| Field | Required | Description |
|---|---|---|
name | yes | Person name. Latin letters, see below |
company | no | Company. Latin letters |
phone | yes | With the country code: +34600222333. Without “+” the number is treated as local. Checked against the number format of the country the code belongs to |
email | no* | *Required for the recipient when the delivery is to a pickup point |
country | yes | ISO 3166-1 alpha-2 code |
region | by country | Region code or name, where the country requires it |
zip | by country | Checked against the country format |
city | yes | Latin letters |
street | yes | Latin letters |
house | by country | House number. Latin letters |
id_number | no* | Recipient only: identity document or tax number. *Required for some countries when the parcel crosses a customs border, see Customs |
Addresses are stored and passed to carriers in Latin letters. Cyrillic in name, company, city, street and house is transliterated automatically (Казань → Kazan); Latin letters with diacritics (é, ñ, ü), digits and punctuation are kept as is. Letters of other scripts (Chinese, Armenian, Georgian, Arabic…) are an error of the field: Only Latin letters (Только латинские буквы).
For rates, the recipient needs only country, zip and city; name, phone and email are not checked. Some carriers quote only for a full address: pass street and house to get the same list of rates that create will accept. The full address is checked when the shipment is created — also for delivery to a pickup point.
If sender is omitted, the sender is the main address from your personal account; without it you get 400 no_sender.
Sender warehouse
Instead of an address, the sender can be a warehouse from GET /warehouses — for example, when your goods are stored with us and the parcel is packed there:
"sender": {"warehouse_id": 12, "name": "Example Store", "company": "Example Store S.L."}
| Field | Required | Description |
|---|---|---|
warehouse_id | yes | Warehouse id from the list |
name | no | Sender name on the label. Default: the company name from your profile (for a private person — your name) |
company | no | Sender company |
- The address, phone and email of the sender are the warehouse's: the courier and the carrier contact the place the parcel leaves from. The warehouse name never appears as the sender — not on the label, not in the pickup request, not in customs documents.
- Only
nameandcompanymay be sent withwarehouse_id; anything else → 400,fields.sender. Unknown or unpublished warehouse → 400,fields["sender.warehouse_id"]. - Prices are calculated for the warehouse address, as for any sender. Warehouse handling is free of charge for you.
- Courier pickup sends the courier to the warehouse; for an office rate the warehouse takes the parcel to the office you choose.
- Rates with drop-off at a warehouse (
pickup.type = warehouse) are returned only for this same warehouse: the parcel is already there.
Parcel (parcel)
One package per shipment.
| Field | Required | Description |
|---|---|---|
type | no | box (default) or envelope |
weight | yes | kg, greater than 0 |
length, width, height | for box | cm, greater than 0 |
Items (items)
List of goods in the parcel; at least one item when creating a shipment. All items in one currency.
| Field | Required | Description |
|---|---|---|
description | yes | Any language |
quantity | yes | Integer, at least 1 |
unit_price | yes | Price per unit, greater than 0 |
currency | no | ISO 4217 code; default — the currency of your contract |
hs_code | for customs | HS (tariff) code: 6–10 digits; spaces, dots and hyphens are allowed and removed (6403.99 is stored as 640399) |
made_in | for customs | Country of origin, ISO-2 |
hs_code and made_in are required when the parcel crosses a customs border, see Customs. For Russian Post via LS, an empty hs_code is allowed before payment. A provided code is checked against the shared LS prohibited goods list.
POST /rates
Rates available for the parcel, with prices under your contract.
{
"sender": {"country": "ES", "zip": "28013", "city": "Madrid",
"street": "Calle Mayor", "house": "1"},
"recipient": {"country": "ES", "zip": "08001", "city": "Barcelona",
"street": "Carrer de Balmes", "house": "5"},
"parcel": {"type": "box", "weight": 1.2, "length": 20, "width": 15, "height": 10},
"filters": {"delivery": "point", "exclude_carriers": ["dhl"]}
}
recipient and parcel are required; sender, items and filters are optional.
Filters
All filter fields are optional. Filters only narrow the list: prices, codes and order stay the same.
| Field | Description |
|---|---|
carriers | List of carrier codes (carrier.code): only rates of these carriers. Multi-carrier rates (with carrier: null) are not returned |
exclude_carriers | List of carrier codes to remove. Multi-carrier rates stay |
delivery | door or point |
pickup | List of courier, office, warehouse |
carriers together with exclude_carriers → 400, fields.filters. An unknown delivery or pickup value → 400 with the list of allowed values. An unknown carrier code is not an error: there are simply no rates for it.
Response 200
{
"rates": [
{
"code": "R3301",
"name": "Courier across Spain",
"carrier": null,
"company": "Northwind Parcel S.L.",
"description": null,
"price": 7.99, "price_untaxed": 6.60, "tax_amount": 1.39, "currency": "EUR",
"delivery_estimate": "2-4 days",
"pickup": {"type": "courier", "dates": ["2026-11-13", "2026-11-16"],
"time_from": 9, "time_to": 18, "window_fixed": false},
"delivery": {"type": "door"},
"customs": {"required": false, "reason": null}
},
{
"code": "D7K2M9QX4TB",
"name": "Correos Express Punto Pack",
"carrier": {"code": "correosexpress", "name": "Correos Express"},
"company": "Northwind Parcel S.L.",
"description": "Delivery to a pickup point, 2–3 days.",
"price": 4.88, "price_untaxed": 4.03, "tax_amount": 0.85, "currency": "EUR",
"delivery_estimate": "2-3 days",
"pickup": {"type": "courier", "dates": ["2026-11-13", "2026-11-16"],
"time_from": 9, "time_to": 18, "window_fixed": false},
"delivery": {"type": "point", "points": [
{"code": "08012345", "name": "Kiosk Ramblas", "address": "La Rambla 10, Barcelona, B, 08001",
"zip": "08001", "hours": "Mon-Fri 9:00-20:00", "latitude": 41.3809, "longitude": 2.1734}
]},
"customs": {"required": false, "reason": null}
}
]
}
| Field | Description |
|---|---|
code | Rate code for POST /shipments. Use it as is and do not parse it: its format is not part of the contract. The same rate always has the same code |
name | Rate name, as in the calculator |
carrier | {"code", "name"} — the carrier. code is the public carrier code for filters: lowercase Latin letters, digits and hyphens, starting with a letter (fedex, correosexpress, gls). One carrier has one code in all rates, whoever provides the rate. name as in the rate name. null for multi-carrier rates |
company | Who provides the rate; null if not set |
description | Rate description in the language of your profile; null if there is none |
price, price_untaxed, tax_amount, currency | Exactly the amounts of the invoice for this parcel |
delivery_estimate | Transit time, e.g. 2-4 days; may be empty |
pickup | How the parcel gets to the carrier, see below and Courier pickup |
delivery | {"type": "door"} or {"type": "point", "points": [...]}, see Pickup points |
customs | {"required", "reason"}: whether the parcel crosses a customs border, and why (a hint; on create the shipment itself decides), see Customs |
pickup.type:
courier— a courier collects the parcel;dates— allowed pickup dates,time_from/time_to— the pickup window in hours,window_fixed: true— the window is fixed by the carrier and your interval is ignored;office— you drop the parcel at a carrier office:offices: [{"code", "name", "address"}]— carrier offices near the sender's postcode, nearest first; the office code is required on create (for some rates any office of the list works — seeorigin_office_code);warehouse— you bring the parcel to a warehouse:warehouse: {"id", "name", "address", "phone", "hours"}.
Order: multi-carrier rates first, then carrier rates; by price inside each group. No rates — 200 and an empty list.
GET /warehouses
Warehouses that can be the sender (sender.warehouse_id).
{
"warehouses": [
{"id": 12, "name": "Madrid Centre", "country": "ES", "region": "M", "zip": "28013",
"city": "Madrid", "street": "Calle de Alcalá", "house": "15",
"phone": "+34910000000", "hours": "Mon-Fri 9:00-18:00"}
]
}
POST /shipments
Create a shipment. The invoice is issued under your contract and the label is ordered in the background.
{
"reference": "ORDER-1001",
"tariff_code": "D7K2M9QX4TB",
"sender": {"warehouse_id": 12},
"recipient": {
"name": "Ana García", "phone": "+34600222333", "email": "ana@example.com",
"country": "ES", "region": "B", "zip": "08001", "city": "Barcelona",
"street": "Carrer de Balmes", "house": "5"
},
"parcel": {"type": "box", "weight": 1.2, "length": 20, "width": 15, "height": 10},
"items": [{"description": "Sneakers", "quantity": 1, "unit_price": 40, "currency": "EUR"}],
"pickup": {"date": "2026-11-13", "time_from": 10, "time_to": 14},
"destination_point_code": "08012345"
}
| Field | Required | Description |
|---|---|---|
reference | yes | Your order number, up to 50 characters. Repeating a request with the same reference does not create a second shipment |
tariff_code | yes | code from POST /rates |
sender | no | Address or sender warehouse |
recipient, parcel, items | yes | See Objects |
pickup | for pickup.type = courier | {"date", "time_from", "time_to"}; must not be sent for other rates. See Courier pickup |
origin_office_code | for pickup.type = office | Office code from pickup.offices of the rate, when the rate requires one |
destination_point_code | for delivery.type = point | Pickup point code from delivery.points; must not be sent for door delivery. See Pickup points |
export_reason | for customs or LS | sale, gift, sample, return, personal_effects. Required for Russian Post via LS. For other rates without customs the default is sale |
validate_only | no | true — validate without creating, see below. Default false |
The rate is recalculated for this shipment. If it is not available, you get 422 with the codes that are:
{"code": "tariff_unavailable", "message": "Тариф D0000000000 недоступен для этой посылки",
"available_codes": ["R3301", "D7K2M9QX4TB"]}
Before creating, the fields the carrier needs for the label are checked (name, street, city, country and zip where required, for both sender and recipient): 400 with fields like sender.street.
Response 201
{
"number": "261112003",
"reference": "ORDER-1001",
"status": "accepted",
"status_text": "Принята в работу",
"price": 4.88, "price_untaxed": 4.03, "tax_amount": 0.85, "currency": "EUR",
"invoice": "INV/2026/00030",
"label_status": "pending",
"tracking_numbers": [],
"delivery": {"type": "point", "point": {"code": "08012345", "name": "Kiosk Ramblas",
"address": "La Rambla 10, Barcelona, B, 08001"}},
"created_at": "2026-11-12T06:13:45Z"
}
Repeat. If you already have a non-cancelled shipment with this reference, a new one is not created: 200 with the existing shipment and "duplicate": true. A request can be safely repeated after a network failure, also while the first one is still running. A cancelled shipment does not count as a repeat. A repeat is not checked against the balance.
Balance check. After all other checks and after the price is calculated, the price (price, with VAT) is compared with available of GET /balance at that moment. Not greater — the shipment is created; equal is enough. Greater — nothing is created (no shipment, no invoice, no label) and you get 402:
{"code": "insufficient_funds",
"message": "Недостаточно средств: отправление стоит 5.61 EUR, доступно 0.00 EUR. Пополните баланс или обратитесь к менеджеру",
"required": 5.61, "available": 0.0, "currency": "EUR"}
required— the shipment price,available— what was available before this shipment (negative if you are already over the limit),currency— the currency of your contract.- With a credit limit you can go below zero down to the limit; without a limit the balance cannot go below zero — shipments are paid from money you have topped up.
- Data errors come first: a request with wrong data gets 400
validation_error, not 402.
POST /shipments with "validate_only": true
The same request as create plus "validate_only": true. Everything create does is done — profile check, addresses, parcel and items, rate recalculation, office, pickup point, courier pickup, customs data, price and invoice — but nothing is saved: no shipment, no invoice, no number, no emails, no label.
{
"validate_only": true,
"tariff_code": "D7K2M9QX4TB",
"price": 4.88, "price_untaxed": 4.03, "tax_amount": 0.85, "currency": "EUR",
"pickup": {"type": "courier", "date": "2026-11-13", "time_from": "10", "time_to": "14"},
"delivery": {"type": "point", "point": {"code": "08012345", "name": "Kiosk Ramblas",
"address": "La Rambla 10, Barcelona, B, 08001"}}
}
price— the same amount the invoice will have on create.pickup— for courier pickup: the checked date and interval; for other rates — as in rates.- Errors — the same codes and texts as create, including the balance check: not enough money — the same 402
insufficient_fundswith the samerequiredandavailableas create would give. A shipment with thisreferencealready exists — the same answer as create (duplicate: true). - The label is not ordered, so a carrier rejection (
carrier_rejected) can only be seen on a real shipment.
GET /shipments/{number} · /shipments?reference=…
Find a shipment by our number or by your reference, only among your shipments. The response is the same as on create:
| Field | Description |
|---|---|
number | Shipment number (the same as in the personal account) |
reference | Your number |
status, status_text | Status (see Statuses) and its text from the personal account |
price, price_untaxed, tax_amount, currency, invoice | Invoice amounts and invoice number |
label_status | pending — being prepared, ready — ready, error — not created |
label_error_code, label_error | Only with label_status: error, see Errors |
tracking_numbers | Carrier tracking numbers |
delivery | {"type": "door"} or {"type": "point", "point": {"code", "name", "address"}} |
created_at | Creation date |
GET /shipments/{number}/label
PDF 100×150 mm — the same as in the personal account: our label, instructions and the carrier labels. ?carrier_only=1 — carrier labels only.
The label is available when label_status is ready: the carrier label is then stored with us. Not ready yet → 409 label_not_ready, try again in 10–30 seconds. Not created → 409 label_error with label_error_code:
{"code": "label_error", "message": "Лейбл не создан, мы уже разбираемся", "label_error_code": "internal"}
GET /shipments/{number}/tracking
{
"number": "261112003",
"status": "in_transit",
"status_text": "В пути",
"events": [{"date": "2026-11-13T08:15:00Z", "event": "Admitido", "location": "Madrid"}]
}
Newest events first. Events contain no names or addresses.
POST /shipments/{number}/cancel
When. While the parcel has not been handed over to the carrier — including ready_to_ship, when the label already exists. Not from in_transit (except a parcel waiting at an intermediate warehouse) and not from delivered.
What happens. First the carrier is asked to cancel its shipment. The shipment is cancelled only if the carrier confirms (or there was no carrier shipment yet). Then the pickup request and the invoice are cancelled. An unpaid invoice is cancelled; a paid one is reversed by a credit note and the money returns to your balance.
| HTTP | code | When |
|---|---|---|
| 200 | — | Cancelled: the shipment with status: cancelled. Already cancelled — 200 with the current data |
| 409 | too_late | The parcel has already been handed over to the carrier: cancel through support |
| 409 | cancel_rejected | The carrier did not confirm the cancellation; the shipment and the invoice did not change. Sometimes with reason |
| 403 | client_blocked | Your account is blocked |
GET /balance
Your balance with the company you have the contract with — the same amounts as on the “Balance” page of the personal account.
{"currency": "EUR", "funds": 1200.0, "unpaid_invoices": 300.0,
"balance": 900.0, "credit_limit": 3000.0, "available": 3900.0}
| Field | Description |
|---|---|
currency | ISO 4217 code |
funds | Money on the balance: unallocated payments and credit notes, money owed to you, referral earnings |
unpaid_invoices | Remaining amount of unpaid invoices |
balance | funds − unpaid_invoices; negative — you owe |
credit_limit | Credit limit; null if not set |
available | Always a number: credit_limit + balance; without a limit — balance. The amount you can still create shipments for through the API; negative — nothing can be created |
Without a credit limit: {"currency": "EUR", "funds": 50.0, "unpaid_invoices": 20.0, "balance": 30.0, "credit_limit": null, "available": 30.0}.
All users of your company share one balance. A blocked account can still read the balance.
Pickup points
- A rate with
delivery.type = pointdelivers to a pickup point.delivery.points— up to 20 points nearest to the recipient's zip, in the order given by the carrier:code,name,address(one line),zip,hours,latitude,longitude(nullif unknown). - If the carrier has no points near the recipient, or the points cannot be loaded right now, the rate is not returned.
- On create,
destination_point_codeis required. Any point of the carrier's full list for this recipient is accepted, not only the 20 shown. - The recipient address must be complete (as for door delivery), and
recipient.emailis required: the carrier tells the recipient that the parcel has arrived. - Errors (400): no code →
fields.destination_point_code; a code not from the rate's list; a code for a door rate; no recipient email →fields["recipient.email"]. - The point is stored in the shipment and sent to the carrier with the label.
GET /shipments/{number}returns it indelivery.point. - For some rates the drop-off offices and the pickup points come from the same list: such a rate has both
pickup.officesanddelivery.points, and create needs both codes. - If your system cannot choose a point, request rates with
"filters": {"delivery": "door"}or skip rates withdelivery.type = point.
Courier pickup
- A rate with
pickup.type = couriermeans a carrier courier collects the parcel. The rate hasdates,time_from,time_toandwindow_fixed. - For such a rate
pickupis required on create and validate — for any sender, your address or a warehouse:{"date": "2026-11-13", "time_from": 10, "time_to": 14}.datemust be one ofdates; the interval must be withintime_from–time_to. Withwindow_fixed: truethe carrier's window is used and your interval is ignored. - Errors (400,
fields.pickup): no pickup for a courier rate; the date or the interval does not match the carrier's rules (the text says why); pickup for a rate without courier pickup. - The pickup request is created together with the shipment, for the sender's address. With a sender warehouse — the warehouse address and phone and your name. Pickups to the same address on the same day are combined.
- Rates with
pickup.type = office: drop the parcel at the chosen carrier office (origin_office_code). Rates withpickup.type = warehouse: bring the parcel to the warehouse.
Customs
- A customs territory is an area without customs inside. The EU is one territory; the Canary Islands, Ceuta, Melilla and Northern Ireland have their own. If the sender and the recipient are in different territories, the parcel crosses a customs border — for example, Madrid → Tenerife, but not Madrid → Rome.
- Each rate has
customs: {"required", "reason"}. If the territory cannot be determined, customs is considered required. - When the shipment needs customs, create and validate require:
hs_code(6–10 digits) andmade_in(ISO-2) for every item;export_reason;recipient.id_numberfor some destination countries. - On create, the need for customs is calculated again from the shipment itself; the flag in rates is a hint. If they differ, the shipment decides.
- Error — 400
validation_error,message“Для таможенного оформления не хватает данных” and every missing field infields:items[N].hs_code,items[N].made_in,export_reason,recipient.id_number. - Without customs everything is optional and not format-checked;
export_reasondefaults tosale, except Russian Post via LS which requires an explicit reason. - Russian Post via LS accepts declared contents up to and including EUR 1000. Each unit price is converted to EUR using the contract company's exchange rates for the calculation date and rounded to cents before multiplication by quantity. Missing rates or an HS prefix in the shared prohibited goods list exclude LS rates. Other carriers are unaffected. A preliminary quote may omit contents and the full address; creating a shipment requires contents, a complete recipient address (six digits for a Russian postal code) and
export_reason. An empty HS code is allowed before payment, including for customs. - Customs documents (commercial invoice, export declaration, customs declaration) are generated from the items according to the carrier's requirements.
Statuses
status | Meaning |
|---|---|
new | Created, not processed yet |
awaiting_payment | Waiting for payment |
accepted | Accepted (including waiting for the courier or the carrier shipment) |
ready_to_ship | Ready to ship |
in_transit | Handed over to the carrier, in transit, at a warehouse on the way |
on_hold | On hold |
delivered | Delivered |
cancelled | Cancelled |
Testing your integration
There is no test environment: every shipment you create is real, with a real invoice and a paid carrier label.
- Debug your requests with validate without creating (
"validate_only": true): it returns the same errors and the same price as create, but creates nothing and costs nothing. - When validation passes, create one or two real shipments and go through the whole cycle: polling and label.
- Cancel the shipments you do not need (
POST /shipments/{number}/cancel) before the parcel is handed over to the carrier.
Full example
KEY=your-api-key
BASE=https://www.boxpost.global/api/v1
H=(-H "Authorization: Bearer $KEY" -H "Content-Type: application/json")
# 1. Rates (door delivery only)
curl -s "${H[@]}" $BASE/rates -d '{
"recipient": {"country": "ES", "zip": "08001", "city": "Barcelona",
"street": "Carrer de Balmes", "house": "5"},
"parcel": {"type": "box", "weight": 1.2, "length": 20, "width": 15, "height": 10},
"filters": {"delivery": "door"}}'
# → take the code of a rate, e.g. D7K2M9QX4TB, and a pickup date from pickup.dates
# 2. Validate without creating
BODY='{"reference": "ORDER-1001", "tariff_code": "D7K2M9QX4TB",
"recipient": {"name": "Ana García", "phone": "+34600222333", "email": "ana@example.com",
"country": "ES", "region": "B", "zip": "08001", "city": "Barcelona",
"street": "Carrer de Balmes", "house": "5"},
"parcel": {"type": "box", "weight": 1.2, "length": 20, "width": 15, "height": 10},
"items": [{"description": "Sneakers", "quantity": 1, "unit_price": 40}],
"pickup": {"date": "2026-11-13", "time_from": 10, "time_to": 14}}'
curl -s "${H[@]}" $BASE/shipments -d "$(echo "$BODY" | sed 's/^{/{"validate_only": true, /')"
# → 200, validate_only: true, price
# 3. Create — the same request without validate_only
curl -s "${H[@]}" $BASE/shipments -d "$BODY"
# → 201, number: 261112003, label_status: pending
# 4. Poll until label_status is ready or error
curl -s "${H[@]}" $BASE/shipments/261112003
# 5. Label
curl -s "${H[@]}" $BASE/shipments/261112003/label -o label.pdf
Not in version 1
- Return labels.
- Several packages in one shipment.
- Notifications to your system (webhooks).
- A test environment — see Testing your integration.
Changes
2026-11-26
Changed — Delivery prices include the planned payment processing
costs of the company serving the customer. The payment method does not change
the shipment invoice total. If a required exchange rate is missing and no rates
can be returned, POST /rates returns 503 rates_unavailable.
2026-11-26
Added — POST /rates and POST /shipments accept
"insurance": true or "insurance": {"enabled": true}.
Coverage comes from the declaration. To correct the declared value, pass
declaredValue inside insurance, in the declaration currency.
A separate insured amount has no effect. POST /rates returns
insurance per selected rate with coverage, currency, price and availability.
Pass the quoted insurance_total and currency as
insurance.quote.total and insurance.quote.currency
to have shipment creation reject a changed total. Use validate_only
to validate the actual shipment and price before creating it.
2026-11-16
Changed — Russian Post via LS: rates check a EUR 1000 contents limit and a shared HS prefix prohibited goods list. Shipment creation requires an explicit export_reason; an empty HS code is allowed before payment. A rejected selected LS rate returns 422 tariff_unavailable with the customer-facing refusal reason. Checks apply only when the LS integration is installed and the delivery method is marked as Russian Post via LS.
2026-11-10
Changed — check your integration:
carrier.codeinPOST /ratesis now the public carrier code, the same for all rates of one carrier (e.g.fedex). Some rates used to return internal codes instead. Update your savedcarriersandexclude_carriersfilters. See POST /rates.- An unknown path under
/api/v1/returns 404 JSONnot_foundinstead of a redirect; a path called with another HTTP method returns 405 JSONmethod_not_allowed. See Errors. - Rate codes, prices and the rest of the response are unchanged.
2026-11-09
Changed — check your integration:
- Addresses of
POST /shipmentsare stored in Latin letters: Cyrillic inname,company,city,streetandhouseis transliterated. Letters of other scripts are a validation error of the field. See Address. phoneis checked against the number format of its country: a number with a missing or an extra digit is a validation error of the field.- The response format is unchanged.
2026-11-06
New:
- API keys are created and deleted in the personal account: Security (Безопасность) → API BoxPost. See Authentication.
- New keys do not expire. Keys issued before keep working and are listed in the same section.
2026-11-06
Changed — check your integration:
POST /shipmentscreates a shipment only if its price is not greater thanavailable; otherwise — 402insufficient_fundswithrequired,availableandcurrency. Validation without creating checks the price the same way.availableinGET /balanceis now always a number: without a credit limit it equalsbalance(before —null).- Creates of one account are processed one at a time. Two simultaneous requests with the same
referencecreate one shipment, the other one gets"duplicate": true. - New error 503
busy: too many simultaneous requests, repeat later.
2026-11-05
Fixed — check your integration:
pickup.officesof rates withpickup.type = officenow lists carrier offices near the sender, where you drop the parcel. Before, some rates listed offices near the recipient. Takeorigin_office_codefrom this list.- A rate that starts at a carrier office is returned only if the carrier has offices near the sender.
2026-11-03
Breaking changes — check your integration:
pickupis required for rates withpickup.type = courier.pickupfor a rate without courier pickup is an error.- If the parcel crosses a customs border, customs data (
hs_code,made_in,export_reason, for some countriesrecipient.id_number) is required. - Rates now include delivery to pickup points. If your system cannot choose a point, filter them out with
"filters": {"delivery": "door"}or by thedeliveryfield.
New:
GET /warehousesand a warehouse as the sender (sender.warehouse_id).- Rate fields
carrier,delivery,customs; pickup dates and window inpickup; filters inPOST /rates. destination_point_codeon create;deliveryin the shipment response.label_status: readynow means the carrier label is stored and can be downloaded.- A rate description that cannot be shown is returned as
null.