Which documentation are you looking for?
Do not know how to start integrating?
Check the first stepsCreate a Discount Promise
POST
Products that use it:
Request's parameters
BODY
amount
Total payment amount before aplying discount. For example, 15.05.number
REQUIRED
coupon
UUnique ID that identifies the coupon for discount application. This field should be filled out only when the user enters a coupon during the purchasing process with the seller.string
Response parameters
transaction_amount
Total payment amount before aplying discount. For example, 150.number
currency_id
Type of currency to be used in payment. For example, ARS for Argentina, BRL for Brazil. This field varies according to your location.string
legal_terms
Terms and conditions of discount.string
discount
Discount description.object
Errors
400Error
400
Bad-Request
400
Bad-Request
400
Bad-Request
500Error
500
Error
500
Error
Did you find this information useful?
Yes
No
Request
curl -X POST \
'https://api.mercadopago.com/v2/wallet_connect/discounts'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer TEST-3322*********190-03031*********46528954c*********0339910-1*********' \
-d '{
"amount": 15.05,
"coupon": "WALLET10"
}'
Sample answer
{
"transaction_amount": 150,
"currency_id": "ARS",
"legal_terms": "https://api.mercadopago.com/v2/discounts/campaign/10580513/terms/html",
"discount": {
"amount": 15,
"detail": {
"cap": 1000000,
"type": "percentage",
"value": 10
}
}
}