---
title: "Refund PayPal marketplace funding and seal a refund receipt"
method: POST
path: "/v1/payments/paypal/refund"
tags: ["billing"]
---

# Refund PayPal marketplace funding and seal a refund receipt

`POST /v1/payments/paypal/refund`

## Request

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

## Request body

- PayPalMarketplaceRefundRequest
  - `funding_receipt_id` string, required
  - `idempotency_key` string, required
  - `amount_cents` integer, required
  - `refund_basis` string, required
  - `reason` string, required
  - `worker_slots_refunded` integer, required
  - `worker_refunded_cents` integer, required
  - `fee_refunded_cents` integer, required
  - `policy_decision_ref` string

## Response `200`

Sealed marketplace refund receipt.

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

## Other responses

- `400`: Validation error.
- `401`: Unauthorized.
- `404`: Receipt not found.
- `409`: Refund policy refusal.
- `502`: PayPal refund 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)
