INVALID_ENVIRONMENT
400invalid_requestThe environment value is not recognized.
Cause
The environment field carried something other than the two accepted values.
How to fix it
Send exactly `sandbox` or `production` — the field is snake_case and case-sensitive.
Example response
400 INVALID_ENVIRONMENT
JSON
{
"error_code": "INVALID_ENVIRONMENT",
"error_type": "invalid_request",
"error_message": "The environment value is not recognized.",
"hint": "Send exactly `sandbox` or `production` — the field is snake_case and case-sensitive.",
"docs_url": "https://docs.billerapi.com/errors/INVALID_ENVIRONMENT",
"request_id": "d94f5e2a-8c3b-4f1e-9a7d-6b2c1e0f8a34"
}Related
- Error handling — the error envelope shape and how to parse it
- Error code reference — every stable error code
Canonical docs URL: https://docs.billerapi.com/errors/INVALID_ENVIRONMENT
Was this page helpful?