Skip to content

Commit 3bb4fd0

Browse files
authored
Merge pull request #203 from FacturAPI/FAC-1484/search-receipt-by-invoice
2 parents 3216736 + d838560 commit 3bb4fd0

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

website/openapi_v2.en.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2690,6 +2690,29 @@ paths:
26902690
example: "02"
26912691
description: |
26922692
Code representing the payment form, according to the [SAT catalog](#forma-de-pago). If included, the receipts will be grouped and listed according to the payment form.
2693+
- in: query
2694+
name: date[gte]
2695+
schema:
2696+
type: string
2697+
format: date-time
2698+
example: "2017-01-01T00:00:00.000Z"
2699+
description: |
2700+
Start date to filter receipts by their `date` property (inclusive).
2701+
- in: query
2702+
name: date[lte]
2703+
schema:
2704+
type: string
2705+
format: date-time
2706+
example: "2020-01-01T00:00:00.000Z"
2707+
description: |
2708+
End date to filter receipts by their `date` property (inclusive).
2709+
- in: query
2710+
name: invoice
2711+
schema:
2712+
type: string
2713+
description: |
2714+
ID of the invoice associated with the receipt.
2715+
example: "58e93bd8e86eb318b019743d"
26932716
- $ref: "#/components/parameters/SearchDate"
26942717
- $ref: "#/components/parameters/SearchPage"
26952718
- $ref: "#/components/parameters/SearchLimit"

website/openapi_v2.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2737,6 +2737,27 @@ paths:
27372737
example: "02"
27382738
description: |
27392739
Código que representa la forma de pago, de acuerdo al [catálogo del SAT](#forma-de-pago). Si se incluye, los recibos se agruparán y se listarán de acuerdo a la forma de pago.
2740+
- in: query
2741+
name: date[gte]
2742+
schema:
2743+
type: string
2744+
format: date-time
2745+
example: "2017-01-01T00:00:00.000Z"
2746+
description: Fecha de creación mayor o igual a la especificada.
2747+
- in: query
2748+
name: date[lte]
2749+
schema:
2750+
type: string
2751+
format: date-time
2752+
example: "2020-01-01T00:00:00.000Z"
2753+
description: Fecha de creación menor o igual a la especificada.
2754+
- in: query
2755+
name: invoice
2756+
schema:
2757+
type: string
2758+
description: |
2759+
ID de la factura relacionada al recibo.
2760+
example: "58e93bd8e86eb318b019743d"
27402761
- $ref: "#/components/parameters/SearchDate"
27412762
- $ref: "#/components/parameters/SearchPage"
27422763
- $ref: "#/components/parameters/SearchLimit"

0 commit comments

Comments
 (0)