# Fetch Bill Details

This API Call is used for verifying a transaction before payment.

● This is an optional call for verifying transactions before payment, thus helpful for integrations accepting payment via payment gateway.

● First, check the response, if error=TXN ​then accept the payment else cancel the transaction.

● Post accepting the payment, hit the next call (transaction) to complete the transaction.<br>

## BBPS Bill Fetch

<mark style="color:green;">`POST`</mark> `https://traveloapi.com/yourapi/bbps/bill_fetch`&#x20;

#### Path Parameters

| Name         | Type   | Description                             |
| ------------ | ------ | --------------------------------------- |
| gatkey       | string | gatkey provided by us                   |
| account      | string | Customer Id /Bill Number/Account Number |
| optional1    | string | optional1                               |
| optional2    | string | optional2                               |
| optional3    | string | optional3                               |
| optional4    | string | optional4                               |
| optional5    | string | optional5                               |
| biller\_code | string | biller code from provider list          |

{% tabs %}
{% tab title="200 " %}

```ruby
{
  "errorcode": "ERR",
  "errordesc": "Invalid Refill Amount",
  "details": {
    "dueamount": 804,
    "duedate": "2018-04-16",
    "customername": "RAJUBHAI HITESHBHAI TOLIYA",
    "billnumber": "103258510",
    "billdate": "2018-04-16",
    "billperiod": "NA",
    "reference_id":363636
  }
}



```

{% endtab %}
{% endtabs %}
