Customer status API
Automatically flag a contact as a paying customer in Boei whenever they pay in your billing system, so your CRM can record the payment. This does not by itself change the agent's routing or responses.
For Stripe, Mollie, Paddle, Chargebee, Shopify, or a compatible custom JSON event, the built-in Payment integrations are the simplest option. Use this API endpoint when you need full control from your own backend, Zapier, n8n, Make, or another system.
How to get there: Go to Settings → API Keys in the left menu to generate a key. The endpoint is documented in the interactive API docs under Contacts → Mark Contact as Customer.
Endpoint
POST https://app.boei.help/api/v1/contacts/mark-customer
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"email": "customer@example.com",
"name": "Jane Doe"
}
email is required. name is optional and only used if Boei has to create the contact.
Response
{
"success": true,
"contact_id": 123,
"created": false,
"status_changed": true,
"deals_won": 2
}
created:trueif Boei had no contact for that email yet and created one.status_changed:trueif the status flipped this call.falseif the contact was already a customer.deals_won: number of open deals for this contact that marked Won. Archived deals and deals already in Won are skipped.
The endpoint is idempotent, so it's safe to fire on every payment event. Repeat calls for the same email just return status_changed: false and don't create duplicate contacts.
Wiring it up
From Stripe
In your Stripe webhook handler for customer.subscription.created, invoice.paid, or checkout.session.completed:
curl -X POST https://app.boei.help/api/v1/contacts/mark-customer \
-H "Authorization: Bearer $BOEI_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"email\": \"$CUSTOMER_EMAIL\", \"name\": \"$CUSTOMER_NAME\"}"
From Zapier / Make / n8n
Trigger: "New paying customer" (in Stripe, Chargebee, Shopify, etc.).
Action: Webhook → POST with the URL, headers, and body above. Map email and name from the trigger event.
From your own backend
Fire the request in the same code path that grants the customer access to your product after a successful charge.
Behavior details
- Tenant scoping. The API key identifies your Boei account. The endpoint only reads and writes contacts and deals under that account. It cannot reach other accounts' data.
- Won result. Matched deals receive the Won outcome. This does not require a stage named Won.
- Contact creation. If the email isn't in your contacts yet, a new contact is created with
status = customerandsource = api. This is the intended "upsert" behavior so a payment integration works even for customers who never chatted with your bot. - Deal side-effect. Matching non-archived deals in the selected pipeline are marked Won, unless already Won. If a specific deal should stay open, archive it or unlink it from the contact first.
Errors
401 unauthorized: API key missing or invalid.403: your plan doesn't include API access. Upgrade or contact support.422:emailwas missing or not a valid email.429: rate limit hit. Wait a minute and retry.