> ## Documentation Index
> Fetch the complete documentation index at: https://docs.growi.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Mark credit payout

> Marks one credit-only creator payout as paid externally, after you paid the credits in your own system.

Marks a single credit-only creator payout as **paid externally**. Use this after paying a creator their credits in your own system so that the payout's status is reflected in Growi.

> [!NOTE]
>
> This endpoint is **one-shot** — payouts cannot be partially paid. Each call
> marks the entire credit payout as paid externally.

> [!NOTE]
>
> Rate limit: a minimum of **2 seconds** between requests per API key.

## Request body

| Field | Type | Description | Required |
| - | - | - | - |
| `creator_payout_uuid` | String | The `uuid` of the payout (from [List payouts](https://docs.growi.io/api-reference/endpoint/payouts/list-payouts.md), `GET /payouts`) | Yes |

## Validation rules

The endpoint rejects the request unless all of the following are true:

1. `creator_payout_uuid` is present.
2. The payout belongs to the authenticated organization (or one of its child orgs).
3. The payout's status is `due` or `pending_completing_requirements`.
4. The payout's `total_credit_amount` is greater than `0`.
5. The payout's `total_cash_amount` is `0` (no mixed cash + credits).

## Request example

```bash theme={"dark"}
curl -X POST "https://api.growi.io/api/public/v1/stats/mark_credit_payout" \
     -H "Authorization: Bearer YOUR_PUBLIC_API_KEY" \
     -H "Content-Type: application/json" \
     -d '{"creator_payout_uuid":"UUID_OF_PAYOUT"}'
```

## Response example

**200 OK**

```json theme={"dark"}
{
  "success": true,
  "creator_payout": {
    "id": 891439,
    "uuid": "EXAMPLE_UUID",
    "creator_name": "Example Creator",
    "since_date": "03/03/2026",
    "deal_date": "05/02/2026",
    "status": "Paid externally",
    "amount": "$0.00",
    "credits_enabled": true,
    "credit_name": "credits",
    "total_credit_amount": 750,
    "formatted_total_credit_amount": "750 credits"
  }
}
```

## Response fields

| Field | Type | Description |
| - | - | - |
| `success` | Boolean | Indicates whether the payout was marked as paid externally |
| `creator_payout` | Object | The updated payout |
| `creator_payout.id` | Integer | Internal identifier for the payout |
| `creator_payout.uuid` | String | Stable identifier |
| `creator_payout.creator_name` | String | Creator's display name |
| `creator_payout.since_date` | String | Start date of the payout period (MM/DD/YYYY) |
| `creator_payout.deal_date` | String | Billing cycle end / due date (MM/DD/YYYY) |
| `creator_payout.status` | String | Will be `Paid externally` after a successful call |
| `creator_payout.amount` | String | Cash amount, formatted with currency |
| `creator_payout.credits_enabled` | Boolean | Whether credits are enabled for the campaign |
| `creator_payout.credit_name` | String \| null | Org-defined label (e.g. `"credits"`) |
| `creator_payout.total_credit_amount` | Integer | Total credit amount for the payout |
| `creator_payout.formatted_total_credit_amount` | String \| null | Display string (e.g. `"750 credits"`) |

## Error responses

All errors return a non-2xx response with a JSON body of the form:

```json theme={"dark"}
{ "error": "<message>" }
```

| Condition | Status | Message |
| - | - | - |
| Missing `creator_payout_uuid` | 4xx | `creator_payout_uuid is required` |
| Payout not found / not in your org | 4xx | `Creator payout not found` |
| Status is not `due` / `pending_completing_requirements` | 4xx | `Cannot mark payout as paid: current status is <status>` |
| `total_credit_amount` is `0` | 4xx | `Only credit payouts can be marked paid via this endpoint` |
| Auth header missing or invalid | 401 | `Not Authenticated` |

> [!NOTE]
>
> If a payout has already been marked as paid externally, subsequent calls
> return a 4xx with `Cannot mark payout as paid: current status is
>     paid_externally`. Treat that response as a successful no-op on the client
> side.

## Typical workflow

1. [`GET /payouts?invoice_status=due`](https://docs.growi.io/api-reference/endpoint/payouts/list-payouts) to fetch the payouts due to your creators. Keep the rows with a `total_credit_amount` above `0`: those are the credit payouts. A row that is `updating` has `null` amounts until it finishes recalculating, so check it again on a later call.
2. Pay each creator their credits in your own system.
3. For each paid creator, `POST /stats/mark_credit_payout` with their `creator_payout_uuid` to record the payout in Growi.

```bash cURL theme={"dark"}
curl -X POST "https://api.growi.io/api/public/v1/stats/mark_credit_payout" \
     -H "Authorization: Bearer YOUR_PUBLIC_API_KEY" \
     -H "Content-Type: application/json" \
     -d '{"creator_payout_uuid":"UUID_OF_PAYOUT"}'
```

```json 200 theme={"dark"}
{
  "success": true,
  "creator_payout": {
    "id": 891439,
    "uuid": "EXAMPLE_UUID",
    "creator_name": "Example Creator",
    "since_date": "03/03/2026",
    "deal_date": "05/02/2026",
    "status": "Paid externally",
    "amount": "$0.00",
    "credits_enabled": true,
    "credit_name": "credits",
    "total_credit_amount": 750,
    "formatted_total_credit_amount": "750 credits"
  }
}
```


## OpenAPI

````yaml POST /stats/mark_credit_payout
openapi: 3.0.1
info:
  title: Growi API
  description: >-
    API documentation for Growi platform, showcasing the public tracking event
    endpoint
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.growi.io/api/public/v1
security:
  - bearerAuth: []
paths:
  /stats/mark_credit_payout:
    post:
      description: >-
        Marks one credit-only creator payout as paid externally, after you paid
        the credits in your own system.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - creator_payout_uuid
              properties:
                creator_payout_uuid:
                  type: string
                  description: The payout uuid from GET /payouts
            example:
              creator_payout_uuid: UUID_OF_PAYOUT
      responses:
        '200':
          description: Payout marked paid externally
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  creator_payout:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: Payout record id
                      uuid:
                        type: string
                        description: Stable payout id. Send it to mark_credit_payout
                      creator_name:
                        type: string
                      since_date:
                        type: string
                        description: Cycle start (MM/DD/YYYY)
                        example: 03/03/2026
                      deal_date:
                        type: string
                        description: Cycle end / due date (MM/DD/YYYY)
                        example: 05/02/2026
                      status:
                        type: string
                        description: >-
                          Due, Pending, Paid, Sent from account, Paid
                          externally, Canceled or In progress
                      amount:
                        type: string
                        description: Cash amount, formatted with currency
                        example: $0.00
                      credits_enabled:
                        type: boolean
                      credit_name:
                        type: string
                        nullable: true
                      total_credit_amount:
                        type: integer
                      formatted_total_credit_amount:
                        type: string
                        nullable: true
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '403':
          description: Read-only (viewer) API keys can't call POST endpoints
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '422':
          description: >-
            The payout is missing, not yours, not due, has no credit amount or
            also has a cash amount
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '429':
          description: Rate limited. See Retry-After
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.