Skip to main content
POST
/
api
/
v1
/
hub
/
shop
/
{shopId}
/
customers
Create Customer
curl --request POST \
  --url https://api.sabivendor.com/api/v1/hub/shop/{shopId}/customers \
  --header 'Content-Type: application/json' \
  --header 'X-Shop-API-Key: <x-shop-api-key>' \
  --data '
{
  "customerFullName": "<string>",
  "phoneNumber": "<string>",
  "email": "<string>",
  "address": "<string>"
}
'
{
  "status": "success",
  "message": "Customer created successfully",
  "data": {
    "id": "c3b07384-d113-4e4e-9828-4e4e98284e4e",
    "customerFullName": "John Doe",
    "phoneNumber": "08012345678",
    "email": "john@example.com"
  }
}
Registers a new customer record manually in the store database.

Authorizations

X-Shop-API-Key
string
required
Your Secret API Key (sk_live_... or sk_test_...) generated from the Developer dashboard. Must be kept secret.

Path Parameters

shopId
string
required
The unique UUID of the shop.

Request Body (JSON)

customerFullName
string
required
Full name of the customer.
phoneNumber
string
required
Contact phone number.
email
string
Email address.
address
string
Delivery address.
{
  "status": "success",
  "message": "Customer created successfully",
  "data": {
    "id": "c3b07384-d113-4e4e-9828-4e4e98284e4e",
    "customerFullName": "John Doe",
    "phoneNumber": "08012345678",
    "email": "john@example.com"
  }
}