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!

#invoiceTypes.list
#invoiceTypes.findById
#invoiceTypes.create
#invoiceTypes.update
#invoiceTypes.delete

invoiceTypes.list

Request

{
"description":"",
"nameShort":"",
"default":"",    // boolean
"enabled":""     // boolean
}

Response

{
    "data":     {
        "result":         [
                        {
                "nameShort": "SERV",
                "enabled": "true",
                "version": 0,
                "description": "Servicios",
                "id": "1260000000317",
                "default": "true"
            },
                        {
                "nameShort": "PRO",
                "enabled": "true",
                "version": 0,
                "description": "Productos",
                "id": "1260000000316",
                "default": "false"
            },
                        {
                "nameShort": "PRO+SERV",
                "enabled": "true",
                "version": 0,
                "description": "Productos+Servicios",
                "id": "1260000000318",
                "default": "false"
            }
        ],
        "total": 3
    },
    "success": true
}

invoiceTypes.findById

invoiceTypes.findById

Request

{"id": "1260000000317"}

Response

{
    "data":     {
        "nameShort": "SERV",
        "enabled": "true",
        "version": 0,
        "description": "Servicios",
        "id": "1260000000317",
        "default": "true"
    },
    "success": true
}

invoiceTypes.create

Request

{
"description": "Internacional",
"nameShort": "INT",
"default": "false",
"enabled": "true"
}

Response

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

invoiceTypes.update

Request

{
"description": "Internacional",
"nameShort": "INT",
"default": "true",
"enabled": "true",
"id": "324",
"version": 0
}

Response

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

invoiceTypes.delete

Request

{
"id": "324",
"version": 1
}

Response

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