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!

#dueDateTypes.list
#dueDateTypes.findById
#dueDateTypes.create
#dueDateTypes.update
#dueDateTypes.delete

dueDateTypes.list

readonly=true means that the entity is created by the application and it's not possible to modify it

Request

{
/* — search criteria (optional) — */
"name": "",
"defaultReceipts": "", // <– Values: "" (all), "1" (Without charge/payment), "2" (Paid/Charged)
"delayTypes": "" // <– Values: "" (all), "1" (Fixed amount), "2" (Percentage amount), "3" (Installment plan)
}

Response

{
"data": {
"result": [
{
"id": "1062",
"version": 1,
"readonly": "false",
"description": "50% percentage on 30 and 60 days",
"name": "Type 30/60",
"delay1": "50",
"delay2": "50",
"delayedDays1": "30",
"delayedDays2": "60",
"delayedAmount": "0",
"installmentsNumber": "0",
"receiptChargedPaidAtDueDate": "true",
"defaultReceipts": "1",
"defaultReceiptsDescription": "Without charge/payment",
"delayTypes": "2",
"delayTypesDescription": "Percentage amount",
"dueDateEndMonthFixedAmount": "false",
"dueDateEndMonthPercentageAmount": "false",
"dueDateEndMonthDeferredPayment": "false",
"dueDateCompleteMonthsFixedAmount": "false",
"dueDateCompleteMonthsPercentageAmount": "false",
"dueDateCompleteMonthsDeferredPayment": "false"
},
{
"version": 1,
"readonly": "false",
"id": "1047",
"installmentsNumber": "5",
"receiptChargedPaidAtDueDate": "false",
"defaultReceipts": "1",
"defaultReceiptsDescription": "Without charge/payment",
"delayTypes": "3",
"delayTypesDescription": "Installment plan",
"dueDateEndMonthFixedAmount": "false",
"dueDateEndMonthPercentageAmount": "false",
"dueDateEndMonthDeferredPayment": "false",
"dueDateCompleteMonthsFixedAmount": "false",
"dueDateCompleteMonthsPercentageAmount": "false",
"dueDateCompleteMonthsDeferredPayment": "false",
"name": "5 payments"
},
{
...............
}
],
"total": 26
},
"success": true
}

dueDateTypes.findById

dueDateTypes.findById

Request

{"id": "1062"}

Response

{
"data": {
"delay1": "50",
"delay2": "50",
"version": 1,
"readonly": "false",
"delayedDays1": "30",
"delayedDays2": "60",
"id": "1062",
"delayedAmount": "0",
"installmentsNumber": "0",
"receiptChargedPaidAtDueDate": "true",
"defaultReceipts": "1",
"defaultReceiptsDescription": "Without charge/payment",
"delayTypes": "2",
"delayTypesDescription": "Installment plan",
"dueDateEndMonthFixedAmount": "false",
"dueDateEndMonthPercentageAmount": "true",
"dueDateEndMonthDeferredPayment": "false",
"dueDateCompleteMonthsFixedAmount": "false",
"dueDateCompleteMonthsPercentageAmount": "true",
"dueDateCompleteMonthsDeferredPayment": "false",
"description": "50% percentage on 30 / 60 days",
"name": "Type 30/60"
},
"success": true
}

dueDateTypes.create

Request

{
"delayTypes": "2", // <– Required
"defaultReceipts": "1", // <– Required
"readonly": "",
"description": "50% Percentage on 30 / 60 days",
"name": "A 30/60", // <– Required
"daysFixedAmount": "0",
"delay1": "50",
"delay2": "50",
"delay3": "",
"delay4": "",
"delay5": "",
"delayedDays1": "30",
"delayedDays2": "60",
"delayedDays3": "",
"delayedDays4": "",
"delayedDays5": "",
"daysDeferredPayment": "0",
"dueDateCompleteMonthsPercentageAmount": "true",
"receiptChargedPaidAtDueDate": "true",
"installmentsNumber": "0",
"delayedAmount": "0"
}

Response

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

dueDateTypes.update

readonly=true means that the entity is created by the application and it's not possible to modify it

Request

{
"dueDateEndMonthPercentageAmount": "true",
"delayTypes": "2", // <– Required
"version": "0",
"id": "1062",
"defaultReceipts": "1", // <– Required
"readonly": "false",
"description": "Porcentual a 30 / 60 días",
"name": "Tipo 30/60", // <– Required
"daysFixedAmount": "0",
"daysDeferredPayment": "0",
"delay1": "50",
"delay2": "50",
"delay3": "",
"delay4": "",
"delay5": "",
"delayedDays1": "30",
"delayedDays2": "60",
"delayedDays3": "",
"delayedDays4": "",
"delayedDays5": "",
"receiptChargedPaidAtDueDate": "true",
"installmentsNumber": "0",
"delayedAmount": "0"
}

Response

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

dueDateTypes.delete

Request

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

Response

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