Payments

Lists payments, newest first. By default, returns sales for the accounts your credential can read: an account credential's own account, or every account a user can read payments for. Set mode to user_sales to list the sales the signed-in user received personally, outside any account. With a user credential, set user_id to me to list the user's own payments, including their purchases from any account; a purchase leaves out the account's side of the payment, such as amount_after_fees, metadata and the risk fields.

get/payments

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Query parameters

mode, 'account_sales' | 'user_sales'

Which sales to list. account_sales returns sales for the accounts the caller can read, and with user_id=me the user's own purchases too. user_sales returns only sales the signed-in user received personally, outside any account; it requires the user's own Whop login session and cannot be combined with account_id.

account_id, string

Only payments charged by this account, prefixed biz_. With user_id=me, an account whose payments you cannot read lists only your own purchases from it.

status, 'open' | 'authorized' | 'paid' | 'pending' | 'uncollectible' | 'unresolved' | 'void'

Only payments in this lifecycle state.

tracking_status, 'unknown' | 'pre_transit' | 'in_transit' | 'out_for_delivery' | 'delivered' | 'available_for_pickup' | 'return_to_sender' | 'failure' | 'cancelled' | 'error' | 'needs_tracking' | 'missing_tracking'

Only payments whose most recently attached kept shipment is in this tracking state. missing_tracking selects paid payments with a captured shipping address and no kept shipment, excluding fully refunded payments. needs_tracking selects payments with an open pre-shipment funds hold and no kept shipment. Shipment states do not imply a payment or refund state. Requires shipment:basic:read as well as payment:basic:read; user-wide lists include only accounts readable under both scopes, and none of the user's purchases. Only supported with mode=account_sales.

billing_reason, 'subscription_create' | 'subscription_cycle' | 'subscription_update' | 'one_time' | 'manual' | 'subscription'

Only payments charged for this reason. subscription_cycle also matches renewals recorded as subscription_update.

currency, string

Only payments presented in this three-letter currency, such as usd.

user_id, string

Only payments made by this buyer, prefixed user_. me is the signed-in user and needs a user credential: a whop.com session, an OAuth token or a user-scoped token. It lists the user's own payments: their purchases from any account, and their payments on accounts they read as the seller.

query, string

Search payments by payment ID, dispute ID, user ID, membership ID, user email, name, or username. Email filtering requires the member:email:read permission.

include_subaccounts, boolean

Also cover the account's subaccounts. Requires account_id, and is a 400 without it. Without query, lists the payments of the account and every subaccount, newest first by created_at only; another order is a 400. The listing is cut off after 10 seconds, which a rare filter on an account with little recent activity can reach; add a query to narrow it. With query, matches on payment, dispute, user or membership ID, buyer email, or a card's first 6 or 8 digits and last 4 separated by a space or dash (424242 4242); free-text queries such as a name search only the named account. Subaccounts' payments are returned only for subaccounts you can read payments on.

member_id, string

Only payments made by this member, prefixed mber_.

membership_id, string

Only payments billed under this membership, prefixed mem_.

product_id, string

Only payments for this product, prefixed prod_.

variant_id, string

Only payments priced by this variant, prefixed plan_.

created_before, string date-time

Only payments created before this ISO 8601 timestamp.

created_after, string date-time

Only payments created after this ISO 8601 timestamp.

statuses, string[]

Only payments in any of these lifecycle states, with the same meanings as status. Repeat the parameter to pass several. Combined with status when both are sent.

[
  "paid"
]
substatuses, string[]

Only payments whose substatus is any of these. Repeat the parameter to pass several. incomplete also matches payments that report incomplete because no finer status was recorded. A purchase Whop's risk checks blocked reports failed, so failed matches it and blocked does not.

[
  "dispute_needs_response"
]
billing_reasons, string[]

Only payments charged for any of these reasons, with the same meanings as billing_reason. Repeat the parameter to pass several. Combined with billing_reason when both are sent.

[
  "subscription_cycle"
]
currencies, string[]

Only payments presented in any of these three-letter currencies. Repeat the parameter to pass several. Combined with currency when both are sent.

[
  "eur"
]
min_amount, number
Example:995

Only payments charged at least this amount: what the buyer was charged after discounts and including tax, in the currency each payment was presented in, the same amount order=amount sorts by. Where tax is added on top of the price (tax_behavior is exclusive), that is the price plus the tax, so a 995 price with tax added does not match 995: match a range instead. A failed payment that charged nothing matches 0, not its price. Inclusive and compared to the cent. Pair it with currencies when the account sells in several. Send the same value as max_amount to match one exact amount.

max_amount, number
Example:995

Only payments charged at most this amount, measured like min_amount: after discounts and including tax, in the currency each payment was presented in. Inclusive and compared to the cent. Must not be less than min_amount.

variant_ids, string[]

Only payments priced by any of these variants, each prefixed plan_. Repeat the parameter to pass several. Combined with variant_id when both are sent.

[
  "plan_xxxxxxxxxxxxx"
]
product_ids, string[]

Only payments for any of these products, each prefixed prod_. Repeat the parameter to pass several. Combined with product_id when both are sent.

[
  "prod_xxxxxxxxxxxxx"
]
payment_methods, string[]

Only payments paid with any of these methods: a card brand such as amex, a wallet such as apple_pay, or a payment method type such as paypal. Repeat the parameter to pass several.

[
  "amex"
]
tracking_states, string[]

Only payments whose shipment is in any of these tracking states, or that still need a tracking number (needs_tracking). Repeat the parameter to pass several. Requires account_id and the shipment:basic:read permission.

[
  "needs_tracking"
]
refunded_after, string date-time

Only payments refunded after this ISO 8601 timestamp.

refunded_before, string date-time

Only payments refunded before this ISO 8601 timestamp.

dispute_alerted_after, string date-time

Only payments with a dispute alert after this ISO 8601 timestamp.

dispute_alerted_before, string date-time

Only payments with a dispute alert before this ISO 8601 timestamp.

dispute_created_after, string date-time

Only payments with a dispute opened after this ISO 8601 timestamp.

dispute_created_before, string date-time

Only payments with a dispute opened before this ISO 8601 timestamp.

order, 'created_at' | 'paid_at' | 'amount' | 'status' | 'product' | 'plan' | 'method'

The field to sort by. amount sorts by the amount charged, in the currency it was charged in. status, product, plan (initial price, no currency) and method are a 400 unless the list is filtered to 50,000 payments or fewer.

direction, 'asc' | 'desc'

The sort direction.

first, integer

Number of results to return from the start of the range.

after, string

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

last, integer

Number of results to return from the end of the range.

before, string

Return results before this cursor. Use page_info.start_cursor from the previous response to fetch the previous page.

include_total_count, boolean

Set to true to return the number of matching results in page_info.total_count. Send first=0 as well to return the count without any results.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Response

payments listed

object required
data, Payment[] required
page_info, object required

Example response

{
  "data": [
    {
      "account_id": "biz_xxxxxxxxxxxxxx",
      "amount_after_fees": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "amount_charged": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "billing_address": {
        "city": "Austin",
        "country": "US",
        "line1": "1114 Bouldin Ave",
        "line2": "Unit B",
        "name": "Dana Whitfield",
        "postal_code": "78704",
        "state": "TX"
      },
      "billing_reason": "subscription_create",
      "checkout_surface": "custom_checkout",
      "client_secret": "pay_xxxxxxxxxxxxxx_secret_vdefault_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "created_at": "2026-01-01T12:00:00.000Z",
      "currency": "usd",
      "customer_email": "marcus@shinetime.example",
      "customer_phone": "+xxxxxxxxxxx",
      "decline_code": "insufficient_funds",
      "financing_max_qualified_amount": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "holds": [
        {
          "amount": {
            "amount": "-1234.56",
            "currency": "usd",
            "decimals": 2,
            "display_decimals": 2
          },
          "type": "reserve"
        }
      ],
      "id": "pay_xxxxxxxxxxxxxx",
      "line_items": [
        {
          "discount_amount": {
            "amount": "-1234.56",
            "currency": "usd",
            "decimals": 2,
            "display_decimals": 2
          },
          "id": "li_xxxxxxxxxxxxxx",
          "label": "Credit card surcharge",
          "product_id": "prod_xxxxxxxxxxxxxx",
          "product_title": "Credit card surcharge",
          "quantity": 1,
          "subtotal": {
            "amount": "-1234.56",
            "currency": "usd",
            "decimals": 2,
            "display_decimals": 2
          },
          "variant_id": "plan_xxxxxxxxxxxxxx",
          "variant_title": "Credit card surcharge"
        }
      ],
      "member_id": "mber_xxxxxxxxxxxxxx",
      "membership_id": "mem_xxxxxxxxxxxxxx",
      "metadata": {
        "order_ref": "SHINE-4417"
      },
      "paid_at": "2026-01-01T12:00:00.000Z",
      "payment_instrument": {
        "card": {
          "brand": "visa",
          "exp_month": 10,
          "exp_year": 2031,
          "issuer_identification_number": "41111111",
          "last4": "4242",
          "network_transaction_id": "016153570198200"
        },
        "crypto": {
          "token": "eyJhbGciOiJFUzI1NiJ9.xxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxx"
        },
        "display_name": "Visa •••• 4242",
        "icons": {
          "card": {
            "dark": {
              "png_1x": "https://content.whop.com/payment_methods/card/icons/card_dark_30.png",
              "png_2x": "https://content.whop.com/payment_methods/card/icons/card_dark_60.png",
              "png_4x": "https://content.whop.com/payment_methods/card/icons/card_dark_120.png",
              "svg": "https://content.whop.com/payment_methods/card/icons/card_dark.svg"
            },
            "light": {
              "png_1x": "https://content.whop.com/payment_methods/card/icons/card_dark_30.png",
              "png_2x": "https://content.whop.com/payment_methods/card/icons/card_dark_60.png",
              "png_4x": "https://content.whop.com/payment_methods/card/icons/card_dark_120.png",
              "svg": "https://content.whop.com/payment_methods/card/icons/card_dark.svg"
            }
          },
          "square": {
            "dark": {
              "png_1x": "https://content.whop.com/payment_methods/card/icons/card_dark_30.png",
              "png_2x": "https://content.whop.com/payment_methods/card/icons/card_dark_60.png",
              "png_4x": "https://content.whop.com/payment_methods/card/icons/card_dark_120.png",
              "svg": "https://content.whop.com/payment_methods/card/icons/card_dark.svg"
            },
            "light": {
              "png_1x": "https://content.whop.com/payment_methods/card/icons/card_dark_30.png",
              "png_2x": "https://content.whop.com/payment_methods/card/icons/card_dark_60.png",
              "png_4x": "https://content.whop.com/payment_methods/card/icons/card_dark_120.png",
              "svg": "https://content.whop.com/payment_methods/card/icons/card_dark.svg"
            }
          }
        },
        "payment_method_type": "card"
      },
      "payment_method_id": "payt_xxxxxxxxxxxxxx",
      "payment_method_type": "acss_debit",
      "payment_rule_matches": [
        {
          "action": "allow"
        }
      ],
      "presentment_refunded_amount": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "presentment_tax_amount": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "presentment_total": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "product_id": "prod_xxxxxxxxxxxxxx",
      "refunded_amount": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "resolution_center_ineligible_reason": "not_paid",
      "retryable": true,
      "shipping_address": {
        "city": "Austin",
        "country": "US",
        "line1": "1114 Bouldin Ave",
        "line2": "Unit B",
        "name": "Dana Whitfield",
        "postal_code": "78704",
        "state": "TX"
      },
      "status": "draft",
      "substatus": "succeeded",
      "subtotal": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "surcharge": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "tax_amount": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "tax_behavior": "exclusive",
      "tax_refunded_amount": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "total": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "updated_at": "2026-01-01T12:00:00.000Z",
      "usd_total": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "user": {
        "badges": [
          {
            "type": "verified_partner"
          }
        ],
        "id": "user_xxxxxxxxxxxxxx",
        "name": "Dana Whitfield",
        "profile_picture": {
          "url": "https://ui-avatars.com/api/"
        },
        "username": "danawhitfield"
      },
      "variant_id": "plan_xxxxxxxxxxxxxx",
      "verification_checks": {
        "address_line1": "PASS",
        "arn": "74123456789",
        "authorization_code": "A1B2C3",
        "card_holder_name": "PASS",
        "card_security_code": "PASS",
        "zip_code": "PASS"
      }
    }
  ],
  "page_info": {
    "start_cursor": "WyJjdXJzb3IiLDFd"
  }
}

Changes

    • info

      added the required property data/items/insured to the response with the status

    • warning

      added the new card_not_activated enum value to the data/items/decline_code/oneOf[#/components/schemas/PaymentDeclineCodes] response property for the response status