Example response

This is an example response from GET /v1/fixtures.

JSON
{
  "ok": true,
  "request_type": {
    "id": "rt_01j9x2...",
    "method": "POST",
    "path_pattern": "/v1/charges/{id}",
    "is_dynamic": true
  },
  "count": 2,
  "fixtures": [
    {
      "id": "cap_01j9...",
      "captured_at": "2025-11-12T10:22:04Z",
      "method": "POST",
      "path": "/v1/charges/ch_abc123",
      "status": 200,
      "duration_ms": 84,
      "request": {
        "headers": { "content-type": "application/json" },
        "body": "{\"amount\":0,\"currency\":\"usd\",\"customer\":\"<masked>\"}"
      },
      "response": {
        "headers": { "content-type": "application/json" },
        "body": "{\"id\":\"ch_abc123\",\"status\":\"succeeded\",\"amount\":4200}"
      }
    },
    {
      "id": "cap_01j8...",
      "captured_at": "2025-11-10T08:14:51Z",
      "method": "POST",
      "path": "/v1/charges/ch_def456",
      "status": 402,
      "duration_ms": 61,
      "request": {
        "headers": { "content-type": "application/json" },
        "body": "{\"amount\":0,\"currency\":\"usd\",\"customer\":\"<masked>\"}"
      },
      "response": {
        "headers": { "content-type": "application/json" },
        "body": "{\"error\":{\"code\":\"card_declined\",\"message\":\"Your card was declined.\"}}"
      }
    }
  ]
}

request.body and response.body are each a JSON string holding the masked body as it was captured, not a parsed object.