API Reference
Customers
Get Customer [GET]

Get Customer

https://sandboxapi.onbrails.com/api/v1/customers/{customer_id} (opens in a new tab)

Retrieve details of a single customer using the customer id.

Path Parameters

ParametertypeRequired
customer_idstring

Request

Customers/Get Customer [GET]
curl --request GET \
     --url https://sandboxapi.onbrails.com/api/v1/customers/customer_id \
     --header 'Authorization: Bearer  YOUR_SECRET_KEY' \
     --header 'accept: application/json'

Responses

🟢 200 - Result example
{
"status": true,
"message": "successfully fetched customer",
"data": {
  "id": "4bf15cb3-97a6-4072-9683-aa3c6d7233df",
  "createdAt": "2023-08-15T14:20:45.746Z",
  "updatedAt": "2023-08-15T14:20:45.746Z",
  "firstName": null,
  "lastName": null,
  "email": "customerEmail@mail.com",
  "phone": null,
  "countryCode": null,
  "blacklist": false
  }
}