Skip to main content
POST
Confirm a collection
If your company collects from its own customer before Agentcard funds a card, each transfer waits on you: card_flow.started arrives with ack_required: true. Collect, then send the outcome before collection_deadline. succeeded lets the transfer go on to the card, and the agent’s retry returns it. failed leaves the money on your balance. If you send neither, the transfer fails at the deadline.
The API returns the transfer again when you send the same outcome, so a retry is safe.

Authorizations

Authorization
string
header
required

A platform access token. Get one on the Create an access token endpoint by exchanging your client_id + client_secret, then send it as Authorization: Bearer <token>. Tokens live one hour.

Path Parameters

transfer_id
string
required

Body

application/json
outcome
enum<string>
required

Whether you collected.

Available options:
succeeded,
failed

Response

The transfer, as the outcome left it.

object
enum<string>
required

Always company_wallet_transfer.

Available options:
company_wallet_transfer
id
string
required
status
enum<string>
required

pending until the money reaches the card, funded once it has, consumed once the card holds it, reclaimed once a closed card gave it back, failed when it never moved.

Available options:
pending,
funded,
consumed,
reclaimed,
failed
substatus
string
required

Where a pending transfer is: awaiting_collection (waiting on you), collection_confirmed or transferring.

kind
string
required

mint for a new card, top_up for a raise on an existing one.

user_id
string | null
required

The user the card is for.

amount_cents
integer
required

What the card asked for.

livemode
boolean
required

false on a sandbox credential.

created_at
string<date-time>
required
card_id
string | null

The card the transfer made or raised.

fee_cents
integer

The fee on top.

transferred_cents
integer

What has moved so far.

released_cents
integer

What a closed card gave back. It counts toward the user's next card until you recover it.

failure_reason
string | null

Why a failed transfer failed.

collection_deadline
string | null

When a transfer waiting on you fails if you haven't confirmed it.