API reference · Direct recharge
Get direct recharge products
GET
/v1/wallets/{walletId}/direct-recharge-productsFind direct recharge products and limits priced for this wallet. An unavailable product cannot be purchased. Billing products (billing) are not available yet.
Permission
direct_recharges:readAuthenticationSigned read
Anis’s answerNot signed
Staff-set limits it counts towardAll requests
.NET SDK
anis.DirectRechargeProducts.GetDirectRechargeProductsAsync(walletId, query)Parameters
| Name | In | Type | Notes |
|---|---|---|---|
walletIdrequired | path | UUID | A UUID, lower-case with hyphens. |
typeoptional | query | string | external or billing product filter. Billing products (billing) are not available yet. |
cursoroptional | query | string | The nextCursor of the previous page, passed back exactly as received. Leave it out for the first page. |
Request
Signed with your key. No body, no nonce.
Headers: Signature-Input, Signature, X-Anis-Date, Accept-Language (optional). The SDKs set all of them for you.
Body: none.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Success. | DirectRechargeProductCollection |
| 400 | Refused: the signed request is badly built. | Problem |
| 401 | Refused: not authenticated. | Problem |
| 403 | Refused: not allowed. | Problem |
| 404 | Refused: not found, or not yours. | Problem |
| 422 | Refused: the request breaks a rule. | Problem |
| 429 | Refused: a limit was reached. | Problem |
| 503 | No decision: a dependency was unavailable. | Problem |
The answers of this call are not signed — no Signature or Signature-Input header, success or refusal. There is nothing to verify; TLS protects them. Content-Digest and X-Request-Id are still present.
Refusals
A refusal of this call is a problem without a signature. Branch on its code; each links to what it means and what to do.
| Error | Code | Status |
|---|---|---|
| Invalid credentials | invalid_credentials | 401 |
| Malformed signed request | malformed_signed_request | 400 |
| Insufficient scope | insufficient_scope | 403 |
| Source address not allowed | source_ip_not_allowed | 403 |
| Rate limited | rate_limited | 429 |
| Validation failed | validation_failed | 422 |
| Service unavailable | dependency_unavailable | 503 |
| Request timeout | request_timeout | 504 |
| Internal error | internal_error | 500 |
| Account not authorised | binding_not_authorized | 403 |
| Account inactive | account_inactive | 403 |
| Wallet not granted | wallet_not_granted | 404 |
| Not found | resource_not_found | 404 |
| Currency not supported | currency_not_supported | 422 |
Types
DirectRechargeProductCollection
| Field | Type | Notes |
|---|---|---|
itemsalways present | list of DirectRechargeProductSummary | The records on this page. |
nextCursoralways present | string | Pass this opaque value unchanged as cursor; null marks the last page. |
DirectRechargeProductSummary
| Field | Type | Notes |
|---|---|---|
idalways present | UUID | The identifier of this product, category or location. |
titlealways present | string | The direct recharge product's display text. |
description | string | The direct recharge product's display text. |
typealways present | string | external or billing, as returned. Billing products (billing) are not available yet. Values: external, billing |
category | DirectRechargeCategory | The direct recharge product's category. |
payoutCurrencyalways present | DirectRechargeCurrency | The named payout currency; it has no invented ISO code. |
availablealways present | boolean | Whether this wallet can buy the product. A missing tier or Fazaa-only price is unavailable. |
limits | DirectRechargeLimits | This wallet tier's amount limits, when a matching tier exists. |
DirectRechargeCategory
| Field | Type | Notes |
|---|---|---|
idalways present | UUID | The identifier of this product, category or location. |
namealways present | string | The display name supplied for this item. |
icon | string | The category image URL, when supplied. |
DirectRechargeCurrency
| Field | Type | Notes |
|---|---|---|
namealways present | string | The display name supplied for this item. |
DirectRechargeLimits
| Field | Type | Notes |
|---|---|---|
minimumTotal | Money | The allowed lower or upper LYD wallet total. |
maximumTotal | Money | The allowed lower or upper LYD wallet total. |
minimumPayout | string | The lower or upper payout amount string in the product's named currency. |
maximumPayout | string | The lower or upper payout amount string in the product's named currency. |
Money
| Field | Type | Notes |
|---|---|---|
amountalways present | string | A decimal string, never a JSON number. Wallet balances may be negative while allowed debt is used. Prices and totals follow each route's amount rules. |
currencyalways present | string | An uppercase three-letter currency code, such as LYD. Read a wallet’s currency from balance.currency. |
asOf | string (date-time) | When this price or balance was read. |