Paycose Docs
E2ECreate Taxs
POST/tax_rates

California Sales Tax — 7.25%

Request body: CreateTaxRateDTO

Responses: 200, 400

Generated from the code contract; no hand-written description yet.

Request

Example

curl -X POST 'https://api.paycose.com/api/v1/app1/platform/wallet/tax_rates/' \
  -H 'X-Session-Token: {{session_token}}' \
  -H 'X-Country: {{country}}' \
  -H 'X-Test-Mode: {{x_test_mode}}' \
  -d '{
  "active": true,
  "description": "California (US) statewide base sales tax — 7.25%",
  "display_name": "California Sales Tax (US)",
  "inclusive": false,
  "percentage": 7.25,
  "tax_country": "US",
  "state": "CA",
  "tax_type": "sales_tax",
  "labels": [
    "<string>"
  ]
}'

Headers

NameValueDescription
X-Session-Token{{session_token}}
X-Country{{country}}
X-Test-Mode{{x_test_mode}}true=wallet_test, false=wallet_live (default). Toggle the x_test_mode collection variable to flip every applicable request.

Body

NameTypeValue
activebooleantrue
descriptionstringCalifornia (US) statewide base sales tax — 7.25%
display_namestringCalifornia Sales Tax (US)
inclusivebooleanfalse
percentagenumber7.25
tax_countrystringUS
statestringCA
tax_typestringsales_tax
labelsarray[1]
{
  "active": true,
  "description": "California (US) statewide base sales tax — 7.25%",
  "display_name": "California Sales Tax (US)",
  "inclusive": false,
  "percentage": 7.25,
  "tax_country": "US",
  "state": "CA",
  "tax_type": "sales_tax",
  "labels": [
    "<string>"
  ]
}

Responses

200200 OK

Headers

NameValue
Content-Typeapplication/json

Body

{
  "id": "<string>",
  "object": "<string>",
  "resource": "<string>",
  "created_at": "<RFC3339 timestamp>",
  "errors": [
    {
      "code": "<string>",
      "message": "<string>"
    }
  ],
  "next_action": [
    {
      "type": "<string>",
      "title": "<string>",
      "description": "<string>",
      "i18n_key": "<string>",
      "url": "<string>",
      "client_secret": "<string>",
      "payment_method": "<string>",
      "qr_data": "<string>"
    }
  ]
}
400400 Bad Request

Headers

NameValue
Content-Typeapplication/json

Body

{
  "object": "error",
  "code": "<string>",
  "key": "<string>",
  "i18n_key": "<string>",
  "message": "<string>",
  "request_id": "<string>"
}

On this page