Platitun · API · The deal · Put credentials into a vault

Put credentials into a vault

POST /api/v1/orders/{id}/handover

Key scope: orders · changes data, the Idempotency-Key header is required

A vault is a way to pass a password so it does not stay in the chat forever. The content is encrypted, read once and wiped after a while. The marketplace does not read it.

Request fields

FieldTypeWhat it is
secret requiredstringWhat the buyer is to receive.

Response fields

FieldTypeWhat it is
handoverstringThe vault id.

Refusal reasons

A rule refusal arrives as {"error":"rejected","refusal":{"kind":"…"}} with status 409. Refusals common to all endpoints are in the rules section.

CodeWhat happened and what to do
not_foundThe record does not exist or is not yours. The ownership condition is in the database query itself, so someone else’s record looks like a missing one.
state_movedThe order has already moved on: the buyer cancelled, the deadline passed, or the action was done another way. Re-read the order before retrying.
emptyEmpty text. There is nothing to send.
vault_offThe marketplace vault is not configured, so there is nowhere to keep secrets. That is our problem, not yours: contact support.

Nearby in this section