v1
latestOpenAPI 3.0.12026-08-0688138402.2 KBShipment drafts
Delete a shipment draft
Archives a shipment draft.
delete/shipment_drafts/{id}
Path parameters
idinteger required
ID for the shipment draft that need to be archived
Response
Successful.
Example response
{
"id": 12515122,
"created_at": "2020-01-15T12:34:56.000Z",
"updated_at": "2020-01-16T09:21:45.000Z",
"customer_number": "56212",
"carrier_code": "gls",
"product_code": "GLSDK_SD",
"service_codes": [
"SMS_NT",
"EMAIL_NT"
],
"terms_of_trade": "DDP",
"reference": "Order #1234",
"additional_reference": "Customer #5678",
"contents": "Books and clothing",
"origin_shipment_id": 12515120,
"parties": [
{
"type": "sender",
"name": "Min Virksomhed ApS",
"attention": "Lene Hansen",
"address1": "Hvilehøjvej 25",
"postal_code": "5220",
"city": "Odense SØ",
"country_code": "DK",
"email": "info@minvirksomhed.dk",
"phone": "+4570400407",
"attributes": [
{
"name": "vat_no",
"value": "DK36399066"
}
]
}
],
"pickup_details": {
"date": "2021-10-13",
"from": "08:00:00",
"to": "16:00:00",
"instruction": "Goods are placed at gate 21"
},
"delivery_details": {
"date": "2021-10-13",
"from": "08:00:00",
"to": "16:00:00",
"instruction": "Goods are placed at gate 21"
},
"parcels": [
{
"quantity": 1,
"weight": 1000,
"length": 20,
"width": 10,
"height": 6,
"volume": 0.012,
"loading_meter": 1.25,
"description": "Bike accessories",
"package_type": "PL1",
"stackable": true,
"internal_reference": "parcel-1",
"dangerous_goods": [
{
"hazard_class": "3",
"un_number": "1202",
"net_weight": 20100,
"net_weight_kg": 20.1,
"gross_weight": 20100,
"gross_weight_kg": 20.1,
"quantity": 3,
"packaging": "drums",
"description": "DIESEL FUEL, < 62°C (640K)",
"tunnel_restriction_code": "A",
"packing_group": "III"
}
],
"declared_value": {
"amount": 1250,
"currency_code": "DKK"
}
}
],
"customs": {
"attributes": [
{
"name": "vat_no",
"value": "DK36399066"
}
],
"export_reason": "other",
"goods": [
{
"quantity": 2,
"country_code": "DK",
"description": "Cotton t-shirt",
"commodity_code": "6109100010",
"unit_value": 122.5,
"unit_weight": 110,
"attributes": [
{
"name": "vat_no",
"value": "DK36399066"
}
]
}
]
},
"cod": {
"amount": 326,
"currency_code": "NOK",
"account_number": "123456789"
},
"carrier_insurance": {
"amount": 1000,
"currency_code": "DKK"
},
"attributes": [
{
"name": "vat_no",
"value": "DK36399066"
}
]
}