Setup Mandate
POST
/billing/setup-mandate
const url = 'https://api.mengi.cloud/billing/setup-mandate';const options = {method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.mengi.cloud/billing/setup-mandate \ --header 'Content-Type: application/json' \ --data '{}'Create a verification payment (1 EUR) to set up or update mandate. This verifies the payment method and establishes a mandate for recurring charges. Can also be used to update an existing payment method.
Request Body
Section titled “Request Body ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
MandateSetupResponse
object
checkout_url
required
Checkout Url
string
Example generated
{ "checkout_url": "example"}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}