ParcelLabel API
Customs charges
- The values need to match as per the Shipping Options V2 api response here
Sample customs_charges_options field value from Shipping Options V2 api response:
"customs_charges_options": [
{
"incoterm": "DDP",
"methods": [
"NZP_CALCULATED"
]
}
]- You can specify only one incoterm and method. For example
"customs_charges": {
"incoterm": "DDP",
"method": "NZP_CALCULATED"
}- If you provide incoterm or method, you must provide the other field
- If you do not provide, the system will default to one valid option, or if both DAP and DDP are valid, then it will default to DAP
Error Codes
| Code | Message | Details | Where to look? |
|---|---|---|---|
| 400001 | If providing customs_charges method, you also need to provide incoterm | customs_charges data was invalid | Check for the field 'incoterm' under 'customs_charges' |
| 400001 | If providing customs_charges incoterm, you also need to provide method | customs_charges data was invalid | Check for the field 'method' under 'customs_charges' |
| 400001 | The only valid incoterms are DAP and DDP. You provided: {customer_provided} | customs_charges data was invalid | Check for the field 'incoterm' under 'customs_charges'. It should be either "DDP" or "DAP" |
| 400001 | The destination country and service-code does not support your requested incoterm. You requested {customer_provided_incoterm}, and it only supports {supported_incoterm} | customs_charges data was invalid | Check for the field 'method' under 'customs_charges' |
| 400001 | The destination country and service-code supports your requested incoterm, but does not support the requested method. Supported methods: {supported_methods} | customs_charges data was invalid | Check for the field 'method' under 'customs_charges' |