DotsDocs
Payout agents

Reclaim Funds from a Payout Agent

Move funds from the payout agent's available balance back to the app balance. Committed funds belong to payouts in flight and cannot be reclaimed until those payouts fail, are canceled, or are reversed.

POST
/v2/payout-agents/{payout_agent_id}/reclaims

Move funds from the payout agent's available balance back to the app balance. Committed funds belong to payouts in flight and cannot be reclaimed until those payouts fail, are canceled, or are reversed.

Authorization

api_key
headerAuthorizationBasic <token>

Path Parameters

payout_agent_id*string

ID of the payout agent.

Formatuuid

Request Body

application/json
  1. body
amount*integer

Amount in cents to move.

Range0 < value
idempotency_key*string

UUID that makes the request safe to retry. Retrying with the same key and amount returns the original movement.

Formatuuid
metadata?unknown

Any JSON value to attach to the movement.

Response Body

Created

application/json
  1. response

Funds moved between the app balance and a payout agent's reserved balance.

id?string

ID of the underlying transfer.

Formatuuid
object?string
payout_agent_id?string
Formatuuid
type?string
  • allocation - from the app balance to the payout agent
  • reclaim - from the payout agent back to the app balance
Value in"allocation""reclaim"
amount?integer

Amount in cents.

status?string

Status of the underlying transfer.

idempotency_key?|
Formatuuid
metadata?unknown

The metadata attached to the movement.

created?string
Formatdate-time
Example Request
curl -X POST 'https://api.dots.dev/api/v2/payout-agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/reclaims' \  -H 'Content-Type: application/json' \  -d '{  "amount": 10000,  "idempotency_key": "0d5f4a8e-1f3b-4c1e-9f7a-2b6c3d4e5f60"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "object": "payout_agent_balance_movement",  "payout_agent_id": "79fb14fc-ce5a-4ca6-83f8-93ffe10240da",  "type": "allocation",  "amount": 0,  "status": "string",  "idempotency_key": "0cd90e5a-2c03-4ab6-81a8-d48818026e58",  "metadata": null,  "created": "2019-08-24T14:15:22Z"}