Record that an accepted invoice was reversed by hand at the provider
For an invoice that was reversed directly at the provider: because its void window passed, or because someone reversed it by hand in the provider's portal. Within the window, the normal path is to void it here (POST /v1/invoices/{id}/void). It is a NOTE, not a fiscal state: nothing is sent anywhere and the invoice stays accepted. Only an accepted invoice with no void in process can be marked, once; from then on it is not voided through this service. Who recorded it and the note stay written (event invoice.externally_reversed).
POST
https://api.invox.page/v1/invoices/{id}/mark_externally_reversedAuthorization
Path parameters
Header parameters
Request body JSON required
Returns
200
A retry: the invoice as the first request left it.
201
The invoice, with the note.
400
organization_required: This credential needs to say which organization it acts on · validation_failed: The request is not valid · malformed_request: The request body is not valid JSON · idempotency_key_required: This write needs an Idempotency-Key header
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 · organization_archived: The organization is archived
JSON
404
not_found: The resource does not exist in this organization
JSON
409
invoice_not_voidable: Only an invoice accepted by SUNAT can be voided · already_voided: The invoice is already voided · void_in_progress: A void of this invoice is already in progress · invoice_externally_reversed: The invoice was recorded as reversed by hand at the provider · invoice_held: The invoice is held: the provider gave an answer the service cannot interpret
JSON
422
idempotency_key_reused: This Idempotency-Key was already used with a different request
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