---
title: "Pay a set of transactions"
method: POST
path: "/admin/payments/transactions/pay"
tags: ["payments"]
---

# Pay a set of transactions

`POST /admin/payments/transactions/pay`

## Request body

- object
  - `items` object[] — List of payout entries to process
    - `affiliate_id` number — ID of the affiliate to pay
    - `amount` number — Amount to pay the affiliate
    - `amount_after_tax` number — Amount after withholding tax deduction. Defaults to amount if not set
    - `withholding_tax_amount` number — Withholding tax amount to deduct
    - `tx_ids` number[] — Transaction IDs to mark as paid
    - `payment_method` string — Payment method for this payout
    - `payment_details` object — Payment details for the payment method
    - `payment_note` string — Private note for admin
    - `partner_message` string — Message to send to the affiliate
  - `session_id` string — Payout session ID to associate with this payment
  - `pay_via` 'paypal' | 'venmo' | 'store_credit' — Payment gateway to use. Supported values: 'paypal', 'venmo', 'store_credit'. Leave empty for manual payout
  - `encryption_key` string — Encryption key required when using PayPal or Venmo payouts
  - `discount_config` object — Configuration for store credit payouts (used when pay_via is 'store_credit')
    - `collection_ids` string[] — Restrict discount to these collection IDs
    - `shopify_combines_with` object — Shopify discount combination settings
    - `conversion_factor` number — Factor to multiply the payout amount by when converting to store credit

## Response `200`

- object
  - `success` integer — Returns 1 on success

## 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)
