Skip to main content
POST
/
finance
/
deals
/
create
Create a new deal
curl --request POST \
  --url http://134.209.118.139:3002/finance/deals/create \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "dealname": "CAMON 50 MONTHLY",
  "totalamount": 1510000,
  "deposit": 550000,
  "monthly": 160000,
  "months": 6
}
'
{
  "message": "No token provided."
}

Authorizations

x-access-token
string
header
required

JWT token obtained from POST /api/auth/signin

Body

application/json
dealname
string
required
Example:

"CAMON 50 MONTHLY"

totalamount
number
required
Example:

1510000

deposit
number
required
Example:

550000

monthly
number
required
Example:

160000

months
integer
Example:

6

Response

Deal created