SG Node – 05 API JSON Specifications –...

The TRW modules are Inward Non-Payment (INP), Inward Payment (IPT), Transhipment (TNP), Outward (OUT) and Certificate of Origin (COO).

Legend: M-Mandatory, C-Conditional, O-Optional

Transaction Status Response #

Field Name M/C/O Data Type Description
Sender ID
O
an..30
Sender ID for responses from GeTS
Recipient ID
O
an..30
Recipient ID for files responses from GeTS
Regulatory Filing No
O
an..30
Regulatory Filing Type
M
a..12
Example
- OUTDEC IPTDEC
- INPDEC
- IPTUPD
Regulatory Filing Description
M
an..50
Examples:
Export Declaration
Export Declaration Update
Import Declaration
Import Declaration Update
Transhipment/Movement
Certificate of Origin
Customer Ref No1
M
an..50
To be provided in submission

"add_info": {
"info_name": "USER_REF_NO",
"info_text": "ABC1234"
}
Customer Ref No2
O
an..50
Optional second key
GeTS Ref No
M
n16
Status
M
an..15
Status Description
M
an..512
List of status:
Processing Error
Customs Error message
Draft created
Draft Submitted
Declaration Approved
Update Approved
Declaration Rejected
Cancellation Approved
Certificate of Origin Approved
Declaration and Certificate of Origin Approved
Draft Created Date Time
O
an..19
Format: YYYY-MM-DD HH:mm:ss
Submitted Date Time
O
an..19
Format: YYYY-MM-DD HH:mm:ss
Clearance Date Time
O
an..19
Format: YYYY-MM-DD HH:mm:ss
Total Duty
O
n..16,2
Total Duty Currency Code
O
a3
SGD
Total Tax
O
n..16,2
Total Tax Currency Code
O
a3
SGD
Total Declaration Amount
O
n..16,2
Total Declaration Amount Currency Code
O
a3
SGD
Broker UEN
O
an..17
Broker Name
O
n..6
Declaring Agent ID
O
an..17
Declaring Agent Name
O
an..35
Last Update Status
O
an..25
Last Approved/Goods Clearance/Rejected date-time is populated here

Format: YYYY-MM-DD HH:mm:ss

Conversion to UTC to be done during pre-processing
Declaration Data
O
Base 64 code of PDF file
Remarks
O
an…1024
Flexible tag which usually contains warning/error messages or permit/certificate information
ACE Air Response #
JSON Fields Default Description M/C/O
Response Date
M
Response Time
M
Master Level
MAWB Number for AIR/ACAS (No response message; response message is indicated on the HBL level) only to identify MAWB number
M

Houston, we have a problem!

We are currently fixing this spaceship, so you might experience a bumpy flight.