Home
Documentation
Resources
Partners
Community

Partners

Discover our program for agencies or developers that offer integration services and sellers who want to hire them.

Community

Get the latest news, ask others for help and share your knowledge.

Create a discount promise without a pre-added coupon - Discounts - Mercado Pago Developers
Which documentation are you looking for?

Do not know how to start integrating? 

Check the first steps

Create discount promise without pre-added coupon

The discount promise without a pre-added coupon is a method in which the discount is applied to a transaction without the need for a coupon already linked to the user's account or transaction.

In this case, the discount can be automatically applied based on certain criteria or actions, such as customer loyalty, total purchase value, or participation in a specific promotion.

Unlike the approach with a pre-added coupon, where the discount is guaranteed through a code already entered, here the discount is ensured through rules or conditions defined by the platform or the seller. This strategy allows customers to benefit from discounts without the need to enter codes.

To create a discount promise without a pre-added coupon, use the curl below and insert the parameters according to the following descriptive table.

ParameterDescriptionExample
AuthorizationUser's authorization token (Access token). This information can be obtained through the menu your integrations.APP_USR-123456-test-access-t0ken
x-payer-tokenThis is a specific token of the payer, replace <PAYER_TOKEN> with the corresponding token. This information is obtained at the end of the account linking flowpayer1-token2-test3-example4
amountTotal value of the transaction.550.50
          
curl -X POST \
'https://api.mercadopago.com/v2/wallet_connect/payment/discounts' \
--header 'Authorization: Bearer <YOUR_ACCESS_TOKEN>' \
--header 'x-payer-token: <PAYER_TOKEN>' \
--header 'Content-Type: application/json' \
-d '{
    "amount": 550
}'


        

When creating a discount promise without a pre-added coupon, it is possible to receive different responses (success/error). See the Responses section for details on each of them.