# prov.authorize.calls.guest_confirmation

prov.authorize.calls.guest_confirmation in Python SDK. Send a confirmation straight to the guest contact you hold (`{"phone":..., "email":...}`, one or both).

## Signature

```python
prov.authorize.calls.guest_confirmation(check_id: str, description: str, contact: Optional[dict] = …, delivery: Optional[str] = …, channels: Optional[list] = …, follow_up_text: Optional[dict] = …, reminders: Optional[dict] = …, amount: Optional[int] = …, currency: Optional[str] = …, wait: Optional[int] = …) -> Any
```

## Parameters

- `check_id` (str)
- `description` (str)
- `contact` (Optional[dict], optional)
- `delivery` (Optional[str], optional)
- `channels` (Optional[list], optional)
- `follow_up_text` (Optional[dict], optional)
- `reminders` (Optional[dict], optional)
- `amount` (Optional[int], optional)
- `currency` (Optional[str], optional)
- `wait` (Optional[int], optional)

## Returns

`Any`

## HTTP operation

[`POST /v1/authorize/call_checks/{id}/guest_confirmations`](https://provenanceauth.com/docs/api/call-checks.md#post-v1-authorize-call-checks-id-guest-confirmations): Confirm with the guest

## Errors

- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`customer_routing_not_allowed`](https://provenanceauth.com/docs/platform/errors.md#customer_routing_not_allowed)
- [`trial_ended`](https://provenanceauth.com/docs/platform/errors.md#trial_ended)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`calls_not_configured`](https://provenanceauth.com/docs/platform/errors.md#calls_not_configured)

## Example

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/call_checks`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "from": "+14155550177", "to": "+14155550123", "code": "123456" }),
})).json();
const checkId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/call_checks/${checkId}/guest_confirmations`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "contact": {
      "phone": "+14155550199",
      "email": "rowan@tarrowby.example"
    },
    "description": "Confirm your table for 2 at 7pm Friday"
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/call_checks", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "from": "+14155550177",
    "to": "+14155550123",
    "code": "123456"
}).json()
check_id = step1["id"]
data = httpx.post(f"{api}/v1/authorize/call_checks/{check_id}/guest_confirmations", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "contact": {
        "phone": "+14155550199",
        "email": "rowan@tarrowby.example"
    },
    "description": "Confirm your table for 2 at 7pm Friday"
}).json()
```
