---
title: "Payout:Clearing"
method: POST
path: "/payout/clearing"
tags: ["Payout"]
---

# Payout:Clearing

`POST /payout/clearing`

Create a new clearing based on the revenue group linked to the provided service.

## Request body

- object
  - `transaction` object, required
    - `serviceId` Id, required — unresolved $ref
    - `description` Description — unresolved $ref
    - `reference` Reference — unresolved $ref
    - `exchangeUrl` ExchangeUrl — unresolved $ref
    - `amount` Amount, required
      - `value` integer, required — The amount in cents.
      - `currency` string — The currency in ISO-4217 format.
  - `stats` Stats
    - `info` string — The used info code which can be tracked in the stats.
    - `tool` string — The used tool code which can be tracked in the stats.
    - `object` string — The object which can be tracked in stats.
    - `extra1` string — The first free value which can be tracked in the stats.
    - `extra2` string — The second free value which can be tracked in the stats.
    - `extra3` string — The third free value which can be tracked in the stats.
    - `domainId` string — The ID of the duplicate content URL

## Response `201`

Clearing created

- object
  - `transaction` object
    - `id` Id — unresolved $ref
    - `orderId` OrderId — unresolved $ref
    - `serviceId` Id — unresolved $ref
    - `description` Description — unresolved $ref
    - `reference` Reference — unresolved $ref
    - `amount` Amount
      - `value` integer, required — The amount in cents.
      - `currency` string — The currency in ISO-4217 format.
    - `createdAt` Created — unresolved $ref
    - `modifiedAt` Modified — unresolved $ref

## Other responses

- `400` — Bad request, see response body for more information
- `401` — Unauthorized. Supplied credentials are invalid
- `403` — Forbidden. Supplied credentials have no rights
- `404` — Resource not found
- `405` — Used HTTP method is not allowed
- `406` — Not acceptable. The supplied content type in the accept parameter in the header is not supported
- `415` — Unsupported media. The supplied content type in the content-type parameter in the header is not supported
- `422` — Unprocessable entity, see response body for more information
- `429` — Rate limit reached.
- `500` — An internal error occurred

---

[API](https://skmtc.dev/pay/apis/pay-transaction-gateway-unit-api.md) · [All operations](https://skmtc.dev/pay/apis/pay-transaction-gateway-unit-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pay/pay-transaction-gateway-unit-api/revisions/2bc260c7bdfc/schema)
