---
title: "Reset an unpaid onboarding checkout for a customer (immutable super-admin only)"
method: POST
path: "/accountant/companies/{customerId}/onboarding-payment/reset"
tags: ["Accountant Portal", "Onboarding"]
---

# Reset an unpaid onboarding checkout for a customer (immutable super-admin only)

`POST /accountant/companies/{customerId}/onboarding-payment/reset`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/onboarding-payment/reset`
- Auth: HTTP bearer

Immutable super-admin (`SUPER_ADMIN_USER_IDS`) only. Under the flow's billing lease, re-reads Stripe and refuses with 409 unless the flow is at `subscribe`, IDs match, nothing is collected, and no payment is `processing` or `succeeded`. Cancels the incomplete subscription, voids its open/uncollectible invoice, clears the flow's subscription binding, and records one `onboarding_checkout.reset` audit row. Idempotent on replay.

## Path parameters

- `customerId` string, uuid, required

## Request body

- AccountantOnboardingPaymentResetInput
  - `expectedSubscriptionId` string, required
  - `expectedInvoiceId` string, nullable, required

## Response `200`

Checkout reset or already reset

- AccountantOnboardingPaymentResetApiResponse
  - `success` true, required
  - `data` AccountantOnboardingPaymentResetResult, required
    - `status` 'reset' | 'already_reset', required
    - `flowId` string, uuid, required
    - `subscriptionId` string, required
    - `invoiceId` string, nullable, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: Request conflicts with the durable onboarding state
- `422`: Validation error
- `503`: Required sandbox provider configuration or service is unavailable

## Changes

- **2026-11-24** `23cf37da5f77`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/onboarding-payment/reset/post.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
