Sales Tax API
Core Concepts
Corporations
Calculate
Transactions
- Tax Transactions
- POSTCreate a transaction
- GETGet transaction
- GETList transactions
- DELDelete transaction
- Refund Transactions
- Bulk Transaction Import
Nexus
Registrations
Products
Customers
Exemption Certificates
Get file
Retrieve one file by its id, along with a signed URL to download it
curl --request GET \
--url https://base_url/api/v1/files/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "<string>",
"name": "example.pdf",
"size": 102400,
"corporation_id": "<string>",
"created_at": 1727284490,
"signed_url": "https://bucket-name.s3.amazonaws.com/example.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIOSFODNN7EXAMPLE%2F20240912%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20240912T120000Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6"
},
"message": "Successfully fetched file."
}
Get a file by id along with a signed URL to download it. More information coming soon.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The unique identifier of the file to fetch.
Response
Unique identifier for the file
File name.
"example.pdf"
File size (bytes)
102400
The unique identifier for a corporation associated with this file.
Timestamp in unix epoch
1727284490
Signed URL to download the file. Expires after 20 minutes.
"https://bucket-name.s3.amazonaws.com/example.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIOSFODNN7EXAMPLE%2F20240912%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20240912T120000Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6"
"Successfully fetched file."
curl --request GET \
--url https://base_url/api/v1/files/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "<string>",
"name": "example.pdf",
"size": 102400,
"corporation_id": "<string>",
"created_at": 1727284490,
"signed_url": "https://bucket-name.s3.amazonaws.com/example.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIOSFODNN7EXAMPLE%2F20240912%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20240912T120000Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6"
},
"message": "Successfully fetched file."
}