Albaranes, más recientes primero
GET/v1/orgs/{orgId}/delivery-notes
- Alcance de la clave
- Cualquier clave (read)
- operationId
listDeliveryNotes
Parámetros
Parámetros de listDeliveryNotes| Campo | Tipo | Descripción |
|---|
orgIdobligatorio | string | Identificador de la organización de la clave. En la ruta. |
|---|
limit | integer | En la consulta. Mínimo 1 Máximo 100 Por defecto: 25 |
|---|
cursor | string | En la consulta. Máximo 512 caracteres |
|---|
status | string | En la consulta. Valores: draft, delivered, invoiced, cancelled |
|---|
contactId | string | En la consulta. |
|---|
Respuesta 200 · Página
application/json
Respuesta 200 de listDeliveryNotes| Campo | Tipo | Descripción |
|---|
itemsobligatorio | DeliveryNote[] | |
|---|
items[].idobligatorio | string (uuid) | |
|---|
items[].statusobligatorio | string | Valores: draft, delivered, invoiced, cancelled |
|---|
items[].fullNumberobligatorio | string | |
|---|
items[].deliveryDateobligatorio | string | |
|---|
items[].contactIdobligatorio | string (uuid) | null | |
|---|
items[].customerNameobligatorio | string | null | |
|---|
items[].customerTaxIdobligatorio | string | null | |
|---|
items[].quoteIdobligatorio | string (uuid) | null | |
|---|
items[].valuedobligatorio | boolean | |
|---|
items[].currencyobligatorio | string | |
|---|
items[].subtotalMinorobligatorio | integer | |
|---|
items[].taxMinorobligatorio | integer | |
|---|
items[].totalMinorobligatorio | integer | |
|---|
items[].notesobligatorio | string | null | |
|---|
items[].documentLocaleobligatorio | string | Valores: es, en |
|---|
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 la factura |
|---|
items[].invoiceIdobligatorio | string (uuid) | null | |
|---|
items[].invoiceNumberobligatorio | string | null | |
|---|
items[].versionobligatorio | integer | |
|---|
items[].linesobligatorio | object[] | |
|---|
items[].lines[].positionobligatorio | integer | |
|---|
items[].lines[].productIdobligatorio | string (uuid) | null | |
|---|
items[].lines[].descriptionobligatorio | string | null | |
|---|
items[].lines[].quantityobligatorio | string | |
|---|
items[].lines[].unitPriceobligatorio | string | null | |
|---|
items[].lines[].discountPctobligatorio | string | null | |
|---|
items[].lines[].unitobligatorio | string | null | |
|---|
items[].lines[].baseMinorobligatorio | integer | |
|---|
items[].lines[].taxCodeobligatorio | string | |
|---|
items[].lines[].withholdingRateobligatorio | string | null | |
|---|
nextCursorobligatorio | string | null | |
|---|
Errores (application/problem+json): 400, 401, 403, 404
Crear un albarán, desde cero o desde un presupuesto aceptado
POST/v1/orgs/{orgId}/delivery-notes
- Alcance de la clave
invoices- operationId
createDeliveryNote
Parámetros
Parámetros de createDeliveryNote| Campo | Tipo | Descripción |
|---|
orgIdobligatorio | string | Identificador de la organización de la clave. En la ruta. |
|---|
Cuerpo application/json
Cuerpo de createDeliveryNote| Campo | Tipo | Descripción |
|---|
id | string | |
|---|
quoteId | string | |
|---|
contactId | string | null | |
|---|
deliveryDate | string | |
|---|
valued | boolean | Por defecto: true |
|---|
notes | string | null | Máximo 2000 caracteres |
|---|
documentLocale | string | Valores: es, en |
|---|
deliveryCountry | string | null | |
|---|
lines | object[] | Hasta 500 elementos Por defecto: [] |
|---|
lines[].productId | string | null | |
|---|
lines[].description | string | null | Máximo 1000 caracteres |
|---|
lines[].quantityobligatorio | string | |
|---|
lines[].unitPrice | string | null | |
|---|
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 · Ya existía
application/json
Respuesta 200 de createDeliveryNote| Campo | Tipo | Descripción |
|---|
idobligatorio | string (uuid) | |
|---|
statusobligatorio | string | Valores: draft, delivered, invoiced, cancelled |
|---|
fullNumberobligatorio | string | |
|---|
deliveryDateobligatorio | string | |
|---|
contactIdobligatorio | string (uuid) | null | |
|---|
customerNameobligatorio | string | null | |
|---|
customerTaxIdobligatorio | string | null | |
|---|
quoteIdobligatorio | string (uuid) | null | |
|---|
valuedobligatorio | boolean | |
|---|
currencyobligatorio | string | |
|---|
subtotalMinorobligatorio | integer | |
|---|
taxMinorobligatorio | integer | |
|---|
totalMinorobligatorio | integer | |
|---|
notesobligatorio | string | null | |
|---|
documentLocaleobligatorio | string | Valores: es, en |
|---|
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 la factura |
|---|
invoiceIdobligatorio | string (uuid) | null | |
|---|
invoiceNumberobligatorio | string | null | |
|---|
versionobligatorio | integer | |
|---|
linesobligatorio | object[] | |
|---|
lines[].positionobligatorio | integer | |
|---|
lines[].productIdobligatorio | string (uuid) | null | |
|---|
lines[].descriptionobligatorio | string | null | |
|---|
lines[].quantityobligatorio | string | |
|---|
lines[].unitPriceobligatorio | string | null | |
|---|
lines[].discountPctobligatorio | string | null | |
|---|
lines[].unitobligatorio | string | null | |
|---|
lines[].baseMinorobligatorio | integer | |
|---|
lines[].taxCodeobligatorio | string | |
|---|
lines[].withholdingRateobligatorio | string | null | |
|---|
Respuesta 201 · Creado
application/json
Respuesta 201 de createDeliveryNote| Campo | Tipo | Descripción |
|---|
idobligatorio | string (uuid) | |
|---|
statusobligatorio | string | Valores: draft, delivered, invoiced, cancelled |
|---|
fullNumberobligatorio | string | |
|---|
deliveryDateobligatorio | string | |
|---|
contactIdobligatorio | string (uuid) | null | |
|---|
customerNameobligatorio | string | null | |
|---|
customerTaxIdobligatorio | string | null | |
|---|
quoteIdobligatorio | string (uuid) | null | |
|---|
valuedobligatorio | boolean | |
|---|
currencyobligatorio | string | |
|---|
subtotalMinorobligatorio | integer | |
|---|
taxMinorobligatorio | integer | |
|---|
totalMinorobligatorio | integer | |
|---|
notesobligatorio | string | null | |
|---|
documentLocaleobligatorio | string | Valores: es, en |
|---|
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 la factura |
|---|
invoiceIdobligatorio | string (uuid) | null | |
|---|
invoiceNumberobligatorio | string | null | |
|---|
versionobligatorio | integer | |
|---|
linesobligatorio | object[] | |
|---|
lines[].positionobligatorio | integer | |
|---|
lines[].productIdobligatorio | string (uuid) | null | |
|---|
lines[].descriptionobligatorio | string | null | |
|---|
lines[].quantityobligatorio | string | |
|---|
lines[].unitPriceobligatorio | string | null | |
|---|
lines[].discountPctobligatorio | string | null | |
|---|
lines[].unitobligatorio | string | null | |
|---|
lines[].baseMinorobligatorio | integer | |
|---|
lines[].taxCodeobligatorio | string | |
|---|
lines[].withholdingRateobligatorio | string | null | |
|---|
Errores (application/problem+json): 400, 401, 403, 404, 409
Un albarán
GET/v1/orgs/{orgId}/delivery-notes/{noteId}
- Alcance de la clave
- Cualquier clave (read)
- operationId
getDeliveryNote
Parámetros
Parámetros de getDeliveryNote| Campo | Tipo | Descripción |
|---|
orgIdobligatorio | string | Identificador de la organización de la clave. En la ruta. |
|---|
noteIdobligatorio | string | En la ruta. |
|---|
Respuesta 200 · Albarán
application/json
Respuesta 200 de getDeliveryNote| Campo | Tipo | Descripción |
|---|
idobligatorio | string (uuid) | |
|---|
statusobligatorio | string | Valores: draft, delivered, invoiced, cancelled |
|---|
fullNumberobligatorio | string | |
|---|
deliveryDateobligatorio | string | |
|---|
contactIdobligatorio | string (uuid) | null | |
|---|
customerNameobligatorio | string | null | |
|---|
customerTaxIdobligatorio | string | null | |
|---|
quoteIdobligatorio | string (uuid) | null | |
|---|
valuedobligatorio | boolean | |
|---|
currencyobligatorio | string | |
|---|
subtotalMinorobligatorio | integer | |
|---|
taxMinorobligatorio | integer | |
|---|
totalMinorobligatorio | integer | |
|---|
notesobligatorio | string | null | |
|---|
documentLocaleobligatorio | string | Valores: es, en |
|---|
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 la factura |
|---|
invoiceIdobligatorio | string (uuid) | null | |
|---|
invoiceNumberobligatorio | string | null | |
|---|
versionobligatorio | integer | |
|---|
linesobligatorio | object[] | |
|---|
lines[].positionobligatorio | integer | |
|---|
lines[].productIdobligatorio | string (uuid) | null | |
|---|
lines[].descriptionobligatorio | string | null | |
|---|
lines[].quantityobligatorio | string | |
|---|
lines[].unitPriceobligatorio | string | null | |
|---|
lines[].discountPctobligatorio | string | null | |
|---|
lines[].unitobligatorio | string | null | |
|---|
lines[].baseMinorobligatorio | integer | |
|---|
lines[].taxCodeobligatorio | string | |
|---|
lines[].withholdingRateobligatorio | string | null | |
|---|
Errores (application/problem+json): 401, 403, 404
Editar un albarán no facturado
PATCH/v1/orgs/{orgId}/delivery-notes/{noteId}
- Alcance de la clave
invoices- operationId
updateDeliveryNote
Parámetros
Parámetros de updateDeliveryNote| Campo | Tipo | Descripción |
|---|
orgIdobligatorio | string | Identificador de la organización de la clave. En la ruta. |
|---|
noteIdobligatorio | string | En la ruta. |
|---|
Cuerpo application/json
Cuerpo de updateDeliveryNote| Campo | Tipo | Descripción |
|---|
versionobligatorio | integer | Mínimo 1 |
|---|
contactId | string | null | |
|---|
deliveryDate | string | |
|---|
valued | boolean | |
|---|
notes | string | null | Máximo 2000 caracteres |
|---|
documentLocale | string | Valores: es, en |
|---|
deliveryCountry | string | null | |
|---|
lines | object[] | Hasta 500 elementos |
|---|
lines[].productId | string | null | |
|---|
lines[].description | string | null | Máximo 1000 caracteres |
|---|
lines[].quantityobligatorio | string | |
|---|
lines[].unitPrice | string | null | |
|---|
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 · Guardado
application/json
Respuesta 200 de updateDeliveryNote| Campo | Tipo | Descripción |
|---|
idobligatorio | string (uuid) | |
|---|
statusobligatorio | string | Valores: draft, delivered, invoiced, cancelled |
|---|
fullNumberobligatorio | string | |
|---|
deliveryDateobligatorio | string | |
|---|
contactIdobligatorio | string (uuid) | null | |
|---|
customerNameobligatorio | string | null | |
|---|
customerTaxIdobligatorio | string | null | |
|---|
quoteIdobligatorio | string (uuid) | null | |
|---|
valuedobligatorio | boolean | |
|---|
currencyobligatorio | string | |
|---|
subtotalMinorobligatorio | integer | |
|---|
taxMinorobligatorio | integer | |
|---|
totalMinorobligatorio | integer | |
|---|
notesobligatorio | string | null | |
|---|
documentLocaleobligatorio | string | Valores: es, en |
|---|
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 la factura |
|---|
invoiceIdobligatorio | string (uuid) | null | |
|---|
invoiceNumberobligatorio | string | null | |
|---|
versionobligatorio | integer | |
|---|
linesobligatorio | object[] | |
|---|
lines[].positionobligatorio | integer | |
|---|
lines[].productIdobligatorio | string (uuid) | null | |
|---|
lines[].descriptionobligatorio | string | null | |
|---|
lines[].quantityobligatorio | string | |
|---|
lines[].unitPriceobligatorio | string | null | |
|---|
lines[].discountPctobligatorio | string | null | |
|---|
lines[].unitobligatorio | string | null | |
|---|
lines[].baseMinorobligatorio | integer | |
|---|
lines[].taxCodeobligatorio | string | |
|---|
lines[].withholdingRateobligatorio | string | null | |
|---|
Errores (application/problem+json): 400, 401, 403, 404, 409
Marcar como entregado o cancelado
POST/v1/orgs/{orgId}/delivery-notes/{noteId}/status
- Alcance de la clave
invoices- operationId
setDeliveryNoteStatus
Parámetros
Parámetros de setDeliveryNoteStatus| Campo | Tipo | Descripción |
|---|
orgIdobligatorio | string | Identificador de la organización de la clave. En la ruta. |
|---|
noteIdobligatorio | string | En la ruta. |
|---|
Cuerpo application/json
Cuerpo de setDeliveryNoteStatus| Campo | Tipo | Descripción |
|---|
versionobligatorio | integer | Mínimo 1 |
|---|
statusobligatorio | string | Valores: delivered, cancelled, draft |
|---|
Respuesta 200 · Cambiado
application/json
Respuesta 200 de setDeliveryNoteStatus| Campo | Tipo | Descripción |
|---|
idobligatorio | string (uuid) | |
|---|
statusobligatorio | string | Valores: draft, delivered, invoiced, cancelled |
|---|
fullNumberobligatorio | string | |
|---|
deliveryDateobligatorio | string | |
|---|
contactIdobligatorio | string (uuid) | null | |
|---|
customerNameobligatorio | string | null | |
|---|
customerTaxIdobligatorio | string | null | |
|---|
quoteIdobligatorio | string (uuid) | null | |
|---|
valuedobligatorio | boolean | |
|---|
currencyobligatorio | string | |
|---|
subtotalMinorobligatorio | integer | |
|---|
taxMinorobligatorio | integer | |
|---|
totalMinorobligatorio | integer | |
|---|
notesobligatorio | string | null | |
|---|
documentLocaleobligatorio | string | Valores: es, en |
|---|
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 la factura |
|---|
invoiceIdobligatorio | string (uuid) | null | |
|---|
invoiceNumberobligatorio | string | null | |
|---|
versionobligatorio | integer | |
|---|
linesobligatorio | object[] | |
|---|
lines[].positionobligatorio | integer | |
|---|
lines[].productIdobligatorio | string (uuid) | null | |
|---|
lines[].descriptionobligatorio | string | null | |
|---|
lines[].quantityobligatorio | string | |
|---|
lines[].unitPriceobligatorio | string | null | |
|---|
lines[].discountPctobligatorio | string | null | |
|---|
lines[].unitobligatorio | string | null | |
|---|
lines[].baseMinorobligatorio | integer | |
|---|
lines[].taxCodeobligatorio | string | |
|---|
lines[].withholdingRateobligatorio | string | null | |
|---|
Errores (application/problem+json): 400, 401, 403, 404, 409
Facturar un albarán entregado: crea un borrador de factura
POST/v1/orgs/{orgId}/delivery-notes/{noteId}/invoice
- Alcance de la clave
invoices- operationId
invoiceDeliveryNote
Parámetros
Parámetros de invoiceDeliveryNote| Campo | Tipo | Descripción |
|---|
orgIdobligatorio | string | Identificador de la organización de la clave. En la ruta. |
|---|
noteIdobligatorio | string | En la ruta. |
|---|
Cuerpo application/json
Cuerpo de invoiceDeliveryNote| Campo | Tipo | Descripción |
|---|
versionobligatorio | integer | Mínimo 1 |
|---|
Respuesta 201 · Borrador creado
application/json
Respuesta 201 de invoiceDeliveryNote| Campo | Tipo | Descripción |
|---|
invoiceIdobligatorio | string (uuid) | |
|---|
Errores (application/problem+json): 400, 401, 403, 404, 409, 422
Facturar varios albaranes del mismo cliente en un solo borrador de factura
POST/v1/orgs/{orgId}/delivery-notes/invoice-batch
- Alcance de la clave
invoices- operationId
invoiceDeliveryNotes
Parámetros
Parámetros de invoiceDeliveryNotes| Campo | Tipo | Descripción |
|---|
orgIdobligatorio | string | Identificador de la organización de la clave. En la ruta. |
|---|
Cuerpo application/json
Cuerpo de invoiceDeliveryNotes| Campo | Tipo | Descripción |
|---|
idsobligatorio | string[] | Al menos 1 elementos Hasta 100 elementos |
|---|
Respuesta 201 · Borrador creado
application/json
Respuesta 201 de invoiceDeliveryNotes| Campo | Tipo | Descripción |
|---|
invoiceIdobligatorio | string (uuid) | |
|---|
Errores (application/problem+json): 400, 401, 403, 404, 409, 422
PDF del albarán, valorado o sin valorar
GET/v1/orgs/{orgId}/delivery-notes/{noteId}/pdf
- Alcance de la clave
- Cualquier clave (read)
- operationId
getDeliveryNotePdf
Parámetros
Parámetros de getDeliveryNotePdf| Campo | Tipo | Descripción |
|---|
orgIdobligatorio | string | Identificador de la organización de la clave. En la ruta. |
|---|
noteIdobligatorio | string | En la ruta. |
|---|
Respuesta 200 · PDF
application/pdf
Errores (application/problem+json): 401, 403, 404