Skip to content

Commit 053d08f

Browse files
authored
Merge pull request #157 from FacturAPI/feat/payment-invoice-relationships
2 parents 4c5aab7 + 3f4ef40 commit 053d08f

File tree

2 files changed

+34
-8
lines changed

2 files changed

+34
-8
lines changed

website/openapi_v2.en.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8564,11 +8564,24 @@ components:
85648564
description: Documents related to the invoice.
85658565
items:
85668566
$ref: "#/components/schemas/RelatedDocument"
8567-
payment_related_ids:
8567+
received_payment_ids:
85688568
type: array
85698569
items:
85708570
type: string
8571-
description: If this invoice has a payment method PPD and type I, this field will have the related payment id of this invoice.
8571+
description: |
8572+
On invoices with type I (Income) and payment method PPD, this field lists the
8573+
object IDs of the payment invoices whose related documents array includes the UUID
8574+
of this invoice. This field is filled in by Facturapi the moment the payment invoice
8575+
(type P) is created or imported, as long as it belongs to the same organization.
8576+
default: []
8577+
target_invoice_ids:
8578+
type: array
8579+
items:
8580+
type: string
8581+
description: |
8582+
On invoices with type P (Payment), this array lists the object IDs of the invoices listed in
8583+
the related documents array. This field is filled in by Facturapi as long as the
8584+
related invoice is also registered in Facturapi and belongs to the same organization.
85728585
default: []
85738586
currency:
85748587
type: string

website/openapi_v2.yaml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8455,6 +8455,25 @@ components:
84558455
description: Documentos relacionados con la factura.
84568456
items:
84578457
$ref: "#/components/schemas/RelatedDocument"
8458+
received_payment_ids:
8459+
type: array
8460+
items:
8461+
type: string
8462+
description: |
8463+
En facturas con tipo I (Ingreso) y método de pago PPD, este campo lista los
8464+
IDs de los comprobantes de pago cuyo arreglo de documentos relacionados incluye el UUID
8465+
de esta factura. Este campo es llenado por Facturapi en el momento en que se crea o importa
8466+
el comprobante de pago (tipo P), siempre y cuando pertenezca a la misma organización.
8467+
default: []
8468+
target_invoice_ids:
8469+
type: array
8470+
items:
8471+
type: string
8472+
description: |
8473+
En facturas con tipo P (Pago), este arreglo lista los IDs de los comprobantes de ingreso
8474+
listados en el arreglo de documentos relacionados. Este campo es llenado por Facturapi siempre
8475+
y cuando el comprobante relacionado también esté registrado en Facturapi y pertenezca a la misma organización.
8476+
default: []
84588477
currency:
84598478
type: string
84608479
example: MXN
@@ -8485,12 +8504,6 @@ components:
84858504
$ref: "#/components/schemas/NamespaceProperties"
84868505
stamp:
84878506
$ref: "#/components/schemas/Stamp"
8488-
payment_related_ids:
8489-
type: array
8490-
items:
8491-
type: string
8492-
description: Si esta factura tiene un método de pago PPD y es de tipo I, este campo contendrá los id de pagos relacionados a esta factura.
8493-
default: []
84948507
InvoiceDraftProperties:
84958508
type: object
84968509
properties:

0 commit comments

Comments
 (0)