Skip to content

Get a customer by ID

Request

Fetches a single customer document by its MongoDB ObjectId.

Security
oauth2ClientCredentials(Required scopes: customers:read)
Path
idstringrequired

Customer MongoDB ObjectId

Example:64f4205154a6357a7f85f656
Headers
business_idstringrequired

Business identifier for the request

curl -i -X GET \
  https://developer.boyahq.com/_mock/v2/openapi/customers/64f4205154a6357a7f85f656 \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'business_id: string'

Responses

Customer returned successfully