Skip to main content
POST
/
tax-configurations
Create a New Tax Setting
curl --request POST \
  --url https://api.spotflow.co/api/v1/tax-configurations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "taxName": "Stamp duty",
  "taxType": "flat",
  "rate": 100,
  "currency": "NGN",
  "regionId": 1,
  "capAmount": 2000,
  "thresholdAmount": 0
}
'
{
  "id": 12,
  "taxName": "VAT",
  "taxType": "percentage",
  "rate": 7.5,
  "currency": "NGN",
  "capAmount": 2000,
  "thresholdAmount": 0,
  "regionId": 1,
  "regionName": "Nigeria",
  "merchantName": "DEE LLC",
  "status": "active",
  "template": false,
  "templateId": 1
}

Documentation Index

Fetch the complete documentation index at: https://docs.spotflow.one/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
taxName
string
required
Example:

"Stamp duty"

taxType
enum<string>
required
Available options:
flat,
percentage
Example:

"flat"

rate
number
required
Example:

100

currency
string
required
Example:

"NGN"

regionId
integer
required
Example:

1

capAmount
number
Example:

2000

thresholdAmount
number
Example:

0

Response

201 - application/json

Tax setting created successfully.

id
integer
Example:

12

taxName
string
Example:

"VAT"

taxType
enum<string>
Available options:
flat,
percentage
Example:

"percentage"

rate
number<float>
Example:

7.5

currency
string
Example:

"NGN"

capAmount
number<float>
Example:

2000

thresholdAmount
number<float>
Example:

0

regionId
integer
Example:

1

regionName
string
Example:

"Nigeria"

merchantName
string
Example:

"DEE LLC"

status
enum<string>
Available options:
active,
inactive
Example:

"active"

template
boolean
Example:

false

templateId
integer
Example:

1