Grant promotional credits to a contract’s credit wallet.
amountCents — no credit trackingcreditRateCents + creditAmount → dollar amount is derived| Mode | amountCents | creditRateCents | creditAmount | Result |
|---|---|---|---|---|
| Dollar-only | 50000 | — | — | $500 grant, no credit tracking |
| Rate mode | — | 100 | 500 | 1/credit |
| Free credits | — | 0 | 500 | $0, 500 free credits |
externalId to prevent duplicate grants. Retrying with the same value returns the existing entry.contracts:writeBearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the contract (UUID)
When these credits expire (ISO 8601). Required.
Dollar amount in cents (dollar-only mode). Use alone for grants without credit tracking.
x >= 0Rate in cents per credit (rate mode). Must be provided with creditAmount.
x >= 0Number of credits to grant (rate mode). Must be provided with creditRateCents.
x > 0500Idempotency key — resending the same value returns the existing entry.
255Specifiers that control which usage this grant can be applied to. When omitted, grant applies to ALL usage.
Arbitrary key-value metadata to attach to the grant. Internal keys (isPromotional, deductionBatchId) are reserved and will be stripped from responses.
Promotional credits granted
Response after granting credits