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).
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.
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/