Bulk create shipment
Endpoint: /v1/bulk-shipments
Method: POST
To bulk create shipments you must use the POST method on the endpoint /v1/bulk-shipments.
Example:
http
POST /v1/bulk-shipments HTTP/1.1
Host: sandbox.tristarexpress.com
Content-Type: application/json
Accept: application/json
Authorization: {{ token }}
{ json }
Parameters
| Property | Required | Type | Description |
|---|---|---|---|
| shipments | Y | Array | Array of Shipments |
Shipments
TIP
- Shipment type can be found at Shipment definition
Complete example:
http
POST /v1/bulk-shipments HTTP/1.1
Host: sandbox.tristarexpress.com
Content-Type: application/json
Accept: application/json
Authorization: {{ token }}
{
"shipments": [
{
"integration_code": "1",
"order_number": "1",
"from_person_type" : 1,
"from_name": "Sender name",
"from_document_type": 1,
"from_country_code" : "US",
"from_postcode" : "33013",
"from_state_code" : "FL",
"from_address_1" : "Av. Test",
"from_address_2" : "",
"from_city" : "Miami",
"to_person_type": 1,
"to_name": "Jane Doe",
"to_document_type": 1,
"to_document": "07173967970",
"to_company_name": null,
"to_trading_name": null,
"to_br_ie": null,
"to_address_1": "Avenida Presidente Kennedy",
"to_address_2": "",
"to_address_number": "759",
"to_city": "São Paulo",
"to_country_id": "BR",
"to_state_code": "SP",
"to_postcode": "13334170",
"to_email": "janedoe@tristarexpress.com",
"to_phone": "+5511999999999",
"package_width": 12,
"package_height": 14,
"package_length": 13,
"package_weight": 1.100,
"freight": 0.01,
"insurance": 10,
"total": 100,
"anvisa_import_authorization_number":null,
"anvisa_product_commercial_name":null,
"prc_darf": 1,
"prc_gnre": 1,
"other_services": 1,
"with_insurance":false,
"items": [
{
"shipment_item_type": 10,
"hscode": "85177099",
"description": "PROTECTION FILM",
"quantity": 1,
"unit_price": 10,
"expiration_date":"2021-01-01",
"lot":"123456",
"immune_code": null,
"total": 10,
"is_book": false,
"currency_id": 1
}
]
},
{
"integration_code": "2",
"order_number": "2",
"from_person_type" : 1,
"from_name": "Sender name",
"from_document_type": 1,
"from_country_code" : "US",
"from_postcode" : "33013",
"from_state_code" : "FL",
"from_address_1" : "Av. Test",
"from_address_2" : "",
"from_city" : "Miami",
"to_person_type": 1,
"to_name": "Jane Doe",
"to_document_type": 1,
"to_document": "07173967970",
"to_company_name": null,
"to_trading_name": null,
"to_br_ie": null,
"to_address_1": "Avenida Presidente Kennedy",
"to_address_2": "",
"to_address_number": "759",
"to_city": "São Paulo",
"to_country_id": "BR",
"to_state_code": "SP",
"to_postcode": "13334170",
"to_email": "janedoe@tristarexpress.com",
"to_phone": "+5511999999999",
"package_width": 12,
"package_height": 14,
"package_length": 13,
"package_weight": 1.100,
"freight": 0.01,
"insurance": 10,
"total": 100,
"anvisa_import_authorization_number":null,
"anvisa_product_commercial_name":null,
"prc_darf": 1,
"prc_gnre": 1,
"other_services": 1,
"with_insurance":false,
"items": [
{
"shipment_item_type": 10,
"hscode": "85177099",
"description": "PROTECTION FILM",
"quantity": 1,
"unit_price": 10,
"expiration_date":"2021-01-01",
"lot":"123456",
"immune_code": null,
"total": 10,
"is_book": false,
"currency_id": 1
}
]
}
}

