Transactions

Events

Action Event name
payment completed transaction.completed
changing an item (ticket, parcel, etc) transaction.completed
refunding an item (ticket, parcel, etc) transaction.completed
editing a transaction transaction.updated
changing an item (ticket, parcel, etc) transaction.updated
refunding an item (ticket, parcel, etc) transaction.updated
moving a ticket transaction.updated

Payload example

{
  "attemptId": "e609cd40-b895-43a0-b330-065c0d891cce",
  "created": 1708724543,
  "data": {
    "feesDetails": [],
    "flexPasses": [],
    "giftCertificates": [],
    "invoices": [],
    "loans": [],
    "parcels": [],
    "redeemableItems": [],
    "refunds": [],
    "soldItems": [],
    "taxesDetails": [],
    "tickets": [
      {
        "refundHistory": [],
        "pricesIncludeTaxes": true,
        "departureDatetime": {
          "offset": 0,
          "value": "2024-02-23T19:30:00.000Z"
        },
        "displayTotalTaxes": 16262000,
        "displayTotal": 117900000,
        "amenityGroupId": "648178153fb715051f420dc8",
        "totalForTransaction": 101638000,
        "overridesChangeFees": [],
        "schedule": "e4e3e779-8ce3-4359-aa65-4068889d77c3",
        "refId": "",
        "syncEntryId": null,
        "totalUses": 1,
        "subDomain": "",
        "checkInInfo": {
          "passengerInfoId": "",
          "status": ""
        },
        "agencyName": "",
        "shiftId": "65c53fe6b3e0c0051d09dc46",
        "total": 117900000,
        "promo": {},
        "changeable": true,
        "changedFromTicketId": null,
        "createdAt": {
          "offset": 0,
          "value": "2024-02-23T21:41:43.029Z"
        },
        "promos": [],
        "phone": "",
        "journeyFrom": "MONTERREY",
        "lastName": "Calderon",
        "userId": "6410ad4ad02bf9068d7345f3",
        "documentNumber": null,
        "section": "65b85a9ca1a794050af6c043",
        "travellerCardExpirationDate": "",
        "seatClassName": "VIP",
        "routeId": "645a61652bc35d0675a03e40",
        "ticketNumber": "ZWRQSB",
        "movedByIROP": false,
        "fareClassTerms": ".",
        "trxId": "65d91114603b020525e83757",
        "peopleLookupId": null,
        "applyCrossBorderTaxesInAllCountries": false,
        "journeyId": "bee0e828-f236-4dab-8389-ad398d419652",
        "ticketType": "oneway",
        "loyaltyAmountToPay": null,
        "arrivalTimestamp": "2024-02-24T09:05:00.000Z",
        "accountCountry": "MX",
        "loyaltyPointsForRefund": 0,
        "totalTaxes": 16262000,
        "fees": [],
        "id": "ed77e473-5a5b-4131-a711-d07a7a7186f5",
        "expireUnit": "days",
        "expire": 45,
        "dynamicFormId": null,
        "travelDate": {
          "offset": 0,
          "value": "2024-02-23T19:30:00.000Z"
        },
        "shiftLocation": {
          "costCenter": "J1301",
          "country": "MX",
          "latitude": "0",
          "locationPurchaseLimits": {
            "USD": 1000000000
          },
          "longitude": "0",
          "name": "MONTERREY",
          "operatingCompanyId": "641ba31a117fe50679c87b8d",
          "operatingCompanyName": "TRANSPAIS UNICO S.A. DE C.V.",
          "province": "Nuevo León",
          "stationId": "641b57b43d50af0656495d16"
        },
        "seatId": "section-65b85a9ca1a794050af6c043-row-1-seat-1",
        "gate": "",
        "redemptions": [],
        "displayPrice": 101638000,
        "createdByUserEmail": "alan+tpsb@betterez.com",
        "fare": "Adulto",
        "redeemableItemId": null,
        "cutOffDateTime": {
          "offset": 0,
          "value": "2024-02-24T01:30:00.000Z"
        },
        "cancellable": true,
        "brandName": "UNICO MIX",
        "displayTotalForTransaction": 101638000,
        "operatingCompanyId": "641ba31a117fe50679c87b8d",
        "displayCurrency": {
          "buy": 1,
          "isocode": "MXN",
          "sell": 1,
          "symbol": "$"
        },
        "price": 101638000,
        "brandId": "6480075f9f489704aaac51b3",
        "agencyId": "",
        "channel": "callcenter",
        "displayPriceWithTaxes": 117900000,
        "agentUserName": "",
        "loyaltyPointsForRedemption": 0,
        "journeyToId": "641b57b43d50af0656495c1c",
        "transactionId": "U6NZWZ32",
        "seatRow": "2",
        "taxablePercentage": 100000,
        "journeyPriceId": "65b9dc1f4a147d068301a8e1",
        "openReturn": false,
        "userComments": [],
        "expirationDate": {
          "offset": 0,
          "value": "2024-02-23T00:00:00.000Z"
        },
        "regularPrice": 0,
        "isSelfServiceChangeable": false,
        "originalTicketNumber": "ZWRQSB",
        "rounding": {
          "policy": ""
        },
        "crossBorderTaxation": false,
        "_id": "65d91116603b020525e83758",
        "paxWeight": 0,
        "sectionName": "PISO 1",
        "taxExempted": false,
        "fareClassId": "6467f1db37c8f10512fee443",
        "customerNumber": "369-060-535",
        "productLine": "",
        "toId": "641b57b43d50af0656495c1c",
        "journeyTo": "TAMPICO - MADERO",
        "numOfBags": 0,
        "revenueOperatingCompany": {
          "id": "641ba31a117fe50679c87b8d",
          "name": "TRANSPAIS UNICO S.A. DE C.V."
        },
        "extra": {
          "gender": "male",
          "phone": "9991234567"
        },
        "createdBy": "6410ad4ad02bf9068d7345f3",
        "status": "paid",
        "comments": "",
        "loyaltyPointsToAccumulate": 0,
        "journeyOrder": 0,
        "ticketTypeName": "One way",
        "crossBorderTaxationBasic": false,
        "updatedBy": "6410ad4ad02bf9068d7345f3",
        "qrCodeString": "https://sandbox.betterez.com/r/t/6410ad00d02bf9068d7345e5-65d91116603b020525e83758",
        "journeyPriceVersionId": "65b9dc201f7173555baa645e",
        "fromId": "641b57b43d50af0656495d16",
        "priceWithTaxes": 117900000,
        "arrivalDate": {
          "offset": 0,
          "value": "2024-02-24T03:05:00.000Z"
        },
        "operatingCompanyInfoOnPrintedTicket": "TUN930101L63",
        "departureTimestamp": "2024-02-24T01:30:00.000Z",
        "createdFromFlexpassId": null,
        "deleted": false,
        "travellerCardId": "",
        "seatClassId": "6555a94bdef8f0051a52b37b",
        "updatedAt": {
          "offset": 0,
          "value": "2024-02-23T21:42:08.539Z"
        },
        "refundId": "",
        "paymentRates": [
          {
            "displayTotal": 117900000,
            "itemDisplayId": "ZWRQSB",
            "itemId": "65d91116603b020525e83758",
            "rates": [
              {
                "ratio": "100.00",
                "type": "cash"
              }
            ],
            "total": 117900000
          }
        ],
        "seatMapId": "65b85d6ccdefd805046f7c08",
        "fareClassName": "Estandar",
        "defaultCountry": null,
        "redemptionValue": 117900000,
        "ratios": [
          {
            "displayTotal": 117900000,
            "extraInfo": null,
            "total": 117900000,
            "type": "cash"
          }
        ],
        "associatedRoundtripTicket": {},
        "date": "2024-02-23",
        "availableUses": 1,
        "scheduleDisplayName": "19:30 - MONTERREY - TAMPICO X LIB (DIR)",
        "productId": "6410ad01d02bf9068d7345ea",
        "synchEntry": "",
        "firstName": "Alan",
        "eventName": "One way",
        "agentId": "",
        "row": "1",
        "email": "alan+fakeemail@betterez.com",
        "language": "en-us",
        "shiftNumber": "S-DHD9QSK",
        "isExpirationDateCalculated": false,
        "taxes": [
          {
            "calculated": 16262000,
            "displayCalculated": 16262000,
            "isBorder": false,
            "name": "IVA",
            "province": "all",
            "value": 16000
          }
        ],
        "generatedFromIROPTicketId": "",
        "from": "MONTERREY",
        "manifestDate": {
          "offset": 0,
          "value": "2024-02-23T00:00:00.000Z"
        },
        "seatCol": 1,
        "accountId": "6410ad00d02bf9068d7345e5",
        "lastRedeemed": {},
        "displayDiscounts": 0,
        "discounts": 0,
        "taxableDiscounts": 0,
        "redeemedOnBrand": "",
        "redeemableItem": null,
        "documentTypeId": null,
        "productFamily": "reservation",
        "movements": "",
        "ssrs": [],
        "departureTime": "19:30",
        "to": "TAMPICO - MADERO",
        "loyaltyPointsToPay": null,
        "travellerCardName": "",
        "travellerCardNumber": "",
        "operatingCompanyName": "TRANSPAIS UNICO S.A. DE C.V.",
        "displayTaxablePrice": 101638000,
        "couponCode": "",
        "extraInput": "",
        "associatedSoldItemId": null,
        "seat": "1",
        "productType": "reservation",
        "nonTaxablePrice": 0,
        "taxablePrice": 101638000,
        "journeyFromId": "641b57b43d50af0656495d16",
        "fareId": "641ba40ae6b4c6067f73beed",
        "messages": [],
        "travelDistance": 525,
        "displayNonTaxablePrice": 0
      }
    ],
    "totalFees": "0.00",
    "totalTaxes": "0.00",
    "transaction": {
      "payments": [
        {
          "acceptedCurrency": {
            "buy": 1,
            "channels": [
              "backoffice",
              "agency-backoffice",
              "websales",
              "agency-websales"
            ],
            "isocode": "MXN",
            "sell": 1,
            "symbol": "$"
          },
          "acceptedCurrencyAmount": 1179,
          "amount": 1179,
          "createdAt": {
            "offset": 0,
            "value": "2024-02-23T21:42:08.378Z"
          },
          "custom": false,
          "displayName": "Efectivo",
          "provider": "inperson",
          "result": {},
          "rollbackPayload": null,
          "status": "success",
          "type": "cash"
        }
      ],
      "userAgentData": {
        "browser": "Chrome",
        "os": "OS X",
        "version": "121.0.0.0"
      },
      "phoneType": "other",
      "createdByDisplayName": "1234",
      "subtotal": "1179.00",
      "agencyName": "",
      "total": "1179.00",
      "createdAt": {
        "offset": 0,
        "value": "2024-02-23T21:41:43.019Z"
      },
      "lastName": "Calderon",
      "userId": "6410ad4ad02bf9068d7345f3",
      "transactionFee": 0,
      "ticketPrice": 101638000,
      "fees": [],
      "remoteAddress": "::ffff:127.0.0.1",
      "shiftLocation": {
        "costCenter": "J1301",
        "country": "MX",
        "latitude": "0",
        "locationPurchaseLimits": {
          "USD": 1000000000
        },
        "longitude": "0",
        "name": "MONTERREY",
        "operatingCompanyId": "641ba31a117fe50679c87b8d",
        "operatingCompanyName": "TRANSPAIS UNICO S.A. DE C.V.",
        "province": "Nuevo León",
        "stationId": "641b57b43d50af0656495d16"
      },
      "journeyIds": [
        "bee0e828-f236-4dab-8389-ad398d419652"
      ],
      "associatedTrxId": "",
      "transactionKey": "",
      "createdByUserEmail": "alan+tpsb@betterez.com",
      "ticketsFee": 0,
      "displayCurrency": {
        "buy": 1,
        "isocode": "MXN",
        "sell": 1,
        "symbol": "$"
      },
      "agencyId": "",
      "associatedTransactionId": "",
      "transactionId": "U6NZWZ32",
      "userComments": [],
      "rounding": {
        "policy": ""
      },
      "externalPayments": [],
      "_id": "65d91114603b020525e83757",
      "agencyCommissionValueType": "%",
      "totalWithoutTax": 101638000,
      "customFields": [],
      "customerNumber": "369-060-535",
      "extra": {},
      "createdBy": "6410ad4ad02bf9068d7345f3",
      "status": "paid",
      "updatedBy": "6410ad4ad02bf9068d7345f3",
      "credits": [],
      "taxesTotal": 16262000,
      "updatedAt": {
        "offset": 0,
        "value": "2024-02-23T21:42:08.656Z"
      },
      "externalPaymentInfo": {},
      "taxesForTrx": [
        {
          "appliedFromItems": [
            "65d91116603b020525e83758"
          ],
          "calculated": 0,
          "displayCalculated": 0,
          "name": "IVA",
          "province": "all",
          "value": 16000
        }
      ],
      "firstName": "Alan",
      "agentId": "",
      "email": "alan+fakeemail@betterez.com",
      "shiftNumber": "S-DHD9QSK",
      "rates": [
        {
          "ratio": "100.00",
          "type": "cash"
        }
      ],
      "paxQty": 1,
      "taxes": 16262000,
      "accountId": "6410ad00d02bf9068d7345e5",
      "discounts": 0,
      "summary": [
        {
          "displayTotal": 117900000,
          "total": 117900000,
          "displayTotalWithoutTax": 101638000,
          "journeyFrom": "MONTERREY",
          "fop": "Cash",
          "journeyId": "bee0e828-f236-4dab-8389-ad398d419652",
          "displayTicketFeesTotal": 0,
          "displayPrice": 101638000,
          "displayCurrency": {
            "buy": 1,
            "isocode": "MXN",
            "sell": 1,
            "symbol": "$"
          },
          "price": 101638000,
          "type": "ticket",
          "authCode": "",
          "journeyToId": "641b57b43d50af0656495c1c",
          "displayTransactionFees": 0,
          "taxablePercentage": 100000,
          "ticketFees": [],
          "displayTaxesTotal": 16262000,
          "transactionFees": 0,
          "_id": "65d91116603b020525e83758",
          "totalWithoutTax": 101638000,
          "journeyTo": "TAMPICO - MADERO",
          "revenueOperatingCompany": {
            "id": "641ba31a117fe50679c87b8d",
            "name": "TRANSPAIS UNICO S.A. DE C.V."
          },
          "operationId": "e9428997-d4f7-4cee-8a59-b3d0ac6fc203",
          "status": "paid",
          "journeyOrder": 0,
          "taxesTotal": 16262000,
          "details": {
            "arrivalTimestamp": "2024-02-24T09:05:00.000Z",
            "date": "2024-02-23",
            "departureTime": "19:30",
            "departureTimestamp": "2024-02-24T01:30:00.000Z",
            "fare": "Adulto",
            "fareClassId": "6467f1db37c8f10512fee443",
            "fareClassName": "Estandar",
            "fareClassTerms": ".",
            "fareId": "641ba40ae6b4c6067f73beed",
            "from": "MONTERREY",
            "fromId": "641b57b43d50af0656495d16",
            "journeyPriceId": "65b9dc1f4a147d068301a8e1",
            "journeyPriceVersionId": "65b9dc201f7173555baa645e",
            "operatingCompanyId": "641ba31a117fe50679c87b8d",
            "passenger": {
              "checkInInfo": {
                "passengerInfoId": "",
                "status": ""
              },
              "documentNumber": null,
              "documentTypeId": null,
              "email": "",
              "extraInput": "",
              "firstName": "Alan",
              "fullName": "Alan Calderon",
              "id": "ed77e473-5a5b-4131-a711-d07a7a7186f5",
              "lastName": "Calderon",
              "peopleLookupId": null,
              "phone": "",
              "seat": "scheduleId-e4e3e779-8ce3-4359-aa65-4068889d77c3-section-65b85a9ca1a794050af6c043-row-1-seat-1",
              "seatRow": "1",
              "seatSectionName": "PISO 1",
              "seatSelected": "1",
              "taxExempted": false
            },
            "promo": {},
            "routeId": "645a61652bc35d0675a03e40",
            "scheduleId": "e4e3e779-8ce3-4359-aa65-4068889d77c3",
            "seatClassId": "6555a94bdef8f0051a52b37b",
            "seatClassName": "VIP",
            "ticketType": "oneway",
            "to": "TAMPICO - MADERO",
            "toId": "641b57b43d50af0656495c1c",
            "travelDate": {
              "offset": 0,
              "value": "2024-02-23T19:30:00.000Z"
            }
          },
          "productId": "6410ad01d02bf9068d7345ea",
          "itemId": "ZWRQSB",
          "taxes": [
            {
              "calculated": 16262000,
              "displayCalculated": 16262000,
              "isBorder": false,
              "name": "IVA",
              "province": "all",
              "value": 16000
            }
          ],
          "displayDiscounts": 0,
          "discounts": 0,
          "productFamily": "reservation",
          "displayTaxablePrice": 101638000,
          "productType": "reservation",
          "taxablePrice": 101638000,
          "journeyFromId": "641b57b43d50af0656495d16",
          "messages": [],
          "ticketFeesTotal": 0
        }
      ],
      "agencyCommission": 0
    }
  },
  "event": "transaction.completed",
  "id": "1591d7a0-1d65-4f01-953d-7c78d699ae99",
  "livemode": false
}