---
agentTools:
  projectIndex: https://usegraph.readme.io/llms.txt
---

# Mock Card Charge

This endpoint is only available on the sandbox environment

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Core API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.useoval.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/card/mock": {
      "put": {
        "summary": "Mock Card Charge",
        "description": "This endpoint is only available on the sandbox environment",
        "operationId": "mock-card-charge",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "card_id",
                  "amount"
                ],
                "properties": {
                  "card_id": {
                    "type": "string"
                  },
                  "amount": {
                    "type": "integer",
                    "description": "Amount should be in subunits, e.g., $1 should be sent as 100.",
                    "default": 500,
                    "format": "int32"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data\": null,\n    \"message\": \"Card charge mocked successfully\",\n    \"meta\": null,\n    \"status\": \"success\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {},
                    "message": {
                      "type": "string",
                      "example": "Card charge mocked successfully"
                    },
                    "meta": {},
                    "status": {
                      "type": "string",
                      "example": "success"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "637d9e0aeb8873003ad62eac:642b933c918c74001f56c383"
}
```