SG Node – 04-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

Certificate of Origin #

Parameters M/C/O Repetition Data Type Name
messageType
M
1
an
Message type
documentType
M
1
an
Document Type
routeID
M
1
an
Route Identifier
tradenet
M
1
message_version
M
1
an3
Message Version.
sender_id
M
1
an..17
Sender ID.
recipient_id
O
1
an..17
Recipient ID.
message
M
1
header
M
1
msg_ref_no
O
1
an..14
Message Reference Number. Unique message identifier assigned by the sender to an interchange.
unique_ref_no
M
Unique Reference Number. Reference number assigned to the permit application submitted by the declarant.
cr_uei_no
M
1
an..17
Declarant entity identifier.
date
M
1
n8
Date of submission. CCYYMMDD.
seq_no
M
1
n..4
Sequence number of permit application. 9999.
End of unique_ref_no
declarant_id
M
1
an..17
Declarant Id. Id of the declarant which submitted the declaration.
car_type
M
1
an..7
Common Access Reference Type. Refers to the CA id for controlled items or message sender id for others.
dec_type
M
1
an..7
Declaration Type. Reference code to indicate the type of declaration for the permit application. Refer to dec_type sheet - Code column in Appendix 14.
dec_stmt_ind
M
1
boolean
Declaration Indicator. Declaration to be made by declarant before submitting the permit application. Specify true/false.
prev_pmt_no
C
1
an..35
Previous Permit Number. Permit number issued for previous related declarations.
cert_add_info
O
5
Certificate Additional Information.
line
M
5
an..35
Certificate Additional Information Line.
End of cert_add_info
submit_datetime
C
1
n..17
Submission Datetime.
End of header
certificate
C
1
appl_pdt_type
M
1
an2
Application Product Type. Reference code used to indicate the application type for textile/non-textile products. Refer to appl_pdt_type - Code column in Appendix 2.
entry_year
C
1
n4
Entry Year. The year that the textile goods are cleared in the importing country.
gsp_donor_cty
C
1
an2
GSP Donor Country. Reference code used to identify the country that grants preferential tariff duty.
cert_detail
M
2
.
cert_seq_no
M
1
n..5
Certificate Sequence Number. Sequence number of the certificate.
cert_type
M
1
an..2
Certificate Type. Reference code used to indicate that type of Certificate of Origin.
cert_copy
C
1
n..2
Additional Number of Copies. Additional copies of certificates to be printed.
End of cert_detail
content_percent
C
1
n..3
Percentage of Commonwealth Content. Percentage of the materials/goods grown/produced locally.
curr_code
O
1
a3
Reference Currency. Reference code used to indicate the currency in use.
add_cert_detail
O
5
an..35
Certificate Additional Information.
tpt_detail
O
5
an..35
Transport Details.
End of cert_detail
End of certificate
transport
O
1
out_tpt
O
1
tpt_mode
M
1
n1
Mode of Transport. Reference code used to indicate the method of transport used for the carriage of goods. Refer to tpt_mode - Code column in Appendix 22.
cvy_ref_no
C
1
an..17
Conveyance Reference Number. For transport by sea, specify outward voyage number, or 'NA' if there is no outward voyage number. For transport by air, specify outward flight number, or 'NA' if there is no outward flight number.
tpt_id
C
1
an..35
Transport Identifier. For transport by sea, specify outward vessel name. For transport by road, specify vehicle licence/registration number, if any. For transport by air, specify outward aircraft registration number for chartered flights, if any.
dept_date
M
1
n8
Date of Departure. Actual date of departure for the consignment.
discharge_port
C
1
an..5
Port of Discharge. Reference code used to identify the port from which the goods will be discharged.
cty_destn
C
1
a2
Country of Final Destination. Reference code to identify the country where the goods are finally destined to. Refer to country - Code column in Appendix 9.
End of out_tpt
End of transport
party
M
1
declarant
M
1
person_code
M
1
an..17
Declarant Code.
person_name
M
1
an..100
Declarant Name. Name of the declarant who must be an authorised person.
person_phone
M
1
an..25
Declarant Contact Number. Contact number of the declarant.
End of declarant
declaring_agent
C
1
cr_uei_no
M
1
an..17
Declaring Agent Entity Identifier. Entity Identifier (CR Number/UEI) of the declaring agent.
name
M
2
an..50
Declaring Agent Name. Organisation name of the declaring agent.
End of declaragin_agent
freight_forwarder
C
1
cr_uei_no
M
1
an..17
Freight Forwarder Entity Identifier. Entity Identifier (CR Number/UEI) of the Freight Forwarder.
name
M
2
an..50
Freight Forwarder Name. Organisation name of the Freight Forwarder.
End of freight_forwarder
out_carrier_agent
C
1
.
cr_uei_no
M
1
an..17
Outward Carrier Agent Entity Identifier. Entity Identifier (CR Number/UEI) of the Outward Carrier Agent.
name
M
2
an..50
Outward Carrier Agent Name. Organization name of the Outward Carrier Agent.
End of out_carrier_agent
exporter
C
1
cr_uei_no
M
1
an..17
Exporter Entity Identifier. Entity Identifier (CR Number/UEI) of the Exporter.
name
M
2
an..35
Exporter Name. Organisation name of the exporter.
address
C
2
an..35
Exporter Address.
End of exporter
consignee
C
1
name
M
2
an..35
Consignee Name. Name of the organization for which the goods are consigned to.
address
M
2
an..35
Consignee Address. Specify street and number/PO box.
End of consignee
manufacturer
C
1
cr_uei_no
M
1
an..17
Manufacturer Entity Identifier. Entity Identifier (CR Number/UEI) of the Manufacturer.
name
M
2
an..35
Manufacturer Name. Organization name of the manufacturer.
address
C
2
an..35
Street. Specify street and number/PO box.
city
C
1
an..35
City Name. Specify city name.
sbt_code
C
1
an..9
Subentity Code. Specify country subdivision code.
sbt_name
C
1
an..35
Subentity Name. Specify country subdivision name.
pst_code
C
1
an..9
Postal Code. Specify postal code.
cty_code
C
1
a2
Country code. Specify country code. Refer to country - Code column in Appendix 9.
End of manufacturer
End of party
support_doc
O
1
document
M
10
doc_id
M
1
an..3
Supporting Document Type Code. Refers to the type of supporting document attached to the declaration.
file_name
M
1
an..70
Supporting Document Filename. Filename of supporting document attached to the declaration.
End of document
End of support doc
item
M
50
seq_no
M
1
n..5
Item Sequence Number.
hs_code
M
1
an..10
HS (Harmonized System) Code. Harmonized code specified in the Singapore Trade Classification and Customs Duties (STCCED).
cty_origin
M
1
a2
Country of Origin of Goods. Reference code used to identify the country where the goods originated from (item level).
item_qty
M
1
hs_qty
M
1
qty_value
M
1
n..16 (n11.n4)
HS Quantity. Quantity imported / exported / transshipped based on the unit specified in the STCCED or the invoice (where unit of quantity specified in the STCCED is “VALUE”).
qty_uom
M
1
an..3
HS Quantity Unit. Unit of quantity as specified in the STCCED or the invoice (where unit of quantity unit specified in the STCCED is “VALUE”). Refer to qty_uom, uom - Code column in Appendix 25.
End of hs_qty
End of item_qty
transaction_value
C
1
cif_fob_amt
C
1
n..16 (n13.n2)
Item CIF/FOB value. Item amount of cost, insurance and freight/ Free On Board value (amount in SGD).
cif_fob_fc
C
1
amt
M
1
n..16 (n13.n2)
Item CIF/FOB value in foreign currency. Item amount of cost, insurance and freight/ Free On Board value (amount in foreign currency).
curr_code
M
1
a3
Reference Currency. Reference code used to indicate the currency in use. Refer to curr_code - Code column in Appendix 11.
exc_rate
O
1
n..11 (n4.n6)
Currency Exchange Rate. Currency exchange rate to SGD.
local_amount
O
1
n..16 (n13.n2)
Amount (Local Currency). Amount in Local Currency (charges x exchange rate) Not used for Customs submission.
End of cif_fob_fc
End of transaction_value
item_cert
C
1
cert_qty
C
1
qty_value
M
1
n..16 (n11.n4)
Certificate Item Quantity. Quantity of an item as printed on the certificate.
qty_uom
M
1
an3
Certificate Item Quantity Unit. Unit of measurement of quantity of an item as printed on the certificate.
End of cert_qty
item_value
C
1
n..16 (n13.n2)
Item Value. Certificate item value which is printed on the Certificate. Refer to qty_uom, uom - Code column in Appendix 25.
cert_desc
O
10
Certificate of Origin Item Description.
line
M
5
an..35
mfr_cost_stm_date
C
1
n8
Date of Manufacturing Cost Statement. Date of valid cost statement.
text_code
C
1
an..5
Textile Category Code. Reference number used to identify a particular textile category.
End of cert_desc
text_qty
C
1
qty_value
M
1
n..16 (n11.n4)
Textile Quota Quantity.
qty_uom
M
1
an3
Textile Quota Unit. Unit of measurement of textile quota quantity. Refer to qty_uom, uom - Code column in Appendix 25.
End of text_qty
inv_no
C
1
an..35
Invoice Number.
inv_date
C
1
n8
Invoice Date. Date when the invoice was effected.
origin_criterion
C
3
an..25
Origin Criterion Text. Origin criterion applicable to the preferential scheme.
hs_code
C
1
an..10
HS (Harmonized System) Code. Harmonized code specified in the Singapore Trade Classification and Customs Duties (STCCED).
content_percent
C
1
n..3
Percentage Content. Percentage content of origin criterion details.
End of item_cert
End of casc_product
shipping_marks
C
4
Marks and numbers displayed on individual packages.
marks
M
10
an..17
Marks and numbers. Marks and numbers displayed on individual packages.
End of shipping_marks
End of item
summary
C
1
tot_item
C
1
n..5
Total Number of Items.
End of summary
permit
C
1
cert_no
C
1
an..17
Certificate Number. Certificate Number.
cert_app_date
C
1
n8
Certificate Approval Date.
sc_app_cond
M
40
agency_code
M
1
an2
Agency Code. Agency Code = "SC".
cond_code
M
1
an..4
Condition Code. Specify permit condition codes attached to the permit approval.
cond_code_desc
M
1
an..512
Approval Condition Description. Permit condition codes/description attached to the Permit approval.
End of sc_app_cond
End of permit
add_info
O
100
For Future Use.
info_name
M
1
an..35
Additional Info Name.
info_text
M
1
an..70
Additional Info Text description.
End of add_info
End of message
End of tradenet
Response Body #
Parameters M/C/O Repetition Data Type Remarks
status
M
1
an
• S001 - Success
• E001 - CRF WS unauthorized access/CRF WS bad request/CRF WS not found error
• E002 - Request details validation failures
• E003 - Invalid submission Data
• E004 - Web service context not found or invalid
• E005 - Web service data not found or invalid
• E006 - Request/Response mapping error
• E007 - web service Method errors
• E008 - Service map configuration error
• E009 - Other errors
message
M
1
an
Message description
data
M
1
an
date
M
1
date
Date
documentRefNo
M
1
numeric
Document Reference Number
transactionId
M
1
numeric
Transaction Number
status
M
1
an
Detail description
End of data
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.