Decide the outcome of a test invoice that waits for one
For invoices issued with a scenario that stays pending (pending, sunat_1033). The invoice then reaches its outcome through the same path a real answer takes; follow it with GET /v1/events or GET /v1/invoices/{id}?wait=.
POST
https://api.invox.page/v1/test/invoices/{id}/resolveAuthorization
Path parameters
Header parameters
Request body JSON required
Returns
202
The resolution was taken; the invoice is on its way to its outcome.
JSON
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
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 · test_only_route: This route only exists in a test organization
JSON
404
not_found: The resource does not exist in this organization
JSON
409
invoice_not_resolvable: The invoice is not waiting for a test resolution
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