Skip to main content
Close a voucher session — prevents new vouchers from being reserved.
POST /api/v1/vouchers/sessions/:sessionId/session-close Close the session once all vouchers within it have been resolved. This finalizes the session; no new vouchers can be reserved in a closed session.

Parameters

Path

NameTypeRequiredDescription
sessionIdstringYesThe session ID to close

Body

No body parameters required.

Request example

curl --request POST 'https://payments.bleepay.com/api/v1/vouchers/sessions/ses_xyz/session-close' \
  --header 'Authorization: Bearer <payee_token>' \
  --header 'Content-Type: application/json' \
  --data '{}'

Response

Response schema

Returns the updated session object with status CLOSED.

Example response

{
  "id": "ses_xyz",
  "code": "D4E5F6",
  "status": "CLOSED",
  "type": "payment",
  "createdAt": "2026-06-09T12:00:00.000Z",
  "updatedAt": "2026-06-09T12:10:00.000Z"
}

Error responses

StatusCodeDescription
400already_closedThe session is already closed
401unauthorizedMissing or invalid bearer token
404not_foundSession not found