Query available payment methods
List the pay-in methods enabled for your merchant account in a country, with the minimum and maximum amount of each. Use it to build your checkout instead of hard-coding methods.
POST /api-pay/collection/merchant/paymentMethods
Request headers
| Field | Type | Required | Description |
|---|---|---|---|
Content-Type | String | Yes | application/json |
sign | String | Yes | Request signature. See Authentication. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
merchantCode | String(6) | Yes | Your merchant code, issued by PAYJN after onboarding. |
countryCode | String | Yes | Country code of the market, for example IDN for Indonesia. See the country pages. |
{
"merchantCode": "100001",
"countryCode": "IDN"
}
Response
| Field | Type | Description |
|---|---|---|
code | Integer | 200 means the request was accepted. Any other value is an error; see msg. |
msg | String | Error message when code is not 200. |
data[] | Array | Enabled methods. |
data[].paymentMethodCode | String | Method code to send when creating an order. |
data[].miniAmount | Integer | Minimum amount for this method on your account. |
data[].maxAmount | Integer | Maximum amount for this method on your account. |
Get API access
Full integration documentation, your API host, merchant code and keys are provided after onboarding. Review is usually completed on the same day, and a test mode is switched on for your account before launch.