GET
/
coupon
/
list
curl --request GET \
  --url https://api.abacatepay.com/v1/coupon/list \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "code": "DEYVIN_20",
      "notes": "Cupom de desconto pro meu público",
      "maxRedeems": 10,
      "discountKind": "PERCENTAGE",
      "discount": 123,
      "metadata": {}
    }
  ],
  "error": "<any>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200
application/json
Lista de cupons retornada com sucesso.
data
object[]

Lista de cupons.

Os dados do seu cupom.

error
any