> ## Documentation Index
> Fetch the complete documentation index at: https://nevermined.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# get_payment_result

> Catalog MCP tool: read the result of a paid call by its paymentId — for a pending call, or a response you lost.

Read the result of a paid call by its `paymentId`. Use it when [`pay_service`](/docs/mcp/catalog-mcp/pay-service) answered `{ "status": "pending" }`, or to recover a response you lost. Reading charges nothing. Needs a credential.

**Auth:** key / grant · **Charges:** nothing

## Arguments

| Argument | Required | Type | Description |
| - | - | - | - |
| `paymentId` | yes | string (uuid) | The `paymentId` a `pay_service` result returned. |

## Returns

A `state` and, when ready, the service's response:

```json theme={null}
{
  "state": "Ready",
  "status": 200,
  "bodyEncoding": "json",
  "body": { "…": "the vendor's response" }
}
```

* `state: "Pending"` — still running; call again in a few seconds. **Don't** call `pay_service` again — it returns the same `pending`.
* `state: "Ready"` — `status` is the service's HTTP status, `body` its response. `bodyEncoding` is `json`, `text`, or `base64`.
* `state: "Failed"` — the call ended without a response; `failureReason` says why.
* `{ "status": "not_available" }` — nothing to return. Results are kept for **24 hours**, for the account that paid.

## Try it

**Ask your assistant:**

> Get the result of payment `b1f9c2e4-…` (use a `paymentId` from a `pay_service` result).

**Call it directly** (charges nothing):

```bash theme={null}
curl -X POST https://mcp.live.nevermined.app/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer $NVM_API_KEY" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_payment_result","arguments":{"paymentId":"b1f9c2e4-0000-0000-0000-000000000000"}}}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.