{"info":{"_postman_id":"fa4f143b-3819-4e62-bbb3-49274bd0c140","name":"Autoagent MuniciPay Integrations","description":"<html><head></head><body><p>Autoagent has several options available for integration into MuniciPay including:</p>\n<ul>\n<li><p>REST API (more advanced integrations)</p>\n</li>\n<li><p>Form POST (simpler integrations)</p>\n</li>\n</ul>\n<p><em>NOTE: If you are looking for our previous documentation for MuniciPay REST v0, you can</em> <a href=\"https://integrations.municipay.com/\"><i>access it here</i></a><em>. While there is no current plan to discontinue support for v0, we recommend any new integrations utilize v1 listed in this document.</em></p>\n<p>In addition, there is a File Uploads and Downloads API for managing billing files and MuniciPay payment files</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"7939161","collectionId":"fa4f143b-3819-4e62-bbb3-49274bd0c140","publishedId":"2s8YKAnPmF","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2024-07-09T14:57:39.000Z"},"item":[{"name":"REST API","item":[{"name":"Cart","item":[{"name":"Requests","item":[{"name":"Payapp","item":[{"name":"getPaymentResult","id":"d4cc0f70-9c5b-4506-b932-253cc1079810","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{apiUrl}}/payapp/api/v1/carts/{{cartId}}/payments","description":"<p>Retrieves transaction details for the specified cart.</p>\n<h2 id=\"request-fields\">Request Fields</h2>\n<p>N/A. <code>cartId</code> provided as a path variable</p>\n<h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"f311d737-24ff-4f1e-a88f-b79dffc6f3c7","id":"f311d737-24ff-4f1e-a88f-b79dffc6f3c7","name":"Requests","type":"folder"}},"urlObject":{"path":["payapp","api","v1","carts","{{cartId}}","payments"],"host":["{{apiUrl}}"],"query":[],"variable":[]}},"response":[{"id":"d3835c0b-ee5d-4d6a-a416-42999f091434","name":"getPaymentResult","originalRequest":{"method":"GET","header":[],"url":"{{apiUrl}}/payapp/api/v1/carts/{{cartId}}/payments"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d4cc0f70-9c5b-4506-b932-253cc1079810"}],"id":"d1e4eae1-bfe4-479c-ba01-83e29b902d3e","_postman_id":"d1e4eae1-bfe4-479c-ba01-83e29b902d3e","description":"","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"f311d737-24ff-4f1e-a88f-b79dffc6f3c7","id":"f311d737-24ff-4f1e-a88f-b79dffc6f3c7","name":"Requests","type":"folder"}}},{"name":"createCart (simple)","id":"bb5e49d7-6482-4d46-a27e-3fe1027ffbc5","protocolProfileBehavior":{"disableBodyPruning":true,"disableUrlEncoding":false,"disabledSystemHeaders":{"user-agent":true,"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"<p>Defines payload content-type formatting</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"items\": [\n        {\n            \"item_number\": \"7abb41f680d9418bb12d1e47b6d5be8c\",\n            \"item_selections\": {\n                \"2025\": 1\n            },\n            \"amount\": \"1.00\"\n        }\n    ]\n}"},"url":"{{apiUrl}}/api/v1/rest/cart/create","description":"<h2 id=\"request-fields\">Request Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>items</td>\n<td><strong>Required</strong> array containing the <strong>cartItem</strong> to add to the shopping cart.</td>\n</tr>\n<tr>\n<td>webhook_url</td>\n<td><strong>Optional</strong> The URL to POST the successful transactions to. See documentation below.</td>\n</tr>\n<tr>\n<td>redirect_url</td>\n<td><strong>Optional</strong> The URL to redirect the user to after payment is successful. User will be informed of their successful payment and redirected within several seconds to the URL specified. If a redirect_url is provided, no receipt will be shown.</td>\n</tr>\n<tr>\n<td>cancel_url</td>\n<td><strong>Optional</strong> URL that a shopping cart user should be redirected to after canceling a cart</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"cartitem-array-fields\">cartItem Array Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>item_number</td>\n<td><strong>Required</strong> Unique identifier for the item being paid. Must match identifier at Autoagent. This value <em>directly relates</em> to a merchant's bank account that will receive deposits from MuniciPay.</td>\n</tr>\n<tr>\n<td>item_selections</td>\n<td><strong>Required</strong> Object containing the year:installment to apply this payment. If item being paid does not contain a year, pass the current year. If the item does not contain an installment, pass 1.</td>\n</tr>\n<tr>\n<td>amount</td>\n<td><strong>Required</strong> The amount being paid, excluding any special characters or comma formatting.</td>\n</tr>\n<tr>\n<td>input_fields</td>\n<td><strong>Optional</strong> Array containing key:value pairs. If included, these input fields will be associated with the item. These input fields <strong>must</strong> be communicated to and configured by MuniciPay before they will display.  <br />  <br />End users and office staff with access to reporting <strong>will</strong> see these key/values and can opt to display them on receipts.  <br />  <br /><strong>Reserved/Default input_fields:</strong>  <br /><strong>bill_number</strong> : String containing any detailed information about the item being paid. Can be a single bill number, comma delimited values, etc. Max length is 500 characters.  <br />  <br />MuniciPay <strong>strongly</strong> recommends including a unique bill_number on every request, to ensure customers have a point of reference between an ISVs system and MuniciPay.</td>\n</tr>\n<tr>\n<td>custom_fields</td>\n<td><strong>Optional</strong> Array containing key:value pairs. If included, these fields will be returned in getCartResult() and the paymentSuccess webhook.  <br />  <br />Merchant &amp; Payer <strong>will not</strong> see these key/values.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>status</td>\n<td>SUCCESS or REQUEST_FAILED</td>\n</tr>\n<tr>\n<td>errors</td>\n<td>Array containing strings of issues identified with your request</td>\n</tr>\n<tr>\n<td>message</td>\n<td>String containing a clear response of your request status</td>\n</tr>\n<tr>\n<td>data</td>\n<td>Array containing the <strong>cartDetails</strong></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"cartdetails-array-fields\">cartDetails Array Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>cart_id</td>\n<td>Unique ID for this cart. Utilize this ID as it relates to any webhook responses.</td>\n</tr>\n<tr>\n<td>checkout_link</td>\n<td>Unique URL for this cart request. URL will be active for 15 minutes or one use.</td>\n</tr>\n<tr>\n<td>total_processed</td>\n<td>The number of items received and added to your cart request</td>\n</tr>\n<tr>\n<td>items_in_cart</td>\n<td>Array containing the items added to your cart</td>\n</tr>\n<tr>\n<td>failed_items</td>\n<td>Array containing the items that failed to be added to the cart and the reason why.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"f311d737-24ff-4f1e-a88f-b79dffc6f3c7","id":"f311d737-24ff-4f1e-a88f-b79dffc6f3c7","name":"Requests","type":"folder"}},"urlObject":{"path":["api","v1","rest","cart","create"],"host":["{{apiUrl}}"],"query":[],"variable":[]}},"response":[{"id":"15db5cc0-9407-46ff-b6ca-8d4bb09a38af","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"Defines payload content-type formatting\n"}],"body":{"mode":"raw","raw":"{\n    \"items\": [\n        {\n            \"item_number\": \"98047004004\",\n            \"item_selections\": {\n                \"2021\": 2\n            },\n            \"item_type\": \"R\",\n            \"amount\": \"1005.50\",\n            \"bill_number\": \"12345\"\n        }\n    ],\n    \"redirect_url\": \"https://www.yahoo.com\",\n    \"webhook_url\": \"https://webhook.site/256ccf66-156e-4c62-a3ae-ad215dd3fc4f\"\n}"},"url":"{{apiUrl}}/api/v1/rest/cart/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 28 Oct 2022 17:37:58 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"312"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.54 () OpenSSL/1.0.2k-fips PHP/8.1.9"},{"key":"Vary","value":"Authorization"},{"key":"Upgrade","value":"h2,h2c"},{"key":"X-Powered-By","value":"PHP/8.1.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6ImRXdXRDaVF1cWRaQ2hDT3NrcW54aFE9PSIsInZhbHVlIjoibkVLYUsxem5EUmJmOHRtQVZDNnp6d1hrdGZyMjdwaG0zUWQvR21CbTBWTjI4Mm50OG9oL2J1SThIV0FneXltdWNyZUhlT3dUNUN0Q21jNE1aZE1sNGY1dkN4Wmd3bzZOMHh1TjBMa1RtR3lZK1A0N2FoT0pTcE5IVldEYjFQU0siLCJtYWMiOiJmMDNhZmRmOTMyMjM3YjE4Zjc2MTExNWJkZjdkZGZmNDY1OTVkM2E3YWE3Zjk5OTI2Y2YzNThlMjE5NDQ0YzhjIiwidGFnIjoiIn0%3D; expires=Fri, 28-Oct-2022 19:37:58 GMT; Max-Age=7200; path=/; domain=stage.govpayments.dev"},{"key":"Set-Cookie","value":"autoagent_ipayments_stage_session=eyJpdiI6IjJJMk1GTFd4S0tTTVV2S1VvT0RkRVE9PSIsInZhbHVlIjoiQU1MKzFwU3JoYXVHNTRtQUc0TzBJazcwZmg5bGxDbmQ0Q1Y5SnNUaXBEMXJ4Yk05bEZRdktNa0R6ZjlDamt4OVk0T3ZKeFpEZnhyN2VVRExPQ0FRaENxVEpheEthdno5TDBFdkdhNjM4QVFuVGNhekhyWGtGdWRERzNsQms3MjMiLCJtYWMiOiIxMzNkM2JjODM2Njk5YTJmZGNkYTkyMzc1ZWZlYjAwNzc3YWNhNjIyMzE5YjQ5NmFmMmU3NWQ4OTEwZDkzYzhlIiwidGFnIjoiIn0%3D; expires=Fri, 28-Oct-2022 19:37:58 GMT; Max-Age=7200; path=/; domain=stage.govpayments.dev; httponly"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"status_code\": 200,\n    \"errors\": [],\n    \"message\": \"1 item was added to the cart.\",\n    \"data\": {\n        \"cart_id\": \"781b89746a9aea9ea738634c54a2649f\",\n        \"checkout_link\": \"https://stage.govpayments.dev/{{apiSlug}}/cart/load?cart_token=781b89746a9aea9ea738634c54a2649f\",\n        \"total_processed\": 1,\n        \"items_in_cart\": [\n            1001000071\n        ],\n        \"failed_items\": []\n    }\n}"},{"id":"098f457f-c299-424d-b5d3-d82bc81951b2","name":"Fail","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"Defines payload content-type formatting\n"}],"body":{"mode":"raw","raw":"{\n    \"items\": [\n        {\n            \"item_number\": \"98047004004\",\n            \"item_selections\": {\n                \"2021\": 2\n            },\n            \"item_type\": \"A\",\n            \"amount\": \"1005.50\",\n            \"bill_number\": \"12345\"\n        }\n    ],\n    \"redirect_url\": \"https://www.yahoo.com\",\n    \"webhook_url\": \"https://webhook.site/256ccf66-156e-4c62-a3ae-ad215dd3fc4f\"\n}"},"url":"{{apiUrl}}/api/v1/rest/cart/create"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 28 Oct 2022 17:53:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"283"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.54 () OpenSSL/1.0.2k-fips PHP/8.1.9"},{"key":"Vary","value":"Authorization"},{"key":"Upgrade","value":"h2,h2c"},{"key":"X-Powered-By","value":"PHP/8.1.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IkJiSEc2dVRkNDkwa2dscE02RjdRaGc9PSIsInZhbHVlIjoiL1ZiYnlBMHBQZ2NKTzIrSE5FMVQ1OU5XM2E4UlE0RTRtZFhtOCtPR1NFd2dvL1FUQnVOcWhIaEtmVWNFUklmallXL1dQbEYyam1sRXA3Rk9PcXpTSDBjK2xIQ1ZKQXhCR2tZY3NvVUc4YWU2Q0tzMXAxVXJuaHZUNzhBayt6VjMiLCJtYWMiOiI3YTA1MTc4MzVlOTk4MGU1MzY4OWE3NmE0NWQxN2MwNjk3ZTU5NmQ5OTZhNDVlM2ZhZjgwOWZlYzM1NWYwZDJmIiwidGFnIjoiIn0%3D; expires=Fri, 28-Oct-2022 19:53:47 GMT; Max-Age=7200; path=/; domain=stage.govpayments.dev"},{"key":"Set-Cookie","value":"autoagent_ipayments_stage_session=eyJpdiI6InhkYjZVdlhMdzJKNTBZVlVIaXN3d0E9PSIsInZhbHVlIjoieFZKR0FFV3MvMHU0czVYNGlFeEw4eVBZYlJ0TFVrTFJCdzMxQnBjSG1LZCtmRWVCSWRWNkxRS2Q3WlphOEVSaWJ3V0gvcmN0OU5BVVlzWENhVGNRbXdHNWNRbmw4anlPejJLT09KZ3FBczRPTU5scjYxSmdoQ2JYRTZCNTBXUWEiLCJtYWMiOiI0OTc2ZDZkMmIzYmRkZThjM2Q5NzE3ZTI5NTQwMzU0ZTEzYmE5ODA1OWFlZGZhZDQ1NGQyODhlYTU0MmVmZjc2IiwidGFnIjoiIn0%3D; expires=Fri, 28-Oct-2022 19:53:47 GMT; Max-Age=7200; path=/; domain=stage.govpayments.dev; httponly"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"REQUEST_FAILED\",\n    \"errors\": [\n        \"Invalid item type\"\n    ],\n    \"message\": \"We could not validate 1 or more items. Cart link can not be created.\",\n    \"data\": {\n        \"cart_id\": \"\",\n        \"checkout_link\": \"\",\n        \"total_processed\": 1,\n        \"items_in_cart\": [],\n        \"failed_items\": {\n            \"98047004004\": {\n                \"errors\": [\n                    \"Invalid item type\"\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"bb5e49d7-6482-4d46-a27e-3fe1027ffbc5"},{"name":"createCart (complex)","id":"e6756b44-d5a3-491d-ad63-65f962f2e652","protocolProfileBehavior":{"disableBodyPruning":true,"disableUrlEncoding":false,"disabledSystemHeaders":{"user-agent":true,"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"<p>Defines payload content-type formatting</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"items\": [\n        {\n            \"item_number\": \"7abb41f680d9418bb12d1e47b6d5be8c\",\n            \"item_selections\": {\n                \"2025\": 1\n            },\n            \"amount\": \"2.10\",\n            \"input_fields\": {\n                \"bill_number\": \"123456\",\n                \"name\": \"John Smith\"\n            },\n            \"custom_fields\": {\n                \"internal_id\": \"abcd\",\n                \"unique_id\": \"xyz\"\n            }\n        },\n        {\n            \"item_number\": \"985uigf680d9418bb12d1e47b6897gf\",\n            \"item_selections\": {\n                \"2025\": 1\n            },\n            \"amount\": \"50.00\",\n            \"custom_fields\": {\n                \"internal_id\": \"efgh\",\n                \"unique_id\": \"zyx\"\n            }\n        }\n    ],\n    \"redirect_url\": \"www.autoagent.com/redirect\",\n    \"webhook_url\": \"www.autoagent.com/webhook\",\n    \"cancel_url\": \"www.autoagent.com/cancel\"\n}"},"url":"{{apiUrl}}/api/v1/rest/cart/create","description":"<p>Here is a CreateCart that includes multiple items, with both <strong>input_fields</strong> that will display to the end user, and <strong>custom_fields</strong> that will only be returned in the JSON data sent to the <em>webhook_url</em> and/or in the <em>getCartResult</em> response.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"f311d737-24ff-4f1e-a88f-b79dffc6f3c7","id":"f311d737-24ff-4f1e-a88f-b79dffc6f3c7","name":"Requests","type":"folder"}},"urlObject":{"path":["api","v1","rest","cart","create"],"host":["{{apiUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e6756b44-d5a3-491d-ad63-65f962f2e652"},{"name":"getCartResult","id":"a0f4118b-1e88-4c0c-b662-b32f649ca4c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{apiUrl}}/api/v1/rest/cart/payments?cart_id=80c44b97569785fcbb27f258a1933929","description":"<h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>status_code</td>\n<td>Numerical status code</td>\n</tr>\n<tr>\n<td>status</td>\n<td>Status of the transaction. Options are SUCCESS, REQUEST_FAILED, or VOIDED</td>\n</tr>\n<tr>\n<td>message</td>\n<td>String containing a clear response of your request status. If voided, the reason for the void is provided.</td>\n</tr>\n<tr>\n<td>data</td>\n<td>Array containing the <strong>paymentData</strong> of the transaction</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"paymentdata-fields\">paymentData Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Field</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>cart_id</td>\n<td>Unique ID for this cart. This is the ID provided when you generated the create cart request</td>\n</tr>\n<tr>\n<td>billing_amount</td>\n<td>The amount charged to the payer. This amount should equal the total of all items in the cart you requested.</td>\n</tr>\n<tr>\n<td>billing_service_fee</td>\n<td>The amount charged to the payer for service fees. This amount is calculated based on merchant agreements.</td>\n</tr>\n<tr>\n<td>confirmation_number</td>\n<td>A unique confirmation number generated by Autoagent for each successful transaction.</td>\n</tr>\n<tr>\n<td>billing_payee_name</td>\n<td>Name of Merchant</td>\n</tr>\n<tr>\n<td>billing_transaction_id</td>\n<td>Unique ID for authorization</td>\n</tr>\n<tr>\n<td>billing_first_name</td>\n<td>The first name of the payer</td>\n</tr>\n<tr>\n<td>billing_last_name</td>\n<td>The last name of the payer</td>\n</tr>\n<tr>\n<td>billing_address</td>\n<td>The number and street address of the payer</td>\n</tr>\n<tr>\n<td>billing_address2</td>\n<td>The second address line, ie, apartment, unit, etc</td>\n</tr>\n<tr>\n<td>billing_city</td>\n<td>The city of the payer</td>\n</tr>\n<tr>\n<td>billing_state</td>\n<td>The 2 character state abbreviation of the payer</td>\n</tr>\n<tr>\n<td>billing_zip</td>\n<td>The billing zip code of the payer. Usually 5 or 9 digits if USA</td>\n</tr>\n<tr>\n<td>billing_country</td>\n<td>The country of the payer</td>\n</tr>\n<tr>\n<td>billing_phone</td>\n<td>The phone number of the payer.</td>\n</tr>\n<tr>\n<td>billing_email</td>\n<td>The email address of the payer</td>\n</tr>\n<tr>\n<td>billing_timestamp</td>\n<td>The time stamp the transaction completed. This is in GMT.</td>\n</tr>\n<tr>\n<td>billing_method_name</td>\n<td>The payment method utilized of the transaction. Credit Card or eCheck.</td>\n</tr>\n<tr>\n<td>billing_last_four</td>\n<td>The last four digits of the billing method</td>\n</tr>\n<tr>\n<td>items</td>\n<td>Array containing the item (key) and amount (value) allocated toward each. The sum of which equals the amount charged to the payer.</td>\n</tr>\n<tr>\n<td>item_details</td>\n<td>Array containing each item along with more extensive details on each:  <br />  <br /><strong>item_number</strong>: Number of Item  <br /><strong>item_amount</strong>: Amount Paid  <br /><strong>custom_fields</strong>: Array provided in <strong>createCart</strong>  <br /><strong>input_fields</strong>: Array provided in <strong>createCart</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"f311d737-24ff-4f1e-a88f-b79dffc6f3c7","id":"f311d737-24ff-4f1e-a88f-b79dffc6f3c7","name":"Requests","type":"folder"}},"urlObject":{"path":["api","v1","rest","cart","payments"],"host":["{{apiUrl}}"],"query":[{"key":"cart_id","value":"80c44b97569785fcbb27f258a1933929"}],"variable":[]}},"response":[{"id":"ad0e006a-0bc6-4849-a0b9-7ff35c9e0eb4","name":"Successful Transction","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{apiUrl}}/api/v1/rest/cart/payments?cart_id=cf713235e515cf99cc3b3b8b09dbc31e","host":["{{apiUrl}}"],"path":["api","v1","rest","cart","payments"],"query":[{"key":"cart_id","value":"cf713235e515cf99cc3b3b8b09dbc31e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Fri, 28 Oct 2022 20:20:11 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.54 () OpenSSL/1.0.2k-fips PHP/8.1.9"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/8.1.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IjBlVWQvWW80NVdNQllseG53NytMWUE9PSIsInZhbHVlIjoiV24rbGlDR0p2Ti95VDB0dWZ1R1ZkdXQ5QUd3M21YOE9vWjZKdzQvLzRxRDNlSmxWM3gwemZNYUFjMnhGL1lDMThyMXpoRXJuTWI3OU5USW5qK2ZsKzVYcHRidjZKcHNLalE4YW85UUpmT1ZVUmwrVXNDamgxNUdGQnd0TXJ6RHYiLCJtYWMiOiJjOGE2ZGNhOTQ1ODlhNDA3OWExOGI3NTY2MDUyMTNhMjVmNGQ0ZTg4ODhkNDBjYjk1YTQ0N2E0YWUxNjZmMWVjIiwidGFnIjoiIn0%3D; expires=Fri, 28-Oct-2022 22:20:11 GMT; Max-Age=7200; path=/; domain=.govpayments.dev"},{"key":"Set-Cookie","value":"autoagent_ipayments_joe_session=eyJpdiI6InVzNkEzbS9IT25XVkNGdmRkSjN6VEE9PSIsInZhbHVlIjoicGl5ZC9MSk9OZFE2Um5kUU5VeW5CS0k3Z2dJeWtmVmw3bkpoaHE1Tnd5TFFWNGhiZWZQVTJVV2E0Z1NvSmJVY3BlUHo2VFA0ZnFwdDBVTEtBTzFwS1FxRmJsS0F3MGthekF6OXBIYWlkNjArTlJJMmZLbVlhVGFDK1EvZFZpV0ciLCJtYWMiOiI1MGU4ZWY4YTFkMjA4MzYwNjUwZTNlZDBlMGQ0YjUyZjEyMjVmOTViYTcxOGE5MjMwNjgzYTAwMjZiYzM5YThkIiwidGFnIjoiIn0%3D; expires=Fri, 28-Oct-2022 22:20:11 GMT; Max-Age=7200; path=/; domain=.govpayments.dev; httponly"}],"cookie":[],"responseTime":null,"body":"{\n    \"status_code\": \"200\",\n    \"message\": \"SUCCESS\",\n    \"status\": \"Payment completed successfully.\",\n    \"data\": {\n        \"cart_id\": \"781b89746a9aea9ea738634c54a2649f\",\n        \"items_paid\": 1,\n        \"billing_amount\": \"1005.50\",\n        \"billing_service_fee\": \"26.64\",\n        \"confirmation_number\": \"LFU3GFS9LR\",\n        \"billing_first_name\": \"John\",\n        \"billing_last_name\": \"Smith\",\n        \"billing_address\": \"123 Anywhere\",\n        \"billing_address2\": \"\",\n        \"billing_city\": \"Test\",\n        \"billing_state\": \"CA\",\n        \"billing_zip\": \"12345\",\n        \"billing_country\": \"US\",\n        \"billing_phone\": \"(201) 444-3333\",\n        \"billing_email\": \"test@test.com\",\n        \"billing_timestamp\": \"2022-11-04T14:04:18.000000Z\",\n        \"billing_method_name\": \"Credit Card\",\n        \"items\": [\n            {\n                \"1001000071\": \"1005.50\"\n            }\n        ],\n        \"item_details\": [\n            {\n                \"item_number\": \"1001000071\",\n                \"item_amount\": \"1005.50\",\n                \"custom_fields\": {\n                    \"custom1\": \"value\",\n                    \"custom2\": \"value2\",\n                    \"custom3\": \"value3\"\n                },\n                \"input_fields\": {\n                    \"bill_number\": \"12345\",\n                    \"input1\": \"value1\",\n                    \"input2\": \"value2\"\n                }\n            }\n        ]\n    }\n}"},{"id":"54ff0c71-78c6-4e40-8461-5e5f935d82e4","name":"Voided","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{apiUrl}}/api/v1/rest/cart/payments?cart_id=2dcd36de0c234d62bc1bee7778af07e7","host":["{{apiUrl}}"],"path":["api","v1","rest","cart","payments"],"query":[{"key":"cart_id","value":"2dcd36de0c234d62bc1bee7778af07e7"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 04 Nov 2022 13:43:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.54 () OpenSSL/1.0.2k-fips PHP/8.1.9"},{"key":"Vary","value":"Authorization"},{"key":"Upgrade","value":"h2,h2c"},{"key":"X-Powered-By","value":"PHP/8.1.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IitKaVdEUXl0M0M3eDcvWnpNTnpSTGc9PSIsInZhbHVlIjoiYnlmTi85K0lRRERKdXJsVDFDTnE0aDFIZTNKdFdsZDdxODdBTDd1SVR2Q0UwNHNRbm1xMzRVNmVRT1ZyQkZGdUlJeGpvV0xPdzhxMEpEaWxlbHBad2FLK28wVWE0cUkzdUJ0QUhUQWxVbVVPVGx5VHpRcFB5Q3FpMTZxOC9IM1QiLCJtYWMiOiIyNjdkMzU2OGY1MGRjZGFkMWY1N2NiYjBlZGI4YmE2NDI4NTk1ZDFkZTVhNDM0NmMxYzI0ZGM4ODFhNjhmZmY0IiwidGFnIjoiIn0%3D; expires=Fri, 04-Nov-2022 15:43:47 GMT; Max-Age=7200; path=/; domain=.govpayments.dev"},{"key":"Set-Cookie","value":"autoagent_ipayments_joe_session=eyJpdiI6Im5VQ1BUMVhyN2ZoNEZzcWU0dGl5eGc9PSIsInZhbHVlIjoiUXlIc3djK21udGZYaGZEbDRNaEtISlk5SXMyL3BVQlBjWjhLZnY1SkZRYkFZRlVoenhCVW1sTDFpZndPY0VTMHJUdk9DanFuRlJaeUdaa216Vkx6SVgwUS9yS2NKTGk4RVZPbkZkZ09qWmJScldBYjVuQnZ0U1hqOFUyVlpkRUsiLCJtYWMiOiI3YWJjZTZjMjg0MTg2NGViNzRiYTVlNzMyZTU1OWQ0ZDFmMGU4MGViY2UzNjI0ZTFhYjE4ZDg4YjkwMTQyN2I2IiwidGFnIjoiIn0%3D; expires=Fri, 04-Nov-2022 15:43:47 GMT; Max-Age=7200; path=/; domain=.govpayments.dev; httponly"}],"cookie":[],"responseTime":null,"body":"{\n    \"status_code\": \"200\",\n    \"message\": \"VOIDED\",\n    \"status\": \"Payment Reversed: Test\",\n    \"data\": {\n        \"cart_id\": \"2dcd36de0c234d62bc1bee7778af07e7\",\n        \"items_paid\": 1,\n        \"billing_amount\": \"1005.50\",\n        \"billing_service_fee\": \"26.64\",\n        \"confirmation_number\": \"BTYSHNXAFR\",\n        \"billing_first_name\": \"John\",\n        \"billing_last_name\": \"Smith\",\n        \"billing_address\": \"123 Anywhere\",\n        \"billing_address2\": \"\",\n        \"billing_city\": \"Test\",\n        \"billing_state\": \"AZ\",\n        \"billing_zip\": \"12345\",\n        \"billing_country\": \"US\",\n        \"billing_phone\": \"(201) 444-3333\",\n        \"billing_email\": \"test@test.com\",\n        \"billing_timestamp\": \"2022-11-04T13:41:46.000000Z\",\n        \"billing_method_name\": \"Credit Card\"\n    }\n}"},{"id":"8b73f02a-cbe8-405a-b389-d4002e0608bc","name":"Fail","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{apiUrl}}/api/v1/rest/cart/payments?cart_id=80c44b97569785fcbb27f258a1933929","host":["{{apiUrl}}"],"path":["api","v1","rest","cart","payments"],"query":[{"key":"cart_id","value":"80c44b97569785fcbb27f258a1933929"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 03 Nov 2022 15:37:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.54 () OpenSSL/1.0.2k-fips PHP/8.1.9"},{"key":"Vary","value":"Authorization"},{"key":"Upgrade","value":"h2,h2c"},{"key":"X-Powered-By","value":"PHP/8.1.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IlFMN1RRK1RINzhWM2RKTUh0eGtJREE9PSIsInZhbHVlIjoicXpIb04rRGcwd0s5TlA1RWc3OGU2R2Q5Vm1BdzZKVGZsTG8vcitTbzZNZm53TndFeHFwZGFXL3FFOE9HdXErUmxNZTB4MHpBRVR0YXZjTzkwYTBjNEx5cmNrV2twYTVObDczdkdEZUpnVDh0WEZEc0RVeGJrcm5MQ3RYMGNzSlEiLCJtYWMiOiI4YmJjY2VmZTJhNTQ3MDY4OTdjNWYxYTFkZDYyZDBiOTE4YTRhZmU5YjczMjc5NzNlNGU3NjhmYzM3NTI5MWYyIiwidGFnIjoiIn0%3D; expires=Thu, 03-Nov-2022 17:37:44 GMT; Max-Age=7200; path=/; domain=.govpayments.dev"},{"key":"Set-Cookie","value":"autoagent_ipayments_joe_session=eyJpdiI6Ii80bzY0SWlKOUxtZHRZSC9vUFVXclE9PSIsInZhbHVlIjoiREx6ZlY3dVV6NlZtRDlFMmV5eDYrZTRlZmJtQmdGdE9WQ2t1clVua3EvU2N2TXp0M2h5QVVQaUlpVGNoajFkbzFqREl1NDR4ejJMdnBHY0VKcFd5bnJwd0o1VXdBSTRCajNlSWxBTUNndjR0Y2l2V2g0YmV3K05CNnNFZ2J3eGIiLCJtYWMiOiI5NDc5ZDIyNzQ0YTRhMzFkNGZjZjQzNzMxMTJhYWU3NzQ0OTM2ZjdkZDM4YmM5ODNlM2I4MTQ4YmRkNjA1OWQ4IiwidGFnIjoiIn0%3D; expires=Thu, 03-Nov-2022 17:37:44 GMT; Max-Age=7200; path=/; domain=.govpayments.dev; httponly"}],"cookie":[],"responseTime":null,"body":"{\n    \"status_code\": \"404\",\n    \"message\": \"REQUEST_FAILED\",\n    \"status\": \"Payment not found.\",\n    \"data\": {\n        \"cart_id\": \"80c44b97569785fcbb27f258a1933929\"\n    }\n}"}],"_postman_id":"a0f4118b-1e88-4c0c-b662-b32f649ca4c7"},{"name":"voidCart","id":"b7c98b04-ffe3-407a-9d0c-9d1c04a06f3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{apiUrl}}/api/v1/rest/cart/void?cart_id=80c44b97569785fcbb27f258a1933929","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"f311d737-24ff-4f1e-a88f-b79dffc6f3c7","id":"f311d737-24ff-4f1e-a88f-b79dffc6f3c7","name":"Requests","type":"folder"}},"urlObject":{"path":["api","v1","rest","cart","void"],"host":["{{apiUrl}}"],"query":[{"key":"cart_id","value":"80c44b97569785fcbb27f258a1933929"}],"variable":[]}},"response":[],"_postman_id":"b7c98b04-ffe3-407a-9d0c-9d1c04a06f3a"},{"name":"cancelCart","id":"1ed226c4-9189-4e77-8c35-a4bbf1ea5297","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{apiUrl}}/api/v1/rest/cart/cancel?cart_id=80c44b97569785fcbb27f258a1933929","description":"<p>Created carts are valid for 15 minutes or single use. Use this method to cancel a created cart immediately.</p>\n<h2 id=\"request-fields\">Request Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>cart_id</td>\n<td>Unique ID for this cart. Utilize this ID as it relates to any webhook responses.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"f311d737-24ff-4f1e-a88f-b79dffc6f3c7","id":"f311d737-24ff-4f1e-a88f-b79dffc6f3c7","name":"Requests","type":"folder"}},"urlObject":{"path":["api","v1","rest","cart","cancel"],"host":["{{apiUrl}}"],"query":[{"description":{"content":"<p>Unique ID for this cart. Utilize this ID as it relates to any webhook responses.</p>\n","type":"text/plain"},"key":"cart_id","value":"80c44b97569785fcbb27f258a1933929"}],"variable":[]}},"response":[{"id":"cf193d15-c16d-480c-a013-ca5219ccd61d","name":"Success","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{apiUrl}/api/v1/rest/cart/cancel?cart_id=d6c9fa2ce46ae59423c08f375a6021ac","host":["{apiUrl}"],"path":["api","v1","rest","cart","cancel"],"query":[{"key":"cart_id","value":"d6c9fa2ce46ae59423c08f375a6021ac","description":"Unique ID for this cart. Utilize this ID as it relates to any webhook responses."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 03 Nov 2022 15:38:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.54 () OpenSSL/1.0.2k-fips PHP/8.1.9"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/8.1.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6ImlYTGFFeWZPamJUUW1UZUM1aFd5OUE9PSIsInZhbHVlIjoiT3RTa3U4cHE2bEo2MXoySjZKYUMrRXpJanlnOENtTGFVdHdqaUlYcUtLOFpuY1kzd1VaMDdsVzVPSHRtU3E2MzN4M3VPRDZiVlZqS3RhUmFUWS92MXlxYzB2ZkNOTEl1clc4MThJNlVHZmJvVjNuaEhqMEQ4Wm9WZGc5Mjd6Y20iLCJtYWMiOiI4NzYxYjdmNDk2Y2ZiYTU2YTM3OTQzOTgzNTE3OTZkODg2NTYyY2Y3NWI1MmU0NGVhOTIzYmI5NDBiZjQ0ZGQ5IiwidGFnIjoiIn0%3D; expires=Thu, 03-Nov-2022 17:38:38 GMT; Max-Age=7200; path=/; domain=.govpayments.dev"},{"key":"Set-Cookie","value":"autoagent_ipayments_joe_session=eyJpdiI6IllsNk51ZENxdllxWUQ2M1gzdldtaUE9PSIsInZhbHVlIjoieC9BWGFldEE5NDlZcnpnckR5QnFXK2tibzlHTnFRb3YxbndPc1cvQThESDhqeFRRUktFNnY3aHdHSHVWUUlkZG9KUWRxMzJvYUhtUDBxZnh6NHFqdmwzTVZ5OFdyWVNOWUIvRitaODVrUGJGUDdQTDNERlQxU05oLzZsZUF4MEwiLCJtYWMiOiJhZWFjZmUwYzQ2NGVhZTA5MWRmMjUwYjVlNDYzNDcxNzBkMzVlY2RkOGJmYjE3NWY0MjAzOWMzYWI0NjNhYzNiIiwidGFnIjoiIn0%3D; expires=Thu, 03-Nov-2022 17:38:38 GMT; Max-Age=7200; path=/; domain=.govpayments.dev; httponly"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"status_code\": \"200\",\n    \"message\": \"Cart has been cancelled.\"\n}"},{"id":"7f3a8eb2-bec2-43d0-b5d3-9b4da144ac3b","name":"Fail","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{apiUrl}}/api/v1/rest/cart/cancel?cart_id=973543087a2d71808a873c19d338685f","host":["{{apiUrl}}"],"path":["api","v1","rest","cart","cancel"],"query":[{"key":"cart_id","value":"973543087a2d71808a873c19d338685f","description":"Unique ID for this cart. Utilize this ID as it relates to any webhook responses."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 03 Nov 2022 15:39:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.54 () OpenSSL/1.0.2k-fips PHP/8.1.9"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/8.1.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IlFsU2UzcFBtZjk2eXdjWHgwalpsYmc9PSIsInZhbHVlIjoiRmdyRU91d3k2S1A0UzdpcVYrZjJaTGNJOTRneklCTnVTN3FuR0I2TzluYlhtcG5jV3N4OFBSTWR4VGNYK3pPQkpLS3NSdk1WVG5NSzF6UTBTc2hsMWo4ZW1RNEFGYUtlbHJPVEdUSzhiWlplc1daVndySFNWdFRPRDEvQklBdUIiLCJtYWMiOiI1YTc5ZWM1ZTliY2Y3MWRhOTAyZTJlOThmOTkzMDc4MjRhZDE1MDQzZDFlZmFmNjZlMTk2NTJjMWFmYTRiOWVhIiwidGFnIjoiIn0%3D; expires=Thu, 03-Nov-2022 17:39:00 GMT; Max-Age=7200; path=/; domain=.govpayments.dev"},{"key":"Set-Cookie","value":"autoagent_ipayments_joe_session=eyJpdiI6IlJqdG9FS2N5SWc1TklIenBWV0pSNWc9PSIsInZhbHVlIjoiRWFySFJaSmpVanpuajZ1ajdERDd4ZlhvZzg1UGh3STc0NUtmUmYwa0tnNEpSQmFYT0tIRnJrYzVhTDlDTnpMdmh1YVhvaG9YQ1N4V3Z4VWlPYnhEVUJMbWZVZlRJMThOejFweTByQjF4M3BKZ2ovTkhkd2g4eG9oTVFPU29xbFoiLCJtYWMiOiJjZWNmYzQ0MWJkYzhmMjc5ZTU3ZTg0ZDJmYWVmYmI2ZGVjMDA0ZDA5ZTJlYjM1YjdjM2M2MGI1YmMxOWE3ZWNmIiwidGFnIjoiIn0%3D; expires=Thu, 03-Nov-2022 17:39:00 GMT; Max-Age=7200; path=/; domain=.govpayments.dev; httponly"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"REQUEST_FAILED\",\n    \"status_code\": \"404\",\n    \"message\": \"Active cart not found\"\n}"}],"_postman_id":"1ed226c4-9189-4e77-8c35-a4bbf1ea5297"}],"id":"f311d737-24ff-4f1e-a88f-b79dffc6f3c7","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"df08288a-7549-4a87-8c84-9f827ed2cf32","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"eaae38a1-4667-4adb-b6f0-c56d5bb21b1e","type":"text/javascript","exec":[""]}}],"_postman_id":"f311d737-24ff-4f1e-a88f-b79dffc6f3c7","description":""},{"name":"Webhooks","item":[{"name":"paymentSuccess","id":"245feb6f-57c9-47b2-a1dc-3a16a8b33971","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"status_code\": \"200\",\n    \"message\": \"SUCCESS\",\n    \"status\": \"Payment completed successfully.\",\n    \"data\": {\n        \"cart_id\": \"781b89746a9aea9ea738634c54a2649f\",\n        \"items_paid\": 1,\n        \"billing_amount\": \"1005.50\",\n        \"billing_service_fee\": \"26.64\",\n        \"confirmation_number\": \"LFU3GFS9LR\",\n        \"billing_first_name\": \"John\",\n        \"billing_last_name\": \"Smith\",\n        \"billing_address\": \"123 Anywhere\",\n        \"billing_address2\": \"\",\n        \"billing_city\": \"Test\",\n        \"billing_state\": \"CA\",\n        \"billing_zip\": \"12345\",\n        \"billing_country\": \"US\",\n        \"billing_phone\": \"(201) 444-3333\",\n        \"billing_email\": \"test@test.com\",\n        \"billing_timestamp\": \"2022-11-04T14:04:18.000000Z\",\n        \"billing_method_name\": \"Credit Card\",\n        \"items\": [\n            {\n                \"1001000071\": \"1005.50\"\n            }\n        ],\n        \"item_details\": [\n            {\n                \"item_number\": \"1001000071\",\n                \"item_amount\": \"1005.50\",\n                \"custom_fields\": {\n                    \"custom1\": \"value\",\n                    \"custom2\": \"value2\",\n                    \"custom3\": \"value3\"\n                },\n                \"input_fields\": {\n                    \"bill_number\": \"12345\",\n                    \"input1\": \"value1\",\n                    \"input2\": \"value2\"\n                }\n            }\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"","description":"<p>If a webhook_url parameter is provided in the initial cart/create, a POST is made when a successful transaction occurs.</p>\n<p>The request expects the response of <strong>success</strong> along with an <strong>HTTP 200</strong> status. If either of those fail, a second attempt will be made. If the second attempt fails, the transaction will be <em>VOIDED</em> and the payer will receive an error on screen that their payment can not be completed.</p>\n<p>Webhook response contains the same result set as the <strong>getCartResult</strong> method.</p>\n<p>A brief guide on testing the webhook functionality can be found <a href=\"https://autoagentsoftware.freshdesk.com/a/solutions/articles/5000897695?portalId=5000033344#Testing-a-Webhook-with-Form-POST\">here.</a></p>\n","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"245feb6f-57c9-47b2-a1dc-3a16a8b33971"}],"id":"f5ed7bcf-0506-4314-b236-1ba7d5fc3300","description":"<p>The following webhooks are available when certain events occur on MuniciPay.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"4c06b21e-a4b5-4820-8d1f-5c9c3bbd59e6","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ff84b9a7-7438-4175-a4a0-6dd46ec265c4","type":"text/javascript","exec":[""]}}],"_postman_id":"f5ed7bcf-0506-4314-b236-1ba7d5fc3300"}],"id":"110e2926-8559-415a-9beb-979c407a65de","description":"<p>Creates a custom shopping cart containing 1 or more items to be paid. Responses are generated containing payment details. An optional webhook_url and redirect_url can be initiated following successful transactions.</p>\n<p>Below you will find examples of a the bare minimum required to create a cart (simple) as well as a request making use of each of the optional components (complex). Feel free to reach out to <a href=\"https://mailto:integrations@autoagent.com\">integrations@autoagent.com</a> for advise on how to use these optional components to best fit your use case.</p>\n<h3 id=\"test-payment-methods-for-staging-environment\">Test Payment Methods for Staging Environment</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Credit Card</strong></th>\n<th><strong>Expiration</strong></th>\n<th><strong>CVV2</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>4111 1111 1111 1111</td>\n<td>06/2029</td>\n<td>321</td>\n</tr>\n</tbody>\n</table>\n</div><div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>ACH Type</strong></th>\n<th><strong>Routing Number</strong></th>\n<th><strong>Account Number</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Checking</td>\n<td>490000018</td>\n<td>123123123</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"26820846-8eb3-4fbe-8e8d-3011e4e45d49","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8c631eb7-6ed3-4c82-98cd-dba530649825","type":"text/javascript","exec":[""]}}],"_postman_id":"110e2926-8559-415a-9beb-979c407a65de"},{"name":"Run Payment","item":[{"name":"Requests","item":[{"name":"Autopay","item":[{"name":"authorizeAutopay","id":"2fbc25d1-0cfb-4336-8a20-87f63a0b337b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": {\n        \"ref_id\": \"123\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Smith\",\n        \"address1\": \"123 Test dr\",\n        \"address2\": \"\",\n        \"city\": \"Miami\",\n        \"state\": \"FL\",\n        \"zip\": \"33160\",\n        \"country\": \"US\",\n        \"phone\": \"9548888888\",\n        \"phone_country\": \"US\"\n    },\n    \"items\": [\n        {\n            \"item_display_title\": \"787878-0 Billing Group 3\",\n            \"item_number\": \"AB123456\",\n            \"item_type\": \"M2\",\n            \"item_selections\": {\n                \"2024\": 1\n            },\n            \"amount\": \"10.99\",\n            \"custom_fields\": {\n                \"AccountNumber\": \"787878-0\",\n                \"AccountCustomerID\": 313131,\n                \"BillingGroupID\": 3\n            },\n            \"due_date\": \"2026-02-25\",\n            \"autopay_enrolled_webhook_url\": \"http://somewebhookurl1.com\",\n            \"autopay_cancelled_webhook_url\": \"http://somewebhookurl2.com\",\n            \"payment_success_webhook_url\": \"http://somewebhookur3.com\"\n        },\n        {\n            \"item_display_title\": \"767676-0 Billing Group 3\",\n            \"item_number\": \"AB123456\",\n            \"item_type\": \"M2\",\n            \"item_selections\": {\n                \"2024\": 1\n            },\n            \"amount\": \"50.62\",\n            \"custom_fields\": {\n                \"AccountNumber\": \"767676-0\",\n                \"AccountCustomerID\": 313131,\n                \"BillingGroupID\": 3\n            },\n            \"input_fields\": {\n                \"bill_number\": \"1hhgy312476v54\"\n            },\n            \"autopay_enrolled_webhook_url\": \"http://somewebhookurl.com\",\n            \"autopay_cancelled_webhook_url\": \"http://somewebhookurl2.com\",\n            \"payment_success_webhook_url\": \"http://somewebhookur3.com\"\n        }\n        \n    ],\n    \"redirect_url\": \"http://somewebhookur4.com\",\n    \"cancel_url\": \"http://somewebhookur5.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{apiUrl}}/api/v1/autopay/authorize","description":"<p><strong>Note: This endpoint will be available Q1/2026</strong></p>\n<p>Provides a one-time link which will sign a user into MuniciPay. The user will then be able to add wallets and enroll in autopay for items passed in the request body.</p>\n<h2 id=\"request-fields\">Request Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>items</strong>  <br /><em>Array of</em> <em><strong>CartItem</strong></em> <em>objects</em></td>\n<td><strong>Required</strong>. An array of <strong>CartItem</strong> objects to display to the user in the Autopay management page. The user can choose to enroll one or more items in Autopay, or cancel Autopay for existing enrollments.</td>\n</tr>\n<tr>\n<td><strong>user</strong>  <br /><em><strong>User</strong></em> <em>Object</em></td>\n<td><strong>Required.</strong> A <strong>User</strong> object representing the user who will be accessing autopay management page.</td>\n</tr>\n<tr>\n<td><strong>redirect_url</strong>  <br /><em>String</em></td>\n<td><strong>Required.</strong> The url to redirect to after the user finishes their action</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"cartitem-fields-used-by-this-endpoint\">CartItem fields used by this endpoint</h2>\n<p><strong>Note</strong>: For detailed field descriptions, refer to the <strong>CartItem</strong> object.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th>Requirements</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>enrollment_id</strong>  <br /><em>integer</em></td>\n<td><strong>Required</strong> if the item is already enrolled in Autopay.</td>\n</tr>\n<tr>\n<td><strong>item_number</strong>  <br /><em>string</em></td>\n<td><strong>Required</strong></td>\n</tr>\n<tr>\n<td><strong>item_display_title</strong>  <br /><em>string</em></td>\n<td><strong>Optional/Recommended</strong>. If omitted, the UI will fall back to <strong>item_number</strong>. This field is for display only.</td>\n</tr>\n<tr>\n<td><strong>item_type</strong>  <br /><em>string</em></td>\n<td><strong>Required</strong></td>\n</tr>\n<tr>\n<td><strong>item_selections</strong>  <br /><em>object</em></td>\n<td><strong>Required</strong></td>\n</tr>\n<tr>\n<td><strong>amount</strong>  <br /><em>string</em></td>\n<td><strong>Required</strong> if due_date is provided.</td>\n</tr>\n<tr>\n<td><strong>due_date</strong>  <br /><em>string</em></td>\n<td><strong>Required</strong> if amount_is provided.</td>\n</tr>\n<tr>\n<td><strong>custom_fields</strong>  <br /><em>object</em></td>\n<td><strong>Optional</strong></td>\n</tr>\n<tr>\n<td><strong>autopay_enrolled_webhook_url</strong>  <br /><em>string</em></td>\n<td><strong>Required</strong></td>\n</tr>\n<tr>\n<td><strong>autopay_cancelled_webhook_url</strong>  <br /><em>string</em></td>\n<td><strong>Required</strong></td>\n</tr>\n<tr>\n<td><strong>payment_success_webhook_url</strong>  <br /><em>string</em></td>\n<td><strong>Required</strong></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"user-fields-used-by-this-endpoint\">User fields used by this endpoint</h2>\n<p><strong>Note</strong>: For detailed field descriptions, refer to the <strong>User</strong> object.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th>Requirements</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ref_id</td>\n<td><strong>Required</strong></td>\n</tr>\n<tr>\n<td>first_name</td>\n<td><strong>Required</strong></td>\n</tr>\n<tr>\n<td>last_name</td>\n<td><strong>Required</strong></td>\n</tr>\n<tr>\n<td>email</td>\n<td><strong>Optional</strong></td>\n</tr>\n<tr>\n<td>address1</td>\n<td><strong>Optional</strong></td>\n</tr>\n<tr>\n<td>address2</td>\n<td><strong>Optional</strong></td>\n</tr>\n<tr>\n<td>city</td>\n<td><strong>Optional</strong></td>\n</tr>\n<tr>\n<td>state</td>\n<td><strong>Optional</strong></td>\n</tr>\n<tr>\n<td>zip</td>\n<td><strong>Optional</strong></td>\n</tr>\n<tr>\n<td>country</td>\n<td><strong>Optional</strong></td>\n</tr>\n<tr>\n<td>phone</td>\n<td><strong>Optional</strong></td>\n</tr>\n<tr>\n<td>phone_country</td>\n<td><strong>Optional</strong></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>status</strong>  <br /><em>string</em></td>\n<td>SUCCESS or REQUEST_FAILED</td>\n</tr>\n<tr>\n<td><strong>errors</strong>  <br /><em>array</em></td>\n<td>Array containing strings of issues identified with your request</td>\n</tr>\n<tr>\n<td><strong>message</strong>  <br /><em>string</em></td>\n<td>String containing a clear response of your request status</td>\n</tr>\n<tr>\n<td><strong>data</strong>  <br /><em>LoginDetails.*</em></td>\n<td>A <strong>LoginDetails</strong> object (described below)</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"logindetails-object\">LoginDetails Object</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>login_link</strong>  <br /><em>string</em></td>\n<td>Unique, one-time link which sends the user to the MuniciPay Autopay enrollment page</td>\n</tr>\n<tr>\n<td><strong>token_id</strong>  <br /><em>integer</em></td>\n<td>A unique ID for this request for debugging purposes</td>\n</tr>\n<tr>\n<td><strong>ref_id</strong>  <br /><em>User.ref_id</em></td>\n<td>A unique internal identifier in your system for the user the one-time link was generated for.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}},"urlObject":{"path":["api","v1","autopay","authorize"],"host":["{{apiUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2fbc25d1-0cfb-4336-8a20-87f63a0b337b"},{"name":"cancelAutopay","id":"7e358724-a3ed-4844-9c67-787d5ee1d3b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"ref_id\": \"{{ref_id}}\",\n    \"enrollment_id\":{{enrollment_id}}\n}","options":{"raw":{"language":"json"}}},"url":"{{apiUrl}}/api/v1/autopay/cancel","description":"<p><strong>Note: This endpoint will be available Q1/2026</strong></p>\n<p>Cancel Autopay enrollment and delete all payments for a given enrollment.</p>\n<h2 id=\"request-fields\">Request Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>ref_id</strong>  <br /><em>User.ref_id</em></td>\n<td><strong>Optional.</strong> A unique internal identifier assigned to the user in your system, used to cancel that user’s autopayment enrollment.</td>\n</tr>\n<tr>\n<td><strong>enrollment_id</strong>  <br /><em>CartItem.enrollment_id</em></td>\n<td><strong>Required.</strong> Unique identifier of the Autopay enrollment being canceled.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>status</strong>  <br /><em>string</em></td>\n<td>SUCCESS or REQUEST_FAILED</td>\n</tr>\n<tr>\n<td><strong>errors</strong>  <br /><em>array</em></td>\n<td>Array containing strings of issues identified with your request</td>\n</tr>\n<tr>\n<td><strong>message</strong>  <br /><em>string</em></td>\n<td>String containing a clear response of your request status</td>\n</tr>\n<tr>\n<td><strong>data</strong>  <br /><em>AutomatedItem.*</em></td>\n<td>An <strong>AutomatedItem</strong> object (described below)</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"automateditem-fields\">AutomatedItem Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>enrollment_id</strong>  <br /><em>CartItem.enrollment_id</em></td>\n<td>The unique identifier of the Autopay enrollment that was canceled.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}},"urlObject":{"path":["api","v1","autopay","cancel"],"host":["{{apiUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7e358724-a3ed-4844-9c67-787d5ee1d3b2"},{"name":"updateAutopay","id":"52c1472f-934c-4df8-94bf-55fa010245be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"enrollments\": [\n        {\n            \"ref_id\": \"{{ref_id}}\",\n            \"enrollment_id\": {{enrollment_id}},\n            \"amount\": \"{{item_amount}}\",\n            \"due_date\": \"{{due_date}}\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{apiUrl}}/api/v1/autopay/update","description":"<p><strong>Note: This endpoint will be available Q1/2026</strong></p>\n<p>Update payments for an existing Autopay enrollments.</p>\n<h2 id=\"request\">Request</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>enrollments</strong>  <br /><em>array</em></td>\n<td><strong>Required.</strong> List of enrollment objects. Maximum enrollments per batch is <strong>500</strong> (requests may take up to 30 seconds). Recommended batch size is 100–250 enrollments.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"enrollment-object\">Enrollment Object</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>ref_id</strong>  <br />User.ref_id</td>\n<td><strong>Optional.</strong> A unique internal identifier assigned to the user in your system whose profile details are being updated.</td>\n</tr>\n<tr>\n<td><strong>enrollment_id</strong>  <br />CartItem.enrollment_id</td>\n<td><strong>Required.</strong> The unique enrollment identifier associated with the Autopay enrollment being updated.</td>\n</tr>\n<tr>\n<td><strong>amount</strong>  <br />CartItem.amount</td>\n<td><strong>Required.</strong> The next payment amount , excluding any special characters or comma formatting.</td>\n</tr>\n<tr>\n<td><strong>due_date</strong>  <br />CartItem.due_date</td>\n<td><strong>Required.</strong> Next due date provided in the the format YYYY-MM-DD</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>status</strong>  <br /><em>string</em></td>\n<td>SUCCESS or PARTIAL_SUCCESS or REQUEST_FAILED</td>\n</tr>\n<tr>\n<td><strong>errors</strong>  <br /><em>array</em></td>\n<td>Array containing strings of issues identified with your request</td>\n</tr>\n<tr>\n<td><strong>message</strong>  <br /><em>string</em></td>\n<td>String containing a clear response of your request status</td>\n</tr>\n<tr>\n<td><strong>data</strong>  <br /><em>EnrollmentsUpdateDetails.*</em></td>\n<td>A <strong>EnrollmentsUpdateDetails</strong> object (described below)</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"enrollmentsupdatedetails-fields\">EnrollmentsUpdateDetails Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>failed_enrollments</strong>  <br /><em>array</em></td>\n<td>List of enrollment IDs that failed to update. An empty list indicates that all enrollments were updated successfully.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}},"urlObject":{"path":["api","v1","autopay","update"],"host":["{{apiUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"52c1472f-934c-4df8-94bf-55fa010245be"}],"id":"d3be7244-fb6d-42ed-ab0d-1c6c5b3430e8","description":"<p>Autopay endpoints for managing a user’s automatic payment enrollments.</p>\n","_postman_id":"d3be7244-fb6d-42ed-ab0d-1c6c5b3430e8","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}}},{"name":"Profile","item":[{"name":"Wallet","item":[{"name":"authorizeAddWallet","id":"a31f3644-bf89-4f51-b036-bbfafc595d76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": {\n        \"ref_id\": {{ref_id}},\n        \"email\": \"{{email}}\",\n        \"first_name\": \"{{first_name}}\",\n        \"last_name\": \"{{last_name}}\",\n        \"address1\": \"{{address1}}\",\n        \"address2\": \"{{address2}}\",\n        \"city\": \"{{city}}\",\n        \"state\": \"{{state}}\",\n        \"zip\": \"{{zip}}\",\n        \"country\": \"{{country}}\",\n        \"phone\": \"{{phone}}\",\n        \"phone_country\": \"{{phone_country}}\"\n    },\n    \"redirect_url\": \"{{redirect_url}}\",\n    \"cancel_url\": \"{{cancel_url}}\",\n    \"webhook_url\": \"{{wallet_added_webhook_url}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{apiUrl}}/api/v1/profile/wallet/authorize","description":"<p><strong>Note: This endpoint will be available Q1/2026</strong></p>\n<p>Provide a user and an action to receive a one-time link which will sign a user into MuniciPay. The user will then be able to add wallets to be used in later API calls to run payments.</p>\n<h2 id=\"request-fields\">Request Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>user</strong>  <br /><em><strong>User</strong></em> <em>object</em></td>\n<td><strong>Required.</strong> A <strong>User</strong> object representing the user who will be adding wallets on MuniciPay. Importnent: all fields from <strong>User</strong> object are required.</td>\n</tr>\n<tr>\n<td><strong>redirect_url</strong>  <br /><em>string</em></td>\n<td><strong>Required.</strong> The url to redirect to after the user finishes their action.</td>\n</tr>\n<tr>\n<td><strong>cancel_url</strong>  <br /><em>string</em></td>\n<td><strong>Required.</strong> The url to redirect to if the user decides to cancel their action.</td>\n</tr>\n<tr>\n<td><strong>webhook_url</strong>  <br /><em>string</em></td>\n<td><strong>Required.</strong> Webhook URL to receive notification when a user adds a payment method to their wallet.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>status</strong>  <br /><em>string</em></td>\n<td>SUCCESS or REQUEST_FAILED</td>\n</tr>\n<tr>\n<td><strong>errors</strong>  <br /><em>array</em></td>\n<td>Array containing strings of issues identified with your request</td>\n</tr>\n<tr>\n<td><strong>message</strong>  <br /><em>string</em></td>\n<td>String containing a clear response of your request status</td>\n</tr>\n<tr>\n<td><strong>data</strong>  <br /><em>LoginDetails</em><strong>.</strong><em>*</em></td>\n<td>A <strong>LoginDetails</strong> object (described below)</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"logindetails-object\">LoginDetails Object</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>login_link</strong>  <br /><em>string</em></td>\n<td>Unique, one-time link for this action request.</td>\n</tr>\n<tr>\n<td><strong>token_id</strong>  <br /><em>integer</em></td>\n<td>A unique ID for this request for debugging purposes.</td>\n</tr>\n<tr>\n<td><strong>ref_id</strong>  <br />User.ref_id</td>\n<td>A unique internal integer identifier in your system for the user the one-time link was generated for.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}},"urlObject":{"path":["api","v1","profile","wallet","authorize"],"host":["{{apiUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a31f3644-bf89-4f51-b036-bbfafc595d76"}],"id":"b3b75e11-4355-41d8-8859-e344173001a2","description":"<p>Wallet endpoints for managing a user’s tokenized payment methods.</p>\n","_postman_id":"b3b75e11-4355-41d8-8859-e344173001a2","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}}},{"name":"updateUserProfile","id":"ce26f09a-9312-4daf-90b4-b9f640f5910e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"ref_id\": {{ref_id}},\n    \"first_name\": \"{{first_name}}\",\n    \"last_name\": \"{{last_name}}\",\n    \"address1\": \"{{address1}}\",\n    \"address2\": \"{{address2}}\",\n    \"city\": \"{{city}}\",\n    \"state\": \"{{state}}\",\n    \"zip\": \"{{zip}}\",\n    \"country\": \"{{country}}\",\n    \"phone\": \"{{phone}}\",\n    \"phone_country\": \"{{phone_country}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{apiUrl}}/api/v1/profile/update","description":"<p><strong>Note: This endpoint will be available Q1/2026</strong></p>\n<p>Update existing Autopay enrollment by a new payment.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>ref_id</strong>  <br />User.<em>ref_id</em></td>\n<td><strong>Required</strong>. A unique internal identifier assigned to the user in your system whose profile details are being updated.</td>\n</tr>\n<tr>\n<td>Any fields from a <strong>User</strong> object you wish to update</td>\n<td>At least 1 field is required</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>status</strong>  <br /><em>string</em></td>\n<td>SUCCESS or REQUEST_FAILED</td>\n</tr>\n<tr>\n<td><strong>errors</strong>  <br /><em>array</em></td>\n<td>Array containing strings of issues identified with your request.</td>\n</tr>\n<tr>\n<td><strong>message</strong>  <br /><em>string</em></td>\n<td>String containing a clear response of your request status.</td>\n</tr>\n<tr>\n<td><strong>data</strong>  <br />User.*</td>\n<td>All <strong>User</strong> object fields containig updated user profile details.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}},"urlObject":{"path":["api","v1","profile","update"],"host":["{{apiUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ce26f09a-9312-4daf-90b4-b9f640f5910e"}],"id":"6f393209-00ba-4d5a-bfa9-fe46d44cfd81","description":"<p>Profile endpoints for managing user-related details.</p>\n","_postman_id":"6f393209-00ba-4d5a-bfa9-fe46d44cfd81","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}}},{"name":"Payment","item":[{"name":"runPayment","id":"b8185353-6b21-46c7-beae-9f673700dfb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"items\": [\n        {\n            \"item_number\": \"{{item_number}}\",\n            \"item_selections\": {\n                \"{{item_year}}\": {{item_installment}}\n            },\n            \"amount\": \"{{item_amount}}\",\n            \"input_fields\": {\n                \"bill_number\": \"{{bill_number}}\"\n            },\n            \"custom_fields\": {}\n        }\n    ],\n    \"payment_token\": \"{{payment_token}}\",\n    \"run_date\": \"{{run_date}}\",\n    \"is_suppress_receipt\": false\n}","options":{"raw":{"language":"json"}}},"url":"{{apiUrl}}/api/v1/transaction/run","description":"<p>Run a transaction using a payment token created by a user</p>\n<h2 id=\"request-fields\">Request Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>items</strong>  <br /><em>Array of</em> <em><strong>CartItem</strong></em> <em>objects</em></td>\n<td><strong>Required.</strong> Array containing one or many <strong>CartItem</strong> objects to run a payment on</td>\n</tr>\n<tr>\n<td>payment_token</td>\n<td><strong>Required</strong> a token received by the walletAdded webhook</td>\n</tr>\n<tr>\n<td>is_suppress_receipt</td>\n<td><strong>Optional</strong> when true, does not email a receipt to the user the payment is being run for. Defaults to false</td>\n</tr>\n<tr>\n<td>webhook_url</td>\n<td><strong>Optional</strong> a url to post to when the payment is run. Details on what is sent in this webhook can be found in the Webhooks/paymentCompleted documentation</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"cartitem-object-fields\">CartItem Object Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>item_number</td>\n<td><strong>Required</strong> Unique identifier for the item being paid. Must match identifier at Autoagent. This value <em>directly relates</em> to a merchant's bank account that will receive deposits from MuniciPay.</td>\n</tr>\n<tr>\n<td>item_selections</td>\n<td><strong>Required</strong> Object containing the year:installment to apply this payment. If item being paid does not contain a year, pass the current year. If the item does not contain an installment, pass 1.</td>\n</tr>\n<tr>\n<td>amount</td>\n<td><strong>Required</strong> The amount being paid, excluding any special characters or comma formatting.</td>\n</tr>\n<tr>\n<td>input_fields</td>\n<td><strong>Optional</strong> Array containing key:value pairs. If included, these input fields will be associated with the item. These input fields <strong>must</strong> be communicated to and configured by MuniciPay before they will display.  <br />  <br /><strong>Reserved/Default input_fields:</strong>  <br /><strong>bill_number</strong> : String containing any detailed information about the item being paid. Can be a single bill number, coma delimited values, etc. Max length is 500 characters.  <br />  <br />MuniciPay <strong>strongly</strong> reccomends including a unique bill_number on every request, to ensure you have a point of reference between your system and MuniciPay.</td>\n</tr>\n<tr>\n<td>custom_fields</td>\n<td><strong>Optional</strong> Array containing key:value pairs. If included, these fields will be returned in the paymentCompleted webhook.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>status</td>\n<td>SUCCESS or REQUEST_FAILED</td>\n</tr>\n<tr>\n<td>errors</td>\n<td>Array containing strings of issues identified with your request</td>\n</tr>\n<tr>\n<td>message</td>\n<td>String containing a clear response of your request status</td>\n</tr>\n<tr>\n<td>data</td>\n<td>A <strong>paymentDetails</strong> object</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"paymentdetails-fields\"><strong>paymentDetails</strong> Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ind_checkout_id</td>\n<td>Unique ID for this payment</td>\n</tr>\n<tr>\n<td>confirmation</td>\n<td>A ten-character alphanumeric confirmation number to reference if you need to contact support about a payment</td>\n</tr>\n<tr>\n<td>timestamp_gmt</td>\n<td>The timestamp when the payment was run, in GMT</td>\n</tr>\n<tr>\n<td>batch_date</td>\n<td>The date when the payment was run for merchant funding purposes, in YYYY-MM-DD format. In other words, will be the timestamp_gmt converted to the timezone of the merchant</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>The total amount charged for all items in the payment</td>\n</tr>\n<tr>\n<td>fee_amount</td>\n<td>The fee charged for this payment</td>\n</tr>\n<tr>\n<td>last_four</td>\n<td>The last four of the bank account or card run in this payment</td>\n</tr>\n<tr>\n<td>first_name</td>\n<td>The first name of the user this payment was run for</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>The last name of the user this payment was run for</td>\n</tr>\n<tr>\n<td>items</td>\n<td>an array of <strong>paymentItem</strong> objects</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"paymentitem-fields\">paymentItem Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>item_id</td>\n<td>Unique ID for this payment item</td>\n</tr>\n<tr>\n<td>item_number</td>\n<td>The item number passed in the original request</td>\n</tr>\n<tr>\n<td>item_type</td>\n<td>The item type passed in the original request</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>The amount passed in the original request</td>\n</tr>\n<tr>\n<td>input_fields</td>\n<td>The input_fields included in the original request</td>\n</tr>\n<tr>\n<td>custom_fields</td>\n<td>The custom_fields included in the original request</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}},"urlObject":{"path":["api","v1","transaction","run"],"host":["{{apiUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8185353-6b21-46c7-beae-9f673700dfb0"}],"id":"45c9402e-26c6-4fd1-83a0-19e93d19d55b","_postman_id":"45c9402e-26c6-4fd1-83a0-19e93d19d55b","description":"","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}}}],"id":"d5fc1732-dd38-4172-89b8-928734734b53","_postman_id":"d5fc1732-dd38-4172-89b8-928734734b53","description":"","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}}},{"name":"Webhooks","item":[{"name":"Autopay","item":[{"name":"autopayEnrolled","id":"99853ff0-07f4-441e-adb2-e80f49f91ac3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": {\n        \"ref_id\": {{ref_id}},\n        \"email\": \"{{email}}\",\n        \"first_name\": \"{{first_name}}\",\n        \"last_name\": \"{{last_name}}\",\n        \"address1\": \"{{address1}}\",\n        \"address2\": \"{{address2}}\",\n        \"city\": \"{{city}}\",\n        \"state\": \"{{state}}\",\n        \"zip\": \"{{zip}}\",\n        \"country\": \"{{country}}\",\n        \"phone\": \"{{phone}}\",\n        \"phone_country\": \"{{phone_country}}\"\n    },\n    \"item\": {\n        \"item_number\": \"{{item_number}}\",\n        \"item_selections\": {\n            \"{{item_year}}\": {{item_installment}}\n        },\n        \"amount\": \"{{item_amount}}\",\n        \"input_fields\": {\n            \"bill_number\": \"{{bill_number}}\"\n        },\n        \"custom_fields\": {}\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{autopay_enrolled_webhook_url}}","description":"<p><strong>Note: This webhook will be available Q1/2026</strong></p>\n<p>This webhook is sent when a user enrolls in Autopay</p>\n<h2 id=\"request-fields\">request Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user</td>\n<td>The <strong>user</strong> object included in the original <strong>autorizeAction</strong> request. Represents the user which enrolled in Autopay</td>\n</tr>\n<tr>\n<td>item</td>\n<td>A <strong>cartItem</strong> passed in the original <strong>autorizeAutopayEnroll</strong> request</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}},"urlObject":{"host":["{{autopay_enrolled_webhook_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"99853ff0-07f4-441e-adb2-e80f49f91ac3"},{"name":"autoPayCancelled","id":"8c6a5c14-4ef2-44df-980e-2c2924f5a6e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": {\n        \"ref_id\": {{ref_id}},\n        \"email\": \"{{email}}\",\n        \"first_name\": \"{{first_name}}\",\n        \"last_name\": \"{{last_name}}\",\n        \"address1\": \"{{address1}}\",\n        \"address2\": \"{{address2}}\",\n        \"city\": \"{{city}}\",\n        \"state\": \"{{state}}\",\n        \"zip\": \"{{zip}}\",\n        \"country\": \"{{country}}\",\n        \"phone\": \"{{phone}}\",\n        \"phone_country\": \"{{phone_country}}\"\n    },\n    \"item\": {\n        \"item_number\": \"{{item_number}}\",\n        \"item_selections\": {\n            \"{{item_year}}\": {{item_installment}}\n        },\n        \"amount\": \"{{item_amount}}\",\n        \"input_fields\": {\n            \"bill_number\": \"{{bill_number}}\"\n        },\n        \"custom_fields\": {}\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{autopay_cancelled_webhook_url}}","description":"<p><strong>Note: This webhook will be available Q1/2026</strong></p>\n<p>This webhook is sent when a user cancels an Autopay enrollment</p>\n<h2 id=\"request-fields\">request Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user</td>\n<td>The <strong>user</strong> object included in the original <strong>autorizeAction</strong> request. Represents the user which enrolled in Autopay</td>\n</tr>\n<tr>\n<td>item</td>\n<td>A <strong>cartItem</strong> passed in the original <strong>autorizeAutopayEnroll</strong> request</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}},"urlObject":{"host":["{{autopay_cancelled_webhook_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8c6a5c14-4ef2-44df-980e-2c2924f5a6e0"}],"id":"dbcae612-d939-4265-92fd-bf3465e44d65","_postman_id":"dbcae612-d939-4265-92fd-bf3465e44d65","description":"","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}}},{"name":"Profile","item":[{"name":"walletAdded","id":"44976669-27f5-44bf-81f7-adfd1d9688d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"payment_token\": \"78291A47-5862-4518-BF9F-D69B3258BC64\",\n    \"payment_type\": \"Credit / Debit\",\n    \"payment_type_id\": \"CR\",\n    \"card_type\": \"VISA\",\n    \"user\": {\n        \"ref_id\": {{ref_id}},\n        \"email\": \"{{email}}\",\n        \"first_name\": \"{{first_name}}\",\n        \"last_name\": \"{{last_name}}\",\n        \"address1\": \"{{address1}}\",\n        \"address2\": \"{{address2}}\",\n        \"city\": \"{{city}}\",\n        \"state\": \"{{state}}\",\n        \"zip\": \"{{zip}}\",\n        \"country\": \"{{country}}\",\n        \"phone\": \"{{phone}}\",\n        \"phone_country\": \"{{phone_country}}\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{wallet_added_webhook_url}}","description":"<p><strong>Note: This webhook will be available Q1/2026</strong></p>\n<p>This webhook is sent whenever a user adds a new wallet</p>\n<h2 id=\"request-fields\">request Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>payment_token</td>\n<td>Unique UUID string used in future requests for running payment on this wallet</td>\n</tr>\n<tr>\n<td>payment_type</td>\n<td>One of the following: E-Check, Credit / Debit</td>\n</tr>\n<tr>\n<td>payment_type_id</td>\n<td>One of the following: EC, CR (E-Check and Credit / Debit, respectively)</td>\n</tr>\n<tr>\n<td>card_type</td>\n<td>One of the following: Checking, Savings, MASTERCARD, VISA, AMEX, DISCOVER</td>\n</tr>\n<tr>\n<td>last_four</td>\n<td>The last four digits of either the card number or the bank account number</td>\n</tr>\n<tr>\n<td>nickname</td>\n<td>The nickname the user chose for this wallet</td>\n</tr>\n<tr>\n<td>user</td>\n<td>The <strong>user</strong> object sent in the original request</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}},"urlObject":{"host":["{{wallet_added_webhook_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"44976669-27f5-44bf-81f7-adfd1d9688d9"}],"id":"38929ea4-b7bf-4998-a1bc-4e47d32775cf","_postman_id":"38929ea4-b7bf-4998-a1bc-4e47d32775cf","description":"","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}}},{"name":"Payment","item":[{"name":"paymentSuccess","id":"571c62c4-14a8-4e99-9c0a-921287410d7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"status_code\": \"200\",\n    \"message\": \"SUCCESS\",\n    \"status\": \"Payment completed successfully.\",\n    \"data\": {\n        \"cart_id\": \"781b89746a9aea9ea738634c54a2649f\",\n        \"items_paid\": 1,\n        \"billing_amount\": \"{{item_amount}}\",\n        \"billing_service_fee\": \"3.00\",\n        \"confirmation_number\": \"LFU3GFS9LR\",\n        \"billing_first_name\": \"{{first_name}}\",\n        \"billing_last_name\": \"{{last_name}}\",\n        \"billing_address\": \"{{address1}}\",\n        \"billing_address2\": \"{{address2}}\",\n        \"billing_city\": \"{{city}}\",\n        \"billing_state\": \"{{state}}\",\n        \"billing_zip\": \"{{zip}}\",\n        \"billing_country\": \"{{country}}\",\n        \"billing_phone\": \"{{phone}}\",\n        \"billing_email\": \"{{email}}\",\n        \"billing_timestamp\": \"2025-11-04T14:04:18.000000Z\",\n        \"billing_method_name\": \"Credit Card\",\n        \"items\": [\n            {\n                \"{{item_number}}\": \"{{item_amount}}\"\n            }\n        ],\n        \"item_details\": [\n            {\n                \"item_number\": \"{{item_number}}\",\n                \"item_amount\": \"{{item_amount}}\",\n                \"custom_fields\": {},\n                \"input_fields\": {\n                    \"bill_number\": \"{{bill_number}}\"\n                }\n            }\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{payment_success_webhook_url}}","description":"<p>If a webhook_url parameter is provided in the initial cart/create, a POST is made when a successful transaction occurs. In addition, a POST is also made when a scheduled payment or autopay is successful.</p>\n<p>The request expects the response of <strong>success</strong> along with an <strong>HTTP 200</strong> status. If either of those fail, a second attempt will be made. If the second attempt fails, the transaction will be <em>VOIDED</em> and the payer will receive an error on screen that their payment can not be completed.</p>\n<p>Webhook response contains the same result set as the <strong>getCartResult</strong> method.</p>\n<p>A brief guide on testing the webhook functionality can be found <a href=\"https://autoagentsoftware.freshdesk.com/a/solutions/articles/5000897695?portalId=5000033344#Testing-a-Webhook-with-Form-POST\">here.</a></p>\n","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}},"urlObject":{"host":["{{payment_success_webhook_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"571c62c4-14a8-4e99-9c0a-921287410d7e"},{"name":"paymentReversed","id":"b121f895-ded9-4eb1-ab35-ae0fd4ead6f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"","description":"<p><strong>Note: This webhook will be available Q1/2026</strong></p>\n","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"b121f895-ded9-4eb1-ab35-ae0fd4ead6f8"}],"id":"e73ab2be-cbec-4e91-90c1-6daafc9a6fed","_postman_id":"e73ab2be-cbec-4e91-90c1-6daafc9a6fed","description":"","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}}}],"id":"fb333aa4-e786-43a3-8f0c-b83ca5052451","_postman_id":"fb333aa4-e786-43a3-8f0c-b83ca5052451","description":"","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":true,"source":{"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418","id":"24c088ac-cb1d-4ee1-b969-f909b0440418","name":"Run Payment","type":"folder"}}}],"id":"24c088ac-cb1d-4ee1-b969-f909b0440418","description":"<p>The Run Payment API allows your company to store users on our system, have them add their payment method, and gives you the ability to run transactions, schedule transactions in the future, and enroll the user in automated payments.</p>\n<p>This API is currently in development, but documentation is provided for planning your implementation. Please contact <a href=\"https://mailto:integrations@autoagent.com\">integrations@autoagent.com</a> if you are interested in using this API.</p>\n<h1 id=\"common-json-objects\">Common JSON Objects</h1>\n<p>Below are some shared objects used across this API collection. Whenever you see this object in the API request or response, you can refer to the layout here</p>\n<h2 id=\"cartitem-object\">CartItem Object</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>item_number</strong>  <br /><em>string</em></td>\n<td>Unique identifier for the item being paid. Must match identifier at Autoagent. This value <em>directly relates</em> to a merchant's bank account that will receive deposits from MuniciPay.</td>\n</tr>\n<tr>\n<td><strong>item_display_title</strong>  <br /><em>string</em></td>\n<td>User-friendly display name for the item.</td>\n</tr>\n<tr>\n<td><strong>item_selections</strong>  <br /><em>object</em></td>\n<td>Object containing the year:installment to apply this payment. If item being paid does not contain a year, pass the current year. If the item does not contain an installment, pass 1.</td>\n</tr>\n<tr>\n<td><strong>amount</strong>  <br /><em>string</em></td>\n<td>The amount being paid, in dollars and cents, excluding any special characters or comma formatting.</td>\n</tr>\n<tr>\n<td><strong>due_date</strong>  <br /><em>string</em></td>\n<td>YYYY-MM-DD of the item's upcoming due date.</td>\n</tr>\n<tr>\n<td><strong>input_fields</strong>  <br /><em>object</em></td>\n<td>Object containing key:value pairs. If included, these input fields will be associated with the item. These input fields <strong>must</strong> be communicated to and configured by MuniciPay integrations before they will display.  <br />  <br /><strong>Reserved/Default input_fields:</strong>  <br /><strong>bill_number</strong> : String containing any detailed information about the item being paid. Can be a single bill number, comma delimited values, etc. Max length is 500 characters.  <br />  <br />MuniciPay <strong>strongly</strong> recommends including a unique bill_number on every request, to ensure you have a point of reference between your system and MuniciPay.</td>\n</tr>\n<tr>\n<td><strong>custom_fields</strong>  <br /><em>object</em></td>\n<td>Object containing key:value pairs. If included, these fields will be returned in the paymentCompleted webhook.</td>\n</tr>\n<tr>\n<td><strong>autopay_enrolled_webhook_url</strong>  <br /><em>string</em></td>\n<td>A webhook URL on your system that MuniciPay will call when the user successfully enrolls in Autopay for the associated item.</td>\n</tr>\n<tr>\n<td><strong>autopay_cancelled_webhook_url</strong>  <br /><em>string</em></td>\n<td>A webhook URL on your system that MuniciPay will call when a user cancels Autopay enrollment for the associated item.</td>\n</tr>\n<tr>\n<td><strong>payment_success_webhook_url</strong>  <br /><em>string</em></td>\n<td>A webhook URL on your system that MuniciPay will call when an Autopay payment succeeds for the associated item.</td>\n</tr>\n<tr>\n<td><strong>due_date</strong>  <br /><em>string</em></td>\n<td>The date on which the payment for the associated item is due.</td>\n</tr>\n<tr>\n<td><strong>enrollment_id</strong>  <br /><em>integer</em></td>\n<td>The unique identifier of the Autopay enrollment associated with the item. Provided in the payload sent to your autopay_enrolled_webhook_url after a successful Autopay enrollment.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"user-object\">User Object</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>ref_id</strong>  <br /><em>string</em></td>\n<td>An internal, unique, integer ID stored in your system to identify this user. This will be used to identify the user in the future, even when other fields in the user are updated</td>\n</tr>\n<tr>\n<td><strong>email</strong>  <br /><em>string</em></td>\n<td>The user's email</td>\n</tr>\n<tr>\n<td><strong>first_name</strong>  <br /><em>string</em></td>\n<td>The user's first name</td>\n</tr>\n<tr>\n<td><strong>last_name</strong>  <br />string</td>\n<td>The user's last name</td>\n</tr>\n<tr>\n<td><strong>address1</strong>  <br /><em>string</em></td>\n<td>The user's address</td>\n</tr>\n<tr>\n<td><strong>address2</strong>  <br /><em>string</em></td>\n<td>The user's address2</td>\n</tr>\n<tr>\n<td><strong>city</strong>  <br /><em>string</em></td>\n<td>Tthe user's city</td>\n</tr>\n<tr>\n<td><strong>state</strong>  <br /><em>string</em></td>\n<td>The user's state, as a 2-character code (e.g. NY, CA, OH)</td>\n</tr>\n<tr>\n<td><strong>zip</strong>  <br /><em>string</em></td>\n<td>The user's zip code</td>\n</tr>\n<tr>\n<td><strong>country</strong>  <br /><em>string</em></td>\n<td>The user's country, as a 2-character code (e.g. US, MX, CA)</td>\n</tr>\n<tr>\n<td><strong>phone</strong>  <br /><em>string</em></td>\n<td>The user's phone number, without spaces or dashes, and without a leading country code</td>\n</tr>\n<tr>\n<td><strong>phone_country</strong>  <br /><em>string</em></td>\n<td>The user's phone country, as a 2-digit code. Do not use the numeric country code (e.g. use 'US' instead of 1).</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{apiToken}}"},"isInherited":false},"_postman_id":"24c088ac-cb1d-4ee1-b969-f909b0440418"}],"id":"b42a79b3-b21a-442e-9cb4-cfc93a8e9e0d","description":"<h2 id=\"rest-changelog\">REST Changelog</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Date</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>01/18/2024</td>\n<td>Add custom_fields to <strong>createCart</strong>  <br />Add input_fields to <strong>createCart</strong>  <br />Add item_details to <strong>getCartResult</strong>  <br />Deprecated bill_number in <strong>createCart</strong></td>\n</tr>\n<tr>\n<td>7/3/2024</td>\n<td>Added billing_last_four to <strong>getCartResult</strong>  <br />Added billing_transaction_id to <strong>getCartResult</strong>  <br />Added billing_payee_name to <strong>getCartResult</strong></td>\n</tr>\n<tr>\n<td>12/20/2024</td>\n<td>Added billing_service_fee to <strong>getCartResult</strong></td>\n</tr>\n<tr>\n<td>9/17/2025</td>\n<td>Deprecated <strong>apiSlug</strong> variable in request endpoints  <br />Removed <strong>item_type</strong> from required fields  <br />Updated **Test Payment Method Details  <br />**Revised <strong>createCart</strong> section to include <em>simple</em> and <em>complex</em> and <em>billing file specific</em> versions for reference.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"b42a79b3-b21a-442e-9cb4-cfc93a8e9e0d"},{"name":"FormPost","item":[{"name":"Requests","item":[{"name":"Single Item","id":"92d81282-3d1a-4ac5-b23f-18c3ee7b478a","protocolProfileBehavior":{"disableBodyPruning":true,"followRedirects":false},"request":{"method":"POST","header":[],"url":"{{apiUrl}}/api/v1/{{apiSlug}}/cart/create-from-form?apiToken={{apiToken}}&siteId={{siteId}}&urlKey={{urlKey}}&prodId={{prodId}}&refNum={{refNum}}&amount={{amount}}&redirectURL=https://www.yoursite.com&webhookURL=https://www.yourwebhook.com&cancelUri=https://www.yoursite.com/cancel","description":"<p><strong>Example Form with apiToken:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-html\">&lt;form action=\"{{apiUrl}}\" target=\"_blank\"&gt;\n  &lt;input type=\"hidden\" name=\"apiToken\" value=\"{{apiToken}}\"&gt;\n  &lt;label&gt;Product ID:\n    &lt;input type=\"text\" name=\"prodId\" value=\"\"&gt;\n  &lt;/label&gt;\n  &lt;label&gt;Reference Number:\n    &lt;input type=\"text\" name=\"refNum\" value=\"\"&gt;\n  &lt;/label&gt;\n  &lt;label&gt;Amount:\n    &lt;input type=\"text\" name=\"amount\" value=\"\" &gt;\n  &lt;/label&gt;\n  &lt;label&gt;Redirect URL:\n    &lt;input type=\"text\" name=\"redirectURL\" value=\"\"&gt;\n  &lt;/label&gt;\n  &lt;label&gt;Webhook URL:\n    &lt;input type=\"text\" name=\"webhookURL\" value=\"\"&gt;\n  &lt;/label&gt;\n  &lt;input type=\"submit\" value=\"Submit\"&gt;\n&lt;/form&gt;\n\n</code></pre>\n<p><strong>Example Form with siteId and urlKey:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-html\">&lt;form action=\"{{apiUrl}}\" target=\"_blank\"&gt;\n  &lt;input type=\"hidden\" name=\"siteId\" value=\"{{siteId}}\"&gt;\n  &lt;input type=\"hidden\" name=\"urlKey\" value=\"{{urlKey}}\"&gt;\n  &lt;label&gt;Product ID:\n    &lt;input type=\"text\" name=\"prodId\" value=\"\"&gt;\n  &lt;/label&gt;\n  &lt;label&gt;Reference Number:\n    &lt;input type=\"text\" name=\"refNum\" value=\"\"&gt;\n  &lt;/label&gt;\n  &lt;label&gt;Amount:\n    &lt;input type=\"text\" name=\"amount\" value=\"\"&gt;\n  &lt;/label&gt;\n  &lt;label&gt;Redirect URL:\n    &lt;input type=\"text\" name=\"redirectURL\" value=\"\"&gt;\n  &lt;/label&gt;\n  &lt;label&gt;Webhook URL:\n    &lt;input type=\"text\" name=\"webhookURL\" value=\"\"&gt;\n  &lt;/label&gt;\n  &lt;input type=\"submit\" value=\"Submit\"&gt;\n&lt;/form&gt;\n\n</code></pre>\n","urlObject":{"path":["api","v1","{{apiSlug}}","cart","create-from-form"],"host":["{{apiUrl}}"],"query":[{"description":{"content":"<p>MP-provided token, REQUIRED without siteId and UrlKey</p>\n","type":"text/plain"},"key":"apiToken","value":"{{apiToken}}"},{"description":{"content":"<p>Department, MP-provided, REQUIRED without apiToken</p>\n","type":"text/plain"},"key":"siteId","value":"{{siteId}}"},{"description":{"content":"<p>Dept URL Key, MP-provided security token, REQUIRED without apiToken</p>\n","type":"text/plain"},"key":"urlKey","value":"{{urlKey}}"},{"description":{"content":"<p>Unique item ID, MP-provided, REQUIRED</p>\n","type":"text/plain"},"key":"prodId","value":"{{prodId}}"},{"description":{"content":"<p>Item Identifier, ISV-Provided; Account#, Invoice#, etc.\nREQUIRED</p>\n","type":"text/plain"},"key":"refNum","value":"{{refNum}}"},{"description":{"content":"<p>$ amount of the transaction, REQUIRED</p>\n","type":"text/plain"},"key":"amount","value":"{{amount}}"},{"description":{"content":"<p>Optional redirect after checkout. Must be url-encoded.</p>\n","type":"text/plain"},"key":"redirectURL","value":"https://www.yoursite.com"},{"description":{"content":"<p>Optional webhook for successful transactions. Must be url-encoded.</p>\n","type":"text/plain"},"key":"webhookURL","value":"https://www.yourwebhook.com"},{"description":{"content":"<p>Optional URL that a shopping cart user should be redirected to after canceling a cart</p>\n","type":"text/plain"},"key":"cancelUri","value":"https://www.yoursite.com/cancel"}],"variable":[]}},"response":[],"_postman_id":"92d81282-3d1a-4ac5-b23f-18c3ee7b478a"},{"name":"Multiple Items","id":"5416f7ae-8364-40aa-984a-a80ba2212eb8","protocolProfileBehavior":{"disableBodyPruning":true,"followRedirects":false},"request":{"method":"POST","header":[],"url":"{{apiUrl}}/api/v1/{{apiSlug}}/cart/create-from-form?apiToken={{apiToken}}&urlKey={{urlKey}}&siteId={{siteId}}&prodId_1={{prodId_1}}&refNum_1={{refNum_1}}&amount_1={{amount_1}}&prodId_2={{prodId_2}}&refNum_2={{refNum_2}}&amount_2={{amount_2}}&redirectURL=https://www.yoursite.com&webhookURL=https://www.yourwebhook.com&cancelUri=https://www.yoursite.com/cancel","description":"<p><strong>Example Form:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-html\">&lt;table class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;\naction=\"{{apiUrl}}\" target=\"_blank\"&gt;\n&lt;tr class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;siteID:&lt;/td&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;input name=\"apiToken\" value=\"\"/&gt;&lt;/td&gt;&lt;/tr&gt;\n&lt;tr class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;prodId:&lt;/td&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;input name=\"prodId_1\" value=\"\"/&gt;&lt;/td&gt;&lt;/tr&gt;\n&lt;tr class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;refNum:&lt;/td&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;input name=\"refNum_1\" value=\"\"/&gt;&lt;/td&gt;&lt;/tr&gt;\n&lt;tr class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;amount:&lt;/td&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;input name=\"amount_1\" value=\"\"/&gt;&lt;/td&gt;&lt;/tr&gt;\n&lt;tr class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;prodId:&lt;/td&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;input name=\"prodId_2\" value=\"\"/&gt;&lt;/td&gt;&lt;/tr&gt;\n&lt;tr class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;refNum:&lt;/td&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;input name=\"refNum_2\" value=\"\"/&gt;&lt;/td&gt;&lt;/tr&gt;\n&lt;tr class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;amount:&lt;/td&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;input name=\"amount_2\" value=\"\"/&gt;&lt;/td&gt;&lt;/tr&gt;\n&lt;tr class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;transactionId:&lt;/td&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;input name=\"transactionId\"\nvalue=\"\"/&gt;&amp;#013;&lt;/td&gt;&lt;/tr&gt;\n&lt;tr class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;urlKey:&lt;/td&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;input name=\"urlKey\"\nvalue=\"\"/&gt;&amp;#013;&lt;/td&gt;&lt;/tr&gt;\n&lt;tr class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;redirectURL:&lt;/td&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;input name=\"redirectURL\"\nvalue=\"http://www.yoursite.com?npsPaymentMethod=&amp;npsCardType=&amp;clientName=CityOfAnywhere\"/\n&gt;&amp;#013;&lt;/td&gt;&lt;/tr&gt;\n&lt;tr class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;&lt;td class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; colspan=\"2\" align=\"right\"&gt;&lt;input type=\"submit\" value=\"Submit\nForm\"/&gt;&amp;#013;&lt;/td&gt;&lt;/tr&gt;\n&lt;/form&gt;\n&lt;/table&gt;\n\n</code></pre>\n","urlObject":{"path":["api","v1","{{apiSlug}}","cart","create-from-form"],"host":["{{apiUrl}}"],"query":[{"description":{"content":"<p>MP-provided token, REQUIRED without siteId and UrlKey</p>\n","type":"text/plain"},"key":"apiToken","value":"{{apiToken}}"},{"description":{"content":"<p>Dept URL Key, MP-provided security token, REQUIRED without apiToken</p>\n","type":"text/plain"},"key":"urlKey","value":"{{urlKey}}"},{"description":{"content":"<p>Department, MP-provided, REQUIRED without apiToken</p>\n","type":"text/plain"},"key":"siteId","value":"{{siteId}}"},{"description":{"content":"<p>Unique item ID, MP-provided, REQUIRED</p>\n","type":"text/plain"},"key":"prodId_1","value":"{{prodId_1}}"},{"description":{"content":"<p>Item Identifier, ISV-Provided; Account#, Invoice#, etc.\nREQUIRED</p>\n","type":"text/plain"},"key":"refNum_1","value":"{{refNum_1}}"},{"description":{"content":"<p>$ amount of the transaction, REQUIRED</p>\n","type":"text/plain"},"key":"amount_1","value":"{{amount_1}}"},{"description":{"content":"<p>Unique item ID, MP-provided, REQUIRED</p>\n","type":"text/plain"},"key":"prodId_2","value":"{{prodId_2}}"},{"description":{"content":"<p>Item Identifier, ISV-Provided; Account#, Invoice#, etc.\nREQUIRED</p>\n","type":"text/plain"},"key":"refNum_2","value":"{{refNum_2}}"},{"description":{"content":"<p>$ amount of the transaction, REQUIRED</p>\n","type":"text/plain"},"key":"amount_2","value":"{{amount_2}}"},{"description":{"content":"<p>Optional redirect after checkout. Must be url-encoded.</p>\n","type":"text/plain"},"key":"redirectURL","value":"https://www.yoursite.com"},{"description":{"content":"<p>Optional webhook for successful transactions. Must be url-encoded.</p>\n","type":"text/plain"},"key":"webhookURL","value":"https://www.yourwebhook.com"},{"description":{"content":"<p>Optional URL that a shopping cart user should be redirected to after canceling a cart</p>\n","type":"text/plain"},"key":"cancelUri","value":"https://www.yoursite.com/cancel"}],"variable":[]}},"response":[],"_postman_id":"5416f7ae-8364-40aa-984a-a80ba2212eb8"}],"id":"ca9fcf78-b503-4f2f-b5c7-f93e95f124dd","_postman_id":"ca9fcf78-b503-4f2f-b5c7-f93e95f124dd","description":""},{"name":"Response","item":[{"name":"redirectURL","id":"168a402f-cb10-4773-a98e-a163e7f5b830","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{redirectUrl}}?npsPaymentMethod&npsCardType&npsFirstName&npsLastName&npsCFAmount&npsTransactionId","description":"<p><strong>NOTE:</strong> In addition to the fields listed above, MuniciPay will also accept unknown, custom fields</p>\n<p>that are URL-encoded and appended to the redirectURL parameter, and simply return those values on response, enabling integrators to pass custom values. These fields/values are not stored on the MP payment server but are simply passed through and returned on.</p>\n<p>For example: if you wanted to redirect the user to <a href=\"http://www.yoursite.com/\">http://www.yoursite.com/</a> after checkout and wanted to query the values for all of the above 5 optional fields as well as pass your own custom value ofclientName=CityOfAnywhere, the redirectURL portion of your request, properly-encoded, would look like the following:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>http://www.yoursite.com?npsPaymentMethod=&amp;npsCardType=&amp;npsFirstName=&amp;npsLa\nstName=&amp;npsTransactionId=&amp;clientName=CityOfAnywhere\n\n</code></pre>","urlObject":{"host":["{{redirectUrl}}"],"query":[{"description":{"content":"<p>Indicates if Credit Card or ECheck</p>\n","type":"text/plain"},"key":"npsPaymentMethod","value":null},{"description":{"content":"<p>Indicates credit card brand used</p>\n","type":"text/plain"},"key":"npsCardType","value":null},{"description":{"content":"<p>First name of payor</p>\n","type":"text/plain"},"key":"npsFirstName","value":null},{"description":{"content":"<p>Last name of payor</p>\n","type":"text/plain"},"key":"npsLastName","value":null},{"description":{"content":"<p>MP-convenience fee amount</p>\n","type":"text/plain"},"key":"npsCFAmount","value":null},{"description":{"content":"<p>MP-assigned transaction ID</p>\n","type":"text/plain"},"key":"npsTransactionId","value":null}],"variable":[]}},"response":[],"_postman_id":"168a402f-cb10-4773-a98e-a163e7f5b830"},{"name":"webhookURL","id":"0493c5b4-e5f7-4c2b-ab4e-d7e758165951","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"status_code\": \"200\",\n    \"message\": \"SUCCESS\",\n    \"status\": \"Payment completed successfully.\",\n    \"data\": {\n        \"cart_id\": \"781b89746a9aea9ea738634c54a2649f\",\n        \"items_paid\": 1,\n        \"billing_amount\": \"1005.50\",\n        \"confirmation_number\": \"LFU3GFS9LR\",\n        \"billing_first_name\": \"John\",\n        \"billing_last_name\": \"Smith\",\n        \"billing_address\": \"123 Anywhere\",\n        \"billing_address2\": \"\",\n        \"billing_city\": \"Test\",\n        \"billing_state\": \"CA\",\n        \"billing_zip\": \"12345\",\n        \"billing_country\": \"US\",\n        \"billing_phone\": \"(201) 444-3333\",\n        \"billing_email\": \"test@test.com\",\n        \"billing_timestamp\": \"2022-11-04T14:04:18.000000Z\",\n        \"billing_method_name\": \"Credit Card\",\n        \"items\": [\n            {\n                \"1001000071\": \"1005.50\"\n            }\n        ],\n        \"item_details\": [\n            {\n                \"item_number\": \"1001000071\",\n                \"item_amount\": \"1005.50\",\n                \"custom_fields\": {\n                    \"custom1\": \"value\",\n                    \"custom2\": \"value2\",\n                    \"custom3\": \"value3\"\n                },\n                \"input_fields\": {\n                    \"bill_number\": \"12345\",\n                    \"input1\": \"value1\",\n                    \"input2\": \"value2\"\n                }\n            }\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"description":"<p>If a webhookURL parameter is provided in the initial cart/create, a POST is made when a successful transaction occurs.</p>\n<p>The request expects the response of \"success\" along with an HTTP 200 status. If either of those fail, a second attempt will be made. If the second attempt fails, the transaction will be VOIDED and the payer will receive an error on screen that their payment can not be completed.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"0493c5b4-e5f7-4c2b-ab4e-d7e758165951"}],"id":"4fb09054-37a0-497f-a969-6da771c096a6","_postman_id":"4fb09054-37a0-497f-a969-6da771c096a6","description":""}],"id":"f928a14e-b0f3-4561-bc33-646d7202e7ad","description":"<p>You can create a one-time shopping cart link on MuniciPay using a hosted form on a your website that makes a POST to the below endpoint.</p>\n<p>On POST, an internal token is created represeneting your payload and the user will be redirected to MuniciPay's hosted payment page containing all contents of the shopping cart you sent over.</p>\n<h3 id=\"test-payment-methods\">Test Payment Methods</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Credit Card</strong></th>\n<th><strong>Expiration</strong></th>\n<th><strong>CVV2</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>371449635398431</td>\n<td>06/2024</td>\n<td>1234</td>\n</tr>\n</tbody>\n</table>\n</div><div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>ACH Type</strong></th>\n<th><strong>Routing Number</strong></th>\n<th><strong>Account Number</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Checking</td>\n<td>044000037</td>\n<td>123123123</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"f928a14e-b0f3-4561-bc33-646d7202e7ad"},{"name":"File Uploads and Downloads","item":[{"name":"startSession","id":"01047246-735d-41ce-856f-e74d587909e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"j_username","value":"{{j_username}}","type":"text"},{"key":"j_password","value":"{{j_password}}","type":"text"}]},"url":"{{apiUrl}}/api/file/start-session","description":"<p>Unlike the other API collections, this collection authenticates via cookies. After making a call to this endpoint, include the cookies it returns in all future requests for this collection</p>\n<h2 id=\"request-fields\">Request Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>j_username</td>\n<td><strong>Required</strong> Your auth username provided to you by MuniciPay Integrations</td>\n</tr>\n<tr>\n<td>j_password</td>\n<td><strong>Required</strong> Your auth password provided to you by MuniciPay Integrations</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>authenticated</td>\n<td>Returns true if authenticated sucessfully</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","file","start-session"],"host":["{{apiUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"01047246-735d-41ce-856f-e74d587909e0"},{"name":"downloadBatchFile","id":"5c633226-36ef-49b0-ac1b-52902fdf4a86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{apiUrl}}/api/file/download-batch?targetDate={{targetDate}}","description":"<p>Downloads a batch file for the given date. The response will be raw text in a format you have specified to MuniciPay Integrations</p>\n<h2 id=\"request-fields\">Request Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>targetDate</td>\n<td><strong>Required</strong> The date you wish to receive a batch file for, formated as YYYY-MM-DD</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","file","download-batch"],"host":["{{apiUrl}}"],"query":[{"key":"targetDate","value":"{{targetDate}}"}],"variable":[]}},"response":[],"_postman_id":"5c633226-36ef-49b0-ac1b-52902fdf4a86"},{"name":"uploadFile","id":"346db01e-9e43-4c10-a1b0-2395ed798e00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/michael/Downloads/collector_tax_file_18717.zip","/Users/michael/Downloads/collector_tax_file_1020909.zip"],"src":"/Users/michael/Downloads/collector_tax_file_1020909.zip"}]},"url":"{{apiUrl}}/api/file/upload-file","description":"<p>Upload a billing file matching the specifications you have discussed with the MuniciPay integrations team</p>\n<h2 id=\"request-fields\">Request Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>file</td>\n<td><strong>Required</strong> the billing file you wish to upload</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","file","upload-file"],"host":["{{apiUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"346db01e-9e43-4c10-a1b0-2395ed798e00"}],"id":"d53b57f4-177f-449d-bc47-61eff2b763aa","description":"<p>Automate the uploading of billing files and the downloading of MuniciPay payment files with this API. Contact <a href=\"https://mailto:integrations@autoagent.com\">integrations@autoagent.com</a> for help configure your setup.</p>\n","_postman_id":"d53b57f4-177f-449d-bc47-61eff2b763aa"}],"event":[{"listen":"prerequest","script":{"id":"2bc64370-4ee5-4d00-ac77-93c1279ac2dd","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d430e281-2491-47c5-9a20-61746ff5f40a","type":"text/javascript","exec":[""]}}],"variable":[{"key":"apiWebhookUrl","value":"","type":"string"},{"key":"apiRedirectUrl","value":"","type":"string"}]}