PUT
/
limits
/
customer
/
add
curl --request PUT \
  --url https://waas-staging.cafeone.ng/api/v1/limits/customer/add \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "currencyId": "<string>",
  "productId": "<string>",
  "customerId": "<string>",
  "singleTransactionLimit": 123,
  "frequency": 123,
  "dailyTransactionLimit": 123,
  "monthlyTransactionLimit": 123,
  "id": "<string>"
}'

Request Body

currencyId
string
required

The unique identifier for the currency (e.g., “USD”, “EUR”).

productId
string
required

The unique identifier for the product associated with the limit.

customerId
string
required

The unique identifier for the customer to whom the limit applies.

singleTransactionLimit
number
required

The maximum amount allowed for a single transaction.

frequency
number
required

The number of transactions allowed within the specified period.

dailyTransactionLimit
number
required

The maximum total amount allowed for transactions in a single day.

monthlyTransactionLimit
number
required

The maximum total amount allowed for transactions in a single month.

id
string
required

The unique identifier for the limit being added.

Response

✅ Success Response

Status Code: 200 OK

{
  "code": "00",
  "success": true,
  "message": "Limits added successfully",
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "currencyId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "customerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "singleTransactionLimit": 0,
    "frequency": 0,
    "dailyTransactionLimit": 0,
    "monthlyTransactionLimit": 0
  }
}

❌ Error Responses

Status Code: 400 Bad Request

{
  "code": "-32",
  "success": false,
  "message": "Invalid Frequency specified",
  "data": null
}