Skip to main content
POST
/
finance
/
customers
/
approve
Approve or reject a customer
curl --request POST \
  --url http://134.209.118.139:3002/finance/customers/approve \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "customerid": 662,
  "action": "APPROVE"
}
'
{
  "message": "No token provided."
}

Authorizations

x-access-token
string
header
required

JWT token obtained from POST /api/auth/signin

Body

application/json
customerid
integer
required
Example:

662

action
enum<string>
required
Available options:
APPROVE,
REJECT
Example:

"APPROVE"

Response

Approval result