POST
/
walletgroups
/
add
curl --request POST \
  --url https://waas-staging.cafeone.ng/api/v1/walletgroups/add \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "id": "<string>",
  "name": "<string>",
  "walletGroupFeatureDto": "<string>"
}'

Request Body

id
string

The unique identifier for the wallet group.
Example: “d1d0e7a1-0830-11f0-a8a9-6045bd97b81d”

name
string
required

The name of a wallet group.
Example: “string”

walletGroupFeatureDto
string

An array of feature object associated with the wallet group.

Response

✅ Success Response

Status Code: 200 Ok
{
  "code": "00",
  "success": true,
  "message": "Created Successfully",
  "data": {
    "id": "d1d0e7a1-0830-11f0-a8a9-6045bd97b81d",
    "name": "string",
    "walletGroupFeatureDto": null
  }
}

❌ Error Responses

Status Code: 400 Bad Request
{
  "code": "400",
  "success": false,
  "message": "Invalid request data",
  "data": null
}

Status Code: 500 Internal Server Error

{
  "code": "500", 
  "success": false,
  "message": "An unexpected error occurred",
  "data": null
}