Run in Apidog
This API enables you to create a new group code for a client, which is essential for organizing and managing client accounts under a specific group. This functionality is vital for structuring client data and streamlining subsequent transactions and reporting. Request Body # The request body is a JSON object with the following fields: Field Name Data Type Required Description clientIdinteger true Unique identifier for the client. typestring true The type of the group code (e.g., "Normal"). descriptionstring true A brief description of the group code. productIdinteger true Unique identifier for the associated product. customerNubanboolean true Indicates whether a custom NUBAN should be enforced.
Response Body # The response is a JSON object containing the details of the created group code. Field Name Data Type Description clientIdinteger Unique identifier for the client. typestring The type of the group code (e.g., "Normal"). descriptionstring A brief description of the group code. productIdinteger Unique identifier for the associated product. customerNubanboolean Indicates whether a custom NUBAN was enforced.
Request Body Params application/json
{
"clientId" : 2 ,
"type" : "Normal" ,
"description" : "Jumia Pay App" ,
"productId" : 101 ,
"customerNuban" : false
} Request Code Samples
curl --location --request POST '/admin/groupcodes' \
--header 'Content-Type: application/json' \
--data-raw '{
"clientId":2,
"type": "Normal",
"description": "Jumia Pay App",
"productId": 101,
"customerNuban": false
}' Responses application/json Generate Code
{
"clientId" : 2 ,
"productId" : 101 ,
"type" : "Normal" ,
"groupCode" : "24JRD25EPC" ,
"description" : "Jumia Pay App" ,
"enforceExternalId" : false
} Modified at 2025-03-15 08:25:34