Referencia de APIAccounting / Pending Record
Create Pending Record credit
← Back to full API reference
POST
/v1/record/pending/creditAuth requiredA pending record refers to documents (invoice, quote, order, loan) that can later be linked to records such as payments, credits, and accounting movements.
- Requires organization permissions for this resource.
- Validated by Zod schema: postCredit.
Request details
Body fields
| Field | Required | Description |
|---|---|---|
| amount | Yes | Type: number |
| interest | Yes | Type: number |
| period | Yes | Type: enumExample: DAILY |
| interestType | No | Type: enumExample: COMPOUND |
| totalNumberOfPayments | Yes | Type: number |
| latePaymentFee | No | Type: numberExample: 0 |
| latePaymentInDays | No | Type: numberExample: 3 |
| paymentDate | Yes | Type: number |
| paymentsStartsOn | No | Type: string |
| pendingRecordId | No | Type: number |
| accountId | No | Type: number |
| paymentMethod | No | Type: enumExample: CASH |
| contact | No | Type: arrayExample: |
| contact[] | Yes | Type: object |
| contact[].type | Yes | Type: string |
| contact[].data | Yes | Type: string |
| contact[].dataType | No | Type: enumExample: string |
Default payloads
Path params
json
{}Query
json
{}Body
json
{
"amount": 1,
"interest": 1,
"period": "DAILY",
"totalNumberOfPayments": 1,
"paymentDate": 1
}Sample response
json
{
"creditId": "<value>"
}