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!

#invoiceSerials.list
#invoiceSerials.findById
#invoiceSerials.create
#invoiceSerials.update
#invoiceSerials.delete

invoiceSerials.list

Request

{
"description":"",
"nameShort":"",
"default":"",               // Boolean
"correcting":"",            // Boolean
"invoiceSerialEnabled":""   // Boolean
}

Response

{
    "data":     {
        "result":         [
                        {
                "nameShort": "A",
                "enabled": "true",
                "version": 0,
                "default": "true",
                "defaultMessage": "Si",
                "description": "Serie A",
                "id": "1260000000501",
                "correcting": "false"
            },
                        {
                "nameShort": "R",
                "enabled": "true",
                "version": 0,
                "default": "false",
                "defaultMessage": "No",
                "description": "Serie R",
                "id": "1260000000503",
                "correcting": "true"
            },
                        {
                "nameShort": "Z",
                "enabled": "true",
                "version": 0,
                "default": "false",
                "defaultMessage": "No",
                "description": "Serie Z",
                "id": "1260000000502",
                "correcting": "false"
            }
        ],
        "total": 3
    },
    "success": true
}

invoiceSerials.findById

invoiceSerials.findById

Request

{"id": "1260000000501"}

Response

{
    "data":     {
        "nameShort": "A",
        "enabled": "true",
        "version": 0,
        "default": "true",
        "defaultMessage": "Si",
        "description": "Serie A",
        "id": "1260000000501",
        "correcting": "false"
    },
    "success": true
}

invoiceSerials.create

Request

{
"description": "Facturas 2011",
"nameShort": "FCT2011",
"enabled": "true",
"default": "false",
"correcting": "false"
}

Response

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

invoiceSerials.update

Request

{
"description": "Facturas 2011",
"nameShort": "FCT2011",
"enabled": "true",
"default": "true",
"correcting": "false",
"id": "512",
"version": 0
}

Response

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

invoiceSerials.delete

Request

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

Response

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