DotsDocs
Payout batches

Retrieve a Payout Batch with detailed results

Get a payout batch by its id. Returns detailed results for each item in the batch, including transfer information for successful payouts and error messages for failed ones.

GET
/v2/payout-batches/{payout_batch_id}/results

Get a payout batch by its id. Returns detailed results for each item in the batch, including transfer information for successful payouts and error messages for failed ones.

Authorization

api_key
headerAuthorizationBasic <token>

Path Parameters

payout_batch_id*string

Id of the payout batch to fetch

Formatuuid

Query Parameters

include_request?boolean

Include the original request data for each item in the response. This can be useful for debugging or reconciliation.

Defaultfalse

Response Body

OK

application/json
  1. response

The payout batch with detailed results for each item.

id*string

Unique identifier for the payout batch.

Formatuuid
created*string

Timestamp when the batch was created.

Formatdate-time
idempotency_key?string

The idempotency key provided when creating the batch.

Formatuuid
status*string

Current status of the batch processing.

Value in"created""processing""paying_out""completed""failed"
metadata?|

The metadata attached to the batch.

items*array<>

Results for each item in the batch.

Example Request
curl -X GET 'https://api.dots.dev/api/v2/payout-batches/497f6eca-6276-4993-bfeb-53cbbbba6f08/results'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "created": "2019-08-24T14:15:22Z",  "idempotency_key": "0cd90e5a-2c03-4ab6-81a8-d48818026e58",  "status": "created",  "metadata": "string",  "items": [    {      "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",      "idempotency_key": "0cd90e5a-2c03-4ab6-81a8-d48818026e58",      "metadata": "string",      "transfer": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "status": "created"      },      "error_code": "string",      "error_message": "string",      "request": {        "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",        "amount": 1,        "platform": "paypal",        "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",        "fund": true,        "tax_exempt": true,        "idempotency_key": "0cd90e5a-2c03-4ab6-81a8-d48818026e58",        "metadata": "string",        "payout_fee_party": "user",        "payout_fee": {          "fixed": 0,          "percent": "string"        }      }    }  ]}