latestOpenAPI 3.1.02026-08-153864115.7 MB

c301132dbfd7

Swaps

Swap Completed

Sent when a swap is completed

Required permissions:

  • webhook_receive:swaps
postWebhookswap.completed

Headers

webhook-idstring required

A unique identifier for this webhook request

Example:msg_xxxxxxxxxxxxxxxxxxxxxxxx
webhook-signaturestring required

The signature of the webhook request with the webhook version prepended

Example:v1,BASE64ENCODEDSIGNATURE
webhook-timestampstring required

The timestamp in seconds since the Unix epoch that the webhook was sent at on the server

Example:1727606400

Payload

api_version'v1' required

The API version for this webhook

api_version_datestring nullable required

The dated API version (Api-Version-Date) the payload is serialized to

company_idstring nullable

The account ID that this webhook event is associated with

idstring required

A unique ID for every single webhook request

timestampstring date-time required

The timestamp in ISO 8601 format that the webhook was sent at on the server

type'swap.completed' required

The webhook event type

Example payload

{
  "api_version": "v1",
  "api_version_date": "2026-07-20",
  "company_id": "biz_xxxxxxxxxxxxxx",
  "data": {
    "account": {
      "id": "biz_xxxxxxxxxxxxxx",
      "logo_url": "https://assets-2-rough.whop.com/uploads/image/2026-01-01/shine-time-logo",
      "object": "account",
      "route": "biz_xxxxxxxxxxxxxx",
      "title": "Shine Time Auto Detailing"
    },
    "amount": "2375000000",
    "available_at": "2026-01-01T12:00:00.000Z",
    "created_at": "2026-01-01T12:00:00.000Z",
    "currency": {
      "code": "usd",
      "precision": "100000000"
    },
    "id": "line_3",
    "ledger_account_id": "ldgr_xxxxxxxxxxxxxx",
    "line_type": "payment_gross",
    "object": "ledger_activity",
    "posted_at": "2026-01-01T12:00:00.000Z",
    "resource": {
      "id": "biz_xxxxxxxxxxxxxx",
      "logo_url": "https://assets-2-rough.whop.com/uploads/image/2026-01-01/shine-time-logo",
      "object": "account",
      "route": "biz_xxxxxxxxxxxxxx",
      "title": "Shine Time Auto Detailing"
    },
    "source": {
      "amount_float": 1500,
      "chain": "plasma",
      "claim_url": "https://whop.com/claim",
      "created_at": "2026-01-01T12:00:00.000Z",
      "estimated_arrival": "2026-01-01T12:00:00.000Z",
      "from_amount": "502.51",
      "from_currency": "usdt",
      "id": "airdrp_xxxxxxxxxxxxxx",
      "object": "airdrop_link",
      "payer_name": "MassPay",
      "payout_destination": {
        "icon_url": "https://assets-2-rough.whop.com/uploads/image/2026-01-01/ach-activity-icon",
        "payer_name": "ACH Bank Deposit"
      },
      "payout_token_nickname": "Ops checking",
      "reason": "bounty_payout",
      "sender_address": "0x8a4de51b9c37f2e6a0d1b8c94e5f7a2d3c6b0e19",
      "status": "fully_claimed",
      "to_amount": "500.0",
      "to_currency": "usd",
      "tx_hash": "0x5d84a1c7e2f9b036d48c5a7e1b9f2d6c3a8e0b4f7c1d9e5a2b6f8c0d3e7a1b52"
    }
  },
  "id": "msg_xxxxxxxxxxxxxxxxxxxxxxxx",
  "timestamp": "2025-01-01T00:00:00.000Z",
  "type": "swap.completed"
}

Response

Return a 200 status to indicate that the data was received successfully