- Authentication
- Rates
- Shipments
- Tracking
- Batches
- Classifications
- Customer
- Landed Cost
- Manifest
- Webhooks
- Invoices
Create Shipments
POST
/Shipments
Shipments
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
CustomerKey
string
optional
HashKey
string
optional
DutyHashKey
string
optional
PickUpDate
string
optional
Async
boolean
optional
Default:
false
Reference
string
required
LabelFormat
enum<string>
optional
Allowed values:
PDFZPL
Default:
PDF
WeightUnit
enum<string>
optional
Allowed values:
KGLB
Default:
KG
Currency
string
optional
Default:
USD
DimensionUnit
enum<string>
optional
Allowed values:
INCM
Default:
IN
Insurance
enum<string>
optional
Allowed values:
YN
Default:
N
ServiceCode
string
optional
TermsOfTrade
string
optional
IsReturn
enum<string>
optional
Allowed values:
YN
Default:
N
ShipmentKey
string
optional
ShipFromAddress
object (ShipFromAddress)
required
Name
string
optional
Default:
Test Shipper
AttentionName
string
optional
Default:
Test Shipper
LocationName
string
optional
Default:
AddressLine1
string
required
AddressLine2
string
optional
AddressLine3
string
optional
City
string
required
State
string
optional
Country
string
required
Zip
string
optional
Phone
string
required
Email
string
required
ShipToAddress
object (ShipToAddress)
required
Name
string
required
Default:
Test consignee
AttentionName
string
optional
Default:
Test consignee
AddressLine1
string
required
AddressLine2
string
optional
AddressLine3
string
optional
City
string
required
State
string
optional
Country
string
required
Zip
string
optional
Phone
string
required
Email
string
required
FederalTaxId
string
optional
StateTaxId
string
optional
Shipments
array[object (ShipmentsModel) {3}]
required
Piece
array[object (Piece) {12}]
required
Package
object (ShipmentPackage)
required
ITNNumber
string
optional
ReasonForExport
string
optional
Choose "gift" when it is sample being sent to an influencer or customer and there was no sale involved. Choose "returned_goods" when merchandise that was sold is being returned/rejected by customer.
Choose "replacement" when merchandise is being sent as a replacement or exchange to the customer for a prior sale.
Choose "sample" when sample products are being sent to customers free of cost and no sale was involved.
Default:
merchandise
Metadata
object (Metadata)
optional
IndiaExportInfo
object (IndiaExportInfo)
optional
B2b
boolean
optional
Default:
false
Example
{
"Async": false,
"Reference": "test-create-shipment-001",
"HashKey": "588d4ff7-9b21-4028-ba2e-333507bf53d8",
"LabelFormat": "PDF",
"WeightUnit": "LB",
"Currency": "USD",
"DimensionUnit": "IN",
"Insurance": "N",
"ServiceCode": "EXPRESS",
"TermsOfTrade": "DDP",
"IsReturn": "N",
"ReasonForExport": "merchandise",
"B2b": false,
"ShipmentKey": "",
"ShipFromAddress": {
"Name": "FC Rates",
"AttentionName": "",
"AddressLine1": "1562 Washington St",
"AddressLine2": "",
"AddressLine3": "",
"City": "San Francisco",
"State": "CA",
"Country": "US",
"Zip": "94109",
"Phone": "1111111111",
"Email": "test@test.com"
},
"ShipToAddress": {
"Name": "FC Rates",
"AttentionName": "FC Rates",
"AddressLine1": "49 Montcalm Ave",
"AddressLine2": "",
"AddressLine3": "",
"City": "York",
"State": "ON",
"Country": "CA",
"Zip": "M6E 4N8",
"Phone": "1111111111",
"Email": "test@test.com"
},
"Shipments": [
{
"Piece": [
{
"Quantity": 1,
"Weight": 0.1,
"Length": 1,
"Width": 1,
"Height": 1,
"SalePrice": 10,
"HSCode": "610910",
"OriginCountryCode": "US",
"Description": "T-SHIRT",
"SKU": "1234567890",
"Material": "",
"Category": [
"merchandise"
]
}
],
"Package": {
"Weight": 0.5,
"Length": 1,
"Width": 1,
"Height": 1,
"Reference": ""
}
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://partnerapi.flavorcloud.com/Shipments' \
--header 'Content-Type: application/json' \
--data-raw '{
"Async": false,
"Reference": "test-create-shipment-001",
"HashKey": "588d4ff7-9b21-4028-ba2e-333507bf53d8",
"LabelFormat": "PDF",
"WeightUnit": "LB",
"Currency": "USD",
"DimensionUnit": "IN",
"Insurance": "N",
"ServiceCode": "EXPRESS",
"TermsOfTrade": "DDP",
"IsReturn": "N",
"ReasonForExport": "merchandise",
"B2b": false,
"ShipmentKey": "",
"ShipFromAddress": {
"Name": "FC Rates",
"AttentionName": "",
"AddressLine1": "1562 Washington St",
"AddressLine2": "",
"AddressLine3": "",
"City": "San Francisco",
"State": "CA",
"Country": "US",
"Zip": "94109",
"Phone": "1111111111",
"Email": "test@test.com"
},
"ShipToAddress": {
"Name": "FC Rates",
"AttentionName": "FC Rates",
"AddressLine1": "49 Montcalm Ave",
"AddressLine2": "",
"AddressLine3": "",
"City": "York",
"State": "ON",
"Country": "CA",
"Zip": "M6E 4N8",
"Phone": "1111111111",
"Email": "test@test.com"
},
"Shipments": [
{
"Piece": [
{
"Quantity": 1,
"Weight": 0.1,
"Length": 1,
"Width": 1,
"Height": 1,
"SalePrice": 10,
"HSCode": "610910",
"OriginCountryCode": "US",
"Description": "T-SHIRT",
"SKU": "1234567890",
"Material": "",
"Category": [
"merchandise"
]
}
],
"Package": {
"Weight": 0.5,
"Length": 1,
"Width": 1,
"Height": 1,
"Reference": ""
}
}
]
}'
Responses
🟢200Create Shipments Response
application/json
Body
(tsType: Omit<ShipmentResponse, 'ConsolidateLabel'>, schemaOptions: { exclude: [ 'ConsolidateLabel' ] })
ShipmentID
string
required
Status
string
required
Reference
string
required
Message
string
optional
TrackingNumber
string
required
TrackingUrl
string
optional
LabelUrl
array[string]
required
Carrier
string
required
CustomsInvoiceURL
string
required
SubmittedElectronically
boolean
optional
Example
{
"ShipmentID": "string",
"Status": "string",
"Reference": "string",
"Message": "string",
"TrackingNumber": "string",
"TrackingUrl": "string",
"LabelUrl": [
"string"
],
"Carrier": "string",
"CustomsInvoiceURL": "string",
"SubmittedElectronically": true
}
🟠401Authentication Error
🟠422Validation Error
🔴500Error Response
Modified at 2025-04-28 20:48:57