Transactions

List transactions

Get a list of transactions

post/transactions

Request

  • Base URL
    https://api.wetravel.com/v2
  • URL
    https://api.wetravel.com/v2/transactions
  • Auth
    HTTP bearer

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 San Francisco Trip!",
        "end_date": "2022-08-18T00:00:00.000Z",
        "location": "San Francisco, CA, USA",
        "start_date": "2022-08-12T00:00:00.000Z",
        "trip_id": "TRIP20"
      },
      "rebooked_from_trip": {
        "title": "Epic San Francisco Trip!",
        "end_date": "2022-08-18T00:00:00.000Z",
        "location": "San Francisco, CA, USA",
        "start_date": "2022-08-12T00:00:00.000Z",
        "trip_id": "TRIP20"
      },
      "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
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.