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
Webhooks
Create webhook
Register your webhook with Commenda.
POST
/
webhooks
curl --request POST \
--url https://base_url/api/v1/webhooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"api_version": "<string>",
"name": "<string>",
"topics": [
"REGISTRATIONS.EXISTING.VALIDATION_FAILED"
],
"url": "<string>",
"key": "<string>",
"status": "ENABLED"
}'
{
"data": {
"id": "2535af08-a139-4d0c-9827-1651e46dfbcf",
"api_version": "v1.0",
"name": "handle_existing_registrations_validation_failure",
"topics": [
"REGISTRATIONS.EXISTING.VALIDATION_FAILED"
],
"url": "https://bruno-simon.com/",
"key": "couabowugowubfvow2efgofqpifhdiubvafobafou2ee",
"status": "ENABLED",
"created_at": 1727284490
},
"message": "Successfully registered webhook."
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
Sales tax registration response
The response is of type object
.
curl --request POST \
--url https://base_url/api/v1/webhooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"api_version": "<string>",
"name": "<string>",
"topics": [
"REGISTRATIONS.EXISTING.VALIDATION_FAILED"
],
"url": "<string>",
"key": "<string>",
"status": "ENABLED"
}'
{
"data": {
"id": "2535af08-a139-4d0c-9827-1651e46dfbcf",
"api_version": "v1.0",
"name": "handle_existing_registrations_validation_failure",
"topics": [
"REGISTRATIONS.EXISTING.VALIDATION_FAILED"
],
"url": "https://bruno-simon.com/",
"key": "couabowugowubfvow2efgofqpifhdiubvafobafou2ee",
"status": "ENABLED",
"created_at": 1727284490
},
"message": "Successfully registered webhook."
}