---
# System prepended metadata

title: Epay-Igs-Cbl

---

# Epay-Igs-Cbl

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

## Payments

### Payment Init

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


Response:
```status_code: 200```
```json=
{
  "success": true,
  "message": "Payment created!!",
  "data": {
    "gatewayUrl": "https://sandbox.thecitybank.com:4443/index.jsp?ORDERID=927261&SESSIONID=19BEB53711D7D411DC574C957E80FDA6"
  }
}
```

### 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": "851da5b69fc84e94997c77fa27697d35",
    "gateway_response": [],
    "gateway": "city_bank",
    "gateway_trx_id": "927777",
    "status": "processing",
    "initiated_at": "2021-04-14T17:34:19.112Z"
  }
}
```

## 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": {}
}
```
