- Authentication
- Rates
- Shipments
- Tracking
- Batches
- Classifications
- Customer
- Landed Cost
- Manifest
- Webhooks
- Invoices
Add Customer
POST
/Customer
Customer
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
PaymentKey
string
required
LabelFormat
enum<string>
optional
Allowed values:
PDFZPL
Default:
PDF
WeightUnit
enum<string>
optional
Allowed values:
KGLB
Default:
KG
DimensionUnit
enum<string>
optional
Allowed values:
INCM
Default:
CM
Insurance
enum<string>
optional
Allowed values:
YN
ServiceCode
array[string]
optional
Allowed values:
STANDARDEXPRESSSTANDARD-ECONOMYEXPRESS-ECONOMY
TermsOfTrade
array[string]
optional
Allowed values:
DDPDDU
AccountInformation
object (AccountInformation)
required
Name
string
required
AttentionName
string
required
AddressLine1
string
required
AddressLine2
string
optional
AddressLine3
string
optional
City
string
required
State
string
optional
Country
string
required
Zip
string
required
Phone
string
required
Email
string
required
TaxID
string
optional
ShippingOrigin
object (ShippingOrigin)
required
LocationName
string
required
AddressLine1
string
required
AddressLine2
string
optional
AddressLine3
string
optional
City
string
required
State
string
optional
Country
string
required
Zip
string
required
Phone
string
required
Email
string
required
AveragePackageSettings
object (AveragePackageSettings)
optional
Weight
number
optional
Length
number
optional
Width
number
optional
Height
number
optional
OriginCountryCode
string
optional
Example
{
"PaymentKey": "string",
"LabelFormat": "PDF",
"WeightUnit": "KG",
"DimensionUnit": "CM",
"Insurance": "Y",
"ServiceCode": [
[
"STANDARD",
"EXPRESS",
"STANDARD-ECONOMY",
"EXPRESS-ECONOMY"
]
],
"TermsOfTrade": [
"DDP"
],
"AccountInformation": {
"Name": "string",
"AttentionName": "string",
"AddressLine1": "string",
"AddressLine2": "string",
"AddressLine3": "string",
"City": "string",
"State": "string",
"Country": "string",
"Zip": "string",
"Phone": "string",
"Email": "string",
"TaxID": "string"
},
"ShippingOrigin": {
"LocationName": "string",
"AddressLine1": "string",
"AddressLine2": "string",
"AddressLine3": "string",
"City": "string",
"State": "string",
"Country": "string",
"Zip": "string",
"Phone": "string",
"Email": "string"
},
"AveragePackageSettings": {
"Weight": 0,
"Length": 0,
"Width": 0,
"Height": 0,
"OriginCountryCode": "string"
}
}
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/Customer' \
--header 'Content-Type: application/json' \
--data-raw '{
"PaymentKey": "string",
"LabelFormat": "PDF",
"WeightUnit": "KG",
"DimensionUnit": "CM",
"Insurance": "Y",
"ServiceCode": [
[
"STANDARD",
"EXPRESS",
"STANDARD-ECONOMY",
"EXPRESS-ECONOMY"
]
],
"TermsOfTrade": [
"DDP"
],
"AccountInformation": {
"Name": "string",
"AttentionName": "string",
"AddressLine1": "string",
"AddressLine2": "string",
"AddressLine3": "string",
"City": "string",
"State": "string",
"Country": "string",
"Zip": "string",
"Phone": "string",
"Email": "string",
"TaxID": "string"
},
"ShippingOrigin": {
"LocationName": "string",
"AddressLine1": "string",
"AddressLine2": "string",
"AddressLine3": "string",
"City": "string",
"State": "string",
"Country": "string",
"Zip": "string",
"Phone": "string",
"Email": "string"
},
"AveragePackageSettings": {
"Weight": 0,
"Length": 0,
"Width": 0,
"Height": 0,
"OriginCountryCode": "string"
}
}'
Responses
🟢200Create Customer Response
application/json
Body
CustomerKey
string
required
Example
{
"CustomerKey": "string"
}
🟠401Authentication Error
🟠422Validation Error
🔴500Error Response
Modified at 2025-04-28 20:50:43