Create plan checkout
curl --request POST \
--url https://mcp.enricho.co/api/billing/checkout/plan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://mcp.enricho.co/api/billing/checkout/plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://mcp.enricho.co/api/billing/checkout/plan"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"result": {
"checkout_url": "<string>",
"item": "<string>",
"price_usd": "<string>",
"credits": 123,
"note": "<string>"
},
"message": "<string>"
}{
"success": false,
"result": {
"code": "<string>"
},
"message": "<string>"
}{
"success": false,
"result": {
"code": "<string>"
},
"message": "<string>"
}{
"success": false,
"result": {
"code": "<string>"
},
"message": "<string>"
}{
"success": false,
"result": {
"code": "<string>"
},
"message": "<string>"
}{
"success": false,
"result": {
"code": "<string>"
},
"message": "<string>"
}{
"success": false,
"result": {
"code": "<string>"
},
"message": "<string>"
}{
"success": false,
"result": {
"code": "<string>"
},
"message": "<string>"
}{
"success": false,
"result": {
"code": "<string>"
},
"message": "<string>"
}Billing and usage
Create plan checkout
Hosted monthly self-serve subscription payment link.
POST
/
api
/
billing
/
checkout
/
plan
Create plan checkout
curl --request POST \
--url https://mcp.enricho.co/api/billing/checkout/plan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://mcp.enricho.co/api/billing/checkout/plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://mcp.enricho.co/api/billing/checkout/plan"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"result": {
"checkout_url": "<string>",
"item": "<string>",
"price_usd": "<string>",
"credits": 123,
"note": "<string>"
},
"message": "<string>"
}{
"success": false,
"result": {
"code": "<string>"
},
"message": "<string>"
}{
"success": false,
"result": {
"code": "<string>"
},
"message": "<string>"
}{
"success": false,
"result": {
"code": "<string>"
},
"message": "<string>"
}{
"success": false,
"result": {
"code": "<string>"
},
"message": "<string>"
}{
"success": false,
"result": {
"code": "<string>"
},
"message": "<string>"
}{
"success": false,
"result": {
"code": "<string>"
},
"message": "<string>"
}{
"success": false,
"result": {
"code": "<string>"
},
"message": "<string>"
}{
"success": false,
"result": {
"code": "<string>"
},
"message": "<string>"
}curl -X POST 'https://mcp.enricho.co/api/billing/checkout/plan' \
-H 'Authorization: Bearer enr_YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"plan":"pro"}'
plan must be exactly pro, growth or scale. No quantity, customer ID or card details are needed. Invalid/missing plan values return 422. An already-active plan returns 409 (validation_failed); buy packs for more credits without changing that plan.
The result contains checkout_url, item, price_usd (formatted with a dollar sign), credits and note. Creating checkout consumes no credits and does not charge a card. Open the hosted link to pay. Monthly credits refill on the first of each month UTC; switching plans ends the old subscription when confirmed.
Wait for payment confirmation, then read usage. Checkout HTTP 200 alone does not change your plan. Payment-provider failures can return 502; unavailable checkout returns 503.Authorizations
apiKeyheaderKey
Enricho API key (enr_...)
Body
application/json
Send JSON with Content-Type: application/json.
Exact lowercase self-serve plan SKU.
Available options:
pro, growth, scale