Affiliates

A payout batch with each affiliate’s state and, for crypto, the payout invoice to pay

GET
/v1/stores/{storeId}/affiliates/payout-batches/{batchId}

Authorization

AuthorizationBearer <token>

API key from Settings → API keys

In: header

Path Parameters

storeId*string
batchId*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/stores/string/affiliates/payout-batches/string"
{  "batch": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "number": -9007199254740991,    "kind": "crypto",    "status": "awaiting_payment",    "currency": "string",    "amountMinor": -9007199254740991,    "itemCount": -9007199254740991,    "asset": "string",    "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",    "providerBatchId": "string",    "providerStatus": "string",    "scheduled": true,    "lastError": "string",    "createdAt": "string",    "completedAt": "string"  },  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",      "requestNumber": -9007199254740991,      "affiliateId": "db499c7c-f1f8-4bce-9ff0-10cc890eeda0",      "affiliateCode": "string",      "amountMinor": -9007199254740991,      "currency": "string",      "destination": "string",      "coinAmount": "string",      "state": "waiting",      "reference": "string",      "explorerUrl": "string",      "error": "string",      "transferId": "e240f72a-b0bc-4f57-ab86-5b78f1d8ea9b",      "transferState": "string",      "cancellable": true,      "sentAt": "string"    }  ],  "invoice": {    "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",    "number": -9007199254740991,    "invoiceUrl": "string",    "paymentSummary": "string",    "totalMinor": -9007199254740991,    "feeMinor": -9007199254740991,    "currency": "string",    "address": "string",    "amount": "string",    "received": "string",    "remaining": "string",    "symbol": "string",    "network": "string",    "uri": "string",    "state": "string"  },  "rest": {    "state": "string",    "amount": "string",    "txHash": "string"  }}