PAYJN Payouts API
The Payouts API from PAYJN, for payouts.
The Payouts API from PAYJN, for payouts.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/payjn-com:payjn-com-payouts-api"
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.
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: 3.2.0
info:
title: PAYJN Payment Payouts 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: Payouts
paths:
/api-pay/payout/order/create:
post:
operationId: payoutsCreate
summary: Create a payout
description: 'Send money from your PAYJN balance to a customer''s bank account or e-wallet, for withdrawals, earnings or seller settlements. The destination is set by bankCode; see the country pages for codes.
If the request times out, query the payout with the same merchantOrderId before trying again. Create a new payout only after the original is confirmed as FAILURE.
Payouts are paid from your withdrawable balance; see Query balance.'
tags:
- Payouts
externalDocs:
url: https://docs.payjn.com/payouts/create/
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.
amount:
type: integer
description: Payout amount in local currency.
merchantOrderId:
type: string
maxLength: 50
description: Your own order number. Letters and digits, up to 50 characters, unique in your system. Used for queries and to prevent duplicates.
bankCode:
type: string
description: Destination bank or e-wallet code, for example DANA or a bank code. See the country pages.
bankAccountNo:
type: string
description: Recipient's account number, or the wallet's registered phone number or account ID.
bankId:
type: string
description: 'India only: the 11-character IFSC code when bankCode is IFSC.'
merchantNotifyUrl:
type: string
description: Your server URL that receives the asynchronous result notification for this order.
remark:
type: string
description: Free text, returned unchanged in the response.
customer:
type: object
description: Recipient information.
properties:
name:
type: string
description: Recipient's name, as registered on the account.
phone:
type: string
description: Customer's mobile number in the local format of the country.
email:
type: string
description: Customer's email address, in a valid email format.
required:
- name
- phone
- email
required:
- merchantCode
- countryCode
- amount
- merchantOrderId
- bankCode
- bankAccountNo
- merchantNotifyUrl
- customer
example:
merchantCode: '100001'
amount: 30000
countryCode: IDN
merchantOrderId: PAYOUT20261129001
bankCode: DANA
bankAccountNo: 081234567890
merchantNotifyUrl: https://merchant.example.com/payjn/payout-notify
customer:
name: Recipient Name
email: recipient@example.com
phone: 081234567890
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:
merchantCode:
type: string
description: Your merchant code.
countryCode:
type: string
description: Country code of the order.
platformOrderId:
type: string
maxLength: 32
description: PAYJN order number.
merchantOrderId:
type: string
maxLength: 50
description: Your order number.
amount:
type: string
description: Order amount in local currency.
status:
type: string
description: SUCCESS, FAILURE, PROCESSING or CANCELLED. See Order status.
bankCode:
type: string
description: Destination code.
transFeeRate:
type: string
description: Fee rate applied to the order, as agreed for your merchant account.
transFee:
type: string
description: Fee for this transaction.
totalTransFee:
type: string
description: Total fee for the order.
desc:
type: string
description: Result description.
createTime:
type: string
description: Creation time, local time.
successTime:
type: string
description: Success time, local time.
/api-pay/payout/order/query:
post:
operationId: payoutsQuery
summary: Query a payout
description: Get the current status of a payout by your order number.
tags:
- Payouts
externalDocs:
url: https://docs.payjn.com/payouts/query/
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.
merchantOrderId:
type: string
maxLength: 50
description: Your own order number. Letters and digits, up to 50 characters, unique in your system. Used for queries and to prevent duplicates.
required:
- merchantCode
- merchantOrderId
example:
merchantCode: '100001'
merchantOrderId: PAYOUT20261129001
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:
merchantCode:
type: string
description: Your merchant code.
countryCode:
type: string
description: Country code of the order.
platformOrderId:
type: string
maxLength: 32
description: PAYJN order number.
merchantOrderId:
type: string
maxLength: 50
description: Your order number.
amount:
type: string
description: Order amount in local currency.
status:
type: string
description: SUCCESS, FAILURE, PROCESSING or CANCELLED. See Order status.
bankCode:
type: string
description: Destination code.
successTime:
type: string
description: Success time, local time.
externalDocs:
description: PAYJN API documentation
url: https://docs.payjn.com/