Open billing portal
curl --request GET \
--url https://mcp.enricho.co/api/billing/portal \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://mcp.enricho.co/api/billing/portal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://mcp.enricho.co/api/billing/portal"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"result": {
"portal_url": "<string>",
"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>"
}Billing and usage
Get billing portal
Hosted customer portal for payment methods, invoices and cancellation.
GET
/
api
/
billing
/
portal
Open billing portal
curl --request GET \
--url https://mcp.enricho.co/api/billing/portal \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://mcp.enricho.co/api/billing/portal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://mcp.enricho.co/api/billing/portal"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"result": {
"portal_url": "<string>",
"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>"
}curl 'https://mcp.enricho.co/api/billing/portal' \
-H 'Authorization: Bearer enr_YOUR_API_KEY'
result contains portal_url and note. Open the hosted portal to update payment methods, download invoices or cancel a self-serve subscription. This GET request itself does not cancel anything.
404 (not_found) means no self-serve billing customer exists yet, or the plan is managed directly by Enricho. Subscribe or buy credits to establish a self-serve customer; for managed-plan invoices or changes contact support@enricho.co. Payment-provider failures can return 502; unavailable billing returns 503.