Skip to content

Commit 2b3b545

Browse files
authored
Merge pull request #231 from FacturAPI/docs/v2-taxability-taxes-default
2 parents 567d47f + fe697b3 commit 2b3b545

2 files changed

Lines changed: 54 additions & 12 deletions

File tree

website/openapi_v2.en.yaml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10817,8 +10817,7 @@ components:
1081710817
- `false`: Indicates that the price attribute does not include taxes, so those taxes to be applied will be added to the final price.
1081810818
taxability:
1081910819
type: string
10820-
default: |
10821-
`"01"` if the `taxes` array is empty; `"02"` if the `taxes` array has at least one element.
10820+
default: "02"
1082210821
enum:
1082310822
- "01"
1082410823
- "02"
@@ -10841,14 +10840,23 @@ components:
1084110840
- `08`: Not Subject to tax IVA, and not required IEPS breakdown.
1084210841
taxes:
1084310842
type: array
10844-
default: IVA (VAT) transferred 16%
10843+
default:
10844+
- type: IVA
10845+
rate: 0.16
1084510846
example:
1084610847
[{
1084710848
"type": "IVA",
1084810849
"rate": 0.16
1084910850
}]
1085010851
description: |
10851-
List of taxes that must be applied to this product. If the parameter is omitted or null, it will be saved with an element representing the transferred IVA (VAT) of 16%, which is the most common tax. If an empty array is explicitly sent, it is understood that the product is exempt from taxes.
10852+
List of taxes that must be applied to this product.
10853+
10854+
Resolution when `taxes` is omitted or `null`:
10855+
- `taxability` omitted or `"02"`: IVA (VAT) transferred 16% is added.
10856+
- `taxability` in `"01"`, `"03"`, `"04"`, `"05"`, `"06"`, or `"08"`: `[]` is stored.
10857+
- `taxability = "07"`: the request is invalid; you must provide at least one transferred IEPS tax and include no IVA taxes.
10858+
10859+
If you send `taxes` explicitly, the provided array is used.
1085210860
items:
1085310861
$ref: "#/components/schemas/BaseTax"
1085410862
local_taxes:
@@ -10911,6 +10919,9 @@ components:
1091110919
- "03"
1091210920
- "04"
1091310921
- "05"
10922+
- "06"
10923+
- "07"
10924+
- "08"
1091410925
description: |
1091510926
Code that represents whether the good or service is subject to tax or not. This attribute corresponds to the "ObjetoImp" field in the CFDI.
1091610927

@@ -10921,9 +10932,18 @@ components:
1092110932
- `05`: Subject to tax, VAT credit PODEBI.
1092210933
taxes:
1092310934
type: array
10924-
default: IVA (VAT) transferred 16%
10935+
default:
10936+
- type: IVA
10937+
rate: 0.16
1092510938
description: |
10926-
List of taxes that must be applied to this product. If the parameter is omitted or null, it will be saved with an element representing the transferred IVA (VAT) of 16%, which is the most common tax. If an empty array is explicitly sent, it is understood that the product is exempt from taxes.
10939+
List of taxes that must be applied to this product.
10940+
10941+
Resolution when `taxes` is omitted or `null`:
10942+
- `taxability` omitted or `"02"`: IVA (VAT) transferred 16% is added.
10943+
- `taxability` in `"01"`, `"03"`, `"04"`, `"05"`, `"06"`, or `"08"`: `[]` is stored.
10944+
- `taxability = "07"`: the request is invalid; you must provide at least one transferred IEPS tax and include no IVA taxes.
10945+
10946+
If you send `taxes` explicitly, the provided array is used.
1092710947
items:
1092810948
$ref: "#/components/schemas/BaseTax"
1092910949
local_taxes:

website/openapi_v2.yaml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11061,8 +11061,7 @@ components:
1106111061
- `false`: Indica que el atributo price no incluye impuestos, por lo que aquellos impuestos a aplicar se sumarán en el precio final.
1106211062
taxability:
1106311063
type: string
11064-
default: |
11065-
'01' si el array `taxes` está vacío; '02' si el array `taxes` tiene por lo menos un elemento.
11064+
default: "02"
1106611065
enum:
1106711066
- "01"
1106811067
- "02"
@@ -11085,13 +11084,23 @@ components:
1108511084
- `08`: No traslado de IVA sin desglose de IEPS.
1108611085
taxes:
1108711086
type: array
11088-
default: IVA trasladado 16%
11087+
default:
11088+
- type: IVA
11089+
rate: 0.16
1108911090
example:
1109011091
[{
1109111092
"type": "IVA",
1109211093
"rate": 0.16
1109311094
}]
11094-
description: Lista de impuestos que deberán aplicarse a este producto. Si el parámetro se omite o es nulo, se guardará con un elemento que representa el IVA trasladado del 16%, que es el impuesto más común. En caso de mandar explícitamente un arreglo vacío, se entiende que el producto está exento de impuestos.
11095+
description: |
11096+
Lista de impuestos que deberán aplicarse a este producto.
11097+
11098+
Resolución cuando `taxes` se omite o es `null`:
11099+
- `taxability` omitido o `"02"`: se agrega IVA trasladado 16%.
11100+
- `taxability` en `"01"`, `"03"`, `"04"`, `"05"`, `"06"` o `"08"`: se guarda `[]`.
11101+
- `taxability = "07"`: la solicitud es inválida; debes enviar al menos un IEPS de traslado y no incluir IVA.
11102+
11103+
Si envías `taxes` explícitamente, se usa el arreglo enviado.
1109511104
items:
1109611105
$ref: "#/components/schemas/BaseTax"
1109711106
local_taxes:
@@ -11144,6 +11153,9 @@ components:
1114411153
- "03"
1114511154
- "04"
1114611155
- "05"
11156+
- "06"
11157+
- "07"
11158+
- "08"
1114711159
description: |
1114811160
Código que representa si el bien o servicio es objeto de impuesto o no. Este atributo corresponde al campo "ObjetoImp" en el CFDI.
1114911161

@@ -11154,8 +11166,18 @@ components:
1115411166
- `05`: Sí objeto de impuesto, IVA crédito PODEBI.
1115511167
taxes:
1115611168
type: array
11157-
default: IVA trasladado 16%
11158-
description: Lista de impuestos que deberán aplicarse a este producto. Si el parámetro se omite o es nulo, se guardará con un elemento que representa el IVA trasladado del 16%, que es el impuesto más común. En caso de mandar explícitamente un arreglo vacío, se entiende que el producto está exento de impuestos.
11169+
default:
11170+
- type: IVA
11171+
rate: 0.16
11172+
description: |
11173+
Lista de impuestos que deberán aplicarse a este producto.
11174+
11175+
Resolución cuando `taxes` se omite o es `null`:
11176+
- `taxability` omitido o `"02"`: se agrega IVA trasladado 16%.
11177+
- `taxability` en `"01"`, `"03"`, `"04"`, `"05"`, `"06"` o `"08"`: se guarda `[]`.
11178+
- `taxability = "07"`: la solicitud es inválida; debes enviar al menos un IEPS de traslado y no incluir IVA.
11179+
11180+
Si envías `taxes` explícitamente, se usa el arreglo enviado.
1115911181
items:
1116011182
$ref: "#/components/schemas/BaseTax"
1116111183
local_taxes:

0 commit comments

Comments
 (0)