- Introduction to KooGallery
-
Seller Guide
- Seller Registration
- Joint Operations Certification and Product Access
- Delivery Methods
- Seller Management
- Product Management
- Service Supervision
- Transaction Management
- Settlement Management
- Bill Management
- Invoice Management
-
FAQs
-
Seller Registration
- What Are the Conditions for Registering with Huawei Cloud KooGallery?
- What Enterprise Certificates Are Needed for the Registration?
- Can an Individual User Become a Seller on KooGallery?
- What Benefits Can I Obtain After Registering with KooGallery?
- Do I Need to Pay Deposit If I Register with KooGallery?
- How Long Does It Take to Review the Registration Application?
- How Do I Change the Company Name?
-
Product Release
- How Do I Release Products on KooGallery?
- How Do I Release a Trial SaaS Specification?
- Why Can't I Select an Image as an Image Asset?
- How Long Is the Validity Period of Products on KooGallery?
- What Are the Requirements for a Product Name?
- What Are the Requirements for a Product Logo?
- What Are the Requirements for a Product Overview?
- What Are the Requirements for a Product Introduction?
- What Are the Requirements for the End User License Agreement?
- What Are the Requirements for After-Sales Support?
- What Are the Requirements for the User Guide?
- What Are the Requirements for a Business Letter?
- What Are the Requirements for a Software Copyright Certificate?
- Billing and Settlement
- Others
-
Seller Registration
-
User Guide
- Support You May Need
- Product Purchase
- Product Use
- Service Supervision
- After-Sales Support
- Renewal Management
- Unsubscription Management
- Invoice Management
- Agencies
-
FAQs
- What Is Huawei Cloud KooGallery?
- What Software and Services Are Provided on KooGallery?
- How Do I Purchase Cloud Applications on KooGallery?
- Why Can't I Use the Pay-per-Use or Yearly/Monthly Billing Mode for Certain Products?
- How Do I View Purchased Applications?
- How Do I Request Invoices After Purchasing Products from KooGallery?
- What Do I Do If I Encounter a Problem When Using a Product?
- How Do I Renew Purchased Applications?
- What Do I Do If No Applications or Services Meet My Requirements?
- How Do I Contact a Seller?
- What Do I Do If I Cannot Contact a Seller?
- Does Huawei Cloud Support Login Through Third-Party Website?
- Reseller Guide
- Access Guide
Show all
HTTP Body Signature
Definition
Each time KooGallery calls your API, KooGallery generates a signature for the request based on certain rules and adds the signature to the URL as a URL parameter. After receiving the request, you need to recalculate the signature for the request body based on the same rules, compare the signature with the signature transferred by KooGallery. If they are the same, the verification succeeds. The following table lists the parameters transferred.
Parameter |
Value |
Description |
---|---|---|
signature |
String |
Encrypted signature, which is generated by signing a request based on certain rules. |
timestamp |
Long |
UNIX timestamp, in seconds. The difference between the timestamp and the current time does not exceed 60 seconds. |
nonce |
String |
Randomly generated by KooGallery each time an API is called. You can cache it to defend against replay attacks. |
Generation Rules
- Sort request parameters by name (from Z to A). For example, a parameter whose name starts with a is placed after a parameter whose name starts with b.
- Obtain the standard request character string.
canonicalRequest = accessKey + nonce + timestamp + Lowercase(HexEncode(HMAC_SHA256 (RequestPayload)))
- Obtain the signature value for the key.
signature = HexEncode(HMAC_SHA256(canonicalRequest))
Example
The following is an example of the request received by you:
curl -X POST -H 'Content-Type: application/json' 'https://www.isvwebsite.com/saasproduce?signature=af71c5a7ef45310b8dc05ab15f********379ebaa5eb61155c0×tamp=1666677988730&nonce=RLLUammMSInlrNWb' --data '{"activity":"newInstance","buyerInfo":{"customerId":"688055*******f1aa90f1858","customerName":"CBC_marketplace_mw*******1","userId":"1e8**********7df834e4fe","userName":"CBC_marketplace_********1","mobilePhone":"1865********","email":"********@huawei.com"},"orderInfo":[{"businessId":"8a2************88-f41090522646","orderId":"CS**********","trialFlag":"0","orderAmount":12.78,"chargingMode":"PERIOD","periodType":"month","periodNumber":5,"provisionType":1,"productInfo":[{"skuCode":"a63ee5c9-4f86-11ed-9f95-fa163e8cb3b2","productId":"OFFI7889636**********8","linearValue":20}],"createTime":"20221024194509","expireTime":"20221224194509","extendParams":[{"name":"emailDomainName","value":"test.xxxx.com"},{"name":"extendParamName","value":"extendParamValue"}]}],"testFlag":"1"}'
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.