Skip to main content
Cancel a deposit session before funds are sent.
POST /api/v1/widgets/deposit-sessions/:sessionId/cancel-session Cancels a deposit session. Only sessions in CREATED or PENDING status can be cancelled. Cancelled sessions move to EXPIRED status.

Parameters

Path

NameTypeRequiredDescription
sessionIdstringYesThe deposit session ID to cancel

Body

No body parameters required.

Request example

curl --request POST 'https://payments.bleepay.com/api/v1/widgets/deposit-sessions/dep_a1b2c3d4e5f6/cancel-session' \
  --header 'X-Client-Secret: dep_secret_xyz...' \
  --header 'Content-Type: application/json' \
  --data '{}'

Response

Response schema

FieldTypeDescription
statusstringResult status
errorstringError message if cancellation failed

Example response

{
  "status": "cancelled"
}

Error responses

StatusCodeDescription
400cannot_cancelSession is already confirmed or expired
401unauthorizedMissing or invalid authentication
404not_foundSession not found