Sessions API

Cancel a session

Cancel unfinished work and optionally notify participants.

PUT/sessions/{bn_session_id}/cancel

Overview

Cancel an active workflow, stop associated open-call and preparation work, and emit a termination event. The session remains available to Get Session. Cancellation is distinct from deleting a record or issuing a refund.

Before you start

Use an owned session that has not completed or already been cancelled. Decide who should communicate cancellation to participants.

  1. Read current state

    Confirm the session can still be cancelled.

  2. Choose notification behavior

    Send a boolean and a customer-safe reason if needed.

  3. Reconcile cancellation

    Persist the outcome and process the termination event.

Parameters

FieldRequirementDescription
bn_session_id
string · path
RequiredThe BlueNotary session ID.
reason
string
OptionalThe reason for cancellation. Use concise customer-safe text and avoid sensitive information.
notify_participants
boolean
OptionalDefaults to true. Send the JSON boolean false to disable cancellation notifications; the string "false" is not equivalent.

Request example

Use a server-side API key. Replace example IDs and values before using this request in an approved test environment.

curl --request PUT \
  --url 'https://app.bluenotary.us/api/integrationsv2/sessions/YOUR_SESSION_ID/cancel' \
  --header "Authorization: Bearer $BLUENOTARY_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "reason": "The customer requested a different appointment.",
  "notify_participants": true
}'

Response

200 · Example success Illustrative values in the current response shape.

RESPONSE
{
  "success": true,
  "session_id": "69a100000000000000001042",
  "notarization_id": "order-1042",
  "status": "cancelled"
}
  • The success body uses session_id, while creation uses bn_session_id.
  • The termination webhook is separate from participant email notifications.
  • Cancellation does not constitute a documented refund guarantee.
  • A timeout can occur after state changed. Read the session before attempting the mutation again.

Errors & recovery

StatusWhat happenedWhat to do
400session_already_completedDo not cancel a completed session; handle any financial question through the applicable billing process.
400session_already_cancelledReconcile your application to the cancelled state.
409session_state_conflictRead the latest state before deciding whether to repeat the action.
403Session Not FoundCheck the session ID and account ownership.

Explore the response

Response simulator

LOCAL EXAMPLE

Explore the example response without an API key. This does not send requests or validate your account configuration.

Keep building