> For the complete documentation index, see [llms.txt](https://specs.govstack.global/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://specs.govstack.global/payments/8-service-apis/8.3-person-to-government-apis-p2g-bill-payments.md).

# 8.3 Person-to-Government APIs (P2G) Bill Payments

The Bill Payments APIs allow government entities to accept bill payments from persons on digital platforms like mobile money and vouchers.

#### **8.3.1 billInquiryBiller**

This API is called to inquire about bill details from a Bill Aggregator or Govt Entity.

{% openapi src="/files/PansJNWk0m2kneSdMloT" path="/bills/{billId}" method="get" %}
[billInquiryRequest.yml](https://content.gitbook.com/content/xHCzUyMiFANDxPl3gSMn/blobs/e9aZJzdzzZemqJCuaU74/billInquiryRequest.yml)
{% endopenapi %}

#### **8.3.2 billrInquiryResponse**

The Payment BB updates the Bill Aggregator or government entity on the status of the Request to Pay.

{% openapi src="/files/wggw2fLjtpKLIbbjdKgw" path="/bills/{billId}" method="post" %}
[v1\_0\_1\_billInquiryResponse.yml](https://content.gitbook.com/content/xHCzUyMiFANDxPl3gSMn/blobs/dTpeOBdwK4KQ3bCHlYar/v1_0_1_billInquiryResponse.yml)
{% endopenapi %}

#### **8.3.3 markBillPayment**

This API marks a bill as paid.

{% openapi src="/files/d9p4i8OugFALHuGESq2t" path="/billTransferRequests" method="post" %}
[markBillPpaymentRequest.yml](https://content.gitbook.com/content/xHCzUyMiFANDxPl3gSMn/blobs/ioJvhQKESLIqX6OOjol8/markBillPpaymentRequest.yml)
{% endopenapi %}

#### **8.3.4 billerRtpReq**

The Bill Aggregator or Govt Entity initiates a “Request to Pay” (RTP) through this API.

{% openapi src="/files/i2cjhDNnY6iHRVGsHAVW" path="/billTransferRequests" method="post" %}
[markBillPpaymentResponse.yml](https://content.gitbook.com/content/xHCzUyMiFANDxPl3gSMn/blobs/nKpqRfpQusUHgX74btLv/markBillPpaymentResponse.yml)
{% endopenapi %}

#### **8.3.5 billerRtpReq**

{% openapi src="/files/Ijrsl5MigugoM6A2XV4N" path="/rtpUpdate" method="post" %}
[billerRtpResponse.yml](https://content.gitbook.com/content/xHCzUyMiFANDxPl3gSMn/blobs/nRvLpPWoIKIW5VszsufP/billerRtpResponse.yml)
{% endopenapi %}

#### **8.3.6 rtpStatusUpdate**

This API allows the Biller or Aggregator to inquire about the status of its RTP.

{% openapi src="/files/P4TVnG2YVqyBlcRwRqtW" path="/transferRequests/{transferRequestId}" method="get" %}
[rtpStatusUpdateRequest.yml](https://content.gitbook.com/content/xHCzUyMiFANDxPl3gSMn/blobs/rLPX6shLi5XDm6FqjcmH/rtpStatusUpdateRequest.yml)
{% endopenapi %}

#### **8.3.7 rtpStatusUpdateResponse**

This API allows the Biller or Aggregator to receive the status of its RTP.

{% openapi src="/files/8vhgVuPX4Gnr4jkD75Dm" path="/transferRequests/{transferRequestId}" method="post" %}
[rtpStatusUpdateResponse.yml](https://content.gitbook.com/content/xHCzUyMiFANDxPl3gSMn/blobs/F6DRIj5zUG4GUtuyVZ1H/rtpStatusUpdateResponse.yml)
{% endopenapi %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://specs.govstack.global/payments/8-service-apis/8.3-person-to-government-apis-p2g-bill-payments.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
