Security Deposits API
Create a card authorization link for a booking, send it through your own guest communication system, and synchronize its status using signed webhooks. All endpoints require an OAuth bearer token. Usebilling.write to create, capture, or release deposits and billing.read to retrieve them.
Create a deposit link
authorization_url. Send this URL to the guest. Repeating the request with the same Idempotency-Key returns the original deposit instead of creating a duplicate.
Retrieve deposits
status and per_page. Available statuses are pending, authorized, partially_captured, captured, released, expired, and failed.
Dashboard labels and authorization attempts
The dashboard uses more descriptive labels without changing these API status values:
Authorization-attempt metadata is provider-confirmed where available. Its absence does not prove that a customer has never opened a link. The new dashboard labels are not accepted as
status query parameters; use the API values above.
Capture or release
Capture the full remaining amount by omittingamount, or capture part of it:
Stripe deposit renewal
New Stripe deposits can use saved-card renewal on Business after the customer explicitly opts in on the hosted authorization page. Send the returnedauthorization_url to the customer; creating a deposit through the API is not customer consent.
Renewal is initiated from the deposit detail screen in the dashboard. There is no public renewal API endpoint. Consent and renewal history cannot be supplied through create-request metadata. Keys reserved for the renewal workflow are controlled by PayRequest.
Read the current capture_before and provider status after a renewal. The existing API status values remain unchanged: a deposit may still be authorized while a replacement is awaiting bank confirmation. Capture and release are temporarily unavailable while that replacement is unresolved. Do not create a second deposit to bypass this protection.
A replacement is recorded only after Stripe confirms the new hold and cancellation of the original. Renewal does not introduce a deposit.renewed webhook event, so do not rely on a new deposit.authorized event for every replacement; retrieve the current deposit to check the deadline. See Stripe renewal steps and limits.
Webhook events
PayRequest sendsdeposit.created, deposit.authorized, deposit.partially_captured, deposit.captured, deposit.released, deposit.expired, and deposit.failed to the webhook URL configured under Settings → API & MCP.
A final partial Stripe capture emits deposit.captured, not a promise that another capture remains available. Updates to pending authorization-attempt metadata do not introduce new deposit webhook event names. Retrieve the deposit to read the latest metadata.
Verify the X-PayRequest-Signature header using the configured webhook secret. The signature format is sha256= followed by the HMAC-SHA256 digest of the raw request body. The X-PayRequest-Event header contains the event name.
Card authorizations expire. Create the link close enough to check-in for the selected payment provider’s authorization window.