Skip to main content
POST
Reverse a close

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token.

Headers

Alguna-Version
enum<string>
required
Available options:
2026-04-01
Idempotency-Key
string

A unique string used to ensure the request is processed exactly once. If you retry a request with the same idempotency key within 24 hours, the original response is returned without re-executing the operation.

Maximum string length: 255
Example:

"ik_a1b2c3d4e5f6"

Path Parameters

reservation_id
string
required

Unique identifier for the reservation

Body

application/json
close_key
string
required

Which close to reverse — a reservation settled in instalments has several, and only this distinguishes them. Send either the Idempotency-Key the close was sent with, or the close_key reported for it by the reservation read. A close sent without an Idempotency-Key has no other name, so the reservation read is the only way to identify it.

Example:

"close_run_88f_final"

Response

Success

refunded
string
required

Credits returned to the account. Zero when the close covered nothing, and zero on a replay.

Example:

"365"

replayed
boolean
required

True when this close was already voided, so nothing moved. Voiding is idempotent per close.

reservation_id
string
required
Example:

"crt_abc123"