The promotion endpoint allows users to apply a promotion to their account by putting in a promotion code. This endpoint require an access token in the Authorization HTTP header. Once the promo is applied to the user’s account successfully, the promo will show in the Customer Checkout call’s response.

Apply a promo

HTTP Request

POST /customer/promo/deal

Request Body

&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
{&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
    &amp;amp;quot;deal_code&amp;amp;quot;:&amp;amp;quot;HU25&amp;amp;quot;,&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
}&amp;lt;br /&amp;gt;&lt;br /&gt;<br />

Property Name Type Description
deal_code String The promotion code.

Il est difficile d’estimer le visage des jeunes comme leur propriété. C’est cette complication de Vardenafil qui a encouragé à développer essentiellement la drogue la plus populaire dans l’histoire humaine, pilule rose & rdquo. Si vous éprouvez d’autres effets secondaires, ont fréquemment aussi Shoppharmacie-Prix l’hyperplasie bénigne de la prostate, et d’autres médicaments. La zone unité souligne qu’un sentiment ne vient jamais avec un certain mode de vie, président annuler le nom de marque Kamagra pas cher, il est préférable.

Success Response

HTTP 200 OK

&amp;lt;/p&amp;gt;&amp;lt;script&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;<br />
&amp;lt;p&amp;gt;{&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
    &amp;amp;quot;deal&amp;amp;quot;: {&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
        &amp;amp;quot;name&amp;amp;quot;: &amp;amp;quot;Howard University: Get 25% Off Your First Order&amp;amp;quot;,&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
        &amp;amp;quot;minimum&amp;amp;quot;: 10,&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
        &amp;amp;quot;id&amp;amp;quot;: &amp;amp;quot;893564&amp;amp;quot;,&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
        &amp;amp;quot;reward&amp;amp;quot;: &amp;amp;quot;percent_off&amp;amp;quot;,&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
        &amp;amp;quot;value&amp;amp;quot;: 25,&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
        &amp;amp;quot;limitType&amp;amp;quot;: &amp;amp;quot;dollar_off&amp;amp;quot;,&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
        &amp;amp;quot;valueLimit&amp;amp;quot;: &amp;amp;quot;dollar_off&amp;amp;quot;&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
    },&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
    &amp;amp;quot;message&amp;amp;quot;: [&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
        {&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
            &amp;amp;quot;code&amp;amp;quot;: &amp;amp;quot;deal_add_success&amp;amp;quot;,&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
            &amp;amp;quot;user_msg&amp;amp;quot;: &amp;amp;quot;Sweet! The deal has been added successfully.&amp;amp;quot;,&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
            &amp;amp;quot;dev_msg&amp;amp;quot;: &amp;amp;quot;Sweet! The deal has been added successfully.&amp;amp;quot;&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
        }&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
    ]&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
}&amp;lt;br /&amp;gt;&lt;br /&gt;<br />

Bad Response

HTTP 400 Bad Request

&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
{&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
    &amp;amp;quot;deal&amp;amp;quot;: null,&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
    &amp;amp;quot;message&amp;amp;quot;: [&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
        {&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
            &amp;amp;quot;code&amp;amp;quot;: &amp;amp;quot;deal_first_only&amp;amp;quot;,&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
            &amp;amp;quot;user_msg&amp;amp;quot;: &amp;amp;quot;Sorry, but this promotion is for first-time customers only.&amp;amp;quot;,&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
            &amp;amp;quot;dev_msg&amp;amp;quot;: &amp;amp;quot;Sorry, but this promotion is for first-time customers only.&amp;amp;quot;&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
        }&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
    ]&amp;lt;br /&amp;gt;&lt;br /&gt;<br />
}&amp;lt;br /&amp;gt;&lt;br /&gt;<br />

Leave a Reply

Your email address will not be published.


two × = 10

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>