Supplier Tax
The supplier tax resource.
Basehttps://rest.carbon.ms/supplierTax
GET
/supplierTaxList supplier taxs
Retrieve a paginated list of supplier taxs. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
GEThttps://rest.carbon.ms/supplierTax
curl --request GET \
--url 'https://rest.carbon.ms/supplierTax?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"supplierId": "xyz789",
"taxExempt": true,
"companyId": "xyz789",
"taxId": "xyz789",
"vatNumber": "string",
"eori": "string",
"taxExemptionReason": "string",
"taxExemptionCertificateNumber": "string"
}
]GET
/supplierTaxRetrieve a supplier tax
Fetch a single supplier tax by filtering on `supplierId`.
Query parameters
supplierIdstringMatch on the supplier tax's `supplierId`, e.g. `eq.{id}`.
GEThttps://rest.carbon.ms/supplierTax
curl --request GET \
--url 'https://rest.carbon.ms/supplierTax?supplierId=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"supplierId": "xyz789",
"taxExempt": true,
"companyId": "xyz789",
"taxId": "xyz789",
"vatNumber": "string",
"eori": "string",
"taxExemptionReason": "string",
"taxExemptionCertificateNumber": "string"
}POST
/supplierTaxCreate a supplier tax
Create a new supplier tax.
Body parameters
taxIdstringvatNumberstringeoristringtaxExemptbooleanrequiredtaxExemptionReasontaxExemptionReasontaxExemptionCertificateNumberstringtaxExemptionCertificatePathstringcompanyIdstringrequiredReferences company.id
POSThttps://rest.carbon.ms/supplierTax
curl --request POST \
--url https://rest.carbon.ms/supplierTax \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"taxExempt":true,"companyId":"xyz789"}'Response
{
"supplierId": "xyz789",
"taxExempt": true,
"companyId": "xyz789",
"taxId": "xyz789",
"vatNumber": "string",
"eori": "string",
"taxExemptionReason": "string",
"taxExemptionCertificateNumber": "string"
}PATCH
/supplierTaxUpdate a supplier tax
Update an existing supplier tax, matched on `supplierId`.
Body parameters
taxIdstringvatNumberstringeoristringtaxExemptbooleanrequiredtaxExemptionReasontaxExemptionReasontaxExemptionCertificateNumberstringtaxExemptionCertificatePathstringcompanyIdstringrequiredReferences company.id
PATCHhttps://rest.carbon.ms/supplierTax
curl --request PATCH \
--url 'https://rest.carbon.ms/supplierTax?supplierId=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"taxId":"xyz789"}'Response
{
"supplierId": "xyz789",
"taxExempt": true,
"companyId": "xyz789",
"taxId": "xyz789",
"vatNumber": "string",
"eori": "string",
"taxExemptionReason": "string",
"taxExemptionCertificateNumber": "string"
}DELETE
/supplierTaxDelete a supplier tax
Delete a supplier tax, matched on `supplierId`. Returns 204 No Content.
Query parameters
supplierIdstringThe `supplierId` of the supplier tax to delete, e.g. `eq.{id}`.
DELETEhttps://rest.carbon.ms/supplierTax
curl --request DELETE \
--url 'https://rest.carbon.ms/supplierTax?supplierId=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content