Skip to main content
POST
/
merchant
/
sandbox
{
  "success": false,
  "error": {
    "status": 401,
    "code": "UNAUTHORISED",
    "message": "Invalid API key"
  },
  "data": null
}
Toggle sandbox mode for testing your integration.
sandboxMode
boolean
required
Whether to enable sandbox mode
success
boolean
Indicates if the request was successful
data
object
Sandbox mode status

Example Request

curl -X POST https://api.transaction.gg/merchant/sandbox \
  -H "Authorization: Bearer sk_your_secret_key" \
  -H "Content-Type: application/json" \
  -d '{
    "sandboxMode": true
  }'

Example Response

{
  "success": true,
  "data": {
    "sandboxMode": true,
    "message": "Sandbox mode enabled"
  }
}

Error Responses

{
  "success": false,
  "error": {
    "status": 401,
    "code": "UNAUTHORISED",
    "message": "Invalid API key"
  },
  "data": null
}