Rewrd API
  1. Customers
Rewrd API
  • Customers
    • Create or Update a Customer
      POST
    • List Customers
      GET
    • Get a Customer
      GET
    • Update a Customer
      PUT
    • Restrict a Customer
      PATCH
    • Unrestrict a Customer
      PATCH
  • Merchant
    • Get Merchant Configuration
      GET
    • Update Merchant Configuration
      PATCH
    • List Earning Rules
      GET
    • Get Earning Rule Details
      GET
    • Get IP Whitelist
      GET
    • Update IP Whitelist
      PUT
    • Get Merchant Analytics
      GET
  • Points
    • Credit Points to a Customer
      POST
    • Redeem Points
      POST
    • Get Customer Transaction History
      GET
  1. Customers

Update a Customer

PUT
/customers/{uid}
Updates the profile information of an existing customer. Only the fields provided in the request body are updated; omitted fields are left unchanged.
Note: The customer must have an active status to be updated. Restricted customers must be unrestricted first.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
Customer updated successfully.
Body

🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/customers/cust_abc123def456' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "jane.new@example.com",
    "phone_number": "+2349087654321",
    "first_name": "Janet",
    "last_name": "Smith",
    "date_of_birth": "1995-06-15"
}'
Response Response Example
200 - Example 1
{
    "status": true,
    "message": "Customer updated successfully",
    "data": {
        "uid": "cust_abc123def456",
        "email": "jane@example.com",
        "phone_number": "+2348012345678",
        "first_name": "Jane",
        "last_name": "Doe",
        "date_of_birth": "1995-06-15",
        "status": "active",
        "points_balance": 1500,
        "created_at": "2026-01-15T10:30:00.000Z"
    }
}
Modified at 2026-02-25 12:17:15
Previous
Get a Customer
Next
Restrict a Customer
Built with