Credits
Get Credit Definition
Retrieve a specific credit definition by ID.
Authorization
bearerAuth AuthorizationBearer <token>
Use your secret API key as the bearer token
In: header
Path Parameters
id*string
Credit definition ID
Match
^cred_def_[A-Za-z0-9]+$Response Body
application/json
application/json
application/json
curl -X GET "https://api.getlumen.dev/v1/credits/definitions/cred_def_abc123def456ghi789"{
"definition": {
"id": "string",
"merchantId": "string",
"name": "string",
"description": "string",
"scope": "component",
"applicationType": "usage",
"planId": "string",
"featureId": "string",
"featureSlug": "string",
"priceId": "string",
"priceComponentId": "string",
"defaultAmount": 0,
"refillAmount": 0,
"expiryDays": 0,
"refillRrule": "string",
"renewOnBilling": false,
"billingVisible": false,
"billingDescription": "string",
"currency": "string",
"priority": 0,
"isActive": true,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"deletedAt": "2019-08-24T14:15:22Z"
}
}{
"error": "Credit definition not found"
}{
"error": "Failed to fetch credit definition"
}