# Accounts API API

> Accounts API API on Apizie: 9 endpoints (Retrieves details of a customers account, Get a customers account balance, Sets a flag based on name to value provided for the user., Gets a customer's account payments, …) returned as clean JSON through one API key. 9 endpoints are live now. Call it over REST at https://zieapi.vercel.app/v1/entertainment:whapi-accounts/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `entertainment:whapi-accounts`
- Category: Entertainment
- Status: live
- Source: http://developer.williamhill.com
- Page: https://zieapi.vercel.app/api/entertainment/whapi-accounts
- OpenAPI: https://zieapi.vercel.app/api/entertainment/whapi-accounts/openapi.json

The Accounts API is a collection of methods used to query a customer account. It allows the developer to retrieve account-related data such as the user account balance. It should be noted that regional variations may…

## Endpoints

### Retrieves details of a customers account
`GET https://zieapi.vercel.app/v1/entertainment:whapi-accounts/get-details`

| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | string | yes | A unique identifier of your application that is generated by the API portal. |
| apiSecret | string | yes | Another unique identifier for your application. |
| apiTicket | string | yes | Ticket Granting Ticket obtained from a previous request |
| fields | array | no | Specify an absolute field list to return (Comma-Separated List) |
| include | array | no | Specify fields in addition to the default to return (Comma-Separated List) |
| exclude | array | no | Specify fields from the default to exclude (Comma-Separated List) |
| territory | string | no | Territory from which request originates |
| languageAsPerTerritory | string | no | Defines response field name language, true (default) returns in language defined by territory, false returns in English |

### Get a customers account balance
`GET https://zieapi.vercel.app/v1/entertainment:whapi-accounts/get-balance`

| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | string | yes | A unique identifier of your application that is generated by the API portal. |
| apiSecret | string | yes | Another unique identifier for your application. |
| apiTicket | string | yes | Ticket Granting Ticket obtained from a previous request |
| fields | array | no | Specify an absolute field list to return (Comma-Separated List) |
| include | array | no | Specify fields in addition to the default to return (Comma-Separated List) |
| exclude | array | no | Specify fields from the default to exclude (Comma-Separated List) |
| territory | string | no | Territory from which request originates |
| languageAsPerTerritory | string | no | Defines response field name language, true (default) returns in language defined by territory, false returns in English |

### Sets a flag based on name to value provided for the user.
`POST https://zieapi.vercel.app/v1/entertainment:whapi-accounts/set-account-flags`

| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | string | yes | A unique identifier of your application that is generated by the API portal. |
| apiSecret | string | yes | Another unique identifier for your application. |
| apiTicket | string | yes | Ticket Granting Ticket obtained from a previous request |
| apiCountryCode | string | no | A two-character ISO 3166-1-Alpha-2 code representing the country API to use. |
| territory | string | no | Territory from which request originates |
| languageAsPerTerritory | string | no | Defines response field name language, true (default) returns in language defined by territory, false returns in English |
| body | object | yes | JSON request body |

### Gets a customer's account payments
`GET https://zieapi.vercel.app/v1/entertainment:whapi-accounts/get-payments`

| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | string | yes | A unique identifier of your application that is generated by the API portal. |
| apiSecret | string | yes | Another unique identifier for your application. |
| apiTicket | string | yes | Ticket Granting Ticket obtained from a previous request |
| page | number | no | The page number to return (Used with pageSize) |
| pageSize | number | no | Specify the number of results to return per page. |
| dateFrom | string | no | The FROM datetime from payments to be returned. (yyyy-MM-ddTHH:mm:ss) |
| dateTo | string | no | The TO datetime for payments to be returned. (yyyy-MM-ddTHH:mm:ss) |
| sort | string | no | The order the response will be retuned by. i.e. date,desc |
| transactionType | string | no | Allows the user to select with they want to see withdrawls or deposits. If it is omitted from the query both types will be returned |
| fields | array | no | Specify an absolute field list to return (Comma-Separated List) |
| include | array | no | Specify fields in addition to the default to return (Comma-Separated List) |
| exclude | array | no | Specify fields from the default to exclude (Comma-Separated List) |
| territory | string | no | Territory from which request originates |
| languageAsPerTerritory | string | no | Defines response field name language, true (default) returns in language defined by territory, false returns in English |

### Gets a customer's plus card details if they exist.
`GET https://zieapi.vercel.app/v1/entertainment:whapi-accounts/get-plus-card-details`

| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | string | yes | A unique identifier of your application that is generated by the API portal. |
| apiSecret | string | yes | Another unique identifier for your application. |
| apiTicket | string | yes | Ticket Granting Ticket obtained from a previous request |
| fields | array | no | Specify an absolute field list to return (Comma-Separated List) |
| include | array | no | Specify fields in addition to the default to return (Comma-Separated List) |
| exclude | array | no | Specify fields from the default to exclude (Comma-Separated List) |

### Sets a customer's plus card as Lost/Stolen
`POST https://zieapi.vercel.app/v1/entertainment:whapi-accounts/set-lost-stolen`

| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | string | yes | A unique identifier of your application that is generated by the API portal. |
| apiSecret | string | yes | Another unique identifier for your application. |
| apiTicket | string | yes | Ticket Granting Ticket obtained from a previous request |

### Sets a customer's plus card phone number
`POST https://zieapi.vercel.app/v1/entertainment:whapi-accounts/set-phone-number`

| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | string | yes | A unique identifier of your application that is generated by the API portal. |
| apiSecret | string | yes | Another unique identifier for your application. |
| apiTicket | string | yes | Ticket Granting Ticket obtained from a previous request |
| oldPhoneNumber | string | yes | Old phone number to replace |
| body | object | yes | JSON request body |

### Sets a customer's plus card pin
`POST https://zieapi.vercel.app/v1/entertainment:whapi-accounts/set-pin`

| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | string | yes | A unique identifier of your application that is generated by the API portal. |
| apiSecret | string | yes | Another unique identifier for your application. |
| apiTicket | string | yes | Ticket Granting Ticket obtained from a previous request |
| body | object | yes | JSON request body |

### Updates a customer's plus card pin
`POST https://zieapi.vercel.app/v1/entertainment:whapi-accounts/update-pin`

| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | string | yes | A unique identifier of your application that is generated by the API portal. |
| apiSecret | string | yes | Another unique identifier for your application. |
| apiTicket | string | yes | Ticket Granting Ticket obtained from a previous request |
| body | object | yes | JSON request body |

## Example
```
curl "https://zieapi.vercel.app/v1/entertainment:whapi-accounts/get-details" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the Accounts API API?
Create a free Apizie key, then send GET https://zieapi.vercel.app/v1/entertainment:whapi-accounts/get-details with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Accounts API API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the Accounts API API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key entertainment:whapi-accounts.

### What is the status of the Accounts API API?
Live: works with just an Apizie key
