curl --request POST \
--url https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/airlines/{airlineCode}/bookings \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"bookingReference": "BK-2025-001234",
"shipper": {
"name": "<string>",
"address": "<string>",
"contact": {
"name": "<string>",
"phone": "<string>",
"email": "[email protected]"
}
},
"consignee": {
"name": "<string>",
"address": "<string>",
"contact": {
"name": "<string>",
"phone": "<string>",
"email": "[email protected]"
}
},
"routing": {
"origin": "SIN",
"destination": "LHR",
"segments": [
{
"carrier": "SQ",
"flightNumber": "SQ308",
"departureDate": "2025-01-15",
"from": "SIN",
"to": "LHR",
"allotmentCode": "FREE_SALE"
}
]
},
"cargo": {
"pieces": 10,
"grossWeightKg": 250.5,
"chargeableWeightKg": 300,
"volumeCbm": 1.5,
"commodity": {
"code": "GEN",
"description": "Electronics Equipment"
},
"specialHandling": [
"ELI",
"VAL"
],
"dimensions": [
{
"pieces": 10,
"length": 100,
"width": 50,
"height": 30,
"unit": "CM"
}
]
},
"quoteId": "QT-789",
"awb": {
"prefix": "157",
"number": "12345678"
},
"serviceLevel": "PRIORITY",
"bookingAgent": {
"code": "ACA-123",
"name": "Premium Cargo Agent"
},
"paymentTerms": "PREPAID",
"remarks": "Handle with care - fragile electronics"
}
'