PAYJN Account API

The Account API from PAYJN, for account.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

POST /api-pay/balance/query Query balance #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/payjn-com:payjn-com-account-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

payjn-com-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PAYJN Payment Account API
  version: '2026-11-29'
  summary: One API for local pay-ins and payouts in Indonesia, Pakistan, Bangladesh, Vietnam, India and Malaysia.
  description: 'Public reference. The same endpoints, fields, signing and result notifications are used in every market; change countryCode, the payment method code and the amount. Your API host, merchant code and full integration documentation are provided after onboarding at https://www.payjn.com/contact/.


    Order status values: SUCCESS, FAILURE, PROCESSING, CANCELLED.


    Countries: Indonesia (IDN, IDR), Pakistan (PAK, PKR), Bangladesh (BD, BDT), Vietnam (VN, VND), India (IN, INR), Malaysia (MY, MYR).'
  contact:
    name: PAYJN
    url: https://www.payjn.com/contact/
servers:
- url: https://{your-api-host}
  description: Your API host, provided after onboarding
tags:
- name: Account
paths:
  /api-pay/balance/query:
    post:
      operationId: balance
      summary: Query balance
      description: Check your balances in a country before sending payouts.
      tags:
      - Account
      externalDocs:
        url: https://docs.payjn.com/balance/
      parameters:
      - name: sign
        in: header
        required: true
        description: 'Request signature: SHA256withRSA over the JSON body joined with the endpoint path by ''&'', Base64-encoded.'
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                merchantCode:
                  type: string
                  maxLength: 6
                  description: Your merchant code, issued by PAYJN after onboarding.
                countryCode:
                  type: string
                  description: Country code of the market, for example IDN for Indonesia. See the country pages.
              required:
              - merchantCode
              - countryCode
            example:
              merchantCode: '100001'
              countryCode: IDN
      responses:
        '200':
          description: Envelope with code 200 on success; any other code is an error described by msg.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: 200 means the request was accepted. Any other value is an error; see msg.
                  msg:
                    type: string
                    description: Error message when code is not 200.
                  data:
                    type: object
                    description: Result object, returned when code is 200.
                    properties:
                      withdrawableBalance:
                        type: string
                        description: Amount available for payouts.
                      settlingBalance:
                        type: string
                        description: Collected amount waiting for settlement.
                      frozenBalance:
                        type: string
                        description: Amount currently frozen.
externalDocs:
  description: PAYJN API documentation
  url: https://docs.payjn.com/