facturapi-node icon indicating copy to clipboard operation
facturapi-node copied to clipboard

Error 400 sin sugerencia en creación de Factura de Ingreso

Open josuerojasoyervides opened this issue 2 years ago • 0 comments

Al momento de crear una Factura de ingreso, me retorna un error 400 con esta respuesta

Error: (0 , big_js_1.default)(...).plus is not a function
    at errorInterceptor (C:\Users\ikari\Documents\Estacionamiento\API\node_modules\facturapi\src\wrapper.js:14:27)

Versión:

"facturapi": "^3.2.0",

Dejo mi objeto de tipo Factura Ingreso tapando información de cliente. Cabe remarcar que este mismo objecto funcionaba en la v1, se agregó: "tax_system" al objecto de "customer" "taxability" al objeto de "product"

{
	"customer": {
		"email": "Mi email",
		"legal_name": "Mi nombre",
		"tax_id": "Mi RFC",
		"tax_system": "616",
		"address": {
			"exterior": null,
			"interior": null,
			"neighborhood": null,
			"street": null,
			"zip": "Mi zip"
		},
		"phone": null
	},
	"items": [
		{
			"product": {
				"description": "Una semana",
				"price": 689.66,
				"product_key": "95121644",
				"tax_included": false,
				"unit_key": "WEE",
				"taxes": [
					{
						"rate": 0.16,
						"type": "IVA",
						"factor": "Tasa",
						"withholding": false
					}
				],
				"taxability": "02",
				"local_taxes": [
					{
						"type": "ISR",
						"rate": 0.0125,
						"withholding": true
					},
					{
						"type": "IVA",
						"rate": 0.16,
						"withholding": true
					}
				]
			},
			"quantity": 1,
			"discount": 0
		}
	],
	"payment_form": "99",
	"pdf_custom_section": "",
	"payment_method": "PPD",
	"use": "G03"
}

josuerojasoyervides avatar Feb 16 '22 17:02 josuerojasoyervides