Developers

Guides

Markdown

Customer support and reviews

Find the customer and their order in seconds, answer product questions and reviews, write on the order and tell the customer.

What your app needs

You want toScopeWhere
Find a customer by phone or emailcustomers.list:readGET /customers
Read their orders, status and itemsorders:readGET /orders
Follow a shipmentorders:readdelivery on the order, order.shipment.updated
Resend a digital code or linkorders.digital:readGET /orders/{id}/digital-items
Write on the order pageorders.notes:writePATCH /orders/{id}/note
Email the customercustomers.notify:writePOST /orders/{id}/notifications
Change the order statusorders.status:writePATCH /orders/{id}/status
Read and answer product questionsquestions:read, questions:writeGET /questions, POST /questions/{id}/answer
Read reviewsreviews:readGET /reviews
Reply to a reviewreviews.reply:writePOST /reviews/{id}/reply
Publish or hide a reviewreviews.moderation:writePATCH /reviews/{id}/moderation

From a message to the order

A customer writes to you with a phone number or an order number:

cURL
# By order number
curl "https://larm.sa/stores/$STORE_ID/v1/orders?number=200123" -H "Authorization: Bearer $ACCESS_TOKEN"

# By phone: find the customer, then their orders
curl "https://larm.sa/stores/$STORE_ID/v1/customers?phone=0512345678" -H "Authorization: Bearer $ACCESS_TOKEN"
curl "https://larm.sa/stores/$STORE_ID/v1/orders?customer_id=5821" -H "Authorization: Bearer $ACCESS_TOKEN"

The order gives you the status, the items, the shipment with its tracking link, and what the customer wrote at checkout. customer_id finds every order placed with that customer's email, guest orders included.

Write on the order

  • A note shows on the customer's order page and sends no email. It replaces the note the merchant wrote, so read merchant_note first.
  • An email arrives in the customer's inbox, in the store's name, and goes into the order's message log.

Questions and reviews

Subscribe to question.created and review.created.

  • An answer shows under the product, and the customer receives it by email the first time. Their email is not given to your app.
  • A reply to a review shows under it for visitors. The words of the customer cannot be changed, and the name of the reviewer is not given to your app.
  • New reviews start unpublished until they are approved, by the merchant or by your app.

Refunds

Your app cannot refund. When a customer deserves one, tell the merchant. A refund the merchant makes reaches you as order.refunded.

    ↑↓ moveEnter openEsc close