Referencia de APIAccounting / Pending Record
Update Pending Record template
← Back to full API reference
PATCH
/v1/record/pending/templateAuth 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: postPendingRecordTemplate.
Request details
Body fields
| Field | Required | Description |
|---|---|---|
| time | Yes | Type: number |
| version | Yes | Type: string |
| invoiceVersion | No | Type: string |
| blocks | Yes | Type: arrayExample: |
| blocks[] | Yes | Type: object |
| blocks[].type | Yes | Type: enumExample: invoice |
| blocks[].data | Yes | Type: object |
| blocks[].data.shareId | Yes | Type: string |
| blocks[].data.showTaxes | No | Boolean parser helper from common/utils.zBooleanExample: true |
| blocks[].data.showDescription | No | Boolean parser helper from common/utils.zBoolean |
| blocks[].data.showSku | No | Boolean parser helper from common/utils.zBoolean |
| blocks[].data.showSignature | No | Boolean parser helper from common/utils.zBoolean |
| blocks[].data.extendedClientData | No | Boolean parser helper from common/utils.zBoolean |
| blocks[].data.customContent | Yes | Type: object |
| blocks[].data.customContent.top | Yes | Type: string |
| blocks[].data.customContent.middle | Yes | Type: string |
| blocks[].data.customContent.bottom | Yes | Type: string |
| blocks[].data.customContent.organizationName | No | Type: string |
| blocks[].data.customContent.chargeTo | Yes | Type: string |
| blocks[].data.customContent.signature | No | Type: string |
Default payloads
Path params
json
{}Query
json
{}Body
json
{
"time": 1,
"version": "string",
"blocks": [
{
"type": "invoice",
"data": {
"shareId": "string",
"customContent": {
"top": "string",
"middle": "string",
"bottom": "string",
"chargeTo": "string"
}
}
}
]
}Sample response
json
{}