- Merchant API
- Welcome 👋
- Get Started
- Create Your First App
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- APIs
- Orders
- Order Status
- Order Histories
- Abandoned Carts
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- Customer Groups
- Customers
- Digitals Product
- Categories
- Exports
- Shipments
- Shipping Companies
- Shipping Zones
- Shipping Rules
- Countries
- Product Option Templates
- Taxes
- Coupons
- Affiliates
- Order Assignment
- Special Offers
- Transactions
- Payments
- Settlements
- Settings
- Merchant
- Brands
- Reviews
- Branches
- Currencies
- SEO
- Cities
- DNS Records
- Languages
- Employees
- Advertisements
- Webhooks
- Custom URLs
- Loyalty Points
- Webhooks - Store Events
- Partner Apps APIs
- Shipping and Fulfilment API
- Twilight Themes
- Getting Started
- Requirements & Review
- Files and Folders Structure
- Twig Template Engine
- Theme Architecture
- Layouts
- Pages
- Componenets
- Overview
- Home Components
- Youtube
- Fixed banner
- Testimonials
- Parallax background
- Photos slider
- Store features
- Square photos
- Fixed products
- Products slider
- Featured products - Style 1
- Featured Products - Style 2
- Featured Products - Style 3
- Brands
- Enhanced Square Banners
- Main Links
- Enhanced Slider
- Slider Products with Headers
- Latest Products
- Vertical Menu with Slider
- Product Components
- Common Components
- Change Log
- Twilight JS SDK
- Twilight Web Components
- Salla CLI
Store
This endpoint is used for the purpose of rating a store. The customer will be able to send a review to a store after placing an order with that store.
TIP
The store rating endpoint has been implemented in the Rating Web Component, and It's all setup to save developer's time and effort.
Payload authenticated
Response
```Usage
To perform the action of rating a store after placing an order, the developer may use the method store()
as follows.
salla.rating.store({
comment: "Fast delivery",
order_id: 587,
rating: 5,
})
.then((response) => {
/* add your code here */
});
Events
This endpoint may trigger two events, the onStoreRated and onStoreFailed events.
onStoreRated
This event is triggered when rating a store by the customer is done without having any errors coming back from the backend.
salla.event.rating.onStoreRated((response) => {
console.log(response)
});
onStoreFailed
This event is triggered when rating a store by the customer is not completed and an error has occurred.
salla.event.rating.onStoreFailed((errorMessage) => {
console.log(errorMessage)
});

扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

