Skip to main content
POST
/
finance
/
customers
/
register
Register a new customer
curl --request POST \
  --url http://134.209.118.139:3002/finance/customers/register \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "fullname": "Eric Nanduhu",
  "telephone": "0786038292",
  "dealid": 176,
  "deposit": 550000,
  "guarantorname": "Mwesigwa Julius",
  "guarantorcontact": "0786038292",
  "imei": "351920920269424",
  "payg": "DFVCXG6R"
}
'
{
  "message": "Customer registered successfully",
  "customerid": 663
}

Authorizations

x-access-token
string
header
required

JWT token obtained from POST /api/auth/signin

Body

application/json
fullname
string
required
Example:

"Eric Nanduhu"

telephone
string
required
Example:

"0786038292"

dealid
integer
required
Example:

176

deposit
number
required
Example:

550000

guarantorname
string
required
Example:

"Mwesigwa Julius"

guarantorcontact
string
required
Example:

"0786038292"

imei
string
required
Example:

"351920920269424"

payg
string
required
Example:

"DFVCXG6R"

Response

Customer registered successfully