Skip to main content

billing.purchaseCredits

post/v1/billing/credits/purchase

billing.purchaseCredits

Request

Body

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "minimum": 10,
            "maximum": 10000
          }
        },
        "required": [
          "amount"
        ]
      }
    }
  }
}

Responses

200No description
Schema Structure
{
"type": "object"
}
422Validation error
Schema Structure
{
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Errors overview."
},
"errors": {
"type": "object",
"description": "A detailed description of each field that failed validation.",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"required": [
"message",
"errors"
]
}