Setup Org Mandate
POST
/billing/org/{slug}/setup-mandate
const url = 'https://api.mengi.cloud/billing/org/example/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/org/example/setup-mandate \ --header 'Content-Type: application/json' \ --data '{}'Set up (or update) the organization’s payment mandate. Resources owned by the organization bill this subscription. Requires ADMIN or OWNER.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
Slug
string
Request Body
Section titled “Request Body”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
MandateSetupResponse
object
checkout_url
required
Checkout Url
string
Examplegenerated
{ "checkout_url": "example"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}