Get a vault request
Returns one of the unit’s vault requests with its current state. Poll it to follow a request from the owner’s approval to the vault’s decision, and an unvault from the owner’s request to the item’s dispatch: status, available_at, hold, ready_to_ship and dispatched_at say where it is. Takes an API key, which reads any unit in its environment. A tap session token is not accepted: call this from your server.
Authorizations
Use Authorization: Bearer end_sk_* for partner API keys (e.g. end_sk_AbCd_example_api_key).
Path Parameters
Unit id.
"22222222-2222-4222-8222-222222222222"
Vault request id.
"00000000-0000-4000-8000-000000000000"
Response
The vault request.
Vault request id.
The unit the request is for.
The vault the request names.
Where the request is now. pending: the owner approved and the vault has not decided. submitted: the vault confirmed it has the item and Endstate is recording it. active: the item is vaulted. unvault_waiting: the owner asked for the item back and the waiting period runs, or the item is ready to ship. unvaulting: the vault dispatched the item and Endstate is completing the unvault. unvaulted: the unvault is complete. cancelled, expired and rejected end a request that never vaulted the item, and never change again. failed: the item was not recorded as vaulted; the request becomes active if the item is later recorded as vaulted after all. A status can move back. A cancel of the unvault, once recorded, returns unvault_waiting to active, and unvaulting too in the rare case one is recorded after the dispatch. Rarely, the network revises its latest records, which can return unvaulted to unvaulting or active, unvault_waiting or unvaulting to active, and active to failed. Read the status as the request's current state, not as a one-way log.
pending, submitted, active, unvault_waiting, unvaulting, unvaulted, cancelled, expired, rejected, failed Free text the vault's staff left when they confirmed or rejected the request. Null when they left none.
Why the request was rejected: the vault's reason, or owner_changed when the unit changed hands after its owner approved.
wrong_item, chip_unreadable, unacceptable, owner_changed, null When the vault confirmed or rejected the request, or Endstate rejected it; null until then.
When the unvault's waiting period ends. Null until the owner's request to unvault is recorded, and again if the owner cancels it. A hold stops the clock, and lifting it moves this later by the time the hold lasted.
The hold on a waiting unvault, or null. by says who placed it, the vault or the brand, and reason is their text. While it stands the item is not ready to ship.
Whether the item is ready to ship: its waiting period has ended and nothing holds it. The vault records dispatch with a tap of the item from then on.
When the vault's tap recorded the item's dispatch. Endstate then completes the unvault; the vault hands the item over once the request reads unvaulted.
When a pending request expires; null once it has moved on.
When the owner's approval opened the request.

