curl --request POST \
--url https://api.cadanapay.com/v1/businesses/{businessId}/reserves \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "LOCK",
"type": "SECURITY_DEPOSIT",
"personId": "550e8400-e29b-41d4-a716-446655440000",
"amount": {
"value": "10.00",
"currency": "USD"
},
"idempotencyKey": "550e8400-e29b-41d4-a716-446655440002",
"description": "Security deposit for new employee"
}
'{
"disbursementId": "550e8400-e29b-41d4-a716-446655440001"
}Lock or release business reserves (e.g. security deposits)
curl --request POST \
--url https://api.cadanapay.com/v1/businesses/{businessId}/reserves \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "LOCK",
"type": "SECURITY_DEPOSIT",
"personId": "550e8400-e29b-41d4-a716-446655440000",
"amount": {
"value": "10.00",
"currency": "USD"
},
"idempotencyKey": "550e8400-e29b-41d4-a716-446655440002",
"description": "Security deposit for new employee"
}
'{
"disbursementId": "550e8400-e29b-41d4-a716-446655440001"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Required when using a Platform API token. The tenant key identifying which business to operate on.
The unique identifier for the business
The reserve action to perform
LOCK, RELEASE "LOCK"
The type of reserve
SECURITY_DEPOSIT, SEVERANCE, NOTICE_PERIOD "SECURITY_DEPOSIT"
The person this reserve is for
"550e8400-e29b-41d4-a716-446655440000"
Show child attributes
Idempotency key for the request
"550e8400-e29b-41d4-a716-446655440002"
Description of the reserve action
"Security deposit for new employee"
reserve action response
The ID of the created disbursement
"550e8400-e29b-41d4-a716-446655440001"