GET
/
v2
/
payments
curl --request GET \
  --url https://api.whop.com/api/v2/payments
{
  "pagination": {
    "current_page": 123,
    "total_page": 123,
    "total_count": 123
  },
  "data": [
    {
      "id": "<string>",
      "product": "<string>",
      "membership": "<string>",
      "affiliate_reward": 123,
      "plan": "<string>",
      "user": "<string>",
      "final_amount": 123,
      "subtotal": 123,
      "currency": "<string>",
      "last4": "<string>",
      "payments_failed": 123,
      "payment_processor": "<string>",
      "refunded_amount": 123,
      "status": "<string>",
      "crypto_tx_hash": "<string>",
      "wallet_address": "<string>",
      "created_at": 123,
      "paid_at": 123,
      "refunded_at": 123,
      "last_payment_attempt": 123,
      "next_payment_attempt": 123,
      "access_pass": "<string>"
    }
  ]
}

Headers

Authorization
string

Your API key, which can be found on the Whop Business Dashboard. You must prepend your key with the word 'Bearer', which will look like Bearer ***************************

Query Parameters

page
integer
default: 1

The page number to retrieve

per
integer
default: 10

The number of resources to return per page. There is a limit of 50 results per page.

status
enum<string>

The status of the Payment

Available options:
draft,
open,
paid,
uncollectible,
void
membership_id
string

The Membership this Payment part of. By default this will just be the ID of the Membership, but you can expand it to get more information about the Membership by passing [membership] in the expand parameter.

expand
enum<string>[]

Whether or not to expand the User, Membership, Plan, or Product on the returned Payment. Pass an array with each object(s) you want to expand, e.g. [product, plan, membership, user]

Available options:
product,
membership,
plan,
user

Response

200 - application/json
pagination
object

Pagination model

data
object[]