Checking payments

To monitor which payments have been made, you can search for a list of payments and their details and provide the list within your application. This request returns payments associated with Quick Bill in your application as well as in the AffiniPay, LawPay, and CPACharge web applications.

Example request: Searching for payments after June 1, 2018
curl -X GET -H "Content-Type:application/json" "Authorization: Bearer <access_token>" https://api.affinipay.com/payments/?start_date=2018-06-01T00:00:00.000Z
Example response
{
  "page": 1,
  "page_size": 20,
  "total_entries": 1,
  "results": [
      {
          "id": "pmt_QwktHTsAFnDoLRQYHJQjF",
          "created": {
              "user": "ANONYMOUS",
              "timestamp": "2018-06-07T18:51:40.438Z",
              "client_inet_address": "66.90.249.23",
              "client_country_code": "US",
              "client_location": "30.2966,-97.7663",
              "caller_inet_address": "66.90.249.23",
              "caller_country_code": "US",
              "caller_location": "30.2966,-97.7663"
          },
          "modified": {
              "user": "ANONYMOUS",
              "timestamp": "2018-06-07T18:51:40.686Z",
              "client_inet_address": "66.90.249.23",
              "client_country_code": "US",
              "client_location": "30.2966,-97.7663",
              "caller_inet_address": "66.90.249.23",
              "caller_country_code": "US",
              "caller_location": "30.2966,-97.7663"
          },
          "amount": 10000,
          "unallocated_amount": 0,
          "transaction_id": "mUoM7yoaTvakqPQTvn7KJw",
          "payment_type": "credit_card",
          "contact_id": "p_tup7e7S0e7LIE55qvgXAR",
          "contact": {
              "id": "p_tup7e7S0e7LIE55qvgXAR",
              "test_mode": false,
              "owner_id": "org_Y2eJHCXVqjMlXL9EfmBfc",
              "preferred_email": "eripley@weyland-yutani.com",
              "first_name": "Ellen",
              "last_name": "Ripley",
              "sort_name": "Ripley Ellen",
              "name": "Ellen Ripley",
              "type": "person",
              "display_name": "Ellen Ripley"
          },
          "owner_id": "org_Y2eJHCXVqjMlXL9EfmBfc",
          "card_type": "AMERICAN_EXPRESS",
          "last4_digits": "0005",
          "currency": "USD",
          "bank_account_id": "bank_eZX3KANx7JyXDCrMQkdLj",
          "bank_name": "Chase",
          "bank_account": *****1234",
          "bank_account_type": "operating",
          "status": "authorized",
          "test_mode": true,
          "invoices": [
              {
                  "id": "i_cLjm1bsfOjWs1ekvZmTmU",
                  "invoice_date": "2018-06-06T00:00:00.000Z",
                  "status": "paid",
                  "invoice_number": "000026",
                  "currency": "USD",
                  "type": "invoice"
              }
          ],
          "direction": "inbound",
          "type": "payment"
      }
  ]
}