Skip to main content
PUT
/
v1
/
customer
/
permissions
/
{customerId}
Update customer permissions
curl --request PUT \
  --url https://staging.api.payluk.ng/v1/customer/permissions/{customerId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "canBuy": true,
  "canSell": false
}
'
{
  "status": 200,
  "message": "Customers fetched successfully",
  "data": {
    "id": "665f1b2c9a1e4d0012ab3c01",
    "canBuy": true,
    "canSell": false
  }
}

Authorizations

Authorization
string
header
required

Your secret key as a Bearer token. The key prefix selects the environment: sk_test_... (test) or sk_live_... (live).

Path Parameters

customerId
string
required

The merchant customer's unique identifier.

Body

application/json
canBuy
boolean
Example:

true

canSell
boolean
Example:

false

Response

Permissions updated.

status
integer
Example:

200

message
string
Example:

"Customer fetched successfully"

data
object