Interface Description
Before releasing a SaaS product to KooGallery, develop a production interface on your server by referring to this access guide.
The following table lists the SaaS 2.0 interface specifications.
Scenario |
SaaS |
||
One-Time Payment |
Yearly/Monthly |
Pay-per-Use |
|
Creating an instance |
Mandatory |
Mandatory |
Mandatory |
Querying instance information |
Mandatory |
Mandatory |
Mandatory |
Updating an instance |
N/A |
Mandatory |
Mandatory |
Updating the instance status |
N/A |
Mandatory |
Mandatory |
Releasing an instance |
Mandatory |
Mandatory |
Mandatory |
Upgrading an instance |
N/A |
Optional |
N/A |
When releasing a product, develop interfaces based on the delivery method and billing mode as listed in the preceding table.
If a product can be upgraded, implement the interface for instance upgrade.
Example: https://www.isvwebsite.com/saasproduce
SaaS 2.0 Instance Dialing Test Rules
After SaaS product release, KooGallery conducts interface address dialing tests every morning and afternoon to monitor the availability for order placement. If a dialing test fails, the system sends a notification to the email address or mobile number bound to your account or as a direct message. Rectify the interface promptly. The following table lists the dialing test rules.
Product Status |
Dialing Test |
---|---|
On sale |
Required |
Discontinued |
Skipped |
Withdrawn from KooGallery |
Skipped |
If the dialing test of an interface fails for five consecutive days, the KooGallery operations manager freezes the product transaction and hides the product from customers. According to the Huawei Cloud KooGallery Partner Product Seller Agreement, if the fault is not rectified in time, KooGallery has the right to remove the product from the catalog.
Interface Calling Scenario (Order Placement)
- Instance creation: A customer purchases and pays for a product.
- KooGallery calls the instance creation interface to ask you to create an instance based on the order ID.
- After receiving the request, your system calls the KooGallery API for querying an order to obtain the subscription information and subscribe to the instance.
- KooGallery calls the instance query interface to obtain instance information.
- Instance query: A customer queries information about an instance (instanceId).
- After obtaining the instance ID (instanceId) returned by the instance creation interface, KooGallery continuously calls the instance query interface until you successfully return the instance information.
- When a customer queries resource information in KooGallery, KooGallery synchronously calls the instance query interface and returns the information.
- Instance update: A customer changes trial use to commercial use, renews resources, or cancels renewals.
KooGallery calls the instance update interface to notify your system of the resource expiration time. Your system performs the corresponding action and returns the execution result to KooGallery.
- Instance status update: If an instance of a customer expires or the customer violates regulations, the instance will be frozen. After the instance is renewed or the violation is canceled, the instance will be unfrozen.
KooGallery calls the instance status update interface to ask your system to freeze or unfreeze the corresponding resource and return the execution result to KooGallery.
When a purchased product expires, the retention period starts. The retention period varies with the customer tier and can be up to 15 days long. During the retention period, the product is frozen and cannot be used. The customer can continue using the product after renewal. Therefore, you need to set a retention period to no less than 15 days for your SaaS products and retain customer data during the retention period.
- Instance release: A customer releases an instance of a purchased product (in scenarios such as no renewal upon expiration and unsubscription).
- KooGallery calls the instance release interface to ask your system to release the corresponding resource and return the execution result to KooGallery.
- Instance upgrade: A customer upgrades purchased resources and pays for the upgrade order.
- KooGallery calls the instance upgrade interface to ask your system to upgrade the corresponding resource.
- Your system calls the KooGallery API for querying an order to obtain the upgrade information, upgrades the instance, and returns the execution result to KooGallery.
For details about the instance upgrade process, see Upgrade and Billing Rules.
- Tenant synchronization
- After a customer purchases a joint operations SaaS, logs in to Huawei Cloud console, and binds the app with their enterprise, KooGallery calls this interface to ask you to synchronize the tenant information of the enterprise, save the tenant information, and return the result to KooGallery.
- If the interface fails to be called, the customer can retry calling. You will be notified of the calling failure via SMS message or email.
- When processing an interface request, your server must ensure idempotency.
For the same instance under a tenant, your server must support multiple requests for adding or deleting the instance. For subsequent additions, no new data should be generated and a success message must be returned. For deletions, you do not need to verify whether the instance generated after the instance creation interface is called exists, but you should return a success message after each deletion.
- App synchronization
- After a customer purchases a joint operations SaaS, logs in to Huawei Cloud console, and binds the app with their enterprise, KooGallery calls this interface to ask you to synchronize the authentication information of the app, save the app information, and return the result to KooGallery.
- If the interface fails to be called, the customer can retry calling. You will be notified of the calling failure via SMS message or email.
- When processing an interface request, your server must ensure idempotency.
For the same instance of the same app under a tenant, your server must support multiple requests for adding or deleting the instance. For subsequent additions, no new data should be generated and a success message must be returned. For deletions, you do not need to verify whether the instance generated after the instance creation interface is called exists, but you should return a success message after each deletion.
- App authorization
- After an administrator is authorized to manage an enterprise, logs in to Huawei Cloud console, and authorizes users in the enterprise to use apps bound to the enterprise, KooGallery asynchronously calls this interface to ask you to synchronize the user authorization information of the apps, save the information, and return the result to KooGallery.
- If the interface fails to be called, the administrator can retry synchronization. You will be notified of the calling failure via SMS message or email.
- When processing an interface request, your server must ensure idempotency.
For the same instance of the same app and userName under a tenant, your server must support multiple requests for adding or deleting the instance. For subsequent additions, no new data should be generated and a success message must be returned. For deletions, you do not need to verify whether the instance generated after the instance creation interface is called exists, but you should return a success message after each deletion.
- Organization synchronization (incremental)
- After an administrator is authorized to manage an enterprise, logs in to Huawei Cloud console, and creates, edits, or deletes departments for the enterprise, KooGallery calls this interface to ask you to synchronize organization changes, save the organization information, and return the result to KooGallery.
- When processing an interface request, your server must ensure idempotency.
For the same instance of the same orgCode under a tenant, your server must support multiple requests for adding or deleting the instance. For subsequent additions, no new data should be generated and a success message must be returned. For deletion, you do not need to verify whether the instance generated after the instance creation interface is called exists, but you should return a success message after each deletion.
- Organization synchronization (full)
- After a customer purchases a joint operations SaaS, logs in to Huawei Cloud console, and binds the app with their enterprise, KooGallery calls this interface to ask you to synchronize all organization information of the enterprise, save the organization information, and return the result to KooGallery.
- When processing an interface request, your server must ensure idempotency.
For the same instance of the same orgCode under a tenant, your server must support multiple requests. No new data should be generated and a success message must be returned.
Interface Failure Scenarios and Retry Mechanism
If an interface fails to respond, the system sends an email to the email address bound to your KooGallery account. You can query the exception information on the Service Interface Messages page of the Seller Console. Handle the exceptions as soon as possible to avoid unsubscription due to order failure.
- When the instance creation interface fails to be called,
- if service supervision is involved, KooGallery retries for 3 consecutive hours (once an hour) and sends a notification each time the interface fails to be called. During this period, you can click Restart in the Operation column on the right of the order on the Service Interface Messages page to retry calling. If the interface exception persists after 3 hours, the system determines that the order fails and cancels the order.
- if service supervision is not involved, KooGallery retries for 3 consecutive hours (once every 3 minutes) and sends a notification every five times the interface fails to be called. During this period, you can click Restart in the Operation column on the right of the order on the Service Interface Messages page to retry calling. If the interface exception persists after 3 hours, the system determines that the order fails and cancels the order.
- When the instance update interface fails to be called, KooGallery retries for an hour. You can query the exception information on the Service Interface Messages page. After rectifying the exception, click Restart in the Operation column on the right of the order on the Service Interface Messages page to retry calling.
- When the instance status update interface fails to be called, KooGallery retries for an hour. You can query the exception information on the Service Interface Messages page. After rectifying the exception, click Restart in the Operation column on the right of the order on the Service Interface Messages page to retry calling.
- When the instance upgrade interface fails to be called,
- if service supervision is involved, KooGallery retries for 3 consecutive hours (once an hour) and sends a notification each time the interface fails to be called. During this period, you can click Restart in the Operation column on the right of the order on the Service Interface Messages page to retry calling. If the interface exception persists after 3 hours, the system determines that the order fails and cancels the order.
- if service supervision is not involved, KooGallery retries for 3 consecutive hours (once every 3 minutes) and sends a notification every five times the interface fails to be called. During this period, you can click Restart in the Operation column on the right of the order on the Service Interface Messages page to retry calling. If the interface exception persists after 3 hours, the system determines that the order fails and cancels the order.
- If a joint operations kit interface fails to be called, the KooGallery retries for five consecutive times and sends a notification for each failure. During this period, you can click Restart in the Operation column on the right of the order on the Service Interface Messages page to retry calling.
If an interface fails to respond, an email, SMS message, or direct message will be sent to you. Check the email address and mobile number bound to your account and the Message Center on Huawei Cloud.
If more than five orders of a product failed in a month due to interface failures or an interface fails the dialing test for five consecutive days, KooGallery will remove the product from the catalog.
If an order is automatically canceled due to an interface failure, contact the customer at the earliest to handle the problem.
If a customer can still use expired resources due to an interface failure, you shall bear the resource loss incurred.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot