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-channel
curl --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

CodeMessageDescription
OKSuccessIndicate success payment creation
01UnauthorizedInvalid Client-ID or Client-Secret
12Invalid AmountInvalid Amount is happenning when Merchant trying to create transaction within Amount below of minimum and beyond maxium Payment Channel
13Invalid Payment ChannelThe provided payment channel code is not supported or inactive.
14Invalid Transaction Reference NumberThe reference number format is invalid or already used.
15Invalid Transaction ItemOne or more items in the request are missing required fields or have invalid values.
16Invalid Customer EmailThe customer email format is invalid or not provided.
17Invalid Customer Phone NumberThe customer phone number format is invalid or not provided.
18Invalid QuantityThe item quantity is missing, zero, or not a valid number.
19Invalid CurrencyThe currency code is invalid or not supported.
23Invalid X-Request-TimeTypically happen when the value is not sync with current_time_tz()
41Transaction Not FoundThe transaction reference does not exist or is not found.
42Service currently not available or not in active hourTypically happen when there is service maintenance
51Internal ErrorAn 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
            }
        ]
    },
  ]
}

Was this page helpful?