Here is another example for a booking call for a national shipment:
curl --request POST \
--url https://api.cargoboard.com/v1/orders \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: YOUR KEY HERE' \
--data '
{
"product": "STANDARD",
"customerOrderCode": "Lieferschein 85421651",
"wantsExportDeclaration": false,
"wantsClimateNeutralShipment": false,
"wantsInsurance": true,
"incoterm": "STANDARD",
"shipper": {
"name": "Concept XY GmbH & Co. KG",
"contactPerson": {
"name": "Jey Eve ",
"phone": "+4912354521452",
"email": "[email protected]"
},
"address": {
"postCode": "16727",
"countryCode": "DE",
"street": "Sommerswalder Straße 17",
"city": "Oberkrämer"
},
"pickupOn": "2022-03-01",
"wantsContactBeforePickup": false
},
"consignee": {
"name": "Wolfgang Müller",
"contactPerson": {
"name": "Wolfgang Müller",
"phone": "+49 7851452145",
"email": "[email protected]"
},
"address": {
"postCode": "88239",
"countryCode": "DE",
"street": "Kohlplatz, 94/1",
"city": "Wangen im Allgäu"
},
"wantsPremiumDelivery": false,
"wantsContactBeforeDelivery": true,
"wantsPhoneCallFromDriverBeforeDelivery": false
},
"valueOfGoodsAmount": "350",
"valueOfGoodsCurrency": "EUR",
"lines": [
{
"unitQuantity": 1,
"unitPackageType": "KT",
"content": "Vase - Zerbrechlich!",
"unitLength": 100,
"unitWidth": 95,
"unitHeight": 10,
"unitWeight": 12,
"wantsPalletExchange": false
}
]
}
'
Response:
{
"data": {
"id": "cl06u73c91853818z8jd0buxc5s",
"reference": "D1986276749",
"costItems": [
{
"description": "Frachtkosten",
"type": "SHIPMENT",
"price": {
"amount": 35.69,
"currency": "EUR"
}
},
{
"description": "Avisierung der Zustellung",
"type": "ADDITIONAL_PRODUCTS",
"price": {
"amount": 7.5,
"currency": "EUR"
}
},
{
"description": "Eindeckung der Transportversicherung",
"type": "ADDITIONAL_PRODUCTS",
"price": {
"amount": 5.5,
"currency": "EUR"
}
}
],
"price": {
"amount": 48.69,
"currency": "EUR"
},
"runtime": {
"daysMin": 1,
"daysMax": 2
},
"delivery": {
"earliest": "2022-03-02T07:00:00.000Z",
"latest": "2022-03-03T15:00:00.000Z"
},
"product": "STANDARD"
},
"links": [
{
"rel": "self",
"method": "POST",
"description": "Place an order.",
"href": "https://api.staging.cargoboard.com/v1/order"
},
{
"rel": "orderCancel",
"method": "POST",
"description": "Cancel an order.",
"href": "https://api.staging.cargoboard.com/v1/order/cancel/cl06u73c918543818z8jd0buxc5s"
},
{
"rel": "orderPrintConfirmation",
"method": "GET",
"description": "Print confirmation for an order.",
"href": "https://api.staging.cargoboard.com/v1/order/print-confirmation/cl06u753c91853818z8jd0buxc5s"
},
{
"rel": "orderPrintShipmentLabels",
"method": "GET",
"description": "Print shipment labels for an order.",
"href": "https://api.staging.cargoboard.com/v1/order/print-shipment-labels/cl56u73c91853818z8jd0buxc5s"
},
{
"rel": "orderTrack",
"method": "GET",
"description": "Track an order.",
"href": "https://api.staging.cargoboard.com/v1/order/track/D1586276749"
}
]
}