API TEST CASE
NAME: LIST_CARRIERS
API URL: https://hwcqas-tc09al20.it-cpi021-rt.cfapps.in30.hana.ondemand.com/http/
USPS_CREATE_LABEL
Explanation Screenshot
REQUEST:
{
"shipment": {
"carrier_code": "stamps_com",
"carrier_id": "se-2528814",
"service_code": "usps_priority_mail",
"package_code": "package",
"confirmation": "delivery",
"ship_date": "2025-06-06",
"weight": {
"value": 16,
"units": "ounces"
},
"dimensions": {
"units": "inches",
"length": 10,
"width": 6,
"height": 4
},
"ship_from": {
"name": "John Doe",
"company_name": "Example Co.",
"address_line1": "123 Example St",
"city_locality": "Los Angeles",
"state_province": "CA",
"postal_code": "90001",
"country_code": "US",
"phone": "5555555555",
"address_residential_indicator": "no"
},
"ship_to": {
"name": "Jane Smith",
"company_name": "Acme Corp",
"address_line1": "456 Main St",
"city_locality": "New York",
"state_province": "NY",
"postal_code": "10001",
"country_code": "US",
"phone": "5551234567",
"address_residential_indicator": "yes"
},
"packages": [
{
"weight": {
"value": 16,
"unit": "ounce"
},
"dimensions": {
"unit": "inch",
"length": 10,
"width": 6,
"height": 4
},
"package_code": "package"
}
]
}
}
RESPONSE:
{
"label_id": "se-40169372",
"status": "completed",
"shipment_id": "se-91853413",
"external_shipment_id": "SEAuto-
VXi3CfyX9kSlPu29Ux5CEw",----This will
continue in API interface.
CURL:
curl --location --request GET 'https://hwcqas-
tc09al20.it-cpi021-
rt.cfapps.in30.hana.ondemand.com/http/
USPS_CREATE_LABEL' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic
c2ItZTBmMzhmMmMtMTk2OS00YjMyLThiY2EtZTg
5NjdiNDlhOTZlIWI2ODM2fGl0LXJ0LWh3Y3Fhcy10Y
zA5YWwyMCFiMTQ4OjFkY2YyZjlkLWZhNWQtNGRj
OC1hODNmLTViMTEwYTIwMjE2MyRmM2tjVDh1e
G9yV2kyT3NYdi1nc1ljRmNwb1BpNkUtXzJDTS0zd1
Z4REJNPQ==' \
--header 'Cookie:
JSESSIONID=2259AEE07AB917002AB92861F5F713
9E; __VCAP_ID__=ec20ad55-139c-4590-6dee-b0fc'
\
--data '{
"shipment": {
"carrier_code": "stamps_com",
"carrier_id": "se-2528814",
"service_code": "usps_priority_mail",
"package_code": "package",
"confirmation": "delivery",
"ship_date": "2025-06-06",
"weight": {
"value": 16,
"units": "ounces"
},
"dimensions": {
"units": "inches",
"length": 10,
"width": 6,
"height": 4
},
"ship_from": {
"name": "John Doe",
"company_name": "Example Co.",
"address_line1": "123 Example St",
"city_locality": "Los Angeles",
"state_province": "CA",
"postal_code": "90001",
"country_code": "US",
"phone": "5555555555",
"address_residential_indicator": "no"
},
"ship_to": {
"name": "Jane Smith",
"company_name": "Acme Corp",
"address_line1": "456 Main St",
"city_locality": "New York",
"state_province": "NY",
"postal_code": "10001",
"country_code": "US",
"phone": "5551234567",
"address_residential_indicator": "yes"
},
"packages": [
{
"weight": {
"value": 16,
"unit": "ounce"
},
"dimensions": {
"unit": "inch",
"length": 10,
"width": 6,
"height": 4
},
"package_code": "package"
}
]
}
}'