{"id":139,"date":"2016-01-26T16:43:13","date_gmt":"2016-01-26T16:43:13","guid":{"rendered":"http:\/\/192.168.114.129\/?page_id=139"},"modified":"2024-08-23T11:04:06","modified_gmt":"2024-08-23T11:04:06","slug":"pubsub","status":"publish","type":"page","link":"https:\/\/api-users.4over.com\/?page_id=139","title":{"rendered":"PUB\/SUB"},"content":{"rendered":"<p>PUB\/SUB system is a publication\/subscription system that API Users can subscribe to and get notifications on updated resources.<br \/>\nUsers can provide a URI per route that can handle the resource provided by the published route. Once a route is modified, a resource to the modified route will be published to User&#8217;s corresponding URI.<br \/>\nUsers can subscribe to all available published routes by e-mailing a URI per publication.<\/p>\n<p>Current available routes are:<\/p>\n<p>&#8211; Job status routes<\/p>\n<p>&#8211; Conformation tool URI<\/p>\n<p>Published resources have the following format:<\/p>\n<p>Job Status Routes:<\/p>\n<p>JSON<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n[\n  {&quot;source_job_id&quot;:&quot;Z3126529173-001&quot;,&quot;job_name&quot;:&quot;Sample Order 1&quot;,&quot;resource&quot;:&quot;https:\/\/api.4over.com\/orders\/Z3126529173-001\/status&quot;},\n  {&quot;source_job_id&quot;:&quot;Z2762329119-001&quot;,&quot;job_name&quot;:&quot;Sample Order 2&quot;,&quot;resource&quot;:&quot;https:\/\/api.4over.com\/orders\/Z2762329119-001\/status&quot;}\n]\n<\/pre>\n<p>Product Routes :<\/p>\n<p>Whenever there is an update to the product, it sends the updated product data to the customer&#8217;s listener API endpoint based on their chosen subscription frequency: daily, weekly, or monthly.<\/p>\n<p>Example Payload that will be sent to subscriber endpoint:<\/p>\n<p>JSON<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n[\n    {\n        &quot;product_uuid&quot;: &quot;3485feeb-37b0-4f72-b3e7-37ada20dc247&quot;,\n        &quot;product_code&quot;: &quot;16PT-PFSLK-6X9&quot;,\n        &quot;product_description&quot;: &quot;6\\&quot; X 9\\&quot; 16PT Silk Laminated Presentation Folder&quot;,\n        &quot;full_product_path&quot;: &quot;https:\\\/\\\/dev-api.4over.com\\\/printproducts\\\/products\\\/3485feeb-37b0-4f72-b3e7-37ada20dc247&quot;,\n        &quot;categories&quot;: &quot;https:\\\/\\\/dev-api.4over.com\\\/printproducts\\\/products\\\/3485feeb-37b0-4f72-b3e7-37ada20dc247\\\/categories&quot;,\n        &quot;product_option_groups&quot;: &quot;https:\\\/\\\/dev-api.4over.com\\\/printproducts\\\/products\\\/3485feeb-37b0-4f72-b3e7-37ada20dc247\\\/optiongroups&quot;,\n        &quot;product_base_prices&quot;: &quot;https:\\\/\\\/dev-api.4over.com\\\/printproducts\\\/products\\\/3485feeb-37b0-4f72-b3e7-37ada20dc247\\\/baseprices&quot;,\n        &quot;last_updated_at&quot;: &quot;2024-06-13 04:33:55.79333-07&quot;\n    },\n    {\n        &quot;product_uuid&quot;: &quot;f3ac2bbf-16c3-4fd4-96d7-346aa83c2626&quot;,\n        &quot;product_code&quot;: &quot;WHBOPP-ROLB-1X1&quot;,\n        &quot;product_description&quot;: &quot;1\\&quot; x 1\\&quot; White BOPP Roll Label&quot;,\n        &quot;full_product_path&quot;: &quot;https:\\\/\\\/dev-api.4over.com\\\/printproducts\\\/products\\\/f3ac2bbf-16c3-4fd4-96d7-346aa83c2626&quot;,\n        &quot;categories&quot;: &quot;https:\\\/\\\/dev-api.4over.com\\\/printproducts\\\/products\\\/f3ac2bbf-16c3-4fd4-96d7-346aa83c2626\\\/categories&quot;,\n        &quot;product_option_groups&quot;: &quot;https:\\\/\\\/dev-api.4over.com\\\/printproducts\\\/products\\\/f3ac2bbf-16c3-4fd4-96d7-346aa83c2626\\\/optiongroups&quot;,\n        &quot;product_base_prices&quot;: &quot;https:\\\/\\\/dev-api.4over.com\\\/printproducts\\\/products\\\/f3ac2bbf-16c3-4fd4-96d7-346aa83c2626\\\/baseprices&quot;,\n        &quot;last_updated_at&quot;: &quot;2024-06-13 13:38:53.641697-07&quot;\n    }\n]\n<\/pre>\n<p>Products feed Routes :<\/p>\n<p>Example Payload that will be sent to subscriber endpoint:<\/p>\n<p>JSON<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n{\n    &quot;entities&quot;: [\n        {\n            &quot;full_product_path&quot;: &quot;https:\/\/dev-api.4over.com\/printproducts\/products\/c2552661-c1e4-45e5-985e-f4b0146af3b4&quot;,\n            &quot;product_uuid&quot;: &quot;c2552661-c1e4-45e5-985e-f4b0146af3b4&quot;,\n            &quot;product_code&quot;: &quot;4CORO-AFRAMERIGID-24X36&quot;,\n            &quot;product_description&quot;: &quot;24X36 - 4mm Coroplast Sidewalk Sign&quot;,\n            &quot;categories_path&quot;: &quot;https:\/\/dev-api.4over.com\/printproducts\/products\/c2552661-c1e4-45e5-985e-f4b0146af3b4\/categories&quot;,\n            &quot;categories&quot;: [\n                {\n                    &quot;category_uuid&quot;: &quot;900a16a6-7836-4546-b8c5-3b1678c0287e&quot;,\n                    &quot;category_name&quot;: &quot;Sidewalk Signs&quot;,\n                    &quot;category_description&quot;: &quot;Sidewalk Signs&quot;\n                }\n            ],\n            &quot;product_option_groups_path&quot;: &quot;https:\/\/dev-api.4over.com\/printproducts\/products\/c2552661-c1e4-45e5-985e-f4b0146af3b4\/optiongroups&quot;,\n            &quot;product_option_groups&quot;: [\n                {\n                    &quot;product_option_group_uuid&quot;: &quot;34f407f8-0b50-4227-9378-10fddefbe596&quot;,\n                    &quot;product_option_group_name&quot;: &quot;Size&quot;,\n                    &quot;minoccurs&quot;: &quot;1&quot;,\n                    &quot;maxoccurs&quot;: &quot;1&quot;,\n                    &quot;validator&quot;: null,\n                    &quot;options&quot;: [\n                        {\n                            &quot;option_uuid&quot;: &quot;821d62bd-54c0-4880-b742-ed26e7b39a85&quot;,\n                            &quot;option_name&quot;: &quot;24\\&quot; x 36\\&quot;&quot;,\n                            &quot;option_description&quot;: null,\n                            &quot;capi_name&quot;: &quot;24\\&quot; x 36\\&quot;&quot;,\n                            &quot;capi_description&quot;: &quot;24\\&quot; x 36\\&quot;&quot;,\n                            &quot;option_prices&quot;: &quot;https:\/\/dev-api.4over.com\/printproducts\/products\/c2552661-c1e4-45e5-985e-f4b0146af3b4\/optiongroups\/34f407f8-0b50-4227-9378-10fddefbe596\/options\/821d62bd-54c0-4880-b742-ed26e7b39a85\/prices&quot;,\n                            &quot;option_prices_list&quot;: []\n                        }\n                    ]\n                },\n                {\n                    &quot;product_option_group_uuid&quot;: &quot;88c28e92-7c8c-4c05-9908-dcd495e0957a&quot;,\n                    &quot;product_option_group_name&quot;: &quot;Product Orientation&quot;,\n                    &quot;minoccurs&quot;: &quot;1&quot;,\n                    &quot;maxoccurs&quot;: &quot;1&quot;,\n                    &quot;validator&quot;: null,\n                    &quot;options&quot;: [\n                        {\n                            &quot;option_uuid&quot;: &quot;991b850a-6643-48d3-afa6-bcda4cf58c85&quot;,\n                            &quot;option_name&quot;: &quot;Vertical&quot;,\n                            &quot;option_description&quot;: &quot;Vertical&quot;,\n                            &quot;capi_name&quot;: &quot;Vertical&quot;,\n                            &quot;capi_description&quot;: &quot;Vertical&quot;,\n                            &quot;option_prices&quot;: &quot;https:\/\/dev-api.4over.com\/printproducts\/products\/c2552661-c1e4-45e5-985e-f4b0146af3b4\/optiongroups\/88c28e92-7c8c-4c05-9908-dcd495e0957a\/options\/991b850a-6643-48d3-afa6-bcda4cf58c85\/prices&quot;,\n                            &quot;option_prices_list&quot;: []\n                        }\n                    ]\n                },\n                {\n                    &quot;product_option_group_uuid&quot;: &quot;24865ffa-793d-43ea-b3b1-d1b5cf22268d&quot;,\n                    &quot;product_option_group_name&quot;: &quot;Stock&quot;,\n                    &quot;minoccurs&quot;: &quot;1&quot;,\n                    &quot;maxoccurs&quot;: &quot;1&quot;,\n                    &quot;validator&quot;: null,\n                    &quot;options&quot;: [\n                        {\n                            &quot;option_uuid&quot;: &quot;abb05c41-c43a-4e33-9469-b84184082483&quot;,\n                            &quot;option_name&quot;: &quot;4mm White Coroplast&quot;,\n                            &quot;option_description&quot;: &quot;Stock&quot;,\n                            &quot;capi_name&quot;: &quot;4mm White Coroplast&quot;,\n                            &quot;capi_description&quot;: &quot;4mm White Coroplast&quot;,\n                            &quot;option_prices&quot;: &quot;https:\/\/dev-api.4over.com\/printproducts\/products\/c2552661-c1e4-45e5-985e-f4b0146af3b4\/optiongroups\/24865ffa-793d-43ea-b3b1-d1b5cf22268d\/options\/abb05c41-c43a-4e33-9469-b84184082483\/prices&quot;,\n                            &quot;option_prices_list&quot;: [\n                                {\n                                    &quot;option_price_uuid&quot;: &quot;e53adc1d-705c-414b-924e-2d4b73337843&quot;,\n                                    &quot;option_name&quot;: &quot;4mm White Coroplast&quot;,\n                                    &quot;startqty&quot;: 1,\n                                    &quot;endqty&quot;: 100000,\n                                    &quot;price&quot;: &quot;0&quot;,\n                                    &quot;price_per_qty&quot;: &quot;0&quot;,\n                                    &quot;is_flat_fee&quot;: true,\n                                    &quot;qty&quot;: 0,\n                                    &quot;is_percentage&quot;: false\n                                }\n                            ]\n                        }\n                    ]\n                },\n                {\n                    &quot;product_option_group_uuid&quot;: &quot;26ca0df3-0682-4f37-8979-409868e2df2d&quot;,\n                    &quot;product_option_group_name&quot;: &quot;Coating&quot;,\n                    &quot;minoccurs&quot;: &quot;1&quot;,\n                    &quot;maxoccurs&quot;: &quot;1&quot;,\n                    &quot;validator&quot;: null,\n                    &quot;options&quot;: [\n                        {\n                            &quot;option_uuid&quot;: &quot;3e7618de-abca-4bda-9f97-8b9129e913d8&quot;,\n                            &quot;option_name&quot;: &quot;No Coating&quot;,\n                            &quot;option_description&quot;: &quot;UNCOATED&quot;,\n                            &quot;capi_name&quot;: &quot;No Coating&quot;,\n                            &quot;capi_description&quot;: &quot;UNCOATED&quot;,\n                            &quot;option_prices&quot;: &quot;https:\/\/dev-api.4over.com\/printproducts\/products\/c2552661-c1e4-45e5-985e-f4b0146af3b4\/optiongroups\/26ca0df3-0682-4f37-8979-409868e2df2d\/options\/3e7618de-abca-4bda-9f97-8b9129e913d8\/prices&quot;,\n                            &quot;option_prices_list&quot;: [\n                                {\n                                    &quot;option_price_uuid&quot;: &quot;a62b386c-31c9-4d19-8a6f-af1fdb75a98a&quot;,\n                                    &quot;option_name&quot;: &quot;No Coating&quot;,\n                                    &quot;startqty&quot;: 1,\n                                    &quot;endqty&quot;: 100000,\n                                    &quot;price&quot;: &quot;0&quot;,\n                                    &quot;price_per_qty&quot;: &quot;0&quot;,\n                                    &quot;is_flat_fee&quot;: true,\n                                    &quot;qty&quot;: 0,\n                                    &quot;is_percentage&quot;: false\n                                }\n                            ]\n                        }\n                    ]\n                },\n                {\n                    &quot;product_option_group_uuid&quot;: &quot;38d33954-5a42-4112-a905-215eb827e62c&quot;,\n                    &quot;product_option_group_name&quot;: &quot;Colorspec&quot;,\n                    &quot;minoccurs&quot;: &quot;1&quot;,\n                    &quot;maxoccurs&quot;: &quot;1&quot;,\n                    &quot;validator&quot;: null,\n                    &quot;options&quot;: [\n                        {\n                            &quot;option_uuid&quot;: &quot;32d3c223-f82c-492b-b915-ba065a00862f&quot;,\n                            &quot;option_name&quot;: &quot;4\/0 (4 color front)&quot;,\n                            &quot;option_description&quot;: &quot;4 Color Front&quot;,\n                            &quot;capi_name&quot;: &quot;4\/0 (4 color front)&quot;,\n                            &quot;capi_description&quot;: &quot;4\/0 (4 color front)&quot;,\n                            &quot;option_prices&quot;: &quot;https:\/\/dev-api.4over.com\/printproducts\/products\/c2552661-c1e4-45e5-985e-f4b0146af3b4\/optiongroups\/38d33954-5a42-4112-a905-215eb827e62c\/options\/32d3c223-f82c-492b-b915-ba065a00862f\/prices&quot;,\n                            &quot;option_prices_list&quot;: [\n                                {\n                                    &quot;option_price_uuid&quot;: &quot;f95c9cc8-dbfc-416a-8411-8957acc66fad&quot;,\n                                    &quot;option_name&quot;: &quot;4\/0 (4 color front)&quot;,\n                                    &quot;startqty&quot;: 1,\n                                    &quot;endqty&quot;: 100000,\n                                    &quot;price&quot;: &quot;0&quot;,\n                                    &quot;price_per_qty&quot;: &quot;0&quot;,\n                                    &quot;is_flat_fee&quot;: true,\n                                    &quot;qty&quot;: 0,\n                                    &quot;is_percentage&quot;: false\n                                }\n                            ]\n                        },\n                        {\n                            &quot;option_uuid&quot;: &quot;13abbda7-1d64-4f25-8bb2-c179b224825d&quot;,\n                            &quot;option_name&quot;: &quot;4\/4 (4 color both sides)&quot;,\n                            &quot;option_description&quot;: &quot;&quot;,\n                            &quot;capi_name&quot;: &quot;4\/4 (4 color both sides)&quot;,\n                            &quot;capi_description&quot;: &quot;4\/4 (4 color both sides)&quot;,\n                            &quot;option_prices&quot;: &quot;https:\/\/dev-api.4over.com\/printproducts\/products\/c2552661-c1e4-45e5-985e-f4b0146af3b4\/optiongroups\/38d33954-5a42-4112-a905-215eb827e62c\/options\/13abbda7-1d64-4f25-8bb2-c179b224825d\/prices&quot;,\n                            &quot;option_prices_list&quot;: []\n                        }\n                    ]\n                },\n                {\n                    &quot;product_option_group_uuid&quot;: &quot;d7296d0d-7aa2-43f2-97fa-3ac394c8bfd5&quot;,\n                    &quot;product_option_group_name&quot;: &quot;Hardware&quot;,\n                    &quot;minoccurs&quot;: &quot;1&quot;,\n                    &quot;maxoccurs&quot;: &quot;1&quot;,\n                    &quot;validator&quot;: null,\n                    &quot;options&quot;: [\n                        {\n                            &quot;option_uuid&quot;: &quot;242c40f8-8bb7-4797-b473-e7650bde25c2&quot;,\n                            &quot;option_name&quot;: &quot;Signicade Deluxe Plastic Frame - White&quot;,\n                            &quot;option_description&quot;: &quot;Plasticade Hardware&quot;,\n                            &quot;capi_name&quot;: &quot;Signicade Deluxe Plastic Frame - White&quot;,\n                            &quot;capi_description&quot;: &quot;Signicade Deluxe Plastic Frame - White&quot;,\n                            &quot;option_prices&quot;: &quot;https:\/\/dev-api.4over.com\/printproducts\/products\/c2552661-c1e4-45e5-985e-f4b0146af3b4\/optiongroups\/d7296d0d-7aa2-43f2-97fa-3ac394c8bfd5\/options\/242c40f8-8bb7-4797-b473-e7650bde25c2\/prices&quot;,\n                            &quot;option_prices_list&quot;: [\n                                {\n                                    &quot;option_price_uuid&quot;: &quot;000e9ec3-2489-4d91-9d60-8131af65aca0&quot;,\n                                    &quot;option_name&quot;: &quot;Signicade Deluxe Plastic Frame - White&quot;,\n                                    &quot;startqty&quot;: 1,\n                                    &quot;endqty&quot;: 100,\n                                    &quot;price&quot;: &quot;0&quot;,\n                                    &quot;price_per_qty&quot;: &quot;0&quot;,\n                                    &quot;is_flat_fee&quot;: true,\n                                    &quot;qty&quot;: 0,\n                                    &quot;is_percentage&quot;: false\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            &quot;last_updated_at&quot;: &quot;2024-08-22 08:25:34.249738-07&quot;\n        }\n    ],\n    &quot;totalResults&quot;: 1,\n    &quot;currentPage&quot;: 0,\n    &quot;maximumPages&quot;: 20\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>PUB\/SUB system is a publication\/subscription system that API Users can subscribe to and get notifications on updated resources. Users can provide a URI per route that can handle the resource provided by the published route. Once a route is modified, a resource to the modified route will be published to User&#8217;s corresponding URI. Users can [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":11,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-139","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/139","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=139"}],"version-history":[{"count":22,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/139\/revisions"}],"predecessor-version":[{"id":850,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/139\/revisions\/850"}],"wp:attachment":[{"href":"https:\/\/api-users.4over.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}