The Paperless Documents API allows users to upload specific trade documents for paperless processing of international shipments.
The /upload endpoint of the API requires document details, including file name, file format, and document type (such as authorization form, commercial invoice, certificate of origin, export license, etc).
The /image endpoint helps users upload document images as support documents for shipping
The /delete endpoint of the API helps delete a specific document the user has uploaded.
Upload Paperless Document
The Paperless Document API web service allows the users to upload,delete and push to image repository their own customized trade documents for customs clearance to Forms History.
header Parameters
Request Body schema: application/json
Generate sample code for popular API requests by selecting an example below. To view a full sample request and response, first click "Authorize" and enter your application credentials, then populate the required parameters above and click "Try it out".
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- Payload
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
{- "UploadRequest": {
- "Request": {
- "TransactionReference": {
- "CustomerContext": ""
}
}, - "UserCreatedForm": {
- "UserCreatedFormFileName": "TestFile.txt",
- "UserCreatedFormFileFormat": "txt",
- "UserCreatedFormDocumentType": "013",
- "UserCreatedFormFile": "Tm90aWNlDQpJbiBhbGwgY29tbXVuaWNhdGlvbnMgd2l0aCBVUFMgY29uY2VybmluZyB0aGlzIGRvY3VtZW50LCBwbGVhc2UgcmVmZXIgdG8gdGhlIGRvY3VtZW50IGRhdGUgbG9jYXRlZCBvbiB0aGUgY292ZXIuDQpDb3B5cmlnaHQNClRoZSB1c2UsIGRpc2Nsb3N1cmUsIHJlcHJvZHVjdGlvbiwgbW9kaWZpY2F0aW9uLCB0cmFuc2Zlciwgb3IgdHJhbnNtaXR0YWwgb2YgdGhpcyB3b3JrIGZvciBhbnkgcHVycG9zZSBpbiBhbnkgZm9ybSBvciBieSBhbnkgbWVhbnMgd2l0aG91dCB0aGUgd3JpdHRlbiBwZXJtaXNzaW9uIG9mIFVuaXRlZCBQYXJjZWwgU2VydmljZSBpcyBzdHJpY3RseSBwcm9oaWJpdGVkLg0KwqkgQ29weXJpZ2h0IDIwMTYgVW5pdGVkIFBhcmNlbCBTZXJ2aWNlIG9mIEFtZXJpY2EsIEluYy4gQWxsIFJpZ2h0cyBSZXNlcnZlZC4NClRyYWRlbWFya3MNClVQUyBPbkxpbmXCriBpcyBhIHJlZ2lzdGVyZWQgdHJhZGVtYXJrIG9mIFVuaXRlZCBQYXJjZWwgU2VydmljZSBvZiBBbWVyaWNhLCBJbmMuIEFsbCBvdGhlciB0cmFkZW1hcmtzIGFyZSB0aGUgcHJvcGVydHkgb2YgdGhlaXIgcmVzcGVjdGl2ZSBvd25lcnMuDQpTb21lIG9mIHRoZSBVUFMgY29ycG9yYXRlIGFwcGxpY2F0aW9ucyB1c2UgVS5TLiBjaXR5LCBzdGF0ZSwgYW5kIHBvc3RhbCBjb2RlIGluZm9ybWF0aW9uIG9idGFpbmVkIGJ5IFVuaXRlZCBQYXJjZWwgU2VydmljZSBvZiBBbWVyaWNhLCBJbmMuIHVuZGVyIGEgbm9uLWV4Y2x1c2l2ZSBsaWNlbnNlIGZyb20gdGhlIFVuaXRlZCBTdGF0ZXMgUG9zdGFsIFNlcnZpY2UuIA0K"
}
}
}
- 200
- 400
- 401
- 403
- 429
{- "UploadResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "FormsHistoryDocumentID": {
- "DocumentID": [
- "string"
]
}
}
}
Paperless Document Push Image
The Paperless Document API web service allows the users to upload their own customized trade documents for customs clearance to Forms History.
header Parameters
Request Body schema: application/json
Generate sample code for popular API requests by selecting an example below. To view a full sample request and response, first click "Authorize" and enter your application credentials, then populate the required parameters above and click "Try it out".
required | object (PushToImageRepositoryRequest) <= 1 Paperless Document API request container for push to Image Repository. | ||||||||||||||||||||||||||||
|
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- Payload
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
{- "PushToImageRepositoryRequest": {
- "Request": {
- "TransactionReference": {
- "CustomerContext": "Your Customer Context"
}
}, - "FormsHistoryDocumentID": {
- "DocumentID": "2016-01-18-11.01.07.589501"
}, - "ShipmentIdentifier": "Your Package Shipment Identifier",
- "ShipmentDateAndTime": "2016-01-18-11.01.07",
- "ShipmentType": "1",
- "TrackingNumber": "Your Package Tracking Number"
}
}
- 200
- 400
- 401
- 403
- 429
{- "PushToImageRepositoryResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "FormsGroupID": "stringstringstringstringst"
}
}
Delete Paperless Document
The Paperless Document API web service allows the users to upload their own customized trade documents for customs clearance to Forms History.
header Parameters
transId | string An identifier unique to the request. Length 32 |
transactionSrc | string Default: testing An identifier of the client/source application that is making the request.Length 512 |
ShipperNumber required | string Your Shipper Number |
DocumentId required | string DocumentId representing uploaded document to Forms History. Only one DocumentID will be accepted for delete request. |
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
- 200
- 400
- 401
- 403
- 429
{- "DeleteResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}
}
}
Upload Paperless DocumentDeprecated
The Paperless Document API web service allows the users to upload,delete and push to image repository their own customized trade documents for customs clearance to Forms History.
header Parameters
Request Body schema: application/json
Generate sample code for popular API requests by selecting an example below. To view a full sample request and response, first click "Authorize" and enter your application credentials, then populate the required parameters above and click "Try it out".
required | object (UploadRequest) <= 1 Paperless Document API Request container for uploading User Created Forms. | ||||||||||||||||||||||||
|
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- Payload
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
{- "UploadRequest": {
- "Request": {
- "TransactionReference": {
- "CustomerContext": ""
}
}, - "User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mMuIHVuZGVyIGEgbm9uLWV4Y2x1c2l2ZSBsaWNlbnNlIGZyb20gdGhlIFVuaXRlZCBTdGF0ZXMgUG9zdGFsIFNlcnZpY2UuIA0K"
}
}
}
- 200
- 400
- 401
- 403
- 429
{- "UploadResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "FormsHistoryDocumentID": {
- "DocumentID": [
- "string"
]
}
}
}
Paperless Document Push ImageDeprecated
The Paperless Document API web service allows the users to upload their own customized trade documents for customs clearance to Forms History.
header Parameters
Request Body schema: application/json
Generate sample code for popular API requests by selecting an example below. To view a full sample request and response, first click "Authorize" and enter your application credentials, then populate the required parameters above and click "Try it out".
required | object (PushToImageRepositoryRequest) <= 1 Paperless Document API request container for push to Image Repository. | ||||||||||||||||||||||||||||
|
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- Payload
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
{- "PushToImageRepositoryRequest": {
- "Request": {
- "TransactionReference": {
- "CustomerContext": "Your Customer Context"
}
}, - "FormsHistoryDocumentID": {
- "DocumentID": "2016-01-18-11.01.07.589501"
}, - "ShipmentIdentifier": "Your Package Shipment Identifier",
- "ShipmentDateAndTime": "2016-01-18-11.01.07",
- "ShipmentType": "1",
- "TrackingNumber": "Your Package Tracking Number"
}
}
- 200
- 400
- 401
- 403
- 429
{- "PushToImageRepositoryResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "FormsGroupID": "stringstringstringstringst"
}
}
Delete Paperless DocumentDeprecated
The Paperless Document API web service allows the users to upload their own customized trade documents for customs clearance to Forms History.
header Parameters
transId | string An identifier unique to the request. Length 32 |
transactionSrc | string Default: testing An identifier of the client/source application that is making the request.Length 512 |
ShipperNumber required | string Your Shipper Number |
DocumentId required | string DocumentId representing uploaded document to Forms History. Only one DocumentID will be accepted for delete request. |
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
- 200
- 400
- 401
- 403
- 429
{- "DeleteResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}
}
}