The latest void of an invoice
status is processing until SUNAT answers, then accepted, rejected or failed; settled says whether anything more will happen by itself, status_reason why it ended without voiding, next_step what it will do next and what_next what to do. The invoice is voided only when the void is accepted. 404 when no void was ever requested for the invoice.
GET
https://api.invox.page/v1/invoices/{id}/voidAuthorization
Path parameters
Header parameters
Returns
200
The void.
JSON
400
organization_required: This credential needs to say which organization it acts on · validation_failed: The request is not valid
JSON
401
unauthenticated: No credential was sent · invalid_credential: The credential is not valid
JSON
403
missing_scope: The credential lacks the permission this operation requires · organization_mismatch: The X-Organization header names another organization than the key's
JSON
404
not_found: The resource does not exist in this organization
JSON
429
rate_limited: Too many requests
JSON
500
internal_error: The service failed
JSON
503
service_unavailable: The service cannot answer right now
JSON