Create a deposit session with a reserved voucher through a widget.
POST /api/v1/widgets/deposit-sessions/create-session-voucher
Creates a deposit session and reserves a voucher in a single request. The session has a 30-minute expiry and is tracked through CREATED → PENDING → CONFIRMED statuses. The voucher is reserved and linked to the session.
This endpoint accepts either a JWT bearer token or the widget’s client secret via X-Client-Secret header.
Parameters
Body
Request example
Response
Response schema
Session fields:
Voucher fields: