Taxes
(ms.taxes_new)

Fields

_idIt is unique identifier for the different taxes.
 
name
Type: string

Read Only: No

Required: No
This field tells the name of tax. 
type
Type: string

Read Only: No

Required: No
It is alias of record of entity ms.tax_types

Records of this entity provides the ability to provide different types of taxes.

Inbuild Types :
  1. Service Tax 12.36%
  2. Service Tax 14%
  3. Sales Tax 5%
  4. Value Added Taxes 12.5%
Fifth type can be added by installing Custom Tax Application (Manual Taxes)
 
      
       

 
settingsThis is an object .

Its fields depends upon type field , based upon type we may require settings or may not.

 
Delete Tax DELETE /entity/ms.taxes_new/{#_id}

Example

Delete Single Record
DELETE /entity/ms.taxes_new/528961a249adb7740b000001

Example Response Json

{
   "data":"Data deleted successfully"
}

Message

CodeMessage
401Unauthorized
406Something went wrong
List Taxes GET /entity/ms.taxes_new

Example

List Taxes without implementation handlers
GET /entity/ms.taxes_new
List Taxes with implementation handlers
GET /entity/ms.taxes_new?cart=1

Message

CodeMessage
401Not Authorized
406Something went wrong
Update Tax PUT /entity/ms.taxes_new/{#_id}

Example

Add Single Tax
PUT /entity/ms.taxes_new/55c831a39be14a1b14e50df5

Example Request Json

{
   "data":{
  "name":"Sales Tax",
  "type":"sales-tax-india",
  "settings":{},
"_id":"55c831a39be14a1b14e50df5"
}
}

Example Response Json

{
 "data":{
   "_id":"55c831a39be14a1b14e50df5"
}
}

Message

CodeMessage
401Unauthorized
406Something went wrong
Get Tax GET /entity/ms.taxes_new/{#_id}

Example

Taxes without implementation handlers
GET /entity/ms.taxes_new/55c832049be14a1b14e50df8
List Taxes with implementation handlers
GET /entity/ms.taxes_new/55c832049be14a1b14e50df8?cart=1

Message

CodeMessage
401Not Authorized
406Something went wrong
Add Tax POST /entity/ms.taxes_new

Example

Add Single Tax
POST /entity/ms.taxes_new

Example Request Json

{
   "data":{
  "name":"Sales Tax",
  "type":"sales-tax-india",
  "settings":{}
}
}

Example Response Json

{
 "data":{
   "_id":"528961a249adb7740b000001"
}
}

Message

CodeMessage
401Unauthorized
406Something went wrong