KreedX — Banking API and Payments Platformby DigiPulse Solutions
Developer Docs
POSTBBPS

Fetch bill

Returns the live outstanding amount, so the customer pays what is actually owed rather than a number typed from memory.

Sample reference
This shows the shape of the call — the operation, its fields and what comes back. The exact paths, base URL and any extra fields are confirmed with your sandbox credentials.

POST{BASE_URL}/v1/bbps/bills/fetch

🚧 Not every biller has a bill to fetch

If the biller's fetchSupported is false, skip this call — the customer enters the amount, and you omit billId when submitting the payment.

📘 Fetch again if the customer comes back later

The outstanding amount can change. Fetch just before paying rather than reusing an amount from an earlier visit.

Headers

Authorizationstringrequired

Bearer <your API key>. Sandbox and production keys are separate.

Content-Typestringrequired

application/json on every request that has a body.

Request body

billerIdstringrequired

From the biller catalogue.

customerParamsobjectrequired

The same fields you validated.

Response fields

billIdstringrequired

Pass this when you submit the payment.

amountnumberrequired

Outstanding amount in rupees.

dueDatestringoptional

ISO date. Worth showing — it is why customers come back.

Errors

Every API returns the same envelope on failure, so one handler covers the whole catalogue.

400VALIDATION_ERROR

A field is missing or malformed. The message names the field.

401UNAUTHORIZED

The API key is missing, wrong, or for the other environment.

404NOT_FOUND

No resource with that ID or reference exists.

409DUPLICATE_REFERENCE

This clientReference was already used. Safe to treat as a repeat of the first call.

429RATE_LIMITED

Too many requests. Back off and retry after the Retry-After header.

503UPSTREAM_UNAVAILABLE

The biller, bank or network is down. Retry later; nothing was charged.