meetjoshi

Transactions Brex Mappings

Sep 13th, 2025
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. card_id -> cardId
  2. id -> transactionId -- PK, mandatory field, upsert on only this field
  3. amount.amount -> Will be mapped to two fields totalAmountOriginal & lineItems.totalPrice
  4. amount.currency -> currencyOriginal
  5. description -> Will be mapped to three fields description/ lineItems.productName/ lineItems.description
  6. merchant.mcc -> networkCategory
  7. [Generated by MCC Lookup] -> "platformCategory": "Miscellaneous Auto Dealers ", -> categorySource
  8. initiated_at_date -> initiatedDate
  9. posted_at_date -> transactionDate
  10. merchant.raw_descriptor -> tenantVendorName
  11. merchant.country -> tenantVendorCountry
  12. Fields from MKB:
  13. "asatoVendorName": "Amazon" -> resolvedVendor.name
  14. "asatoVendorId": "33ef815a-49a6-4c75-825f-ac7682f69782", -> resolvedVendor.id
  15.  
  16. New fields to introduce:
  17. Transaction schema
  18. "id": Generate new UUID
  19. "tenantId": should be present as always (from environment variable)
  20.  
  21. New mappings from source
  22. type -> transactionType
  23. expense_id -> expenseId
  24.  
Advertisement
Add Comment
Please, Sign In to add comment