---
# System prepended metadata

title: Epay-Igs-Bkash

---

# Epay-Igs-Bkash

`base_url` : `http://api-dev.evaly.com.bd/epay-igs-bkash`

## Payments

### Payment Init

Method: `GET`
URL: `{base_url}/payments/init/{epay_payment_id}`


Response:
```status_code: 200```
```json=
{
  "success": true,
  "message": "Payment created!!",
  "data": {
    "paymentID": "B5YC7CS1618418290455",
    "createTime": "2021-04-14T16:38:10:599 GMT+0000",
    "orgLogo": "https://s3-ap-southeast-1.amazonaws.com/merchantlogo.sandbox.bka.sh/pgw-default.png",
    "orgName": "TestCheckoutDemoMerchant1",
    "transactionStatus": "Initiated",
    "amount": "100",
    "currency": "BDT",
    "intent": "sale",
    "merchantInvoiceNumber": "EVL474827239",
    "epay_payment_id": "07eda5a5bf31451fad6b0e14c2860a56"
  }
}
```

### Payment Execute

Method: `POST`
URL: `{base_url}/payments/execute`

Request Body:
```json=
{
	"paymentID": "KNMXNAF1616062036378"
}
```


Response:
```status_code: 201```
```json=
{
    "success": true,
    "message": "Payment executed!!",
    "data": {
         "paymentID": "GMEZLBF1618418469525",
         "createTime": "2021-04-14T16:41:09:559 GMT+0000",
         "updateTime": "2021-04-14T16:41:43:816 GMT+0000",
         "trxID": "8DE104QLFP",
         "transactionStatus": "Completed",
         "amount": "100",
         "currency": "BDT",
         "intent": "sale",
         "merchantInvoiceNumber": "EVL474827239"
      }
}
```

### Payment Query

Method: `GET`
URL: `{base_url}/payments/query/{epay_payment_id}`


Response:
```status_code: 200```
```json=
{
  "success": true,
  "message": "Payment fetched successfully!",
  "data": {
    "epay_payment_id": "4d8cfc89dc40454aa0b8f4bec44147bd",
    "gateway_response": [
      {
        "paymentID": "GMEZLBF1618418469525",
        "createTime": "2021-04-14T16:41:09:559 GMT+0000",
        "updateTime": "2021-04-14T16:41:43:816 GMT+0000",
        "trxID": "8DE104QLFP",
        "transactionStatus": "Completed",
        "amount": "100.00",
        "currency": "BDT",
        "intent": "sale",
        "merchantInvoiceNumber": "EVL474827239",
        "refundAmount": "0"
      }
    ],
    "gateway": "bkash",
    "status": "completed",
    "initiated_at": "2021-04-14T16:41:43.844Z"
  }
}
```

## Refunds

### Refund Init

Method: `POST`
URL: `{base_url}/refund/init`


Headers:
```json=
{
    "secret-key": <secret key>
}
```

Request Body:

```json=
{
    "gateway_payment_id":"6075a31101c3f30012549920",
    "amount": 100,
    "refund_operation_id": "1bw2asma2wkmkc"
}
```

Response:

```status_code: 201```
```json=
{
    "success": true,
    "message": "Refund created!!",
    "data": {}
}
```
