FCHubFCHub.co

Create tax rate

Create a new tax rate for a country, optionally targeting a specific state and tax class.

POST
/tax/country/rate

Authorization

applicationPassword
AuthorizationBasic <token>

WordPress Application Password authentication. Generate one at wp-admin > Users > Application Passwords. Use as Basic Auth with username:application_password (base64-encoded).

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://your-site.com/wp-json/fluent-cart/v2/tax/country/rate" \  -H "Content-Type: application/json" \  -d '{    "country": "string",    "rate": 0  }'
{
  "message": "string",
  "tax_rate": {
    "id": 0,
    "country_code": "string",
    "state_code": "string",
    "tax_class_slug": "string",
    "rate": 0.1,
    "tax_name": "string",
    "priority": 0,
    "compound": true,
    "is_shipping_taxable": true,
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}