---
title: "ListPaymentResources"
description: "List priced resources"
canonical: "https://pgbeam.com/docs/go-sdk/payments/listPaymentResources"
last-updated: "2026-10-22T11:48:14.000Z"
---

# ListPaymentResources

> List priced resources

URL: https://pgbeam.com/docs/go-sdk/payments/listPaymentResources

{/* Auto-generated from OpenAPI. Do not edit. Run `pnpm generate:sdk-docs` to regenerate. */}

Lists what an agent can buy over the Machine Payments Protocol, with the unit, the pack size, and the price of one pack. Discovery only: the `WWW-Authenticate: Payment` challenge returned by a priced operation is always authoritative.

This endpoint takes no authentication so an agent can read the price before it holds a credential.

## Usage

```go
result, err := client.Payments.ListPaymentResources(ctx)
```

## Parameters

| Parameter | Type              | Required | Description     |
| --------- | ----------------- | -------- | --------------- |
| ctx       | `context.Context` | Yes      | Request context |

## Response

`(*pgbeam.ListPaymentResourcesResponse, error)`: the priced resource catalog.

## Example

```go
import pgbeam "go.pgbeam.com/sdk"

client := pgbeam.NewClient(&pgbeam.ClientOptions{
  APIKey: "pbu_...",
})

result, err := client.Payments.ListPaymentResources(ctx)
if err != nil {
  log.Fatal(err)
}
fmt.Println(result)
```

## Errors

| Status | Description                                                                                                                   |
| ------ | ----------------------------------------------------------------------------------------------------------------------------- |
| 429    | Rate limited. `code` is `RATE_LIMITED`.                                                                                       |
| 503    | The service is temporarily unable to answer. `code` is `SERVICE_UNAVAILABLE`. Safe to retry after the delay in `Retry-After`. |