Follow

A limit in the amount of SOAP calls will take place 1.7.2016

100 000 calls per day per organization, starting from July 1st 2016

We want to offer to all our API users a stable, fast and good quality API service and due to this, starting from July 1st 2016 Severa API will have a limit of 100 000 calls per day per company.

If the limit is exceeded, Severa responds with an error stating too many requests. This quota gets reset when UTC day changes.

Starting from 28th of June

Each API call will return additional header in each API call.

Response will have "Quota"-header which tells daily quota and "UsedQuota"-header which includes used daily quota.

Here's example of returned response with quota information

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

   <s:Header>

      <Quota xmlns="http://soap.severa.com/">100000</Quota>

      <UsedQuota xmlns="http://soap.severa.com/">2</UsedQuota>

   </s:Header>

   <s:Body>

      <GetAllAccountsResponse xmlns="http://soap.severa.com/">

         <GetAllAccountsResult xmlns:a="http://schemas.datacontract.org/2004/07/Severa.Entities.API" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>

      </GetAllAccountsResponse>

   </s:Body>

</s:Envelope>

Here's Visual Basic example how client can access these headers

Dim Quota As String = headers.GetHeader(Of String)("Quota", "http://soap.severa.com/")

Dim usedQuota As String = headers.GetHeader(Of String)("UsedQuota", "http://soap.severa.com/")

When quota has been reached S3 API starts to return any authenticated requests with fault exception

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

   <s:Header>

      <Quota xmlns="http://soap.severa.com/">100</Quota>

      <UsedQuota xmlns="http://soap.severa.com/">111</UsedQuota>

   </s:Header>

   <s:Body>

      <s:Fault>

         <faultcode>s:Client</faultcode>

         <faultstring xml:lang="en-US">Quota limit reached</faultstring>

         <detail>

            <QuotaLimitExceededException xmlns="http://schemas.datacontract.org/2004/07/Severa.API" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

               <Description>Quota limit</Description>

               <Source i:nil="true"/>

            </QuotaLimitExceededException>

         </detail>

      </s:Fault>

   </s:Body>

</s:Envelope>

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Powered by Zendesk