The Credit Object
Overviewβ
The Credit object represents credit transactions and balances within your Verifik account. This object tracks credit purchases, usage, and administrative operations.
Attributesβ
amountβ
Type: Number
Required: No
The number of credits (default: 0).
statusβ
Type: String
Required: No
The status of the credit transaction with possible values:
approved- Credit transaction approvedpending- Credit transaction pendingfailed- Credit transaction failedpostPaid- Post-paid credit transaction
Default: null.
categoryβ
Type: String
Required: No
The category of the credit with possible values:
purchase- Credit purchase transactionusage- Credit usage transaction
Default: usage.
clientβ
Type: ObjectId
Required: No
Reference to the Client model, linking credits to a specific client account. Default: null.
superAdminβ
Type: ObjectId
Required: No
Reference to the SuperAdmin model for administrative oversight. Default: null.
descriptionβ
Type: String
Required: No
Description of the credit transaction.
transactionIdβ
Type: String
Required: No
Unique identifier for the credit transaction.
paymentMethodβ
Type: String
Required: No
Payment method used for credit purchase (e.g., "credit_card", "bank_transfer").
currencyβ
Type: String
Required: No
Currency code for the transaction (e.g., "USD", "EUR").
exchangeRateβ
Type: Number
Required: No
Exchange rate applied to the transaction.
createdAtβ
Type: Date
Required: Yes
Timestamp when the credit record was created.
updatedAtβ
Type: Date
Required: Yes
Timestamp when the credit record was last updated.
Example Objectβ
{
"_id": "credit_123456789",
"amount": 1000,
"status": "approved",
"category": "purchase",
"client": "client_123456789",
"superAdmin": "admin_123456789",
"description": "Credit purchase for API usage",
"transactionId": "txn_123456789",
"paymentMethod": "credit_card",
"currency": "USD",
"exchangeRate": 1.0,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}