{"id":87046,"date":"2024-12-07T19:31:42","date_gmt":"2024-12-08T03:31:42","guid":{"rendered":"https:\/\/rightwave.com\/rwi\/?page_id=87046"},"modified":"2024-12-08T05:10:27","modified_gmt":"2024-12-08T13:10:27","slug":"get-state-code-from-country","status":"publish","type":"page","link":"https:\/\/rightwave.com\/rwi\/rdn-help\/trending-services\/get-state-code-from-country","title":{"rendered":"RDN Get State Code from Country"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"87046\" class=\"elementor elementor-87046\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0cfdca2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0cfdca2\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;}\">\n\t\t\t\t\t\t\t<div class=\"elementor-background-overlay\"><\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b45b270\" data-id=\"b45b270\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-8100547 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8100547\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-8446356\" data-id=\"8446356\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2b62785 elementor-widget__width-initial elementor-widget elementor-widget-heading\" data-id=\"2b62785\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">Get State Code from Country<\/p>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-04a17b5 elementor-widget elementor-widget-heading\" data-id=\"04a17b5\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">This service enables you to efficiently retrieve state codes corresponding to a given country. By automating the process of mapping states to their respective codes, it ensures data consistency and accuracy in applications like logistics, database management, and geographic analysis.<\/p>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c4429d1 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c4429d1\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7369be4\" data-id=\"7369be4\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b571954 elementor-widget elementor-widget-heading\" data-id=\"b571954\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><b>Service Name: <\/b>getStateCodeFromCountrye<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ad1ee0f elementor-widget elementor-widget-heading\" data-id=\"ad1ee0f\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><b>Service Type: <\/b>Basic Utility Services<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-406a1f4 elementor-widget elementor-widget-heading\" data-id=\"406a1f4\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Service Description<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cf54f81 elementor-widget elementor-widget-text-editor\" data-id=\"cf54f81\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"font-weight: 400;\">You can use this service to get state code from country and state. For example,<\/span><\/p><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">You have an String named country with value &#8220;United States&#8221; and another String named state with value &#8220;Alaska&#8221; The API will return an String with value &#8220;AK&#8221;.<\/span><\/li><\/ul><p><span style=\"font-weight: 400;\">The Query Parameters below tell about the name of the request parameters whose values will be passed from Marketo. The output parameter tells about the key in the output JSON which will be mapped to the respective field in Marketo.<\/span><\/p><p><span style=\"font-weight: 400;\"><br \/><\/span><i><span style=\"font-weight: 400;\">Please note that the request parameters values (in step 2) and Marketo Fields (in step 4) are just for example. You have to enter the values as per your service requirement.<\/span><\/i><\/p><p><strong>Steps to configure service getStateCodeFromCountry in Marketo<\/strong><\/p><p><span style=\"font-weight: 400;\">1. Go to Admin and click Webhooks. Click New Webhook.<\/span><\/p><p><span style=\"font-weight: 400;\">2. Name and configure your webhook for Service getStateCodeFromCountry.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8f84081 elementor-widget elementor-widget-image\" data-id=\"8f84081\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"571\" height=\"830\" src=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image3-2.png\" class=\"attachment-full size-full wp-image-87048\" alt=\"\" srcset=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image3-2.png 571w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image3-2-206x300.png 206w\" sizes=\"(max-width: 571px) 100vw, 571px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-71cf0f4 elementor-widget elementor-widget-text-editor\" data-id=\"71cf0f4\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><b>Webhook Name<\/b><span style=\"font-weight: 400;\">: Name of the webhook. In the above example, the Webhook name is the same as the Service name. Webhook name can be provided as per requirement.<\/span><\/p><p><b>URL<\/b><span style=\"font-weight: 400;\">: The URL of the Service getStateCodeFromCountry. The URL has domain and query parameters which will remain the same. You just have to change the parameter values with Marketo Token. To insert a token, click Insert Token.<\/span><\/p><p><b>Template<\/b><span style=\"font-weight: 400;\">: It will remain blank.<\/span><\/p><p><b>Request Token Encoding<\/b><span style=\"font-weight: 400;\">: For POST method it will remain None, and for GET this field will be disabled and the default value of the field will be Form\/Url.<\/span><\/p><p><b>Response type<\/b><span style=\"font-weight: 400;\">: Select the response format as JSON.<\/span><\/p><p><b>Request Type<\/b><span style=\"font-weight: 400;\">: The Request Type will remain the same (i.e) GET as given in the example.<\/span><\/p><p>3. Add Authentication Header.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5d7b7b0 elementor-widget elementor-widget-image\" data-id=\"5d7b7b0\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"796\" height=\"504\" src=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image1-3.png\" class=\"attachment-full size-full wp-image-87049\" alt=\"\" srcset=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image1-3.png 796w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image1-3-300x190.png 300w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image1-3-768x486.png 768w\" sizes=\"(max-width: 796px) 100vw, 796px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ab1295d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ab1295d\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1f310de\" data-id=\"1f310de\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d6658e5 elementor-widget elementor-widget-text-editor\" data-id=\"d6658e5\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><i><span style=\"font-weight: 400;\">Please note that the auth-key shown above is the original auth-key. So, the same value of auth-key and Content-Type should be used while configuring Webhook as shown.<\/span><\/i><\/p><ol start=\"4\"><li><span style=\"font-weight: 400;\"> Response Mappings: <\/span><span style=\"font-weight: 400;\">Response Mappings are created via a pairing of a Response Attribute. The Response attribute depends on the output you are returning from the Custom service JavaScript function. It is recommended to return JSON from custom service so that you can easily map it with the Marketo field.<\/span><\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-50f7bb3 elementor-widget elementor-widget-image\" data-id=\"50f7bb3\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"794\" height=\"502\" src=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image2-2.png\" class=\"attachment-full size-full wp-image-87050\" alt=\"\" srcset=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image2-2.png 794w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image2-2-300x190.png 300w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image2-2-768x486.png 768w\" sizes=\"(max-width: 794px) 100vw, 794px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Get State Code from Country This service enables you to efficiently retrieve state codes corresponding to a given country. By automating the process of mapping states to their respective codes, it ensures data consistency and accuracy in applications like logistics, database management, and geographic analysis. Service Name: getStateCodeFromCountrye Service Type: Basic Utility Services Service Description&hellip;<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":87012,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-87046","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/pages\/87046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/comments?post=87046"}],"version-history":[{"count":8,"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/pages\/87046\/revisions"}],"predecessor-version":[{"id":87191,"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/pages\/87046\/revisions\/87191"}],"up":[{"embeddable":true,"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/pages\/87012"}],"wp:attachment":[{"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/media?parent=87046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}