API reference

Every route of the Anis Partner API, generated from the contract the gateway publishes. Each page says what the route is for, the permission it needs, how the request is signed, whether Anis signs the answer, the fields it takes and returns, and every refusal it can give.

Your application

GETRead your profile
/v1/profile
profile:read
POSTSuspend your application
/v1/application/suspend
None
POSTRevoke an application key
/v1/keys/{keyId}/revoke
None
GETList your allowed addresses
/v1/application/networks
None
POSTAllow one more address
/v1/application/networks
None
POSTRemove an address you added
/v1/application/networks/remove
None

Wallets

GETList wallets
/v1/wallets
wallets:read
GETRead a wallet
/v1/wallets/{walletId}
wallets:read

Catalogue

GETList catalogue categories
/v1/wallets/{walletId}/catalog/categories
catalogue:read
GETList subcategories of a category
/v1/wallets/{walletId}/catalog/categories/{categoryId}/subcategories
catalogue:read
GETRead a subcategory
/v1/wallets/{walletId}/catalog/subcategories/{subcategoryId}
catalogue:read
GETList cards for sale
/v1/wallets/{walletId}/catalog/subcategories/{subcategoryId}/cards
catalogue:read
GETRead a catalogue card
/v1/wallets/{walletId}/catalog/cards/{cardId}
catalogue:read

Orders

POSTPlace an order
/v1/wallets/{walletId}/orders
orders:create
GETRead an order
/v1/orders/{operationId}
orders:read

Owned cards

GETList owned cards
/v1/wallets/{walletId}/owned-cards
cards:read
GETRead an owned card
/v1/wallets/{walletId}/owned-cards/{soldCardId}
cards:read
POSTReveal a card
/v1/wallets/{walletId}/owned-cards/{soldCardId}/reveal
cards:reveal
POSTReveal an invoice
/v1/wallets/{walletId}/invoices/{invoiceId}/owned-cards/reveal
cards:reveal

Diagnostics

POSTCheck your signature
/v1/diagnostics/signature
diagnostics:use

Enrolment

GETRead an invitation
/v1/enrollments/{invitationId}
None
POSTSubmit a public key
/v1/enrollments/{invitationId}/keys
None
POSTProve you hold the key
/v1/enrollments/{invitationId}/proof
None
GETRead enrolment status
/v1/enrollments/{invitationId}/status
None

Anis signing keys

GETAnis’s public signing keys
/.well-known/partner-signing-keys.json
None

Meter charges

GETGet meter packages
/v1/wallets/{walletId}/meter-packages
meter_charges:read
GETGet my meter charges
/v1/wallets/{walletId}/meter-charges
meter_charges:read
POSTCharge a meter
/v1/wallets/{walletId}/meter-charges
meter_charges:create
GETRead a meter charge
/v1/meter-charges/{operationId}
meter_charges:read

Direct recharge

GETGet direct recharge products
/v1/wallets/{walletId}/direct-recharge-products
direct_recharges:read
GETRead a direct recharge product
/v1/wallets/{walletId}/direct-recharge-products/{productId}
direct_recharges:read
GETGet recipient locations
/v1/wallets/{walletId}/direct-recharge-products/{productId}/locations
direct_recharges:read
GETQuote a direct recharge product
/v1/wallets/{walletId}/direct-recharge-products/{productId}/quote
direct_recharges:read
GETGet my direct recharges
/v1/wallets/{walletId}/direct-recharges
direct_recharges:read
POSTRequest a direct recharge product
/v1/wallets/{walletId}/direct-recharges
direct_recharges:create
GETRead a direct recharge
/v1/direct-recharges/{operationId}
direct_recharges:read
PATCHCorrect a suspended recipient
/v1/direct-recharges/{operationId}/recipient
direct_recharges:create

Webhooks

GETRead your webhook endpoint
/v1/webhook-endpoint
None
PUTSet your webhook endpoint
/v1/webhook-endpoint
None
POSTTest your webhook endpoint
/v1/webhook-endpoint/test
None
GETGet webhook deliveries
/v1/webhook-events
None
POSTRedeliver a webhook
/v1/webhook-events/{eventId}/redeliver
None