API reference · Meter charges

Get meter packages

GET/v1/wallets/{walletId}/meter-packages

Choose a package at the price this wallet pays. Send its unitPrice as expectedTotal when charging.

Permissionmeter_charges:read
AuthenticationSigned read
Anis’s answerNot signed
Staff-set limits it counts towardAll requests
.NET SDKanis.MeterCharges.GetMeterPackagesAsync(walletId)

Parameters

NameInTypeNotes
walletIdrequiredpathUUIDA UUID, lower-case with hyphens.
cursoroptionalquerystringThe 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

StatusMeaningBody
200Success.MeterPackageCollection
400Refused: the signed request is badly built.Problem
401Refused: not authenticated.Problem
403Refused: not allowed.Problem
404Refused: not found, or not yours.Problem
409Refused: conflicts with the current state.Problem
422Refused: the request breaks a rule.Problem
429Refused: a limit was reached.Problem
503No 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.

ErrorCodeStatus
Invalid credentialsinvalid_credentials401
Malformed signed requestmalformed_signed_request400
Insufficient scopeinsufficient_scope403
Source address not allowedsource_ip_not_allowed403
Rate limitedrate_limited429
Validation failedvalidation_failed422
Service unavailabledependency_unavailable503
Request timeoutrequest_timeout504
Internal errorinternal_error500
Account not authorisedbinding_not_authorized403
Account inactiveaccount_inactive403
Wallet not grantedwallet_not_granted404
Not foundresource_not_found404
Currency not supportedcurrency_not_supported422
Wallet disabledwallet_disabled409
Wallet expiredwallet_expired409
Business subscription requiredbusiness_subscription_required409

Types

MeterPackageCollection

FieldTypeNotes
itemsalways presentlist of MeterPackageThe records on this page.
nextCursoralways presentstringPass this opaque value unchanged as cursor; null marks the last page.

MeterPackage

FieldTypeNotes
idalways presentUUIDThe meter package identifier.
namealways presentstringOne stored package name, not a bilingual text object.
gecolPackageNamealways presentstringThe electricity supplier's package name.
logostringThe package image URL.
unitPricealways presentMoneyWhat this wallet pays; send this Money value as expectedTotal.
businessPriceMoneyBusiness display price, included only when applicable.
personalPricealways presentMoneyThe retail display price, when supplied; do not substitute it for the payable total.

Money

FieldTypeNotes
amountalways presentstringA 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 presentstringAn uppercase three-letter currency code, such as LYD. Read a wallet’s currency from balance.currency.
asOfstring (date-time)When this price or balance was read.