
Payment Link
This feature is used to find out information regarding available payment methods.
| Method | Path | Format | Authentication |
|---|---|---|---|
| GET | api/v1.0/payment-link-manage/payment-methods | json | OAuth 2.0 with Access Token |
| Field | Value | Type | Mandatory | Length | Description | Example |
|---|---|---|---|---|---|---|
| X-PARTNER-ID | api_key | Alphanumeric | Mandatory | API key obtained from the merchant dashboard. | b3ed7d4b-a96c-6c08-b3c7-12c3124242d9 | |
| Accept | application/json | Alphabetic | Mandatory | Specifies JSON as the expected response format. | application/json | |
| Authorization | Bearer {bearerToken} | Alphanumeric | Mandatory | Bearer token obtained from the get access token endpoint. | Bearer eyJ0eXAiOiJKV1{…} |
| Field | Type | Mandatory | Length | Description | Example |
|---|---|---|---|---|---|
| status | Numeric | Mandatory | 3 | HTTP Status Code. | 200 |
| success | Boolean | Mandatory | 1 | Indicates the success of the request. | true |
| data | Object | Mandatory | - | The main object containing payment method data. | - |
| > payment_methods | Array Object | Mandatory | - | Array containing the full details of each payment method. | - |
| >> code | String | Mandatory | - | Unique code for the payment method. | QRIS |
| >> name | String | Mandatory | - | Human-readable name of the payment method. | VA BRI |
| >> group | String | Mandatory | - | Group/category of the payment method (e.g., qris, va). | va |
| >> desc | String | Conditional | - | A brief description of the payment method. | Virtual Account BRI |
| > available_codes | Array String | Mandatory | - | List of available/active payment method codes (code). | [ “QRIS”, “VA_BRI”, “VA_DANAMON” ] |
Success: Here’s an example of a successful response.
{
"status": 200,
"success": true,
"data": {
"payment_methods": [
{
"code": "QRIS",
"name": "QRIS",
"group": "qris",
"desc": "QR Code Indonesian Standard"
},
{
"code": "VA_BRI",
"name": "VA BRI",
"group": "va",
"desc": "Virtual Account BRI"
},
{
"code": "VA_DANAMON",
"name": "VA Danamon",
"group": "va",
"desc": "Virtual Account Danamon"
},
{
"code": "VA_MAYBANK",
"name": "VA Maybank",
"group": "va",
"desc": "Virtual Account Maybank"
}
],
"available_codes": [
"QRIS",
"VA_BRI",
"VA_DANAMON",
"VA_MAYBANK"
]
}
}