Create Shipment
https://api.cargopanel.co/v1/shipmentshttps://sandbox-api.cargopanel.co/v1/shipmentsCreate a new international shipment and receive a shipment ID.
This API requires a contract. Get in touch with cargopanel Support Team.
Sandbox API is used for testing purposes. It does not create a real shipment.
Request Fields
referenceIdstringoptional (recommended)Your own reference for this shipment (e.g. your order ID, max 100 characters). It is stored on the shipment, returned in the response and can be searched with the q parameter of the shipment list endpoints. Uniqueness is not enforced; send a unique value per shipment.
typestringrequiredpackage- Selected when sending a parcel or boxdocument- Selected when sending documents or papers
categorystringrequiredgiftsamplemicro exportsalesdocument
deliveryTypestringrequiredDAP- Delivered At Place. Duties and taxes paid by receiver. (default)DDP- Delivered Duty Paid. Duties and taxes paid by sender. Additional carrier DDP processing fees may apply.
packagesarrayrequiredArray of package details. Each package must include:
quantity- Number of pieces (number)weight- Weight (number)dimensions.width- Width (number)dimensions.length- Length (number)dimensions.height- Height (number)dimensions.unit- Dimension unit (string, e.g.cm)
chargeableWeightnumberrequiredTotal billable weight.
itemsarrayrequiredArray of item details. Each item must include:
description- Item description (string)hsCode- HS code (string)countryOfOrigin- Origin country (string)quantity- Quantity (number)unitPrice- Unit price (number)totalPrice- Total price (number)merchantProductId- Merchant (seller) product ID / SKU (string, max 100) requiredmanufacturerProductId- Manufacturer product ID / part number (string, max 100) required. Must be different frommerchantProductId.standardisedProductId- Standardised product ID such as GTIN / EAN / UPC (string, max 100) optional
Product IDs: Every item must include merchantProductId and manufacturerProductId, and the two values must be different. standardisedProductId (e.g. GTIN/EAN) is optional. Requests that miss these fields or send the same value for both are rejected with 400.
carrierobjectrequiredCarrier information.
id- Carrier ID identifier. You can find the full list of supported carrier ID on the Carriers page. (string)
customsobjectrequiredCustoms information.
totalGoodsValue- Total goods value (number)currency- Currency (string)iossNumber- IOSS Number. Used for EU countries. Mandatory for Widect carrier, optional for others. (string)marketplaceNumber- Marketplace Number. Mandatory for Widect carrier UK shipments, optional for other carriers and countries. (string)
senderobjectrequiredSender information.
firstName- First name (string)lastName- Last name (string)companyName- Company name (string, optional)identityNumber- Identity number (string, optional)taxNumber- Tax number (string, optional)email- Email (string)phone.code- Phone country code (string)phone.number- Phone number (string)address.line1- Address line 1 (string)address.city- City (string)address.zipCode- Zip code (string)address.country.code- Country code (string)
receiverobjectrequiredReceiver information.
firstName- First name (string)lastName- Last name (string)companyName- Company name (string, optional)identityNumber- Identity number (string, optional)taxNumber- Tax number (string, optional)email- Email (string)phone.code- Phone country code (string)phone.number- Phone number (string)address.line1- Address line 1 (string)address.line2- Address line 2 (string, optional)address.nationalShortAddress- National short address. Required only for KSA shipments; not used for other countries (string)address.city- City (string)address.zipCode- Zip code (string)address.country.code- Country code (string)
invoiceobjectoptionalOptional billing / invoice address object.
invoice (billing address) field can be optionally included when creating a shipment. If the request does not include an invoice object, the system automatically accepts the sender information as the billing address.Request Body
The request body should be a JSON object containing the following structure:
{
"type": "<string>",
"category": "<string>",
"deliveryType": "<string>",
"packages": [
{
"quantity": <number>,
"weight": <number>,
"dimensions": {
"width": <number>,
"length": <number>,
"height": <number>,
"unit": "<string>"
}
}
],
"chargeableWeight": <number>,
"items": [
{
"description": "<string>",
"hsCode": "<string>",
"countryOfOrigin": "<string>",
"quantity": <number>,
"unitPrice": <number>,
"totalPrice": <number>,
"merchantProductId": "<string>",
"manufacturerProductId": "<string>",
"standardisedProductId": "<string>"
}
],
"carrier": {
"id": "<string>"
},
"customs": {
"totalGoodsValue": <number>,
"currency": "<string>",
"iossNumber": "<string>",
"marketplaceNumber": "<string>"
},
"sender": {
"firstName": "<string>",
"lastName": "<string>",
"companyName": "<string>",
"identityNumber": "<string>",
"taxNumber": "<string>",
"phone": {
"code": "<string>",
"number": "<string>"
},
"email": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"zipCode": "<string>",
"country": {
"name": "<string>",
"code": "<string>"
}
}
},
"receiver": {
"firstName": "<string>",
"lastName": "<string>",
"companyName": "<string>",
"identityNumber": "<string>",
"taxNumber": "<string>",
"phone": {
"code": "<string>",
"number": "<string>"
},
"email": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"zipCode": "<string>",
"country": {
"name": "<string>",
"code": "<string>"
}
}
},
"invoice": {
"firstName": "<string>",
"lastName": "<string>",
"companyName": "<string>",
"identityNumber": "<string>",
"taxNumber": "<string>",
"phone": {
"code": "<string>",
"number": "<string>"
},
"email": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"zipCode": "<string>",
"country": {
"name": "<string>",
"code": "<string>"
}
}
}
}Example Response
{
"id": "64522319",
"carrier": {
"id": "UPS_SAVER",
"name": "UPS",
"price": 0,
"currency": "USD"
},
"sender": {
"country": "TR",
"city": "..."
},
"receiver": {
"country": "DE",
"city": "..."
},
"chargeableWeight": 1,
"status": [
{
"status": "pending_arrival_at_warehouse",
"date": "2026-04-07T10:32:41.503Z",
"milestone": "pending_arrival_at_warehouse"
}
],
"createdAt": "2026-04-07T10:32:41.503Z"
}