Put the simulated provider account in a condition, or lift it
A condition is a state of the provider ACCOUNT (account_suspended, no_balance, credential_invalid, config_invalid, outage), not of one invoice: it lasts until it is lifted and wins over the Test-Scenario header. While an account condition lasts, invoices are still taken (202) and stay processing, never failed or rejected; GET /v1/provider shows the account as blocked and provider.account_blocked is written once. Lift it with condition: none, or set recover: { mode: "after_requests", requests: N } and it lifts itself; the invoices then go out by themselves and provider.account_recovered is written once. GET /v1/test/scenarios lists the conditions.
PUT
https://api.invox.page/v1/test/providerAuthorization
Header parameters
Request body JSON required
Returns
200
The simulated provider as it was left.
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 · test_condition_unknown: The condition asked of the simulated provider does not exist
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
provider_not_connected: The issuer has no provider connection
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