{"id":131,"date":"2016-01-26T16:39:41","date_gmt":"2016-01-26T16:39:41","guid":{"rendered":"http:\/\/192.168.114.129\/?page_id=131"},"modified":"2026-04-20T17:21:17","modified_gmt":"2026-04-20T17:21:17","slug":"payment-processing","status":"publish","type":"page","link":"https:\/\/api-users.4over.com\/?page_id=131","title":{"rendered":"Payment Processing"},"content":{"rendered":"<h3>Get customer&#8217;s payment profiles:<\/h3>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\nGET  \/paymentprofiles\n<\/pre>\n<h3>Sample Response:<\/h3>\n<p>JSON<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n{\n   &quot;entities&quot;: [{\n         &quot;profile_token&quot;: &quot;xxxxxxxxxx&quot;,\n         &quot;last_four&quot;: &quot;xxxx&quot;,\n         &quot;type&quot;: &quot;Visa&quot;\n      },\n      {\n         &quot;profile_token&quot;: &quot;yyyyyyyyyyy&quot;,\n         &quot;last_four&quot;: &quot;yyyy&quot;,\n         &quot;type&quot;: &quot;Master&quot;\n      }\n   ]\n}\n<\/pre>\n<p>Save the desired payment profile and post the order.<\/p>\n<h3>How to Add New Payment Profiles<\/h3>\n<p>1) First Login into the site <a href=\"https:\/\/4over.com\/\" target=\"_blank\">4over.com<\/a><br \/>\n2) Then go to <strong>Account->Orders &#038; Account->Stored Payment Methods<\/strong><br \/>\n3) Then Click on <strong>Add New Card<\/strong>.<br \/>\n4) Now hit the \/paymentprofiles API. You can see the added card in the response.<\/p>\n<p><strong>Note<\/strong>: If you added credit cards to your 4Over account before generating API keys, those cards will not appear when calling the \/paymentprofiles API.<br \/>\nTo resolve this, you can either:<br \/>\n &#8211; Add a new credit card after generating your API keys, or<br \/>\n &#8211; Remove the existing card from the 4over.com website and re-enter the credit card details to create a new payment profile and sync with the API.<\/p>\n<h3>Payment Processing<\/h3>\n<p>To process payments add the Payment block to the order POST.<br \/>\nThe requested amount is not required. The amount is calculated internally and matched against the amount passed by the user. If this parameter is excluded the calculated amount will be charged to the credit card on file by way of the provided payment token. Please note that &#8220;requested_amount&#8221; must be excluded from payment block for this to work correctly. If this parameter is present with 0 or null value the order will fail.<\/p>\n<h3>Orders\u00a0 Payment\u00a0using Credit Card Processing<\/h3>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\nPOST  \/orders\n<\/pre>\n<h3>Input Parameters<\/h3>\n<h4>These are in addition to order parameters above.<\/h4>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\n@param profile_token.\n<\/pre>\n<h3>Sample Request<\/h3>\n<p>html<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\nhttps:\/\/api.4over.com\/orders\n<\/pre>\n<h3>Sample Request Body<\/h3>\n<p>JSON<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\u00a0 {\n  &quot;order_id&quot;: &quot;test001&quot;,\n  &quot;is_test_order&quot;: &quot;true&quot;,\n  &quot;coupon_code&quot;: &quot;PRC5PKS&quot;,\n  &quot;skip_conformation&quot;: &quot;true&quot;,\n  &quot;jobs&quot;: [\n    {\n      &quot;product_uuid&quot;: &quot;91efff4d-de64-410a-8794-fc547022a7f2&quot;,\n      &quot;runsize_uuid&quot;: &quot;52e3d710-0e8f-4d4d-8560-7d4d8655be69&quot;,\n      &quot;option_uuids&quot;: [],\n      &quot;turnaroundtime_uuid&quot;: &quot;50979118-b3a2-4556-9f46-d1da268f2354&quot;,\n      &quot;colorspec_uuid&quot;: &quot;13abbda7-1d64-4f25-8bb2-c179b224825d&quot;,\n      &quot;dropship&quot;: &quot;true&quot;,\n      &quot;sets&quot;: 2,\n      &quot;files&quot;: {\n        &quot;set_001&quot;: {\n          &quot;job_name&quot;: &quot;job001-001&quot;,\n          &quot;files&quot;: {\n            &quot;fr&quot;: &quot;5a2e207c-8a97-42a3-9b17-1e4899eae9ac&quot;,\n            &quot;bk&quot;: &quot;d044410f-003e-4b32-8039-f6d590728f5b&quot;\n          }\n        },\n        &quot;set_002&quot;: {\n          &quot;job_name&quot;: &quot;job001-002&quot;,\n          &quot;files&quot;: {\n            &quot;fr&quot;: &quot;8b0fd851-7f13-4700-a35a-baff123eecfe&quot;,\n            &quot;bk&quot;: &quot;3d71bf4a-a799-4dfb-ac90-8fea5f97b608&quot;\n          }\n        }\n      },\n      &quot;ship_to&quot;: {\n        &quot;company&quot;: &quot;My Print Company&quot;,\n        &quot;firstname&quot;: &quot;James&quot;,\n        &quot;lastname&quot;: &quot;Doe&quot;,\n        &quot;email&quot;: &quot;james.doe@abcd_company.com&quot;,\n        &quot;phone&quot;: &quot;888-888-8888&quot;,\n        &quot;address&quot;: &quot;8900 Executive Park Drive&quot;,\n        &quot;address2&quot;: &quot;&quot;,\n        &quot;city&quot;: &quot;Knoxville&quot;,\n        &quot;state&quot;: &quot;TN&quot;,\n        &quot;zipcode&quot;: &quot;37923&quot;,\n        &quot;country&quot;: &quot;US&quot;\n      },\n      &quot;ship_from&quot;: {\n        &quot;company&quot;: &quot;My Print Company&quot;,\n        &quot;firstname&quot;: &quot;Mike&quot;,\n        &quot;lastname&quot;: &quot;Doe&quot;,\n        &quot;email&quot;: null,\n        &quot;phone&quot;: &quot;888-888-8888&quot;,\n        &quot;address&quot;: &quot;100 CUMMINGS CTR&quot;,\n        &quot;address2&quot;: null,\n        &quot;city&quot;: &quot;BEVERLY&quot;,\n        &quot;state&quot;: &quot;MA&quot;,\n        &quot;zipcode&quot;: &quot;01915&quot;,\n        &quot;country&quot;: &quot;US&quot;\n      },\n      &quot;shipper&quot;: {\n        &quot;shipping_method&quot;: &quot;FREE UPS Ground&quot;,\n        &quot;shipping_code&quot;: &quot;03f&quot;\n      },\n      &quot;ship_from_facility&quot;: &quot;DAY&quot;\n    },\n    {\n      &quot;product_uuid&quot;: &quot;91efff4d-de64-410a-8794-fc547022a7f2&quot;,\n      &quot;runsize_uuid&quot;: &quot;52e3d710-0e8f-4d4d-8560-7d4d8655be69&quot;,\n      &quot;option_uuids&quot;: [],\n      &quot;turnaroundtime_uuid&quot;: &quot;50979118-b3a2-4556-9f46-d1da268f2354&quot;,\n      &quot;colorspec_uuid&quot;: &quot;13abbda7-1d64-4f25-8bb2-c179b224825d&quot;,\n      &quot;dropship&quot;: &quot;true&quot;,\n      &quot;sets&quot;: 3,\n      &quot;files&quot;: {\n        &quot;set_001&quot;: {\n          &quot;job_name&quot;: &quot;job002-001&quot;,\n          &quot;files&quot;: {\n            &quot;fr&quot;: &quot;62a7d70a-3b38-45a8-9327-e10a9c4057df&quot;,\n            &quot;bk&quot;: &quot;ef45e3ff-2f3c-415c-8c63-4f5e3f290e8d&quot;\n          }\n        },\n        &quot;set_002&quot;: {\n          &quot;job_name&quot;: &quot;job002-002&quot;,\n          &quot;files&quot;: {\n            &quot;fr&quot;: &quot;bad3efad7-2e72-4a5e-87ec-d8bad3ef0359&quot;,\n            &quot;bk&quot;: &quot;f9ead3ef0-b0de-4033-ad6d-aa15aa8c2555&quot;\n          }\n        },\n        &quot;set_003&quot;: {\n          &quot;job_name&quot;: &quot;job002-003&quot;,\n          &quot;files&quot;: {\n            &quot;fr&quot;: &quot;3830c3ee-72e4-46d7-8d0d-aad3ef77ccf1&quot;,\n            &quot;bk&quot;: &quot;bd380570-135d-47fd-9411-b3ead3ef99d8&quot;\n          }\n        }\n      },\n      &quot;ship_to&quot;: {\n        &quot;company&quot;: &quot;My Test Company&quot;,\n        &quot;firstname&quot;: &quot;Maria&quot;,\n        &quot;lastname&quot;: &quot;Doe&quot;,\n        &quot;email&quot;: &quot;maria.doe@abcd_company.com&quot;,\n        &quot;phone&quot;: &quot;888-888-8888&quot;,\n        &quot;address&quot;: &quot;8900 Executive Park Drive&quot;,\n        &quot;address2&quot;: null,\n        &quot;city&quot;: &quot;Knoxville&quot;,\n        &quot;state&quot;: &quot;TN&quot;,\n        &quot;zipcode&quot;: &quot;37923&quot;,\n        &quot;country&quot;: &quot;US&quot;\n      },\n      &quot;ship_from&quot;: {\n        &quot;company&quot;: &quot;My Print Company&quot;,\n        &quot;firstname&quot;: &quot;Mike&quot;,\n        &quot;lastname&quot;: &quot;Doe&quot;,\n        &quot;email&quot;: null,\n        &quot;phone&quot;: &quot;888-888-8888&quot;,\n        &quot;address&quot;: &quot;100 CUMMINGS CTR&quot;,\n        &quot;address2&quot;: null,\n        &quot;city&quot;: &quot;BEVERLY&quot;,\n        &quot;state&quot;: &quot;MA&quot;,\n        &quot;zipcode&quot;: &quot;01915&quot;,\n        &quot;country&quot;: &quot;US&quot;\n      },\n      &quot;shipper&quot;: {\n        &quot;shipping_method&quot;: &quot;FREE UPS Ground&quot;,\n        &quot;shipping_code&quot;: &quot;03f&quot;\n      },\n      &quot;ship_from_facility&quot;: &quot;DAY&quot;\n    }\n  ],\n  &quot;payment&quot;: {\n    &quot;profile_token&quot;: &quot;xxxxxxxxxx&quot;\n  }\n}<\/pre>\n<h3>Sample Response<\/h3>\n<p>JSON<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n{\n  &quot;order_status&quot;: &quot;Success&quot;,\n  &quot;customer_order_id&quot;: &quot;test001&quot;,\n  &quot;job_ids&quot;: {\n    &quot;X8291118499-001&quot;: {\n      &quot;customer_job_id&quot;: &quot;job001-001&quot;,\n      &quot;status&quot;: 200,\n      &quot;messages&quot;: []\n    },\n    &quot;X8291118499-002&quot;: {\n      &quot;customer_job_id&quot;: &quot;job001-002&quot;,\n      &quot;status&quot;: 200,\n      &quot;messages&quot;: []\n    },\n    &quot;X8291118499-003&quot;: {\n      &quot;customer_job_id&quot;: &quot;job002-001&quot;,\n      &quot;status&quot;: 200,\n      &quot;messages&quot;: []\n    },\n    &quot;X8291118499-004&quot;: {\n      &quot;customer_job_id&quot;: &quot;job002-002&quot;,\n      &quot;status&quot;: 200,\n      &quot;messages&quot;: []\n    },\n    &quot;X8291118499-005&quot;: {\n      &quot;customer_job_id&quot;: &quot;job002-003&quot;,\n      &quot;status&quot;: 200,\n      &quot;messages&quot;: []\n    }\n  },\n  &quot;payment_response&quot;: {\n    &quot;payment_uuid&quot;: &quot;e58bee7f-0b57-4214-9e2a-33d683e7fe9f&quot;,\n    &quot;payment_provider&quot;: {\n      &quot;payment_provider_uuid&quot;: &quot;6b0e699e-bdaf-4d1e-af4c-bc422ad21761&quot;,\n      &quot;payment_provider&quot;: &quot;Authorizenet&quot;,\n      &quot;created_at&quot;: &quot;2013-11-05 11:33:51-08&quot;\n    },\n    &quot;requested_amount&quot;: &quot;119.70&quot;,\n    &quot;requested_currency&quot;: {\n      &quot;currency_code&quot;: &quot;USD&quot;,\n      &quot;currency&quot;: &quot;United States dollar&quot;,\n      &quot;currency_number&quot;: &quot;840&quot;,\n      &quot;created_at&quot;: &quot;2013-09-30 09:27:22.689216-07&quot;\n    },\n    &quot;request_transaction_code&quot;: &quot;12345678920&quot;,\n    &quot;request_data&quot;: &quot;&quot;,\n    &quot;requested_at&quot;: &quot;2018-10-18T18:06:19+0000&quot;,\n    &quot;response_transaction_code&quot;: &quot;12345678920&quot;,\n    &quot;response_data&quot;: {\n      &quot;card_number&quot;: &quot;XXXX1111&quot;,\n      &quot;card_type&quot;: &quot;Visa&quot;,\n      &quot;response_message&quot;: &quot;This transaction has been approved.&quot;\n    },\n    &quot;responded_at&quot;: &quot;2018-10-18T18:06:19+0000&quot;,\n    &quot;authorization_code&quot;: &quot;ABCDEF&quot;,\n    &quot;authorized_at&quot;: &quot;2018-10-18T18:06:19+0000&quot;,\n    &quot;authorized_payment_amount&quot;: &quot;119.70&quot;,\n    &quot;authorized_refund_amount&quot;: 0,\n    &quot;authorized_currency&quot;: {\n      &quot;currency_code&quot;: &quot;USD&quot;,\n      &quot;currency&quot;: &quot;United States dollar&quot;,\n      &quot;currency_number&quot;: &quot;840&quot;,\n      &quot;created_at&quot;: &quot;2013-09-30 09:27:22.689216-07&quot;\n    },\n    &quot;paying_organization&quot;: {\n      &quot;organization_uuid&quot;: &quot;a4377724-8819-4a96-bc2b-3877b269f989&quot;,\n      &quot;organization_name&quot;: &quot;4over&quot;,\n      &quot;organization_description&quot;: &quot;4over Website - Trade Ultra&quot;,\n      &quot;job_code_prefix&quot;: &quot;K&quot;,\n      &quot;is_public_organization&quot;: true,\n      &quot;primary_contact_user&quot;: {\n        &quot;user_uuid&quot;: &quot;d44fa923-d567-48ed-aa3a-9c02a98bcee6&quot;,\n        &quot;first_name&quot;: &quot;Admin User&quot;,\n        &quot;last_name&quot;: &quot;API&quot;,\n        &quot;email&quot;: &quot;&quot;,\n        &quot;user_notes&quot;: &quot;admin user&quot;,\n        &quot;created_at&quot;: &quot;2014-03-18 12:33:43.387423-07&quot;,\n        &quot;updated_at&quot;: &quot;2015-07-06 10:29:18.338875-07&quot;,\n        &quot;deleted_at&quot;: &quot;&quot;,\n        &quot;organizations&quot;: &quot;https:\/\/sandbox-api.4over.com\/users\/d44fa923-d567-48ed-aa3a-9c02a98bcee6\/organizations&quot;,\n        &quot;logins&quot;: &quot;https:\/\/sandbox-api.4over.com\/users\/d44fa923-d567-48ed-aa3a-9c02a98bcee6\/logins&quot;,\n        &quot;token&quot;: &quot;5ec64e96d3877374fd35c2aae94cea3d07b83e10&quot;,\n        &quot;timestamp&quot;: &quot;0.09669000 1539885980&quot;,\n        &quot;current_organization_uuid&quot;: &quot;a4377724-8819-4a96-bc2b-3877b269f989&quot;\n      },\n      &quot;parent_organization&quot;: {\n        &quot;organization_uuid&quot;: &quot;8a17ef16-d997-4544-9f7c-d313febf9c40&quot;,\n        &quot;organization_name&quot;: &quot;4over root&quot;,\n        &quot;organization_description&quot;: &quot;4over root&quot;,\n        &quot;job_code_prefix&quot;: &quot;Z&quot;,\n        &quot;is_public_organization&quot;: true,\n        &quot;primary_contact_user&quot;: {\n          &quot;user_uuid&quot;: &quot;cb51b9fc-6a6e-4b98-885f-5d21041c1403&quot;,\n          &quot;first_name&quot;: &quot;Jane&quot;,\n          &quot;last_name&quot;: &quot;Doe&quot;,\n          &quot;email&quot;: &quot;fake@4over.com&quot;,\n          &quot;user_notes&quot;: &quot;test&quot;,\n          &quot;created_at&quot;: &quot;2012-09-10 07:00:00.000000+0000&quot;,\n          &quot;updated_at&quot;: &quot;2018-05-31 15:48:19.140525-07&quot;,\n          &quot;deleted_at&quot;: &quot;&quot;,\n          &quot;organizations&quot;: &quot;https:\/\/sandbox-api.4over.com\/users\/cb51b9fc-6a6e-4b98-885f-5d21041c1403\/organizations&quot;,\n          &quot;logins&quot;: &quot;https:\/\/sandbox-api.4over.com\/users\/cb51b9fc-6a6e-4b98-885f-5d21041c1403\/logins&quot;,\n          &quot;token&quot;: &quot;47a11796c675bbde6e3215239cd1a4c76255e854&quot;,\n          &quot;timestamp&quot;: &quot;0.09683600 1539885980&quot;,\n          &quot;current_organization_uuid&quot;: &quot;a4377724-8819-4a96-bc2b-3877b269f989&quot;\n        }\n      }\n    },\n    &quot;paying_user&quot;: {\n      &quot;user_uuid&quot;: &quot;0e153dc0-9b7b-47e8-8cfd-e50d88817ffb&quot;,\n      &quot;first_name&quot;: &quot;Test&quot;,\n      &quot;last_name&quot;: &quot;Tester&quot;,\n      &quot;email&quot;: &quot;fake@4over.com&quot;,\n      &quot;user_notes&quot;: &quot;testing &quot;,\n      &quot;created_at&quot;: &quot;2013-08-26 07:00:00.000000+0000&quot;,\n      &quot;updated_at&quot;: &quot;2018-05-31 15:48:19.773569-07&quot;,\n      &quot;deleted_at&quot;: &quot;&quot;,\n      &quot;organizations&quot;: &quot;https:\/\/sandbox-api.4over.com\/users\/0e153dc0-9b7b-47e8-8cfd-e50d88817ffb\/organizations&quot;,\n      &quot;logins&quot;: &quot;https:\/\/sandbox-api.4over.com\/users\/0e153dc0-9b7b-47e8-8cfd-e50d88817ffb\/logins&quot;,\n      &quot;token&quot;: &quot;19253d572c2e5db795b4a8c846135218587c065b&quot;,\n      &quot;timestamp&quot;: &quot;0.09695700 1539885980&quot;,\n      &quot;current_organization_uuid&quot;: &quot;a4377724-8819-4a96-bc2b-3877b269f989&quot;\n    },\n    &quot;created_at&quot;: &quot;2018-10-18T18:06:19+0000&quot;\n  },\n  &quot;payment_type&quot;: &quot;authnet&quot;\n}<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Get customer&#8217;s payment profiles: Sample Response: JSON Save the desired payment profile and post the order. How to Add New Payment Profiles 1) First Login into the site 4over.com 2) Then go to Account->Orders &#038; Account->Stored Payment Methods 3) Then Click on Add New Card. 4) Now hit the \/paymentprofiles API. You can see the [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":129,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-131","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=131"}],"version-history":[{"count":89,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/131\/revisions"}],"predecessor-version":[{"id":1156,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/131\/revisions\/1156"}],"up":[{"embeddable":true,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/129"}],"wp:attachment":[{"href":"https:\/\/api-users.4over.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}