This is a developer preview of Kubbos API. It's in beta, so it's subject to changes. If you need any of the "Coming soon" API services documented as soon as possible. Contact Us!

#taxes.list
#taxes.findById
#taxes.create
#taxes.update
#taxes.delete

taxes.list

Request

{
/* — search criteria (optional) — */
"enabled": "", // <– Boolean
"default": "", // <– Boolean
"valueFrom": "", // <– Numeric
"valueTo": "", // <– Numeric
"surchargeFrom": "", // <– Numeric
"surchargeTo": "", // <– Numeric
"name": "",
"number": "" // <– Numeric
}

Response

{
"data": {
"result": [
{
"version": "0",
"id": "21518",
"enabled": "true",
"default": "true",
"name": "General ",
"surcharge": "4",
"value": "16",
"number": "21"
},
{
"version": "3",
"id": "16",
"enabled": "true",
"default": "false",
"name": "Reducido",
"surcharge": "1",
"value": "7",
"number": "8"
},
{
...........
}
],
"total": 11
},
"success": true
}

taxes.findByID

Request

{"id": "21518"}

Response

{
"data": {
"version": "0",
"id": "21518",
"enabled": "true",
"default": "true",
"name": "General",
"surcharge": "4",
"value": "16",
"number": "21"
},
"success": true
}

taxes.create

Request

{
"enabled": "true",
"default": "true",
"number": "", // <– If not filled, is automatically assigned
"name": "General", // <– Required
"value": "16", // <– Required
"surcharge": "4" // <– Required
}

Response

{
"data": {
"errors": [],
"messages": [ {
"description": "Operación realizada correctamente",
"id": "operation_success"
}],
"warns": []
},
"id": "21518",
"success": true,
"version": 0
}

taxes.update

Request

{
"id": "21518",
"enabled": "true",
"default": "true",
"name": "IVA General ", // <– Required
"value": "16", // <– Required
"surcharge": "4", // <– Required
"version": "0"
}

Response

{
"data": {
"errors": [],
"messages": [ {
"description": "Operación realizada correctamente",
"id": "operation_success"
}],
"warns": []
},
"id": "21518",
"success": true,
"version": 1
}

taxes.delete

Request

{
"id": "21518",
"version": "0"
}

Response

{
"data": {
"errors": [],
"messages": [ {
"description": "Operación realizada correctamente",
"id": "operation_success"
}],
"warns": []
},
"id": "21518",
"success": true,
"version": 0
}
  • No labels