Translate export/import/transport codes

Use this request to translate commodify codes into export, import, or transport codes.

Use a POST operation and the following URL to send this request:
{api_url}/code-translation
where {api_url} is the API's URL.
For example:
https://api.epalglobal.co/code-translation

Details

Table 1. Request Details
Detail Value
Operation POST
Endpoint code-translation
Fields Body and response parameters

Body Parameters

Table 2.
Body Paramter Details Description
type
  • Type: String
  • Status: Mandatory
  • Required Values: export, import or transport.
Specify the type of code that you want to translate the commodity code into.
code
  • Type:
  • Status: Mandatory
  • Required Values:
Specify the commodity code that you want to translate.

Response Parameters

Table 3.
Response Parameter Details Description
code
  • Type: String
  • Status: Mandatory
The export, import or transport code.
type
  • Type: String
  • Status: Mandatory
The type or category to which the code belongs.
description
  • Type: String
  • Status: Mandatory
Text decription.
conditionalNote
  • Type: String
  • Status: Optional
Any conditional notes.
isConditional
  • Type: Boolean
  • Status: Mandatory
Indicates whether the code has conditional requirements or not.

Request Example

The following is an example using an export code:
{
  "type": "export",
  "code": "12345678"
}
The following is an example import code:
{
  "type": "import",
  "code": "*ABC123"
}
The following is an example of a transport code:
{
  "type": "transport",
  "code": "09876543"
}

Response Example

The following is an example response for a successful request:
{
  "code": "01_12345678",
  "type": "GOODS",
  "description": "Electronic goods",
  "conditionalNote": "string",
  "isConditional": false
}