Transaction Data Types

‘Finance’ transaction:
     {
         "amount": 300,
         "currency": "USD",
         "customer": {
             "id": 4000005,
             "name": "API User",
             "phoneNumber": "14084930580"
         },
         "device": {
             "family": {
                 "id": 3,
                 "name": "Galaxy S6"
             },
             "imei": "339988",
             "model": {
                 "id": 3,
                 "makeModel": "SAMSUNG SM-G920P",
                 "name": "Samsung Galaxy S6 (Boost/Sprint)"
             },
             "phoneNumber": "15052111316",
             "simNumber": "12345678901774567892"
         },
         "financeOrder": {
             "downPayment": 100,
             "financeAmount": 300,
             "id": 4000009,
             "monthlyCost": 35,
             "months": 12,
             "pricePreTax": 400,
             "purchaseAmount": 400,
             "weeklyCost": 9
         },
         "merchant": {
             "id": 4000002,
             "name": "API Test Merchant"
         },
         "salesClerk": {
             "id": 4000003,
             "name": "Demo Clerk1"
         },
         "time": 1482100000,
         "type": "finance"
     }
‘Cash’ transaction:
     {
         "amount": -18,
         "currency": "USD",
         "customer": {
             "id": 4000005,
             "name": "API User",
             "phoneNumber": "14084930580"
         },
         "financeOrder": {
             "id": 4000004
         },
         "merchant": {
             "id": 4000002,
             "name": "API Test Merchant"
         },
         "payment": {
             "amount": 18,
             "id": 4000008,
             "timestamp": 1487000002
         },
         "salesClerk": {
             "id": 4000003,
             "name": "Demo Clerk1"
         },
         "time": 1487000002,
         "type": "cash"
     }
‘Commission’ transaction:
     {
         "amount": 3,
         "currency": "USD",
         "customer": {
             "id": 4000005,
             "name": "API User",
             "phoneNumber": "14084930580"
         },
         "financeOrder": {
             "id": 4000004
         },
         "merchant": {
             "id": 4000002,
             "name": "API Test Merchant"
         },
         "payment": {
             "amount": 18,
             "id": 4000008,
             "timestamp": 1487000002
         },
         "salesClerk": {
             "id": 4000003,
             "name": "Demo Clerk1"
         },
         "time": 1487000003,
         "type": "commission"
     }
‘Out’ transaction:
     {
         "amount": -19,
         "currency": "USD",
         "merchant": {
             "id": 4000002,
             "name": "API Test Merchant"
         },
         "payment": {
             "id": 4000007,
             "method": {
                 "id": 123,
                 "name": "dwolla"
             },
             "notes": "test"
         },
         "time": 1487000001,
         "type": "out"
     }
‘In’ transaction:
     {
         "amount": 20,
         "currency": "USD",
         "merchant": {
             "id": 4000002,
             "name": "API Test Merchant"
         },
         "payment": {
             "id": 4000008,
             "method": {
                 "id": 1234,
                 "name": "ACH"
             },
             "notes": "Payment march 2017"
         },
         "time": 1487000020,
         "type": "in"
     }
‘Adjustment’ transaction:
     {
         "amount": 45,
         "currency": "USD",
         "merchant": {
             "id": 4000002,
             "name": "API Test Merchant"
         },
         "adjustment": {
             "id": 4000010,
             "type": "adjustment",
             "notes": "Discrepancy in down payment"
         },
         "time": 1487000500,
         "type": "adjustment"
     }