# POST /gifts/:gift_id/calculate

**Resource:** [GIFTS](./gifts.md)  
**MCP tool:** `calculate_gift`  
**Scopes:** `gifts:read`  
**Write operation:** no

Work out the gift's calculated results (its calculations) for sample answers, instantly: { calculated: { outputs: [{ key, label, value, display, format }] } } with display written the way a person reads it ($3,597.30, 80%). Answers go by question key or id; a choice can be the option's words. Nothing is saved or charged. Send calculations to try a definition that is not saved yet; its problems come back in plain words.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `gift_id` | path | string | yes | The gift (list_gifts). |
| `answers` | body | object | yes | Sample answers by question key or id: { "price": 600000, "state": "NSW", "first_home": "Yes", "extras": ["Pest inspection"] }. A number question takes a number, a choice the option's words, several answers a list of them. |
| `calculations` | body | object | no | Try these calculations instead of the saved ones (same shape as update_gift calculations). Nothing is saved. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/gifts/:gift_id/calculate"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"answers":"...","calculations":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`