---
title: "Refund marketplace funding or reverse a marketplace payout through tenant Stripe Connect"
method: POST
path: "/v1/payments/connect/refund"
tags: ["billing"]
---

# Refund marketplace funding or reverse a marketplace payout through tenant Stripe Connect

`POST /v1/payments/connect/refund`

## Request

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

## Request body

- union
  - object
    - `funding_receipt_id` string, required
    - `payout_receipt_id` string
    - `idempotency_key` string, required
    - `amount_cents` integer, required
    - `refund_basis` string, required
    - `reason` string, required
    - `payer_ref` string
    - `worker_slots_refunded` integer, required
    - `worker_refunded_cents` integer, required
    - `fee_refunded_cents` integer, required
    - `policy_decision_ref` string
  - object
    - `funding_receipt_id` string
    - `payout_receipt_id` string, required
    - `idempotency_key` string, required
    - `amount_cents` integer, required
    - `refund_basis` string, required
    - `reason` string, required
    - `payer_ref` string, required
    - `worker_slots_refunded` integer
    - `worker_refunded_cents` integer
    - `fee_refunded_cents` integer
    - `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.
- `503`: Stripe Connect marketplace 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)
