Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Retorna os detalhes de um desconto específico
CHARGEFY_ACCESS_TOKEN
Authorization
id
string
name
type
fixed
percentage
amount
integer
basisPoints
duration
maxRedemptions
redemptionsCount
code
createdAt
datetime
curl -X GET "https://api.chargefy.io/api/v1/discounts/disc_abc123" \ -H "Authorization: Bearer $CHARGEFY_ACCESS_TOKEN"
import { Chargefy } from '@chargefy/sdk'; const chargefy = new Chargefy({ accessToken: process.env.CHARGEFY_ACCESS_TOKEN, }); const discount = await chargefy.discounts.get('disc_abc123');
{ "id": "disc_abc123", "name": "Desconto de Lançamento", "type": "percentage", "basisPoints": 2000, "duration": "once", "maxRedemptions": 100, "redemptionsCount": 23, "code": "LAUNCH20", "createdAt": "2026-02-01T10:00:00Z" }