Get Available Payment
The following is an API endpoint to get available payment.
Used to get list of our available payment.
Endpoint
/api/merchant/payment-channel
Headers
- Name
X-Client-Id- Type
- uuid
- Description
Client ID (provided by BJPAY or retrieve from our Merchant Portal).
- Name
X-Client-Secret- Type
- string
- Description
Client Secret (provided by BJPAY or retrieve from our Merchant Portal).
- Name
X-Request-Time- Type
- YYYY-MM-DDTHH:mm:ssZ
- Description
Request Time should be ISO 8601 and will be used to generate Signature.
- Name
Content-Type- Type
- application/json
- Description
Content type application/json
Request
Example
POST
/api/merchant/payment-channelcurl --location --request POST 'https://api.bjpay.co.id/api/merchant/payment-channel' \
--header 'X-Client-Id: {{client_id}}' \
--header 'X-Client-Secret: {{client_secret}}' \
--header 'X-Request-Time: {{request_time}}' \
--header 'Content-Type: application/json' \
Response Code
| Code | Message | Description |
|---|---|---|
| OK | Success | Indicate success payment creation |
| 01 | Unauthorized | Invalid Client-ID or Client-Secret |
| 12 | Invalid Amount | Invalid Amount is happenning when Merchant trying to create transaction within Amount below of minimum and beyond maxium Payment Channel |
| 13 | Invalid Payment Channel | The provided payment channel code is not supported or inactive. |
| 14 | Invalid Transaction Reference Number | The reference number format is invalid or already used. |
| 15 | Invalid Transaction Item | One or more items in the request are missing required fields or have invalid values. |
| 16 | Invalid Customer Email | The customer email format is invalid or not provided. |
| 17 | Invalid Customer Phone Number | The customer phone number format is invalid or not provided. |
| 18 | Invalid Quantity | The item quantity is missing, zero, or not a valid number. |
| 19 | Invalid Currency | The currency code is invalid or not supported. |
| 23 | Invalid X-Request-Time | Typically happen when the value is not sync with current_time_tz() |
| 41 | Transaction Not Found | The transaction reference does not exist or is not found. |
| 42 | Service currently not available or not in active hour | Typically happen when there is service maintenance |
| 51 | Internal Error | An unexpected error occurred on the server. |
Response
Example
{
"code": "OK", // Check Response Code List
"message": "Success", // Check Response Message List
"data": [
{
"name": "VA",
"channel": [
{
"id": 9,
"code": "MANDIRI",
"name": "Bank Mandiri",
"description": "Pembayaran dengan cara transfer ke nomor rekening virtual dari bank Mandiri",
"image": "https://cdn.bjpay.id/services/logo-mandiri.png",
"feeFlat": 1500,
"feePercentage": 0,
"minAmount": 0,
"maxAmount": 0,
"isActive": true
},
]
},
{
"name": "EWALLET",
"channel": [
{
"id": 8,
"code": "GOPAY",
"name": "GoPay",
"description": "Pembayaran melalui E-Wallet GoPay",
"image": "https://cdn.bjpay.id/services/logo-gopay.png",
"feeFlat": 0,
"feePercentage": 2,
"minAmount": 0,
"maxAmount": 0,
"settlementDay": [],
"settlementProcess": 3,
"isActive": true
}
]
},
]
}