{"id":1034,"date":"2024-01-28T17:01:49","date_gmt":"2024-01-28T17:01:49","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=1034"},"modified":"2024-01-29T11:54:30","modified_gmt":"2024-01-29T11:54:30","slug":"purchase-packet-for-an-advert","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=1034","title":{"rendered":"Purchase packet for an advert"},"content":{"rendered":"\r\n<h2>Purchase packet for an advert<\/h2>\r\n<p>&nbsp;<\/p>\r\n<h5>AUTHORIZATIONS: <i>access_token<\/i><\/h5>\r\n<h5>PATH\u00a0PARAMETERS<\/h5>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"advertId\">advertId required<\/td>\r\n<td>string<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h5>REQUEST BODY SCHEMA:\u00a0application\/json<\/h5>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"payment_method\">payment_method required<\/td>\r\n<td>string Enum:\u00a0<strong>&#8220;account&#8221;<\/strong>\u00a0<strong>&#8220;postpaid&#8221;<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"is_premium\">is_premium<\/td>\r\n<td>boolean\r\n<p>Type of the packet. Set <strong>true<\/strong>\u00a0to choose premium packet.<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h3>Responses<\/h3>\r\n<p>&nbsp;<\/p>\r\n<p><strong>204<\/strong><\/p>\r\n<p>Status 204<\/p>\r\n<p>OLX Production Server<\/p>\r\n<p>https:\/\/www.olx.ro\/api\/partner\/adverts\/{advertId}\/packets <code>POST\r\n\/adverts\/{advertId}\/packets\r\nRequest samples\r\nPayload\r\nContent type\r\napplication\/json\r\n{\r\n\"payment_method\": \"account\",\r\n\"is_premium\": true\r\n}\t\t\t<\/code> <button>Copy<\/button> POST \/adverts\/{advertId}\/packets Request samples Payload Content type application\/json { &#8220;payment_method&#8221;: &#8220;account&#8221;, &#8220;is_premium&#8221;: true } Copied to clipboard<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Purchase packet for an advert &nbsp; AUTHORIZATIONS: access_token PATH\u00a0PARAMETERS advertId required string REQUEST BODY SCHEMA:\u00a0application\/json payment_method required string Enum:\u00a0&#8220;account&#8221;\u00a0&#8220;postpaid&#8221; is_premium boolean Type of the packet. Set true\u00a0to choose premium packet. Responses &nbsp; 204 Status 204 OLX Production Server https:\/\/www.olx.ro\/api\/partner\/adverts\/{advertId}\/packets POST \/adverts\/{advertId}\/packets Request samples Payload Content type application\/json { &#8220;payment_method&#8221;: &#8220;account&#8221;, &#8220;is_premium&#8221;: true } Copy POST&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=1034\" title=\"Read Purchase packet for an advert\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[131],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/1034"}],"collection":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1034"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/1034\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}