API Reference
Customers
List Customer [GET]

Create Customer

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

List all your customers

Request

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

Responses

🟢 200 - Result example
{
  "status": true,
  "message": "successfully fetched all customers",
  "data": {
      "customers": [
          {
              "id": "c38f9555-6cd6-4e2b-9d7c-e4d4f2063843",
              "createdAt": "2023-08-16T16:54:50.747Z",
              "updatedAt": "2023-08-16T16:54:50.747Z",
              "firstName": null,
              "lastName": null,
              "email": "Jamie_Boyer22@hotmail.com",
              "phone": null,
              "countryCode": null,
              "blacklist": false
          },]
}