---
title: "Mark affiliates as paid in bulk"
method: POST
path: "/admin/payments"
tags: ["payments"]
---

# Mark affiliates as paid in bulk

`POST /admin/payments`

## Request body

- object
  - `payments` object[]
    - `affiliate_id` string
    - `amount` number
    - `created_at` string — The date the payout was sent. If nothing is set, **now** is used the the date
    - `affiliate_message` string — A message to send to this affiliate
    - `admin_note` string — A note for admin
    - `payment_method` string — The payment method via which the payment was made. Leave empty to use affiliate's set payment method for this payout
    - `payment_details` object — Payment details for the payment method. Leave empty to use affiliate's set payment method for this payout
    - `tx_ids` number[] — Optional array of transaction IDs to mark as paid

## Response `200`

- object
  - `payments` object[]
    - `id` integer — Payout ID
    - `amount` number — The amount paid in the payout
    - `currency` number — The currency for the amount
    - `affiliate_id` number — ID of the affiliate who was paid
    - `payment_method` string — Payment method of the affiliate for this payout
    - `payment_details` object — The payment details
    - `admin_note` string — Private note written by admin
    - `affiliate_message` string — The message for the affiliate
    - `created_at` string — The date when payout was created

## Other responses

- `403` — Not authenticated

---

[API](https://skmtc.dev/goaffpro/apis/goaffpro-api.md) · [All operations](https://skmtc.dev/goaffpro/apis/goaffpro-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goaffpro/goaffpro-api/revisions/832de9c7d0ae/schema)
