curl -X POST https://api-shipx-pl.easypack24.net/v1/organizations/1/batches -H 'Authorization: Bearer token' -H 'Content-Type: application/json' -d '{
"external_customer_id": "6531",
"sender":
{
"email": "kowal@example.com",
"phone": "111222111",
"first_name": "Adrian",
"last_name": "Kowalski",
"address":{
"street":"Ulica",
"building_number":"2",
"city":"Szczecin",
"post_code":"22-100",
"country_code":"PL"
}
},
"receiver":
{
"email": "receiverrro39901172490841@example.com",
"phone": "399011724",
"first_name": "John",
"last_name": "Wayne",
"address":{
"street":"Ulica",
"building_number":"2",
"city":"Łódź",
"post_code":"25-140",
"country_code":"PL"
}
},
"parcels": { "template": "medium" },
"service": "inpost_courier_standard"
}' |