Facturas recurrentes, por próxima fecha
GET/v1/orgs/{orgId}/recurring-invoices
- Alcance de la clave
- Cualquier clave (read)
- operationId
listRecurringInvoices
Parámetros
Parámetros de listRecurringInvoices| Campo | Tipo | Descripción |
|---|
orgIdobligatorio | string | Identificador de la organización de la clave. En la ruta. |
|---|
Respuesta 200 · Plantillas
application/json
Respuesta 200 de listRecurringInvoices| Campo | Tipo | Descripción |
|---|
itemsobligatorio | RecurringInvoice[] | |
|---|
items[].idobligatorio | string (uuid) | |
|---|
items[].nameobligatorio | string | |
|---|
items[].contactIdobligatorio | string (uuid) | |
|---|
items[].customerNameobligatorio | string | null | |
|---|
items[].customerTaxIdobligatorio | string | null | |
|---|
items[].estimateobligatorio | object | null | |
|---|
items[].estimate.subtotalMinorobligatorio | integer | |
|---|
items[].estimate.taxMinorobligatorio | integer | |
|---|
items[].estimate.withholdingMinorobligatorio | integer | |
|---|
items[].estimate.totalMinorobligatorio | integer | |
|---|
items[].seriesIdobligatorio | string (uuid) | null | |
|---|
items[].frequencyobligatorio | string | Valores: weekly, monthly, quarterly, yearly |
|---|
items[].dayOfMonthobligatorio | integer | null | |
|---|
items[].nextDateobligatorio | string | |
|---|
items[].endDateobligatorio | string | null | |
|---|
items[].modeobligatorio | string | Valores: draft, issue |
|---|
items[].sendEmailobligatorio | boolean | |
|---|
items[].autoIssueConfirmedAtobligatorio | string (date-time) | null | |
|---|
items[].activeobligatorio | boolean | |
|---|
items[].paymentMethodobligatorio | string | null | Valores: transfer, card, cash, direct_debit, bizum, other |
|---|
items[].notesobligatorio | string | null | |
|---|
items[].deliveryCountryobligatorio | string | null | País de entrega de los bienes (ISO 3166-1, o ES-CN, ES-CE, ES-ML); null es el país del cliente. Pasa a cada factura |
|---|
items[].linesobligatorio | object[] | |
|---|
items[].lines[].productId | string | null | |
|---|
items[].lines[].description | string | null | Máximo 1000 caracteres |
|---|
items[].lines[].quantityobligatorio | string | |
|---|
items[].lines[].unitPriceobligatorio | string | |
|---|
items[].lines[].discountPct | string | null | |
|---|
items[].lines[].taxCodeobligatorio | string | |
|---|
items[].lines[].exemptionCause | string | null | Valores: E1, E2, E3, E4, E5, E6 |
|---|
items[].lines[].withholdingRate | string | null | |
|---|
items[].lines[].unit | string | null | Máximo 20 caracteres |
|---|
items[].lastRunOnobligatorio | string | null | |
|---|
items[].runsobligatorio | object[] | |
|---|
items[].runs[].runDateobligatorio | string | |
|---|
items[].runs[].resultobligatorio | string | |
|---|
items[].runs[].invoiceIdobligatorio | string (uuid) | null | |
|---|
items[].runs[].errorobligatorio | string | null | |
|---|
items[].versionobligatorio | integer | |
|---|
Errores (application/problem+json): 401, 403, 404
Crear una factura recurrente. La emisión automática exige confirmarla y el permiso de emitir
POST/v1/orgs/{orgId}/recurring-invoices
- Alcance de la clave
invoices- operationId
createRecurringInvoice
Parámetros
Parámetros de createRecurringInvoice| Campo | Tipo | Descripción |
|---|
orgIdobligatorio | string | Identificador de la organización de la clave. En la ruta. |
|---|
Cuerpo application/json
Cuerpo de createRecurringInvoice| Campo | Tipo | Descripción |
|---|
id | string | |
|---|
nameobligatorio | string | Mínimo 1 caracteres Máximo 120 caracteres |
|---|
contactIdobligatorio | string | |
|---|
seriesId | string | null | |
|---|
frequencyobligatorio | string | Valores: weekly, monthly, quarterly, yearly |
|---|
dayOfMonth | integer | null | Mínimo 1 Máximo 31 Por defecto: null |
|---|
nextDateobligatorio | string | |
|---|
endDate | string | null | |
|---|
mode | string | Valores: draft, issue Por defecto: "draft" |
|---|
sendEmail | boolean | Por defecto: false |
|---|
confirmAutoIssue | boolean | Por defecto: false |
|---|
active | boolean | Por defecto: true |
|---|
paymentMethod | string | null | Valores: transfer, card, cash, direct_debit, bizum, other |
|---|
notes | string | null | Máximo 2000 caracteres |
|---|
deliveryCountry | string | null | |
|---|
linesobligatorio | object[] | Al menos 1 elementos Hasta 500 elementos |
|---|
lines[].productId | string | null | |
|---|
lines[].description | string | null | Máximo 1000 caracteres |
|---|
lines[].quantityobligatorio | string | |
|---|
lines[].unitPriceobligatorio | string | |
|---|
lines[].discountPct | string | null | |
|---|
lines[].taxCodeobligatorio | string | |
|---|
lines[].exemptionCause | string | null | Valores: E1, E2, E3, E4, E5, E6 |
|---|
lines[].withholdingRate | string | null | |
|---|
lines[].unit | string | null | Máximo 20 caracteres |
|---|
Respuesta 201 · Creada
application/json
Respuesta 201 de createRecurringInvoice| Campo | Tipo | Descripción |
|---|
idobligatorio | string (uuid) | |
|---|
nameobligatorio | string | |
|---|
contactIdobligatorio | string (uuid) | |
|---|
customerNameobligatorio | string | null | |
|---|
customerTaxIdobligatorio | string | null | |
|---|
estimateobligatorio | object | null | |
|---|
estimate.subtotalMinorobligatorio | integer | |
|---|
estimate.taxMinorobligatorio | integer | |
|---|
estimate.withholdingMinorobligatorio | integer | |
|---|
estimate.totalMinorobligatorio | integer | |
|---|
seriesIdobligatorio | string (uuid) | null | |
|---|
frequencyobligatorio | string | Valores: weekly, monthly, quarterly, yearly |
|---|
dayOfMonthobligatorio | integer | null | |
|---|
nextDateobligatorio | string | |
|---|
endDateobligatorio | string | null | |
|---|
modeobligatorio | string | Valores: draft, issue |
|---|
sendEmailobligatorio | boolean | |
|---|
autoIssueConfirmedAtobligatorio | string (date-time) | null | |
|---|
activeobligatorio | boolean | |
|---|
paymentMethodobligatorio | string | null | Valores: transfer, card, cash, direct_debit, bizum, other |
|---|
notesobligatorio | string | null | |
|---|
deliveryCountryobligatorio | string | null | País de entrega de los bienes (ISO 3166-1, o ES-CN, ES-CE, ES-ML); null es el país del cliente. Pasa a cada factura |
|---|
linesobligatorio | object[] | |
|---|
lines[].productId | string | null | |
|---|
lines[].description | string | null | Máximo 1000 caracteres |
|---|
lines[].quantityobligatorio | string | |
|---|
lines[].unitPriceobligatorio | string | |
|---|
lines[].discountPct | string | null | |
|---|
lines[].taxCodeobligatorio | string | |
|---|
lines[].exemptionCause | string | null | Valores: E1, E2, E3, E4, E5, E6 |
|---|
lines[].withholdingRate | string | null | |
|---|
lines[].unit | string | null | Máximo 20 caracteres |
|---|
lastRunOnobligatorio | string | null | |
|---|
runsobligatorio | object[] | |
|---|
runs[].runDateobligatorio | string | |
|---|
runs[].resultobligatorio | string | |
|---|
runs[].invoiceIdobligatorio | string (uuid) | null | |
|---|
runs[].errorobligatorio | string | null | |
|---|
versionobligatorio | integer | |
|---|
Errores (application/problem+json): 400, 401, 403, 404
Una factura recurrente con sus últimas ejecuciones
GET/v1/orgs/{orgId}/recurring-invoices/{recurringId}
- Alcance de la clave
- Cualquier clave (read)
- operationId
getRecurringInvoice
Parámetros
Parámetros de getRecurringInvoice| Campo | Tipo | Descripción |
|---|
orgIdobligatorio | string | Identificador de la organización de la clave. En la ruta. |
|---|
recurringIdobligatorio | string | En la ruta. |
|---|
Respuesta 200 · Plantilla
application/json
Respuesta 200 de getRecurringInvoice| Campo | Tipo | Descripción |
|---|
idobligatorio | string (uuid) | |
|---|
nameobligatorio | string | |
|---|
contactIdobligatorio | string (uuid) | |
|---|
customerNameobligatorio | string | null | |
|---|
customerTaxIdobligatorio | string | null | |
|---|
estimateobligatorio | object | null | |
|---|
estimate.subtotalMinorobligatorio | integer | |
|---|
estimate.taxMinorobligatorio | integer | |
|---|
estimate.withholdingMinorobligatorio | integer | |
|---|
estimate.totalMinorobligatorio | integer | |
|---|
seriesIdobligatorio | string (uuid) | null | |
|---|
frequencyobligatorio | string | Valores: weekly, monthly, quarterly, yearly |
|---|
dayOfMonthobligatorio | integer | null | |
|---|
nextDateobligatorio | string | |
|---|
endDateobligatorio | string | null | |
|---|
modeobligatorio | string | Valores: draft, issue |
|---|
sendEmailobligatorio | boolean | |
|---|
autoIssueConfirmedAtobligatorio | string (date-time) | null | |
|---|
activeobligatorio | boolean | |
|---|
paymentMethodobligatorio | string | null | Valores: transfer, card, cash, direct_debit, bizum, other |
|---|
notesobligatorio | string | null | |
|---|
deliveryCountryobligatorio | string | null | País de entrega de los bienes (ISO 3166-1, o ES-CN, ES-CE, ES-ML); null es el país del cliente. Pasa a cada factura |
|---|
linesobligatorio | object[] | |
|---|
lines[].productId | string | null | |
|---|
lines[].description | string | null | Máximo 1000 caracteres |
|---|
lines[].quantityobligatorio | string | |
|---|
lines[].unitPriceobligatorio | string | |
|---|
lines[].discountPct | string | null | |
|---|
lines[].taxCodeobligatorio | string | |
|---|
lines[].exemptionCause | string | null | Valores: E1, E2, E3, E4, E5, E6 |
|---|
lines[].withholdingRate | string | null | |
|---|
lines[].unit | string | null | Máximo 20 caracteres |
|---|
lastRunOnobligatorio | string | null | |
|---|
runsobligatorio | object[] | |
|---|
runs[].runDateobligatorio | string | |
|---|
runs[].resultobligatorio | string | |
|---|
runs[].invoiceIdobligatorio | string (uuid) | null | |
|---|
runs[].errorobligatorio | string | null | |
|---|
versionobligatorio | integer | |
|---|
Errores (application/problem+json): 401, 403, 404
Editar una factura recurrente (con la versión leída)
PATCH/v1/orgs/{orgId}/recurring-invoices/{recurringId}
- Alcance de la clave
invoices- operationId
updateRecurringInvoice
Parámetros
Parámetros de updateRecurringInvoice| Campo | Tipo | Descripción |
|---|
orgIdobligatorio | string | Identificador de la organización de la clave. En la ruta. |
|---|
recurringIdobligatorio | string | En la ruta. |
|---|
Cuerpo application/json
Cuerpo de updateRecurringInvoice| Campo | Tipo | Descripción |
|---|
versionobligatorio | integer | Mínimo 1 |
|---|
name | string | Mínimo 1 caracteres Máximo 120 caracteres |
|---|
contactId | string | |
|---|
seriesId | string | null | |
|---|
frequency | string | Valores: weekly, monthly, quarterly, yearly |
|---|
dayOfMonth | integer | null | Mínimo 1 Máximo 31 |
|---|
nextDate | string | |
|---|
endDate | string | null | |
|---|
mode | string | Valores: draft, issue |
|---|
sendEmail | boolean | |
|---|
confirmAutoIssue | boolean | |
|---|
active | boolean | |
|---|
paymentMethod | string | null | Valores: transfer, card, cash, direct_debit, bizum, other |
|---|
notes | string | null | Máximo 2000 caracteres |
|---|
deliveryCountry | string | null | |
|---|
lines | object[] | Al menos 1 elementos Hasta 500 elementos |
|---|
lines[].productId | string | null | |
|---|
lines[].description | string | null | Máximo 1000 caracteres |
|---|
lines[].quantityobligatorio | string | |
|---|
lines[].unitPriceobligatorio | string | |
|---|
lines[].discountPct | string | null | |
|---|
lines[].taxCodeobligatorio | string | |
|---|
lines[].exemptionCause | string | null | Valores: E1, E2, E3, E4, E5, E6 |
|---|
lines[].withholdingRate | string | null | |
|---|
lines[].unit | string | null | Máximo 20 caracteres |
|---|
Respuesta 200 · Guardada
application/json
Respuesta 200 de updateRecurringInvoice| Campo | Tipo | Descripción |
|---|
idobligatorio | string (uuid) | |
|---|
nameobligatorio | string | |
|---|
contactIdobligatorio | string (uuid) | |
|---|
customerNameobligatorio | string | null | |
|---|
customerTaxIdobligatorio | string | null | |
|---|
estimateobligatorio | object | null | |
|---|
estimate.subtotalMinorobligatorio | integer | |
|---|
estimate.taxMinorobligatorio | integer | |
|---|
estimate.withholdingMinorobligatorio | integer | |
|---|
estimate.totalMinorobligatorio | integer | |
|---|
seriesIdobligatorio | string (uuid) | null | |
|---|
frequencyobligatorio | string | Valores: weekly, monthly, quarterly, yearly |
|---|
dayOfMonthobligatorio | integer | null | |
|---|
nextDateobligatorio | string | |
|---|
endDateobligatorio | string | null | |
|---|
modeobligatorio | string | Valores: draft, issue |
|---|
sendEmailobligatorio | boolean | |
|---|
autoIssueConfirmedAtobligatorio | string (date-time) | null | |
|---|
activeobligatorio | boolean | |
|---|
paymentMethodobligatorio | string | null | Valores: transfer, card, cash, direct_debit, bizum, other |
|---|
notesobligatorio | string | null | |
|---|
deliveryCountryobligatorio | string | null | País de entrega de los bienes (ISO 3166-1, o ES-CN, ES-CE, ES-ML); null es el país del cliente. Pasa a cada factura |
|---|
linesobligatorio | object[] | |
|---|
lines[].productId | string | null | |
|---|
lines[].description | string | null | Máximo 1000 caracteres |
|---|
lines[].quantityobligatorio | string | |
|---|
lines[].unitPriceobligatorio | string | |
|---|
lines[].discountPct | string | null | |
|---|
lines[].taxCodeobligatorio | string | |
|---|
lines[].exemptionCause | string | null | Valores: E1, E2, E3, E4, E5, E6 |
|---|
lines[].withholdingRate | string | null | |
|---|
lines[].unit | string | null | Máximo 20 caracteres |
|---|
lastRunOnobligatorio | string | null | |
|---|
runsobligatorio | object[] | |
|---|
runs[].runDateobligatorio | string | |
|---|
runs[].resultobligatorio | string | |
|---|
runs[].invoiceIdobligatorio | string (uuid) | null | |
|---|
runs[].errorobligatorio | string | null | |
|---|
versionobligatorio | integer | |
|---|
Errores (application/problem+json): 400, 401, 403, 404, 409
Borrar una factura recurrente (las facturas que ya creó se quedan)
DELETE/v1/orgs/{orgId}/recurring-invoices/{recurringId}
- Alcance de la clave
invoices- operationId
deleteRecurringInvoice
Parámetros
Parámetros de deleteRecurringInvoice| Campo | Tipo | Descripción |
|---|
orgIdobligatorio | string | Identificador de la organización de la clave. En la ruta. |
|---|
recurringIdobligatorio | string | En la ruta. |
|---|
Respuesta 204 · Borrada
Sin cuerpo.
Errores (application/problem+json): 401, 403, 404