POST
/
api
/
v1
/
template
/
create-contract
Create Contract Api
curl --request POST \
  --url https://api.justpaid.io/api/v1/template/create-contract \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "template_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "option_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "service_quantities": [
    {
      "service_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "quantity": 2
    }
  ],
  "contract_start_date": "2023-12-25",
  "invoice_start_date": "2023-12-25"
}'
{
  "contract_uuid": "123e4567-e89b-12d3-a456-426614174000",
  "message": "Contract created successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Schema for contract creation request.

Response

201
application/json

Contract created successfully

Schema for contract creation response.