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

# Fulfill a payment request

> Pay a request addressed to you from a wallet or bank account

<Snippet file="shared/prerequisites.mdx" />

<Snippet file="shared/mcp-callout.mdx" />

## See what's waiting on you

List the requests addressed to you with [`GET /payment-requests/incoming`](/api-reference/paymentrequests/list-incoming-payment-requests).

<CodeGroup>
  ```python Python theme={null}
  from naturalpay import Natural

  client = Natural()
  requests = client.payment_requests.list_incoming()
  ```

  ```typescript TypeScript theme={null}
  import Natural from "@naturalpay/sdk";

  const client = new Natural();
  const requests = await client.paymentRequests.listIncoming();
  ```

  ```bash CLI theme={null}
  natural payment-requests listIncoming
  ```

  ```bash cURL theme={null}
  curl https://api.natural.com/payment-requests/incoming \
    -H "Authorization: Bearer $NATURAL_API_KEY"
  ```
</CodeGroup>

<Snippet file="api-examples/paymentRequests.listIncoming.response.mdx" />

Each item's `id` (`prq_*`) is what you fulfill or decline below. A `status` of `OPEN` means it's still waiting on you.

## Fulfill it

[`POST /payment-requests/{paymentRequestId}/fulfill`](/api-reference/paymentrequests/fulfill-payment-request) pays the request and moves the money. The amount comes from the request itself. You only choose where it is paid from, so set `paymentSource` to a wallet you own.

<Snippet file="shared/cents-note.mdx" />

<Snippet file="shared/instance-id-note.mdx" />

<CodeGroup>
  ```python Python theme={null}
  import uuid
  from naturalpay import Natural

  agent_client = Natural(
      x_agent_id="agt_019cd1798d637a4da75dce386343931d",
      x_instance_id=str(uuid.uuid4()),
  )

  payment = agent_client.payment_requests.fulfill(
      "prq_550e8400e29b41d4a716446655440000",
      payment_source={"type": "wallet", "wallet_id": "wal_550e8400e29b41d4a716446655440000"},
      idempotency_key=str(uuid.uuid4()),
  )
  ```

  ```typescript TypeScript theme={null}
  const payment = await client.paymentRequests.fulfill(
    {
      paymentRequestId: "prq_550e8400e29b41d4a716446655440000",
      paymentSource: { type: "wallet", walletId: "wal_550e8400e29b41d4a716446655440000" },
      idempotencyKey: crypto.randomUUID(),
    },
    {
      xAgentId: "agt_019cd1798d637a4da75dce386343931d",
      xInstanceId: crypto.randomUUID(),
    },
  );
  ```

  ```bash CLI theme={null}
  natural payment-requests fulfill \
    --payment-request-id prq_550e8400e29b41d4a716446655440000 \
    --json '{"paymentSource": {"type": "wallet", "walletId": "wal_550e8400e29b41d4a716446655440000"}}' \
    --x-agent-id agt_019cd1798d637a4da75dce386343931d \
    --x-instance-id "$(uuidgen)" \
    --idempotency-key "$(uuidgen)"
  ```

  ```text MCP theme={null}
  Fulfill payment request prq_550e8400e29b41d4a716446655440000 from my main wallet.
  ```

  ```bash cURL theme={null}
  curl -X POST https://api.natural.com/payment-requests/prq_550e8400e29b41d4a716446655440000/fulfill \
    -H "Authorization: Bearer $NATURAL_API_KEY" \
    -H "X-Agent-ID: agt_019cd1798d637a4da75dce386343931d" \
    -H "X-Instance-ID: $(uuidgen)" \
    -H "Idempotency-Key: $(uuidgen)" \
    -H "Content-Type: application/json" \
    -d '{
      "data": {
        "attributes": {
          "paymentSource": {
            "type": "wallet",
            "walletId": "wal_550e8400e29b41d4a716446655440000"
          }
        }
      }
    }'
  ```
</CodeGroup>

<Snippet file="api-examples/paymentRequests.fulfill.response.mdx" />

Fulfilling returns the resulting **payment** (`pay_*`), which starts in `PROCESSING`. [Track it](/guides/payments/track-payment) to confirm it settles.

<Note>You can also fulfill from a linked bank account instead of a wallet.</Note>

<Snippet file="shared/on-behalf-callout.mdx" />

## Decline it

[`POST /payment-requests/{paymentRequestId}/decline`](/api-reference/paymentrequests/decline-payment-request) turns the request down. No money moves, the requester is notified, and the request's `status` becomes `DECLINED`. Declining is final and cannot be undone.

<CodeGroup>
  ```python Python theme={null}
  import uuid

  declined = client.payment_requests.decline(
      "prq_550e8400e29b41d4a716446655440000",
      idempotency_key=str(uuid.uuid4()),
  )
  ```

  ```typescript TypeScript theme={null}
  const declined = await client.paymentRequests.decline({
    paymentRequestId: "prq_550e8400e29b41d4a716446655440000",
    idempotencyKey: crypto.randomUUID(),
  });
  ```

  ```bash CLI theme={null}
  natural payment-requests decline \
    --payment-request-id prq_550e8400e29b41d4a716446655440000 \
    --idempotency-key "$(uuidgen)"
  ```

  ```text MCP theme={null}
  Decline payment request prq_550e8400e29b41d4a716446655440000.
  ```

  ```bash cURL theme={null}
  curl -X POST https://api.natural.com/payment-requests/prq_550e8400e29b41d4a716446655440000/decline \
    -H "Authorization: Bearer $NATURAL_API_KEY" \
    -H "Idempotency-Key: $(uuidgen)"
  ```
</CodeGroup>

<Snippet file="api-examples/paymentRequests.decline.response.mdx" />

<Snippet file="shared/webhook-payment-request-fulfill.mdx" />
