> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.pay4power.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.pay4power.com/_mcp/server.

# Electricity

> Validate meters, initiate electricity purchases, and vend tokens.

The electricity flow validates customer meter details, prepares the transaction, and vends the final token or payment result.

## Flow

1. Retrieve electricity providers.
2. Validate or initiate the customer transaction using meter details.
3. Confirm returned customer and tariff details.
4. Vend the transaction.
5. Requery if the response is pending or requires confirmation.

## Required data

| Field         | Purpose                                             |
| ------------- | --------------------------------------------------- |
| Provider code | Identifies the electricity distribution company.    |
| Meter number  | Identifies the customer meter.                      |
| Meter type    | Prepaid or postpaid where required by the provider. |
| Amount        | Purchase amount for the electricity transaction.    |
| Reference     | Your unique transaction reference.                  |

## Production guidance

Always show the validated customer name and address before final vend where your product flow allows it. This reduces wrong-meter purchases and support escalations.