Browse Documentation
POST Create tax

Create a new Tax

POST /taxes

To create taxes you will need an access token, for questions regarding how to obtain an access token click on this link.

Parameters

  Parameter
  Type
 Description
 name | required
  String
 The name of the tax
 percentage | required
  String
 The tax percentage
remarks
  String
  Remarks

A POST request is expected to be sent to the above endpoint where the content body must be JSON string containing all parameters that are needed to create a new tax. The below example demonstrates how to create a new Tax.

  1. curl -s -H "Content-Type: application/json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOixMiJ9.eyJleHAiOjE1MDM4NDQzMzIsIm5iZiI6MTQ4ODIwOTUzMiwiaWF0IjoxNDg4MjA5NTMyLCJidXNpbmVzcyI6NjIsInVzZXIiOjEwLCJjbGllbnQiOjJ9.kTVtfmMLOEBsBxKSeJupQ2RP0wo6kPyqWFxQvcuU5nk7hRKlw-mcurK0IlMXrWxa8ktab0Yquc5j9s1w" \
    • -XPOST \
    • -d '{  
    •       "tax":{  
    •          "name": "12%",
    •          "percentage": 12,
    •          "remarks": "12 percent tax"
    •       }
    • }' \
    • https://qt0yfk3rpk.execute-api.eu-central-1.amazonaws.com/staging/taxes
  2.  

Response

{  
   "data":[  
      {  
         "tax":{  
            "name":"12%",
            "percentage":12,
            "remarks":"12 percent tax"
         }
      }
   ]
}