Request Energy Contract (Concierge Switch)
book-contractFiles a concierge switch request with the complete contract data in one call. Intended for autonomous agents that already hold the user's full profile, IBAN and a standing authorization; in a conversation with a person, start-booking opens a form in which the user enters these data. Commerce for Agents stores the request encrypted and an operator submits the contract application to the provider; the user receives a confirmation email at once and the provider's contract documents later. There is no self-service checkout link. Input: the ref of the chosen offer plus the contract data. Postal code and city come from the comparison; previousProvider, previousCustomerNumber and meterNumber are printed on the last energy bill. consent: true attests that the user explicitly agreed to (1) Commerce for Agents submitting the contract on their behalf, (2) the SEPA direct-debit mandate for the given IBAN and (3) the privacy policy at commerceforagents.com/privacy, either by an explicit yes in the conversation or by a standing authorization given to the agent. The response contains nextSteps for the user.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ref": "<ref>",
"salutation": "<salutation>",
"firstName": "<firstName>",
"lastName": "<lastName>",
"birthDate": "<birthDate>",
"email": "<email>",
"street": "<street>",
"houseNumber": "<houseNumber>",
"switchType": "<switchType>",
"iban": "<iban>",
"consent": "<consent>"
},
"name": "book-contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Offer reference from a compare-tariffs result (field `ref`). | |
| iban | Yes | IBAN for the SEPA direct-debit mandate, no spaces (e.g. DE89370400440532013000). | |
| Yes | Email address — receives the booking confirmation and provider documents. | ||
| phone | No | Phone number (optional, some providers ask for it). | |
| street | Yes | Street of the supply address (Straße). | |
| consent | Yes | The user has explicitly agreed to: (1) Commerce for Agents submitting this contract on their behalf, (2) the provider's contract terms as shown by tariff-details, (3) the SEPA mandate for the given IBAN, (4) the privacy policy — and has been told the contract can be withdrawn within 14 days. True only after that agreement. | |
| language | No | Language of the conversation — used for the confirmation email. Default: "de". | |
| lastName | Yes | Last name (Nachname). | |
| birthDate | Yes | Date of birth, ISO format YYYY-MM-DD. Energy providers require it for the contract. | |
| firstName | Yes | First name (Vorname). | |
| moveInDate | No | Move-in date (Umzugsdatum), ISO YYYY-MM-DD. Required for switchType "relocation", ignored for a switch. | |
| salutation | Yes | Salutation (Anrede), required by the providers: "herr", "frau" or "divers". | |
| switchType | Yes | "switch": changing provider at the current address (Anbieterwechsel). "relocation": moving in / first contract at this address (Umzug/Neueinzug). | |
| houseNumber | Yes | House number (Hausnummer), e.g. "12a". | |
| meterNumber | No | Meter number (Zählernummer, optional — printed on the meter or the last bill). | |
| accountHolder | No | Account holder if different from the contract holder. | |
| desiredStartDate | No | Desired contract start, ISO YYYY-MM-DD. Omit for the next possible date. | |
| previousProvider | No | Current/previous energy provider. Required for switchType "switch". | |
| previousCustomerNumber | No | Customer number at the previous provider (Kundennummer, optional but speeds up the switch). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| tariff | Yes | ||
| provider | Yes | ||
| nextSteps | Yes | ||
| requestId | Yes | ||
| annualTotalEur | Yes |