billing.addPaymentMethod
post/v1/billing/payment-methods
billing.addPaymentMethod
Request
Body
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"payment_method": {
"type": "string"
}
},
"required": [
"payment_method"
]
}
}
}
}Responses
200No description
- Schema
Schema Structure
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"enum": [
"Payment method added successfully"
]
}
},
"required": [
"success",
"message"
]
}
422Validation error
- Schema
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"
]
}