PayStar API Documentation
  1. Merchant EN
  • Merchant EN
    • Introduction
    • Glossary
    • Authorization key
    • Sandbox
    • Additional fields
    • Currencies
    • Bank names
    • Telecom operators
    • Callbacks
    • Error descriptions
    • Tech FAQ
    • Integratins
      • Stripe
      • Inwizo
      • 2Checkout
      • Adyen
      • AffiniPay
      • Alikassa
      • AlliancePay
      • Amazon Pay
      • AnyMoney
      • AstroPay
      • Aureavia
      • AurisMyChanger
      • Authorize.Net
      • Avatarix
    • Balance H2H
      GET
    • Deposit H2H - Card & P2P
      POST
    • Deposit H2H - Token
      POST
    • Deposit H2C - Card
      POST
    • Deposit status H2H - PayStar ID
      GET
    • Deposit status H2H - Merch ID
      GET
    • Payout H2H
      POST
    • Payout status H2H - PayStar ID
      GET
    • Payout status H2H - Merch ID
      GET
  1. Merchant EN

Balance H2H

GET
https://api.PayStar.uk/api/v1/balance/merchant
Last modified:2025-04-29 19:06:45
INFO
Current method is used to get the balance, which returns both the overall merchant balance and the balance of the specific endpoint (authorization key) used for the request.
Please note that many limits and restrictions are tied specifically to the endpoint balance. If you have multiple authorization keys, we recommend checking the balance for each key individually.
You can use this CURL to get maerchnt balance
curl --request GET \
--url https://api.PayStar.uk/api/v1/balance/merchant?currency=USD' \
--header 'Authorization: Bearer Your Token' \
--header 'accept: text/plain' \
The provided JSON object contains key financial metrics for a partner's account. Here's the translated version with explanations:
{
  "currency": "USD", // Currency of the balance
  "merchantBalance": 10000.00, // Current balance of the merchant
  "merchantOverdraft": 1000.00, // Permissible overdraft amount
  "pipelineBalance": 5000.00, // Current pipeline balance 
  "pipelineProcessingOrdersDeposit": 0.00, // Current amount of deposits in non-final statuses (Created, Processing)
  "pipelineProcessingOrdersWithdrawals": 4000.00 // Current amount of withdrawals in non-final statuses (Created, Processing)
  "pipelineAvailableBalance": 1000.0 // Available for usw pipeline balance 
}
Explanation of Each Field:
Currency: Specifies the currency of the balance, in this case, Dollar (USD).
MerchantBalance: Indicates the current balance available to the partner, which is 10,000.00 USD.
MerchantOverdraft: Denotes the permissible overdraft amount, allowing the partner to overdraw up to 1,000.00 USD.
PipelineBalance: Reflects the current balance within the pipeline, amounting to 5,000.00 USD.
pipelineAvailableBalance: Reflects the current balance within the pipeline, amounting to 1,000.00 USD.
PipelineProcessingOrdersDeposit: Represents the total amount of deposits that are in non-final statuses such as 'Created' or 'Processing'. Here, it is 0.00 USD, indicating no pending deposits.
PipelineProcessingOrdersWithdrawals: Shows the total amount of payouts that are in non-final statuses. The value is 4,000.00 USD, indicating withdrawals that have been initiated but not yet completed.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
currency
string 
required
More details in Currencies section
Example:
USD

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.PayStar.uk/api/v1/balance/merchant?currency=USD'

Responses

🟢200Success
application/json
Body
currency
string 
required
merchantBalance
number 
required
merchantOverdraft
number 
required
pipelineAvailableBalance"
number 
required
pipelineProcessingOrdersDeposit
number 
required
pipelineProcessingOrdersWithdrawals
number 
required
Example
{
    "currency": "RUB",
    "merchantBalance": 10000,
    "merchantOverdraft": 1000,
    "pipelineBalance": 5000,
    "pipelineAvailableBalance": 1000,
    "pipelineProcessingOrdersDeposit": 0,
    "pipelineProcessingOrdersWithdrawals": 4000
}
🟠400Bad request
🟠401Unauthorized
🟠403Forbidden endpoint
Modified at 2025-04-29 19:06:45
Previous
Avatarix
Next
Deposit H2H - Card & P2P
Built with