Customs declaration

The customs declaration is a resource used to collect information related to cross-border physical goods purchases for submission to the relevant customs authorities for faster and seamless processing.

The customs declaration object

Fields
idstring (UUID)
The ID of the customs declaration object
charge_idstring (UUID)
The ID of the associated charge
merchant_idstring (UUID)
The ID of the associated merchant
store_idstring (UUID)
The ID of the associated store
modestring
The mode of the associated charge
gatewaystring
The gateway of the associated charge
declarationobject
The information provided by the merchant to be submitted to the customs authorities. Depending on the brand of the payment method used, the fields of the declaration object varies, but will be same as the fields passed in during creation. See the CREATE route for more details.

The following brands are supported:
we_chat_online
declaration_resultobject
The result of the declaration submitted to the customs authorities.
declaration_result.approving_authoritystring [Optional]
The name of the approving customs authority.
declaration_result.trade_idstring [Optional]
The reference ID returned by the approving customs authority.
declaration_result.transaction_idstring [Optional]
The reference ID returned by the payments provider for the customs declaration transaction.
declaration_result.charge_transaction_idstring [Optional]
The reference ID returned by the payments provider for the charge transaction.
statusstring
The status of the result of the declaration submitted to the customs authorities.

One of:
pending
successful
failed
error
created_onstring (ISO-8601)
The date the customs declaration was created on
errorobject [Optional]
Error details of the submission if any
error.codenumber
The error code
error.messagestring
The error message key
error.detailsobject or null
Short description of the error message