跳到主要内容

getWalletService

WalletServiceWrapper getWalletService(service)

GET /api/2.0/portal/payment/walletservice

Get a wallet service

Returns one wallet service by name, for a client that already knows which service it needs and does not want the whole catalogue. service is the name of the service - Storage, Backup, AITools, Admin, DocsCloud, DocsCloudDevPack or AISearch - and a name this installation does not sell answers 404. Nothing has to be called first, the caller needs the permission to edit the portal settings, and the call is read-only. The answer has the same shape as one item of GET api/2.0/portal/payment/walletservices - the price of a unit, the unit, the limits the service grants and its service name - except that the variants of a service are not grouped into innerServices here, because a single service is looked up directly. The price is in the currency resolved for the request.

Parameters​

NameInTypeDescriptionNotes
servicequeryTenantWalletServiceThe service to look up, given by its catalogue name. A service this installation does not sell answers 404, and the whole catalogue is GET api/2.0/portal/payment/walletservices.[required] [example: Storage] [enum: -18, -16, -15, -14, -13, -12, -11]

Responses​

Status codeDescriptionTypeResponse headers
200The wallet service with its price, unit and the limits it grantsWalletServiceWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
400service is sent empty, or is neither the name nor the number of a wallet service--
403The caller has no portal-settings right--
404This installation does not sell a wallet service under that name--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
500Internal Server Error.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON.--

Return type​

WalletServiceWrapper

Authorization​

Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json