# POST /api/billing-runs/trigger-all-resellers

Billing Runs: Triggers the admin all-resellers billing fan-out as a background process.

Returns the batch tracking status immediately. Only an admin with no reseller context may call
this; a single-in-flight guard rejects a second trigger while one is in progress.

**Operation ID:** `POST_api_billing-runs_trigger-all-resellers`

## Authorization

Requires: MerchantBilling.BillingRuns, MerchantBilling.BillingRuns.Create, merchant scope.

Required permissions:
- `MerchantBilling.BillingRuns`
- `MerchantBilling.BillingRuns.Create`

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| suppressNulls | query | no | boolean | If true, omit properties with null values. |

## Request Body

The period key and dry-run flag.

**Content type:** `application/json`

Schema: `PhoeniXGateMerchantBillingBillingRunsCreateBillingRunInput`

**Content type:** `text/json`

Schema: `PhoeniXGateMerchantBillingBillingRunsCreateBillingRunInput`

**Content type:** `application/*+json`

Schema: `PhoeniXGateMerchantBillingBillingRunsCreateBillingRunInput`

## Responses

### 200

The fan-out batch was started.

**Content type:** `text/plain`

Schema: `PhoeniXGateMerchantBillingBillingRunsBillingRunBatchStatusDto`

**Content type:** `application/json`

Schema: `PhoeniXGateMerchantBillingBillingRunsBillingRunBatchStatusDto`

**Content type:** `text/json`

Schema: `PhoeniXGateMerchantBillingBillingRunsBillingRunBatchStatusDto`

### 403

Forbidden

**Content type:** `text/plain`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

**Content type:** `application/json`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

**Content type:** `text/json`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

### 401

Unauthorized

**Content type:** `text/plain`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

**Content type:** `application/json`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

**Content type:** `text/json`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

### 400

Bad Request

**Content type:** `text/plain`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

**Content type:** `application/json`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

**Content type:** `text/json`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

### 404

Not Found

**Content type:** `text/plain`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

**Content type:** `application/json`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

**Content type:** `text/json`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

### 501

Not Implemented

**Content type:** `text/plain`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

**Content type:** `application/json`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

**Content type:** `text/json`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

### 500

Internal Server Error

**Content type:** `text/plain`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

**Content type:** `application/json`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

**Content type:** `text/json`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

### default

The request failed. The body carries the standard error envelope: a machine-readable `error.code`, a human-readable `error.message`, and `error.validationErrors` when the failure was a validation rejection. See the error-code reference in this document's description for the values `error.code` can take.

**Content type:** `application/json`

Schema: `WinkPGHttpRemoteServiceErrorResponse`

## See also

- [All documentation](https://docs.winkpg.io/llms.txt): the machine-readable index of every public page on this site.
