---
title: "Capture a hosted PayPal order and seal a marketplace funding receipt"
method: POST
path: "/v1/payments/paypal/capture"
tags: ["billing"]
---

# Capture a hosted PayPal order and seal a marketplace funding receipt

`POST /v1/payments/paypal/capture`

## Request

- Base URL: `https://api.runx.ai`
- URL: `https://api.runx.ai/v1/payments/paypal/capture`
- Auth: HTTP bearer

## Request body

- PayPalMarketplaceCaptureRequest
  - `principal_id` string
  - `idempotency_key` string, required
  - `posting_id` string, required
  - `payer_ref` string, required
  - `payee_ref` string, required
  - `currency` string, required
  - `price_cents` integer, required
  - `fee_cents` integer, required
  - `claim_limit` integer, required
  - `funded_claim_slots` integer, required
  - `quote_digest` string
  - `quote_expires_at` string, date-time
  - `refund_policy_ref` string
  - `order_id` string, required

## Response `200`

Sealed marketplace funding receipt.

- MarketplaceReceiptEnvelope
  - `ok` unknown, required
  - `receipt` object, required
  - `idempotent_replay` boolean, required

## Other responses

- `400`: Validation error.
- `401`: Unauthorized.
- `409`: Settlement policy refusal.
- `502`: PayPal capture failed.
- `503`: PayPal marketplace funding is not configured.

---

[API](https://skmtc.dev/runx/apis/runx-hosted-api.md) · [All operations](https://skmtc.dev/runx/apis/runx-hosted-api/llms.txt) · [OpenAPI document](https://skmtc.dev/runx/apis/runx-hosted-api/revisions/6c940d8edacc?raw)
