v1

latestOpenAPI 3.0.12026-07-247756110.6 KB
Transactions

List transactions

Get a list of transactions

post/transactions

Request body

pageinteger

Page number

per_pageinteger

Transactions per page, max. 1000

Example request

{
  "page": 1,
  "per_page": 20,
  "filters": {
    "trip_uuids": [
      "94030501"
    ],
    "order_id": 94030501,
    "currency": "usd",
    "transaction_type": "trip"
  }
}

Response

Get a list of transactions

Example response

{
  "data": [
    {
      "uuid": "py-19e4e192-db9e-401f-8e91-ebeee7826190",
      "user_id": 2,
      "organizer_id": 1,
      "amount": 100000,
      "customer_facing_amount": 102987,
      "net_amount": 98970,
      "currency": "USD",
      "bank_name": "STRIPE TEST BANK",
      "brand": "Visa",
      "status": "processed",
      "note": "Payout to my vendor",
      "description": "John Doe for San Francisco Trip!",
      "payment_method": "ach",
      "trip": {
        "title": "Epic Trip"
      },
      "rebooked_from_trip": {
        "title": "Epic Trip"
      },
      "participants": [
        {
          "email": "max.smith@wetravel.com",
          "first_name": "Max",
          "last_name": "Smith"
        }
      ],
      "packages": [
        {
          "name": "Sea Package",
          "price": 100000,
          "deposit": 2000,
          "participants": [
            {
              "email": "max.smith@wetravel.com",
              "first_name": "Max",
              "last_name": "Smith"
            }
          ]
        }
      ],
      "buyer": {
        "email": "john+doe@wetravel.com",
        "first_name": "John",
        "last_name": "Doe"
      },
      "type": "Payment",
      "wetravel_fee": 1030,
      "created_at": "2022-05-02T11:51:35.000Z",
      "updated_at": "2022-05-02T11:51:45.000Z",
      "running_balance": 19970,
      "reference": "Sample-Reference-1234"
    }
  ],
  "pagination": {
    "total_count": 1,
    "page": 1,
    "per_page": 20,
    "total_pages": 1
  }
}