• 0

Campo 'coupon' no JSON de resposta do endpoint /orders


Boa tarde,

Fiz uma requisição /GET em https://api.mercadolibre.com/orders/{ORDER_ID}?access_token={ACCESS_TOKEN} passando o header x-format-new: true e notei a presença de um campo chamado coupon:

"coupon": {
        "id": null,
        "amount": 0

O que seria este campo? E como faço para que ele venha preenchido através da tela de anúncios (ou seja lá qual é a forma de configurá-lo) para que eu possa testá-lo com alguns valores?


Share this post

Link to post
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.