ENVIAR FACTURA GENERADA OFFLINE
POST/api/documents/send
Para enviar a Sunat la factura generada en modo offline, puede usar el siguiente servicio, necesitará la url, el token y el external_id del documento generado.
Ejemplo:
- Método: POST
- URL: http://demo.fastura.app/api/documents/send
- TOKEN: HOHYgwd4atPalTxqi2IIspythpLAU7eP239oByfjk9VuveiOpfUTm4Yg0Szt
Request
- application/json
- application/xml
- application/x-www-form-urlencoded
Body
required
- JSON A ENVIAR
external_idstringrequired
Example:
2dded172-cd17-4078-9c88-10a9b1177f2d
Body
required
- JSON A ENVIAR
external_idstringrequired
Example:
2dded172-cd17-4078-9c88-10a9b1177f2d
Body
required
- JSON A ENVIAR
external_idstringrequired
Example:
2dded172-cd17-4078-9c88-10a9b1177f2d
Responses
- 200
- 400
- 422
JSON RESPUESTA
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
successboolean
Example:
true
data
object
required
numberstring
Example:
F001-15
filenamestring
Example:
20415963255-01-F001-15
external_idstring
Example:
7d9feb66-16e9-47a9-86fd-ebccdb662678
links
object
cdrstring
Example:
http://demo26.multifacturalonew.oo:8084/downloads/document/cdr/7d9feb66-16e9-47a9-86fd-ebccdb662678
response
object
codestring
Example:
0
descriptionstring
Example:
La Factura numero F001-15, ha sido aceptada
notesstring[]
Example:
[]
{
"success": true,
"data": {
"number": "F001-15",
"filename": "20415963255-01-F001-15",
"external_id": "7d9feb66-16e9-47a9-86fd-ebccdb662678"
},
"links": {
"cdr": "http://demo26.multifacturalonew.oo:8084/downloads/document/cdr/7d9feb66-16e9-47a9-86fd-ebccdb662678"
},
"response": {
"code": "0",
"description": "La Factura numero F001-15, ha sido aceptada",
"notes": []
}
}
- Schema
- Example (from schema)
Schema
successboolean
Example:
true
data
object
required
numberstring
Example:
F001-15
filenamestring
Example:
20415963255-01-F001-15
external_idstring
Example:
7d9feb66-16e9-47a9-86fd-ebccdb662678
links
object
cdrstring
Example:
http://demo26.multifacturalonew.oo:8084/downloads/document/cdr/7d9feb66-16e9-47a9-86fd-ebccdb662678
response
object
codestring
Example:
0
descriptionstring
Example:
La Factura numero F001-15, ha sido aceptada
notesstring[]
Example:
[]
<root>
<success>true</success>
<data>
<number>F001-15</number>
<filename>20415963255-01-F001-15</filename>
<external_id>7d9feb66-16e9-47a9-86fd-ebccdb662678</external_id>
</data>
<links>
<cdr>http://demo26.multifacturalonew.oo:8084/downloads/document/cdr/7d9feb66-16e9-47a9-86fd-ebccdb662678</cdr>
</links>
<response>
<code>0</code>
<description>La Factura numero F001-15, ha sido aceptada</description>
</response>
</root>
Invalid input
Validation exception