RexPay
  1. Balance
RexPay
  • Authentication
    • Intro
    • Get Access Token
      POST
  • PIX Payments
    • Intro
    • Payin
      • Create PIX Payin
      • Get PIX Payin by ID
      • Get PIX Payin by external ID
    • Payout
      • Create PIX Payout
      • Get PIX Payout by ID
      • Get PIX Payout by external ID
  • Balance
    • Get balance
      GET
  • Webhooks
    • Intro
    • Webhook app portal link
      POST
  • Schemas
    • Attributes
      • Payin status
      • taxID
      • Payout status
      • Amount
      • Pix type
      • Pix key
    • gen_base_64
    • Payer or Receiver
    • Metadata
    • Payin created
    • Payin
    • Payout
    • Error response
  1. Balance

Get balance

GET
/v1/stats/balance

Request

Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
JWT Bearer
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
or

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.rexpay.app/v1/stats/balance' \
--header 'x-api-key: <api-key>' \
--header 'Authorization: Bearer <token>'
Response Response Example
{
  "data": {
    "balance": 17.48,
    "payin": {
      "count": 7,
      "status": "paid",
      "sum": 22,
      "fee": 0.44
    },
    "payout": {
      "count": 4,
      "status": "paid",
      "sum": 4,
      "fee": 0.08
    }
  }
}
Previous
Get PIX Payout by external ID
Next
Intro