On this page

    1. Home
    2. API
    3. API Reference
    4. Account
    5. Account Payments

    Account Payments

    This endpoint provides a detailed history of all payments and payouts processed for your network. It includes information on transfer volumes, earnings in USDC nano-cents, and blockchain transaction details.


    GET /account/payments

    Retrieve a list of payout records for the authenticated network account.

    Request

    GET /account/payments

    Headers:

    {
      "Host": "api.bringyour.com",
      "Authorization": "Bearer YOUR_JWT_TOKEN",
      "Accept": "application/json"
    }

    Response

    200 Success

    Status: 200 OK

    Content-Type: application/json

    A successful response returns an object containing an array of payment objects detailing past and pending distributions.

    {
      "account_payments": [
        {
          "payment_id": "string",
          "payment_plan_id": "string",
          "wallet_id": "string",
          "network_id": "string",
          "payout_byte_count": 0,
          "payout_nano_cents": 0,
          "subsidy_payout_nano_cents": 0,
          "min_sweep_time": "string",
          "create_time": "string",
          "payment_record": "string",
          "token_type": "string",
          "token_amount": 0,
          "payment_time": "string",
          "payment_receipt": "string",
          "wallet_address": "string",
          "blockchain": "string",
          "tx_hash": "string",
          "completed": true,
          "complete_time": "string",
          "canceled": false,
          "cancel_time": "string"
        }
      ],
      "error": {
        "message": "string"
      }
    }
    FieldTypeDescription
    account_paymentsarrayList of payout records for the network.
    account_payments[].payment_idstringUnique identifier for the payment record.
    account_payments[].payout_byte_countintegerTotal bytes provided during this payment period.
    account_payments[].payout_nano_centsintegerEarnings based on data volume in USDC nano-cents.
    account_payments[].token_amountnumberThe actual amount of tokens transferred.
    account_payments[].wallet_addressstringThe blockchain address where the payout was sent.
    account_payments[].blockchainstringThe network used for the transfer (e.g., SOL, MATIC).
    account_payments[].tx_hashstringThe blockchain transaction hash for the payment.
    account_payments[].completedbooleanWhether the payout has successfully finished.

    Example

    HTTP Request

    GET /account/payments HTTP/1.1
    Host: api.bringyour.com
    Authorization: Bearer YOUR_JWT_TOKEN
    Accept: application/json

    Successful HTTP Response

    {
      "account_payments": [
        {
          "payment_id": "pay_98765",
          "payout_byte_count": 5368709120,
          "payout_nano_cents": 1250000000,
          "token_amount": 12.5,
          "blockchain": "SOL",
          "wallet_address": "HN7cABqL36v...8Q4sG",
          "completed": true,
          "tx_hash": "4zqP...xyz"
        }
      ]
    }


    Powered by Sudoc v2.5.0
    Hide table of contents