Deposit
Create a deposit payment link
Create a payment link for an in-house deposit on the specified appointments. The deposit amount is automatically calculated based on the branch's deposit settings for the given appointments. Returns the payment link URL which can be shared with the client. Optionally notify the client via SMS and/or email. Expiry and auto-cancel settings can be overridden per request; if not provided, the branch's default payment link processing settings are used.
post/api/business/{businessId}/branch/{branchId}/deposit/payment-link
Request
- Base URLhttp://api-gateway-eu.phorest.com/third-party-api-server
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
businessIdstring required
branchIdstring required
Request body
Example request
{
"appointmentIds": [
"abc-123",
"def-456"
],
"autoCancelAppointmentOnExpiry": true,
"expiryEnabled": true,
"expiryDeadline": 24,
"expiryTimeUnit": "HOURS"
}Response
Deposit payment link created successfully
Example response
{
"paymentLinkId": "pl-abc-123",
"url": "https://pay.phorest.com/link/abc123",
"status": "PENDING",
"appointmentIds": [
"appt-id-1",
"appt-id-2"
]
}Changes
No recorded changes to this operation across all 2 revisions of this API.