curl -i -X POST \
https://docs.shipstation.com/_mock/apis/shipengine/openapi/v1/shipments \
-H 'API-Key: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"shipments": [
{
"validate_address": "no_validation",
"carrier_id": "se-28529731",
"service_code": "usps_first_class_mail",
"shipping_rule_id": "se-28529731",
"external_order_id": "string",
"items": [],
"tax_identifiers": [
{
"taxable_entity_type": "shipper",
"identifier_type": "vat",
"issuing_authority": "string",
"value": "string"
}
],
"external_shipment_id": "string",
"shipment_number": "string",
"ship_date": "2018-09-23T00:00:00.000Z",
"ship_to": {
"name": "John Doe",
"phone": "+1 204-253-9411 ext. 123",
"email": "example@example.com",
"company_name": "The Home Depot",
"address_line1": "1999 Bishop Grandin Blvd.",
"address_line2": "Unit 408",
"address_line3": "Building #7",
"city_locality": "Winnipeg",
"state_province": "Manitoba",
"postal_code": "78756-3717",
"country_code": "CA",
"address_residential_indicator": "no",
"instructions": "string",
"geolocation": [
{
"type": "what3words",
"value": "cats.with.thumbs"
}
]
},
"ship_from": {
"name": "John Doe",
"phone": "+1 204-253-9411 ext. 123",
"email": "example@example.com",
"company_name": "The Home Depot",
"address_line1": "1999 Bishop Grandin Blvd.",
"address_line2": "Unit 408",
"address_line3": "Building #7",
"city_locality": "Winnipeg",
"state_province": "Manitoba",
"postal_code": "78756-3717",
"country_code": "CA",
"address_residential_indicator": "no",
"instructions": "string"
},
"warehouse_id": null,
"return_to": {
"name": "John Doe",
"phone": "+1 204-253-9411 ext. 123",
"email": "example@example.com",
"company_name": "The Home Depot",
"address_line1": "1999 Bishop Grandin Blvd.",
"address_line2": "Unit 408",
"address_line3": "Building #7",
"city_locality": "Winnipeg",
"state_province": "Manitoba",
"postal_code": "78756-3717",
"country_code": "CA",
"address_residential_indicator": "no",
"instructions": "string"
},
"is_return": false,
"confirmation": "none",
"customs": null,
"advanced_options": {
"bill_to_account": null,
"bill_to_country_code": null,
"bill_to_party": null,
"bill_to_postal_code": null,
"contains_alcohol": false,
"delivered_duty_paid": false,
"dry_ice": false,
"dry_ice_weight": {
"value": 0,
"unit": "pound"
},
"non_machinable": false,
"saturday_delivery": false,
"fedex_freight": {
"shipper_load_and_count": "string",
"booking_confirmation": "string"
},
"use_ups_ground_freight_pricing": null,
"freight_class": "77.5",
"custom_field1": null,
"custom_field2": null,
"custom_field3": null,
"origin_type": null,
"additional_handling": null,
"shipper_release": null,
"collect_on_delivery": {
"payment_type": "any",
"payment_amount": {
"currency": "string",
"amount": 0
}
},
"third_party_consignee": false,
"dangerous_goods": false,
"dangerous_goods_contact": {
"name": "string",
"phone": "string"
},
"windsor_framework_details": {
"movement_indicator": "c2c",
"not_at_risk": true
},
"license_number": "514785",
"invoice_number": "IOC56888",
"certificate_number": "784515",
"fragile": true,
"delivery-as-addressed": false,
"return-after-first-attempt": false,
"regulated_content_type": null
},
"insurance_provider": "none",
"order_source_code": "amazon_ca",
"packages": [
{
"package_id": "se-28529731",
"package_code": "small_flat_rate_box",
"package_name": "string",
"weight": {
"value": 0,
"unit": "pound"
},
"dimensions": {
"unit": "inch",
"length": 0,
"width": 0,
"height": 0
},
"insured_value": {
"currency": "USD",
"amount": 0
},
"label_messages": {
"reference1": null,
"reference2": null,
"reference3": null
},
"external_package_id": "string",
"content_description": "Hand knitted wool socks",
"products": []
}
],
"comparison_rate_type": "retail"
}
]
}'