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

# List Mandates

> List the standing mandates on an account, with approved and remaining amounts.

List the caller's mandates. Merchant keys pass `customer_id`; control-plane callers (dashboard) scope by `dashboard_user_id` (+ `agent_id`).

`GET /v1/mandates` · Authenticated with your secret key.

Need to **create** a mandate? Mandate creation is part of the Session APIs — [create a mandate](https://docs.prava.space/api-reference/create-session.md#mandate-setup) with a `mandate_setup` block on Create Session.

## Query parameters

**customer\_id** `string`

Filter to one customer — the `external_user_id` (the `user_id` used at session creation) or a `cus_` id.

**standing\_only** `boolean`

When `true`, return only standing mandates (exclude the transient per-checkout mandates that every ordinary checkout creates internally).

## Response

**mandates** `object[]`

**mandate properties**

**id** `string`

Mandate id (`mdt_…`).

**agentId** `string`

**customerId** `string`

**externalUserId** `string`

**state** `string`

Display-derived usability: `available`, `consumed`, `expired`, `paused`, `cancelled`, or `pending`.

**status** `string`

`pending`, `active`, `paused`, `consumed`, `cancelled`, or `expired`.

**recurringFrequency** `string`

`one_time`, `weekly`, `monthly`, `yearly`.

**merchantScope** `string`

`any` or `listed`.

**merchantName** `string`

**approvedAmount** `string`

Authorized per-charge cap.

**remaining** `string`

Remaining spend this window — indicative for display; the enforced ceiling is the amount cap at the card-network level.

**currency** `string`

**validUntil** `string | null`

**renewsAt** `string | null`

Next cycle boundary for recurring mandates.

**lastCharge** `object | null`

`{ status, at }`.

**createdAt** `string`

**updatedAt** `string`

## Notes

* Use the returned `id` with [Get a Mandate](https://docs.prava.space/api-reference/mandate-get.md), [Charge a Mandate](https://docs.prava.space/api-reference/mandate-charge.md), or the [lifecycle actions](https://docs.prava.space/api-reference/mandate-lifecycle.md).

## Error responses

| Status | Code | Cause |
| - | - | - |
| 401 | `AUTH_REQUIRED` | Missing or invalid credentials |
| 403 | `FORBIDDEN` | Caller may not list these mandates |

```bash cURL theme={null}
curl "https://sandbox.api.prava.space/v1/mandates?customer_id=user_123&standing_only=true" \
  -H "Authorization: Bearer sk_test_..."
```

```python Python theme={null}
import requests

resp = requests.get(
    "https://sandbox.api.prava.space/v1/mandates",
    headers={"Authorization": "Bearer sk_test_..."},
    params={"customer_id": "user_123", "standing_only": "true"},
)
```

```javascript JavaScript theme={null}
const resp = await fetch(
  "https://sandbox.api.prava.space/v1/mandates?customer_id=user_123&standing_only=true",
  {
    headers: {
      Authorization: "Bearer sk_test_...",
    },
  }
);
```

```json 200 Success theme={null}
{
  "mandates": [
    {
      "id": "mdt_123",
      "status": "active",
      "state": "available",
      "recurringFrequency": "monthly",
      "merchantScope": "listed",
      "merchantName": "Acme Store",
      "approvedAmount": "40.00",
      "remaining": "40.00",
      "currency": "USD",
      "validUntil": "2027-07-26T00:00:00Z",
      "renewsAt": "2026-08-26T00:00:00Z",
      "lastCharge": null,
      "createdAt": "2026-07-26T00:00:00Z",
      "updatedAt": "2026-07-26T00:00:00Z"
    }
  ]
}
```

```json 401 Unauthorized theme={null}
{
  "error": { "code": "AUTH_REQUIRED", "message": "Missing or invalid credentials" }
}
```

```json 403 Forbidden theme={null}
{
  "error": { "code": "FORBIDDEN", "message": "Caller may not list these mandates" }
}
```


## OpenAPI

````yaml api-reference/openapi.json GET /v1/mandates
openapi: 3.1.0
info:
  title: Prava Payments API
  description: >-
    Server-side REST API for Prava Payments. All requests are authenticated with
    your secret key (sk_test_* in sandbox, sk_live_* in production).
  version: 1.0.0
servers:
  - url: https://sandbox.api.prava.space
    description: Sandbox
  - url: https://api.prava.space
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/mandates:
    get:
      summary: List Mandates
      description: >-
        List the caller's mandates. Merchant keys pass customer_id;
        control-plane callers pass dashboard_user_id (+ agent_id). Set
        standing_only=true to exclude transient per-checkout mandates.
      operationId: listMandates
      parameters:
        - name: customer_id
          in: query
          required: false
          description: >-
            Filter to one customer (merchant keys): the external_user_id or a
            cus_ id.
          schema:
            type: string
        - name: standing_only
          in: query
          required: false
          description: When true, return only standing mandates.
          schema:
            type: boolean
      responses:
        '200':
          description: The caller's mandates.
          content:
            application/json:
              schema:
                type: object
                properties:
                  mandates:
                    type: array
                    items:
                      $ref: '#/components/schemas/Mandate'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
components:
  schemas:
    Mandate:
      type: object
      description: A standing spending authorization (list view).
      properties:
        id:
          type: string
          description: Mandate id (mdt_…).
        agentId:
          type: string
        customerId:
          type: string
        externalUserId:
          type: string
        state:
          type: string
          enum:
            - available
            - consumed
            - expired
            - paused
            - cancelled
            - pending
          description: Display-derived usability.
        status:
          type: string
          enum:
            - pending
            - active
            - paused
            - consumed
            - cancelled
            - expired
        recurringFrequency:
          type: string
          enum:
            - one_time
            - weekly
            - monthly
            - yearly
        merchantScope:
          type: string
          enum:
            - any
            - listed
        merchantName:
          type: string
        approvedAmount:
          type: string
          description: The authorized per-charge cap.
        remaining:
          type: string
          description: >-
            Remaining spend in the current window (indicative; the network
            enforces the real cap).
        currency:
          type: string
        validUntil:
          type: string
          format: date-time
          nullable: true
        renewsAt:
          type: string
          format: date-time
          nullable: true
          description: Next cycle boundary for recurring mandates.
        lastCharge:
          type: object
          nullable: true
          properties:
            status:
              type: string
            at:
              type: string
              format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code (e.g. VAL_2001, AUTH_1001)
            message:
              type: string
              description: Human-readable error message
            details:
              type: object
              description: >-
                Optional — included for validation errors to specify which
                fields failed
  responses:
    Error:
      description: Error response
      headers:
        X-Response-ID:
          $ref: '#/components/headers/XResponseId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  headers:
    XResponseId:
      description: >-
        UUID correlation identifier for this response. Include it when
        contacting Prava support.
      schema:
        type: string
        format: uuid
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your secret key: sk_test_* (sandbox) or sk_live_* (production).'

````

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