When authenticated with a test key (rtu_test_sk_...), responses include an explicit "environment": "sandbox" property indicating that the transaction was executed in the mock testing environment:
When your request body fails validation, the API returns a detailed field-level error map:
{ "message": "The phone number field must be 11 digits.", "errors": { "phone_number": [ "The phone number field must be 11 digits." ], "type": [ "The type field is required." ] }}
Always check the errors object on 422 responses. It tells you exactly which fields failed and why.