curl -v -X POST https://YOUR_DOMAIN \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"fields": {
"Tracking_ID_Manual": "123456789ABCDEFGHIJ",
"Recipient": "Jane Doe",
"Recipient_Address_Line_1": "Flat 1",
"Recipient_Address_Line_2": "10 Downing Street",
"Recipient_Address_Line_3": "Westminster",
"Recipient_Town": "London",
"Recipient_Postcode": "SW1A 2AA",
"Recipient_Email_Address": "jane@gmail.com",
"Recipient_Phone_Number": "07583123456",
"Delivery_Instructions": "Leave with neighbour",
"Sender": "John Doe",
"Sender_Address_Line_1": "Flat 2",
"Sender_Address_Line_2": "1 Buckingham Palace Road",
"Sender_Address_Line_3": "Buckingham Palace",
"Sender_Town": "London",
"Sender_Postcode": "SW1A 1AA",
"Sender_Email_Address": "john@gmail.com",
"Order_Number": "1000",
"Shipping_Class": "Next-Day",
"Weight_KG": 1.5,
"Length_CM": 30,
"Width_CM": 30,
"Height_CM": 30,
"Parcel_Size":"Small",
"Fragile": false,
"No_Label_Needed": false,
"Value_GBP": 119.90,
"Age_Verification_Required": false,
"Collection_Contact_Name": "Jimmy Doe",
"Collection_Address_Line_1": "1 Parliament Square",
"Collection_Address_Line_2": "Big Ben",
"Collection_Address_Line_3": "Palace of Westminster",
"Collection_Town": "London",
"Collection_Postcode": "SW1A 0AA",
"Collection_Instructions": "Ring doorbell please",
"Collection_Phone_Number": "07582123456",
"Collection_Email_Address": "jimmy@gmail.com",
"Sender_Chosen_Collection_Date": "01/01/2022",
"Sender_Chosen_Delivery_Date": "02/01/2022"
}
}'
Comments