PATCH
/
limits
/
default
/
update
curl --request PATCH \
  --url https://waas-staging.cafeone.ng/api/v1/limits/default/update \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "currencyid": "<string>",
  "productid": "<string>",
  "customerid": "<string>",
  "singleTransactionLimit": "<string>",
  "frequency": 123,
  "dailyTransactionLimit": 123,
  "monthlyTransactionLimit": 123,
  "id": "<string>"
}'

Request Body

currencyid
string
required

The unique identifier of the currency Example: ‘e678b629-fb56-11ef-a8a9-6045bd97b81d’

productid
string
required

The unique identifier of the product
Example: ‘3fa85f64-5717-4562-b3fc-2c963f66afa6’

customerid
string
required

The unique identifier of the product
Example: ‘3fa85f64-5717-4562-b3fc-2c963f66afa6’

singleTransactionLimit
string
required

The unique identifier of the product
Example: 500

frequency
number
required

Example: 0

dailyTransactionLimit
number
required

Example: 0

monthlyTransactionLimit
number
required

Example: 0

id
string
required

Example: ‘3fa85f64-5717-4562-b3fc-2c963f66afa6’

Response

✅ Success Response

Status Code: 200 OK

{
  "code": "00",
  "success": true,
  "message": "Limits updated 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
}