Generar Facturas
1 min
Generar Factura
POST
https://staging-api.mobbex.com/p/billing
Body Parameters
- typestringrequiredDescription
- customerObjectDescription
- itemsstringDescription
- totalstringDescription
- conditionstringDescription
- datestringDescription
- referencestringDescription
- webhookstringDescription
json
{
"type": "invoice",
"date": {
"day": 12,
"month": 10,
"year": 2021
},
"currency": "ARS",
"condition": {
"type": "credit_card",
"installments": 12
},
"total": 1000.10,
"reference": "unique_id:123",
"customer": {
"type": "arg.cuit",
"id": "20121231235",
"email": "[email protected]",
"phone": "12123123",
"street": "",
"streetNumber": "",
"addressNote": "",
"state": "",
"city" : "",
"zipCode": "5000"
},
"items": [
{
"quantity": 1,
"description": "Producto 1",
"unitPrice": 12.50,
"vat": "arg.21",
"discount": 1,
"surcharge": 2
}
],
"surcharge": {
"description": "Esto es un Recargo General",
"total": 10.2
},
"discount": {
"description": "Esto es un Descuento General",
"total": 10.2
},
"webhook": ""
}200
{
"result": true,
"data": {
"uid": "",
"status": "COMPLETED",
"authorizationMode": "online",
"number": "00005-00000000001",
"authorizationCode": "1234567899",
"authorizationCodeExpiration": "22/10/2021",
"message": "OK",
"pdf": "https://...",
"extras": {
"fiscalQrCode": ""
}
}
}404
{
"message": "Ain't no cake like that."
}