custom_code must be unique; if it already exists, the API will return an error.custom_code is unique and the request is valid, the system stores the customs code in the 4ws.trade database.prog_id) and the custom_code that was added. {
"customCode": {
"prog_id": 178175, // Internal ID of the newly created customs code
"custom_code": "12345678" // Customs code that was added
}
}custom_code already exists in the database, the API returns an HTTP 422 error with the message:{
"message": "Unique constraint error"
}