---
title: "Mark Contact as Customer"
method: POST
path: "/contacts/mark-customer"
tags: ["Contacts"]
---

# Mark Contact as Customer

`POST /contacts/mark-customer`

## Request

- Base URL: `https://app.boei.help/api/v1`
- URL: `https://app.boei.help/api/v1/contacts/mark-customer`
- Auth: HTTP bearer

Flip a contact to status "customer" by email, and auto-Won any open deals
linked to that contact. If the contact does not exist yet, it is created
with status "customer". Idempotent, safe to call from a webhook fired on
every payment event.

## Request body

- object
  - `email` string, required: The customer's email address.
  - `name` string, nullable: Optional name to store when creating a new contact.

## Response `200`

- object
  - `success` boolean
  - `contact_id` integer
  - `created` boolean
  - `status_changed` boolean
  - `deals_won` integer

## Other responses

- `422`

---

[API](https://skmtc.dev/boei/apis/boei-api.md) - [All operations](https://skmtc.dev/boei/apis/boei-api/llms.txt) - [OpenAPI document](https://skmtc.dev/boei/apis/boei-api/revisions/fc439667d2d4?raw)
