Gestiono
Referencia de APIAccounting / Pending Record

Create Pending Record bulk

← Back to full API reference
POST/v1/record/pending/bulkAuth required

A 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: postPendingRecordBulk.

Request details

Body fields

FieldRequiredDescription
[]YesType: object
[].descriptionNoType: string
[].notesNoType: string
[].referenceNoType: string
[].sourcePendingRecordIdNoType: number
[].divisionIdYesType: number
[].beneficiaryIdNoType: number
[].contactNoType: object
[].contact.nameYesType: string
[].contact.typeYesEnum-like validator generated by zodFromObj
[].contact.taxIdNoType: string
[].contact.referenceNoType: string
[].contact.labelsNoType: arrayExample:
[].contact.labels[]YesType: string
[].contact.contactNoType: arrayExample:
[].contact.contact[]YesType: object
[].contact.contact[].typeYesType: string
[].contact.contact[].dataYesType: string
[].contact.contact[].dataTypeNoType: enumExample: string
[].contact.latNoType: number
[].contact.lonNoType: number
[].contact.metadataNoType: object
[].contact.metadata.adquisitionChannelNoType: string
[].contact.creditLimitNoType: number
[].soldByNoType: number
[].typeYesType: enumExample: INVOICE
[].isSellYesBoolean parser helper from common/utils.zBoolean
[].dateNoType: stringExample:
[].dueDateNoType: stringExample:
[].currencyYesEnum-like validator generated by zodFromObj
[].taxEntityCurrencyRateNoType: number
[].recurrencyNoType: object
[].recurrency.isPausedNoBoolean parser helper from common/utils.zBooleanExample: false
[].recurrency.isCanceledNoBoolean parser helper from common/utils.zBooleanExample: false
[].recurrency.autoChargeEnabledNoBoolean parser helper from common/utils.zBoolean
[].recurrency.paymentMethodIdNoType: string
[].recurrency.paymentMethodProviderNoType: enumExample: stripe
[].recurrency.dateYesType: arrayExample:
[].recurrency.date[]YesType: number
[].recurrency.date[].monthYesType: number
[].recurrency.date[].dayYesType: number
[].recurrency.typeYesType: enumExample: MONTHLY
[].recurrency.createDaysBeforeNoType: numberExample: 3
[].recurrency.dueAfterNoType: number
[].recurrency.repeatUntilNoType: string
[].recurrency.cancelsAtNoType: string
[].recurrency.pauseAtNoType: string
[].recurrency.continueAfterNoType: string
[].recurrency.inPayrollSinceNoType: stringExample:
[].recurrency.pauseOnPastDueNoBoolean parser helper from common/utils.zBoolean
[].recurrency.updatePricesNoBoolean parser helper from common/utils.zBoolean
[].recurrency.filesNoType: arrayExample:
[].recurrency.files[]YesType: object
[].recurrency.files[].s3KeyYesType: string
[].recurrency.files[].fileNameYesType: string
[].recurrency.automaticallyPausedNoBoolean parser helper from common/utils.zBoolean
[].createFirstInvoiceNoBoolean parser helper from common/utils.zBoolean
[].generateTaxIdNoType: enumExample: none
[].taxIdNoType: stringExample:
[].taxInvoiceTypeNoType: number
[].isInstantDeliveryNoBoolean parser helper from common/utils.zBoolean
[].updatePricesNoBoolean parser helper from common/utils.zBoolean
[].elementsNoType: arrayExample:
[].elements[]YesType: unknown
[].labelsNoType: arrayExample:
[].labels[]YesType: string
[].clientdataNoType: object
[].metadataNoType: unknown
[].taskIdNoType: number
[].paymentNoType: object
[].payment.paymentMethodYesType: enumExample: CASH
[].payment.accountIdYesType: number
[].payment.amountNoType: number
[].payment.stateNoType: enumExample: PENDING
[].payment.referenceNoType: string
[].payment.amountConversionNoType: number
[].payment.receivedFromNoType: number
[].payment.descriptionNoType: string
[].payment.labelsNoType: arrayExample:
[].payment.labels[]YesType: string
[].payment.clientdataNoType: object
[].payment.dateNoType: string
[].payment.metadataNoType: unknown
[].payment.generateTaxIdNoType: enumExample: none
[].creditNoType: object
[].credit.amountYesType: number
[].credit.interestYesType: number
[].credit.periodYesType: enumExample: DAILY
[].credit.interestTypeNoType: enumExample: COMPOUND
[].credit.totalNumberOfPaymentsYesType: number
[].credit.latePaymentFeeNoType: numberExample: 0
[].credit.latePaymentInDaysNoType: numberExample: 3
[].credit.paymentDateYesType: number
[].credit.paymentsStartsOnNoType: string
[].credit.pendingRecordIdNoType: number
[].credit.accountIdNoType: number
[].credit.paymentMethodNoType: enumExample: CASH
[].credit.contactNoType: arrayExample:
[].credit.contact[]YesType: object
[].credit.contact[].typeYesType: string
[].credit.contact[].dataYesType: string
[].credit.contact[].dataTypeNoType: enumExample: string
[].redeemNoType: object
[].redeem.returnIdYesType: number
[].redeem.amountYesType: number

Default payloads

Path params

json
{}

Query

json
{}

Body

json
[
  {
    "divisionId": 1,
    "type": "INVOICE",
    "isSell": true,
    "currency": "string"
  }
]

Sample response

json
{
  "success": true,
  "message": "<value>",
  "count": "<value>"
}