### Make Payment Response Example Source: https://developers.8am.com/reference/api This is an example of a successful response when making a payment. It includes details of the created payment, associated contact, and the invoice it was applied to. The response uses ISO-8601 format for timestamps. ```json [ { "id": "pmt_3ttfZ5qulbkBwzIGqFqAN", "created": { "user": "org_Y2eJHCXVqjMlXL9EfmBfc", "timestamp": "2018-02-15T18:32:11.447Z", "client_id": "0123456789012345678901234567890123456789012345678901234567890123", "client_inet_address": "172.30.2.0", "client_country_code": "US", "client_location": "30.2966,-97.7663", "caller_inet_address": "172.30.2.0", "caller_country_code": "US", "caller_location": "30.2966,-97.7663" }, "modified": { "user": "org_Y2eJHCXVqjMlXL9EfmBfc", "timestamp": "2018-02-15T18:32:11.447Z", "client_id": "0123456789012345678901234567890123456789012345678901234567890123", "client_inet_address": "172.30.2.0", "client_country_code": "US", "client_location": "30.2966,-97.7663", "caller_inet_address": "172.30.2.0", "caller_country_code": "US", "caller_location": "30.2966,-97.7663" }, "amount": 10, "unallocated_amount": 0, "transaction_id": "z0Xn-uzXRzWxTPTB2-kDBg", "payment_type": "credit_card", "contact_id": "p_AGx6xPaOQ9iLyjOHOYT5T", "contact": { "id": "p_AGx6xPaOQ9iLyjOHOYT5T", "deleted": false, "test_mode": false, "name": "Ellen L Ripley", "sort_name": "Ripley Ellen L", "preferred_email": "eripley@example.com", "owner_id": "org_Y2eJHCXVqjMlXL9EfmBfc", "first_name": "Ellen", "middle_name": "L", "last_name": "Ripley", "name_prefix": "Ms", "display_name": "Ellen L Ripley", "type": "person" }, "owner_id": "org_Y2eJHCXVqjMlXL9EfmBfc", "card_type": "VISA", "last4_digits": "4242", "currency": "USD", "bank_account_id": "bank_ngoOybNXKY52w7Jr32kHO", "bank_name": "My Bank", "bank_account": "*****4321", "bank_account_type": "operating", "status": "authorized", "test_mode": true, "reference": "payment", "invoices": [ { "id": "i_LampyIpbNKmoKqB32ZZUG", "invoice_date": "2018-02-21T00:00:00.000Z", "status": "pending", "invoice_number": "000016", "currency": "USD", "type": "invoice" } ], "failure_email_addresses": [ "eripley@example.com" ], "direction": "inbound", "type": "payment" } ] ``` -------------------------------- ### Example Gateway System Status Response Source: https://developers.8am.com/reference/api This is an example of a successful response when querying the gateway's system status. It returns a JSON object with a 'status' field indicating the current operational state. ```json { "status":"NORMAL" } ``` -------------------------------- ### Get Current Merchant - Response Example Source: https://developers.8am.com/reference/api This is an example JSON response from the /v1/merchant endpoint. It includes comprehensive details about the merchant, such as their ID, creation date, contact information, address, and nested lists of merchant and eCheck accounts. ```json { "id": "wKgFeDz5HF-BPPl08dcACw", "created": "2018-05-29T17:51:19.592Z", "modified": "2019-09-30T13:02:33.981Z", "name": "Biz1", "public_key": "m_wKgFeD0hHlaBPSGgaAQAAA", "contact_name": "Merchant Contact", "contact_email": "admin@example.com", "contact_phone": "9876543210", "address1": "97 Hammond St", "city": "Bangor", "state": "ME", "postal_code": "04401", "country": "US", "timezone": "America/New_York", "api_allowed_ip_address_ranges": "127.0.0.1/32,198.51.100.1/24", "merchant_accounts": [ { "id": "wKgFeDz5HF-BPPl08dcADQ", "created": "2018-06-05T16:42:42.735Z", "modified": "2018-10-08T16:51:04.889Z", "status": "ACTIVE", "trust_account": false, "currency": "USD", "name": "Operating", "primary": true, "required_payment_fields": "name", "cvv_policy": "REQUIRE_MATCH_LENIENT", "avs_policy": "ADDR_OR_POSTAL_CODE_LENIENT", "ignore_avs_failure_if_cvv_match": false, "swipe_cvv_policy": "DISABLED", "swipe_avs_policy": "DISABLED", "swipe_ignore_avs_failure_if_cvv_match": false, "transaction_allowed_countries": "US,CA" }, { "id": "wKgFeDz5HF-BPPl08dcADA", "created": "2018-05-29T17:53:07.143Z", "modified": "2019-10-19T04:02:23.019Z", "status": "ACTIVE", "trust_account": true, "currency": "USD", "name": "Trust", "primary": false, "required_payment_fields": "name", "cvv_policy": "REQUIRE_MATCH_LENIENT", "avs_policy": "ADDR_OR_POSTAL_CODE_LENIENT", "ignore_avs_failure_if_cvv_match": false, "swipe_cvv_policy": "DISABLED", "swipe_avs_policy": "DISABLED", "swipe_ignore_avs_failure_if_cvv_match": false, "transaction_allowed_countries": "US,CA" } ], "ach_accounts": [ { "id": "5A299P9oEeKcOfUBJK8FBw", "created": "2018-06-29T18:29:28.895Z", "modified": "2019-10-08T16:50:06.377Z", "status": "ACTIVE", "trust_account": false, "name": "Test Bank Account", "primary": true, "currency": "USD", "required_payment_fields": "name", "transaction_allowed_countries": "US" } ] } ``` -------------------------------- ### Example InfoRequest Response (JSON) Source: https://developers.8am.com/reference/api This is an example JSON response received after successfully creating an InfoRequest. It includes the request ID, creation and modification timestamps, owner ID, contact ID, status, message details, and type of request. ```json { "id": "ireq_SxPwrMuqAlPIPCFf4M40k", "created": { "user": "arden@example.com", "timestamp": "2021-09-07T22:33:36.767Z", "client_id": "41a2c1019e63db49b0efe23b16fea19c685d7c896657470174a1cc91b54cddc7", "client_inet_address": "65.36.124.174", "client_country_code": "US", "client_location": "30.3643,-97.6864", "caller_inet_address": "65.36.124.174", "caller_country_code": "US", "caller_location": "30.3643,-97.6864" }, "modified": { "user": "arden@example.com", "timestamp": "2021-09-07T22:33:36.767Z", "client_id": "41a2c1019e63db49b0efe23b16fea19c685d7c896657470174a1cc91b54cddc7", "client_inet_address": "65.36.124.174", "client_country_code": "US", "client_location": "30.3643,-97.6864", "caller_inet_address": "65.36.124.174", "caller_country_code": "US", "caller_location": "30.3643,-97.6864" }, "owner_id": "org_ayVmT9zfkH46buQT4HtBK", "contact_id": "p_ICBy63BhpJOGzEPpv1Wp0", "status": "pending", "message": { "subject": "Please provide your payment information", "body": "Please provide your payment information so we can start our working relationship. This information will be stored securely and we will not make any charges without informing you first." }, "type": "payment_info_request" } ``` -------------------------------- ### Example API Response (JSON) Source: https://developers.8am.com/reference/api This is an example JSON response from the 8am API, illustrating the structure of a contact object after a successful update. It includes details such as IDs, timestamps, names, addresses, and email addresses, with the updated email marked as preferred. ```JSON { "id": "p_blM1oUmbCckoIdvoSstgS", "created": { "user": "admin@example.com", "timestamp": "2022-01-19T18:17:20.305Z", "client_id": "41a2c1019e63db49b0efe23b16fea19c685d7c896657470174a1cc91b54cddc7", "client_inet_address": "97.65.251.242", "client_country_code": "US", "client_location": "30.2971,-97.7862", "caller_inet_address": "97.65.251.242", "caller_country_code": "US", "caller_location": "30.2971,-97.7862" }, "modified": { "user": "admin@example.com", "timestamp": "2022-01-19T18:53:17.980Z", "client_id": "41a2c1019e63db49b0efe23b16fea19c685d7c896657470174a1cc91b54cddc7", "client_inet_address": "97.65.251.242", "client_country_code": "US", "client_location": "30.2971,-97.7862", "caller_inet_address": "97.65.251.242", "caller_country_code": "US", "caller_location": "30.2971,-97.7862" }, "test_mode": true, "name": "Clark Lane", "sort_name": "Lane Clark", "source_id": "partnername:1192022", "preferred_email": "clane@example.com", "contact_code": "0031", "owner_id": "org_ayVmT9zfkH46buQT4HtBK", "owner": { "id": "org_ayVmT9zfkH46buQT4HtBK", "test_mode": false, "owner_id": "org_a9p7cYn9MzBIL6egPb51O", "preferred_email": "admin@example.com", "name": "Example Company", "sort_name": "Example Company", "type": "organization", "display_name": "Example Company" }, "addresses": [ { "id": "addr_qicRxmKYNEsDjLZEhlqE6", "created": { "user": "admin@example.com", "timestamp": "2022-01-19T18:36:20.874Z", "client_id": "41a2c1019e63db49b0efe23b16fea19c685d7c896657470174a1cc91b54cddc7", "client_inet_address": "97.65.251.242", "client_country_code": "US", "client_location": "30.2971,-97.7862", "caller_inet_address": "97.65.251.242", "caller_country_code": "US", "caller_location": "30.2971,-97.7862" }, "modified": { "user": "admin@example.com", "timestamp": "2022-01-19T18:36:20.874Z", "client_id": "41a2c1019e63db49b0efe23b16fea19c685d7c896657470174a1cc91b54cddc7", "client_inet_address": "97.65.251.242", "client_country_code": "US", "client_location": "30.2971,-97.7862", "caller_inet_address": "97.65.251.242", "caller_country_code": "US", "caller_location": "30.2971,-97.7862" }, "line1": "5400 Burnet", "city": "Austin", "state_or_province": "TX", "postal_code": "78756", "country_code": "US", "preferred": false, "type": "address" } ], "email_addresses": [ { "id": "eml_Pocc0DLipfEZio0qA9f9p", "created": { "user": "admin@example.com", "timestamp": "2022-01-19T18:17:20.305Z", "client_id": "41a2c1019e63db49b0efe23b16fea19c685d7c896657470174a1cc91b54cddc7", "client_inet_address": "97.65.251.242", "client_country_code": "US", "client_location": "30.2971,-97.7862", "caller_inet_address": "97.65.251.242", "caller_country_code": "US", "caller_location": "30.2971,-97.7862" }, "modified": { "user": "admin@example.com", "timestamp": "2022-01-19T18:53:17.980Z", "client_id": "41a2c1019e63db49b0efe23b16fea19c685d7c896657470174a1cc91b54cddc7", "client_inet_address": "97.65.251.242", "client_country_code": "US", "client_location": "30.2971,-97.7862", "caller_inet_address": "97.65.251.242", "caller_country_code": "US", "caller_location": "30.2971,-97.7862" }, "address": "clane@example.com", "preferred": true, "type": "email_address" } ], "first_name": "Clark", "last_name": "Lane", "display_name": "Clark Lane", "type": "person" } ``` -------------------------------- ### Example Invoice Message Response Source: https://developers.8am.com/reference/api This is an example response when creating an invoice message. It includes the message ID, creation details, recipient email addresses, subject, body of the email (as HTML), and the status of the message. ```JSON { "id": "imsg_eSWSauSed6r0BIbFROu7R", "created": { "user": "org_Y2eJHCXVqjMlXL9EfmBfc", "timestamp": "2018-06-07T18:33:47.742Z", "client_id": "c2eef76c8abc09f3c0a5da91edc45a3e8cb7dbf2f18cb4cbb11cd32d72802910", "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": "org_Y2eJHCXVqjMlXL9EfmBfc", "timestamp": "2018-06-07T18:33:47.742Z", "client_id": "c2eef76c8abc09f3c0a5da91edc45a3e8cb7dbf2f18cb4cbb11cd32d72802910", "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" }, "email_addresses": [ "eripley@example.com", "billing@example.com" ], "subject": "Your 8am Invoice [000024]", "body": "\n
| Balance Due | $100.00 |
My Company 98723 Main Street, Austin, TX 78730
", "status": "sent", "type": "invoice_message" } ``` -------------------------------- ### Example Invoice Response JSON Source: https://developers.8am.com/reference/api This is an example of the JSON response structure when searching for invoices. It includes pagination details (page, page_size, total_entries) and a list of invoice objects. Each invoice object contains detailed information such as creation and modification timestamps, status, amounts, and associated contacts and line items. ```json { "page": 1, "page_size": 20, "total_entries": 200, "results": [ { "id": "i_iXGj6u1uCgonbGQUI3hmu", "created": { "user": "org_Y2eJHCXVqjMlXL9EfmBfc", "timestamp": "2018-06-07T18:10:58.386Z", "client_id": "c2eef76c8abc09f3c0a5da91edc45a3e8cb7dbf2f18cb4cbb11cd32d72802910", "client_inet_address": "66.90.249.23", "client_country_code": "US", "client_location": "30.2414,-97.7687", "caller_inet_address": "66.90.249.23", "caller_country_code": "US", "caller_location": "30.2414,-97.7687" }, "modified": { "user": "org_Y2eJHCXVqjMlXL9EfmBfc", "timestamp": "2018-06-07T18:12:04.920Z", "client_id": "c2eef76c8abc09f3c0a5da91edc45a3e8cb7dbf2f18cb4cbb11cd32d72802910", "client_inet_address": "66.90.249.23", "client_country_code": "US", "client_location": "30.2414,-97.7687", "caller_inet_address": "66.90.249.23", "caller_country_code": "US", "caller_location": "30.2414,-97.7687" }, "status": "draft", "invoice_number": "000024", "invoice_date": "2018-06-06T00:00:00.000Z", "total_amount": 10000, "total_amount_due": 10000, "amount_paid": 0, "test_mode": false, "currency": "USD", "bank_account_id": "bank_eZX3KANx7JyXDCrMQkdLj", "owner_id": "org_Y2eJHCXVqjMlXL9EfmBfc", "contact_id": "p_tup7e7S0e7LIE55qvgXAR", "contact": { "id": "p_tup7e7S0e7LIE55qvgXAR", "test_mode": false, "owner_id": "org_Y2eJHCXVqjMlXL9EfmBfc", "preferred_email": "eripley@example.com", "first_name": "Ellen", "last_name": "Ripley", "name": "Ellen Ripley", "type": "person", "sort_name": "Ripley Ellen", "display_name": "Ellen Ripley" }, "invoice_payments": [], "items": [ { "id": "li_5cCL6ufx4KcjsM3CJYskH", "description": "Consulting fee", "rate_per_quantity": "10000", "quantity": "1", "rate_type": "units", "total": 10000 } ], "line_items": [ { "id": "li_5cCL6ufx4KcjsM3CJYskH", "description": "Consulting fee", "rate_per_quantity": "10000", "quantity": "1", "rate_type": "units", "total": 10000 } ], "invoice_messages": [], "attachments": [], "type": "invoice" }, . . . { "id": "i_uYUXQfch0FBT46oyDnLKB", "created": { "user": "org_Y2eJHCXVqjMlXL9EfmBfc", "timestamp": "2018-06-07T18:24:57.172Z", "client_id": "c2eef76c8abc09f3c0a5da91edc45a3e8cb7dbf2f18cb4cbb11cd32d72802910", "client_inet_address": "66.90.249.23", "client_country_code": "US", ``` -------------------------------- ### Example API Response for Contact Update Source: https://developers.8am.com/reference/api This is an example JSON response received after a successful contact update operation. It includes details about the contact, such as name, owner information, addresses, and email addresses. The response also contains metadata about the creation and modification of the contact and its associated data. ```json { "id": "p_blM1oUmbCckoIdvoSstgS", "created": { "user": "admin@example.com", "timestamp": "2022-01-19T18:17:20.305Z", "client_id": "41a2c1019e63db49b0efe23b16fea19c685d7c896657470174a1cc91b54cddc7", "client_inet_address": "97.65.251.242", "client_country_code": "US", "client_location": "30.2971,-97.7862", "caller_inet_address": "97.65.251.242", "caller_country_code": "US", "caller_location": "30.2971,-97.7862" }, "modified": { "user": "admin@example.com", "timestamp": "2022-01-19T18:36:20.876Z", "client_id": "41a2c1019e63db49b0efe23b16fea19c685d7c896657470174a1cc91b54cddc7", "client_inet_address": "97.65.251.242", "client_country_code": "US", "client_location": "30.2971,-97.7862", "caller_inet_address": "97.65.251.242", "caller_country_code": "US", "caller_location": "30.2971,-97.7862" }, "test_mode": true, "name": "Clark Kent", "sort_name": "Kent Clark", "source_id": "partnername:1192022", "preferred_email": "ckent@example.com", "contact_code": "0031", "owner_id": "org_ayVmT9zfkH46buQT4HtBK", "owner": { "id": "org_ayVmT9zfkH46buQT4HtBK", "test_mode": false, "owner_id": "org_a9p7cYn9MzBIL6egPb51O", "preferred_email": "admin@example.com", "name": "Example Company", "sort_name": "Example Company", "type": "organization", "display_name": "Example Company" }, "addresses": [ { "id": "addr_qicRxmKYNEsDjLZEhlqE6", "created": { "user": "admin@example.com", "timestamp": "2022-01-19T18:36:20.874Z", "client_id": "41a2c1019e63db49b0efe23b16fea19c685d7c896657470174a1cc91b54cddc7", "client_inet_address": "97.65.251.242", "client_country_code": "US", "client_location": "30.2971,-97.7862", "caller_inet_address": "97.65.251.242", "caller_country_code": "US", "caller_location": "30.2971,-97.7862" }, "modified": { "user": "admin@example.com", "timestamp": "2022-01-19T18:36:20.874Z", "client_id": "41a2c1019e63db49b0efe23b16fea19c685d7c896657470174a1cc91b54cddc7", "client_inet_address": "97.65.251.242", "client_country_code": "US", "client_location": "30.2971,-97.7862", "caller_inet_address": "97.65.251.242", "caller_country_code": "US", "caller_location": "30.2971,-97.7862" }, "line1": "5400 Burnet", "city": "Austin", "state_or_province": "TX", "postal_code": "78756", "country_code": "US", "preferred": false, "type": "address" } ], "email_addresses": [ { "id": "eml_Pocc0DLipfEZio0qA9f9p", "created": { "user": "admin@example.com", "timestamp": "2022-01-19T18:17:20.305Z", "client_id": "41a2c1019e63db49b0efe23b16fea19c685d7c896657470174a1cc91b54cddc7", "client_inet_address": "97.65.251.242", "client_country_code": "US", "client_location": "30.2971,-97.7862", "caller_inet_address": "97.65.251.242", "caller_country_code": "US", "caller_location": "30.2971,-97.7862" }, "modified": { "user": "admin@example.com", "timestamp": "2022-01-19T18:17:20.305Z", "client_id": "41a2c1019e63db49b0efe23b16fea19c685d7c896657470174a1cc91b54cddc7", "client_inet_address": "97.65.251.242", "client_country_code": "US", "client_location": "30.2971,-97.7862", "caller_inet_address": "97.65.251.242", "caller_country_code": "US", "caller_location": "30.2971,-97.7862" }, "address": "ckent@example.com", "preferred": true, "type": "email_address" } ], "first_name": "Clark", "last_name": "Kent", "display_name": "Clark Kent", "type": "person" } ``` -------------------------------- ### Example POST Request to Sign Up Merchant Application Source: https://developers.8am.com/reference/api This snippet demonstrates how to make a POST request to the AffiniPay API to sign up a merchant application. It includes the endpoint, required headers, and a sample JSON payload. ```curl curl -X POST -H "Content-Type:application/json" -H "Authorization: Bearer