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
Files
Create files
Upload a new file to Commenda’s server
POST
/
files
curl --request POST \
--url https://base_url/api/v1/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'corporation_id=<string>'
{
"data": {
"id": "<string>",
"name": "example.pdf",
"size": 102400,
"corporation_id": "<string>"
},
"message": "Successfully created file."
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
multipart/form-data
Response
200
application/json
Information about the created file
The response is of type object
.
curl --request POST \
--url https://base_url/api/v1/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'corporation_id=<string>'
{
"data": {
"id": "<string>",
"name": "example.pdf",
"size": 102400,
"corporation_id": "<string>"
},
"message": "Successfully created file."
}