{"id":3402,"date":"2018-01-26T07:05:52","date_gmt":"2018-01-26T07:05:52","guid":{"rendered":"https:\/\/support.resrequest.com\/?p=3402"},"modified":"2026-02-03T11:19:33","modified_gmt":"2026-02-03T11:19:33","slug":"ac_get_rate","status":"publish","type":"post","link":"https:\/\/support.resrequest.com\/developer\/ac_get_rate\/","title":{"rendered":"ac_get_rate (deprecated function)"},"content":{"rendered":"\n<style type=\"text\/css\" data-created_by=\"avia_inline_auto\" id=\"style-css-av-av_section-8215b6690a2daa40823385ce8451459f\">\n.avia-section.av-av_section-8215b6690a2daa40823385ce8451459f{\nbackground-color:#f6f6f6;\nbackground-image:unset;\n}\n<\/style>\n<div id='av_section_1'  class='avia-section av-av_section-8215b6690a2daa40823385ce8451459f main_color avia-section-small avia-no-shadow  avia-builder-el-0  el_before_av_one_full  avia-builder-el-first  avia-bg-style-scroll container_wrap sidebar_right'  ><div class='container av-section-cont-open' ><main  role=\"main\" itemprop=\"mainContentOfPage\"  class='template-page content  av-content-small alpha units'><div class='post-entry post-entry-type-page post-entry-3402'><div class='entry-content-wrapper clearfix'>\n\n<style type=\"text\/css\" data-created_by=\"avia_inline_auto\" id=\"style-css-av-av_image-b1dd019091d565241aee1b23e1b3e1e2\">\n.avia-image-container.av-av_image-b1dd019091d565241aee1b23e1b3e1e2 img.avia_image{\nbox-shadow:none;\n}\n.avia-image-container.av-av_image-b1dd019091d565241aee1b23e1b3e1e2 .av-image-caption-overlay-center{\ncolor:#ffffff;\n}\n<\/style>\n<div  class='avia-image-container av-av_image-b1dd019091d565241aee1b23e1b3e1e2 av-styling- avia-align-center  avia-builder-el-1  avia-builder-el-no-sibling '   itemprop=\"image\" itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/ImageObject\" ><div class=\"avia-image-container-inner\"><div class=\"avia-image-overlay-wrap\"><img decoding=\"async\" fetchpriority=\"high\" class='wp-image-3359 avia-img-lazy-loading-not-3359 avia_image ' src=\"https:\/\/support.resrequest.com\/wp-content\/uploads\/2018\/01\/Tutorial-header-developer-resrequest-API.jpg\" alt='ResRequest API' title='ResRequest API'  height=\"320\" width=\"1920\"  itemprop=\"thumbnailUrl\" srcset=\"https:\/\/support.resrequest.com\/wp-content\/uploads\/2018\/01\/Tutorial-header-developer-resrequest-API.jpg 1920w, https:\/\/support.resrequest.com\/wp-content\/uploads\/2018\/01\/Tutorial-header-developer-resrequest-API-300x50.jpg 300w, https:\/\/support.resrequest.com\/wp-content\/uploads\/2018\/01\/Tutorial-header-developer-resrequest-API-768x128.jpg 768w, https:\/\/support.resrequest.com\/wp-content\/uploads\/2018\/01\/Tutorial-header-developer-resrequest-API-1030x172.jpg 1030w, https:\/\/support.resrequest.com\/wp-content\/uploads\/2018\/01\/Tutorial-header-developer-resrequest-API-1500x250.jpg 1500w, https:\/\/support.resrequest.com\/wp-content\/uploads\/2018\/01\/Tutorial-header-developer-resrequest-API-705x118.jpg 705w, https:\/\/support.resrequest.com\/wp-content\/uploads\/2018\/01\/Tutorial-header-developer-resrequest-API-450x75.jpg 450w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/div><\/div><\/div>\n<\/div><\/div><\/main><!-- close content main element --><\/div><\/div><div id='after_section_1'  class='main_color av_default_container_wrap container_wrap sidebar_right'  ><div class='container av-section-cont-open' ><div class='template-page content  av-content-small alpha units'><div class='post-entry post-entry-type-page post-entry-3402'><div class='entry-content-wrapper clearfix'>\n\n<style type=\"text\/css\" data-created_by=\"avia_inline_auto\" id=\"style-css-av-av_one_full-8975cfbc74e94f7f6a843327fa3cf88d\">\n#top .flex_column.av-av_one_full-8975cfbc74e94f7f6a843327fa3cf88d{\nmargin-top:10px;\nmargin-bottom:10px;\n}\n.flex_column.av-av_one_full-8975cfbc74e94f7f6a843327fa3cf88d{\nborder-radius:0px 0px 0px 0px;\npadding:0px 30px 0px 30px;\n}\n.responsive #top #wrap_all .flex_column.av-av_one_full-8975cfbc74e94f7f6a843327fa3cf88d{\nmargin-top:10px;\nmargin-bottom:10px;\n}\n<\/style>\n<div  class='flex_column av-av_one_full-8975cfbc74e94f7f6a843327fa3cf88d av_one_full  avia-builder-el-2  el_after_av_section  avia-builder-el-no-sibling  first flex_column_div  '     ><section  class='av_textblock_section av-av_textblock-0366cc7376be6c9e82a3e9cc8987b64f '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h1>ac_get_rate (deprecated function)<\/h1>\n<\/div><\/section><br \/>\n\n<style type=\"text\/css\" data-created_by=\"avia_inline_auto\" id=\"style-css-av-av_hr-a6de236e6c183bbbd700292deacd2b52\">\n#top .hr.hr-invisible.av-av_hr-a6de236e6c183bbbd700292deacd2b52{\nheight:20px;\n}\n<\/style>\n<div  class='hr av-av_hr-a6de236e6c183bbbd700292deacd2b52 hr-invisible  avia-builder-el-4  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div><br \/>\n<section  class='av_textblock_section av-av_textblock-0366cc7376be6c9e82a3e9cc8987b64f '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h4><strong>Description<\/strong><\/h4>\n<p><span style=\"font-weight: 400;\">Returns a list of rates and their details.<\/span><span style=\"font-weight: 400;\"> Each detail structure contains the \u201cid\u201d, \u201cname\u201d and any extra information requested of the designated rate type.<\/span><\/p>\n<h4><strong>Version<\/strong><\/h4>\n<p><span style=\"font-weight: 400;\">Available from version 5.25.0.<\/span><\/p>\n<h4><strong>Access<\/strong><\/h4>\n<p><span style=\"font-weight: 400;\">Read-only, master access not required, available to all users.<\/span><\/p>\n<h4><strong>Parameters<\/strong><\/h4>\n<\/div><\/section><br \/>\n<div class='avia-data-table-wrap av-av_table-79567314f19fdf27597651e950bcbb3a avia_responsive_table avia-table-1'><table  class='avia-table avia-data-table avia_pricing_default  avia-builder-el-6  el_after_av_textblock  el_before_av_textblock '  itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/Table\" ><tbody><tr class='avia-heading-row'><th class=''>Number<\/th><th class=''>Name<\/th><th class=''>O\/R<\/th><th class=''>Version<\/th><th class=''>Usage<\/th><\/tr><tr class=''><td class=''>1<\/td><td class=''>Auth<\/td><td class=''>Required<\/td><td class=''><\/td><td class=''>Authentication structure.*<\/td><\/tr><tr class=''><td class=''>2<\/td><td class=''>Search<\/td><td class=''>Optional<\/td><td class=''><\/td><td class=''>Search for specific rate names. This search may use * or % as wildcard characters.<\/td><\/tr><tr class=''><td class=''>3<\/td><td class=''>Default<\/td><td class=''>Optional<\/td><td class=''><\/td><td class=''>If set to 1, only the default rate for the user is returned.<\/td><\/tr><tr class=''><td class=''>4<\/td><td class=''>Agent<\/td><td class=''>Optional<\/td><td class=''><\/td><td class=''>\u201cId\u201d of specific agent to lookup. Internal users may use the code \u201cpublic\u201d to list all public rate types or \u201clinked\u201d to specify that the linked agent should be used. Case sensitive.<\/td><\/tr><tr class=''><td class=''>5<\/td><td class=''>Extra<\/td><td class=''>Optional<\/td><td class=''>5.20.0+<\/td><td class=''>An array specifying extra information to return about each rate &#8211; see table below.<\/p>\n<p>For backwards compatibility, if this field is left out it will default to returning the currency and default flag.<\/td><\/tr><\/tbody><\/table><\/div><style type='text\/css'>.avia-table-1 td:nth-of-type(1):before { content: 'Number'; } .avia-table-1 td:nth-of-type(2):before { content: 'Name'; } .avia-table-1 td:nth-of-type(3):before { content: 'O\/R'; } .avia-table-1 td:nth-of-type(4):before { content: 'Version'; } .avia-table-1 td:nth-of-type(5):before { content: 'Usage'; } <\/style><br \/>\n<section  class='av_textblock_section av-av_textblock-0366cc7376be6c9e82a3e9cc8987b64f '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>*See <a href=\"https:\/\/support.resrequest.com\/developer\/resrequest-api\/call-structure\/\">call structure explanation<\/a>.<\/p>\n<p>5. Array keys<\/p>\n<\/div><\/section><br \/>\n<div class='avia-data-table-wrap av-av_table-79567314f19fdf27597651e950bcbb3a avia_responsive_table avia-table-2'><table  class='avia-table avia-data-table avia_pricing_default  avia-builder-el-8  el_after_av_textblock  avia-builder-el-last '  itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/Table\" ><tbody><tr class='avia-heading-row'><th class=''>Array key<\/th><th class=''>Structure key<\/th><th class=''>Description<\/th><\/tr><tr class=''><td class=''>0<\/td><td class=''>abbreviation<\/td><td class=''>If not empty add the abbreviation.<\/td><\/tr><tr class=''><td class=''>1<\/td><td class=''>colour<\/td><td class=''>If not empty add the colour. Only internal users have access to this field.<\/td><\/tr><tr class=''><td class=''>2<\/td><td class=''>currency<\/td><td class=''>If not empty add the currency symbol.<\/td><\/tr><tr class=''><td class=''>3<\/td><td class=''>default<\/td><td class=''>If not empty add specify if the rate is the default rate or not. 1=default, 0=not default<\/td><\/tr><tr class=''><td class=''>4<\/td><td class=''>note<\/td><td class=''>If not empty add the note. Only internal users have access to this field.<\/td><\/tr><\/tbody><\/table><\/div><style type='text\/css'>.avia-table-2 td:nth-of-type(1):before { content: 'Array key'; } .avia-table-2 td:nth-of-type(2):before { content: 'Structure key'; } .avia-table-2 td:nth-of-type(3):before { content: 'Description'; } <\/style><\/p><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[70,495,522],"tags":[523,193,517,201,518,516],"version":[],"class_list":["post-3402","post","type-post","status-publish","format-standard","hentry","category-developer","category-resrequest-api","category-rates-functions","tag-ac_get_rate-deprecated-function","tag-api","tag-availability-function","tag-resrequest-api","tag-stock-and-availability-function","tag-stock-function"],"acf":[],"_links":{"self":[{"href":"https:\/\/support.resrequest.com\/wp-json\/wp\/v2\/posts\/3402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.resrequest.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.resrequest.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.resrequest.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/support.resrequest.com\/wp-json\/wp\/v2\/comments?post=3402"}],"version-history":[{"count":12,"href":"https:\/\/support.resrequest.com\/wp-json\/wp\/v2\/posts\/3402\/revisions"}],"predecessor-version":[{"id":5398,"href":"https:\/\/support.resrequest.com\/wp-json\/wp\/v2\/posts\/3402\/revisions\/5398"}],"wp:attachment":[{"href":"https:\/\/support.resrequest.com\/wp-json\/wp\/v2\/media?parent=3402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.resrequest.com\/wp-json\/wp\/v2\/categories?post=3402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.resrequest.com\/wp-json\/wp\/v2\/tags?post=3402"},{"taxonomy":"version","embeddable":true,"href":"https:\/\/support.resrequest.com\/wp-json\/wp\/v2\/version?post=3402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}