tax-rates

Stable. Describes behaviour that is built and covered by tests in this repository.

API reference

GET /v1/tax-rates #

The tax Payrudder adds to the invoices it raises, by customer country

Responses

StatusMeaningBody
200OKTaxRates
Example response
{
  "rates": [
    {
      "country": "string",
      "name": "string",
      "rate_bps": 0
    }
  ]
}
curl
curl -X GET https://YOUR-API-ADDRESS/v1/tax-rates \
  -H "Authorization: Bearer $PAYRUDDER_API_KEY"

PUT /v1/tax-rates #

Replace the tax rates

Payrudder applies the rates as given, exclusive of the price, to the invoices it raises (monthly usage, fees in advance, plan changes) for customers whose country has a rate, or the rate with an empty country. It does not work out what is due where; the rates and their correctness are the tenant's. Invoices of a subscription a provider runs are taxed by the provider.

Request body

FieldTypeDescription
ratesarray of object
Example
{}

Responses

StatusMeaningBody
200OKTaxRates
400Error envelopeError
Example response
{
  "rates": [
    {
      "country": "string",
      "name": "string",
      "rate_bps": 0
    }
  ]
}
curl
curl -X PUT https://YOUR-API-ADDRESS/v1/tax-rates \
  -H "Authorization: Bearer $PAYRUDDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Models

Error

FieldTypeDescription
error requiredobject

TaxRates

FieldTypeDescription
rates requiredarray of object

TaxRatesInput

FieldTypeDescription
ratesarray of object