Buyer communications API overview
Send order-related messages to buyers and request product reviews and seller feedback with the Messaging and Solicitations APIs.
The Messaging and Solicitations APIs let you contact buyers about a specific order. Use Messaging to confirm order, delivery, service or customization details, share an invoice, a warranty, a legal disclosure or a digital access key, or tell the buyer about an unexpected problem. Use Solicitations to ask the buyer for a product review and seller feedback.
Every message is tied to one order, and the types of message you can send depend on that order. All paths are relative to https://marketplace.walmart.com/seller/v1. Use https://sandbox.marketplace.walmart.com/seller/v1 to test.
Business use cases
- Confirm details with the buyer before you fulfill a customized or service order.
- Send documents such as an invoice, a warranty or a legal disclosure.
- Deliver digital access keys for digital items.
- Tell the buyer about a problem that affects their order.
- Ask for a review of the product and feedback on your service after the order.
How it works
- Pick the order you want to contact the buyer about.
- Check which message types are available for the order with Get the available message types for an order.
- Optionally, check the message attributes available for the order with Get the message attributes available for an order.
- Send a message of one of the available types. See Send buyer messages.
- To request a review, check the solicitation types available with Get the available solicitation types for an order, then send the solicitation. See Request reviews and feedback.
When you can message buyers
You can only send a message type that is available for the order. Availability is decided per order, so don't assume that a type you sent for one order applies to another. Before every message or solicitation, call the matching "available types" operation for that order and send only the types it returns.
Key concepts
Order identifier
Every operation takes the order identifier in the {sp-apiOrderId} path parameter. This is the marketplace order identifier of the order you are messaging about.
Marketplace
Every operation requires the marketplaceIds query parameter, the marketplace in which the order was placed. Send only one marketplace.
Message types
| Message type | Operation |
|---|---|
| Confirm customization details | confirmCustomizationDetails |
| Confirm delivery details | createConfirmDeliveryDetails |
| Confirm order details | createConfirmOrderDetails |
| Confirm service details | createConfirmServiceDetails |
| Digital access key | createDigitalAccessKey |
| Invoice | sendInvoice |
| Legal disclosure | createLegalDisclosure |
| Unexpected problem | createUnexpectedProblem |
| Warranty | CreateWarranty |
Solicitation types
The Solicitations API offers one solicitation type: a combined product review and seller feedback request.
API operations
| Operation | Method & path | Use it to |
|---|---|---|
| Get available message types | GET /messaging/v4/orders/{sp-apiOrderId} | See which messages you can send for an order |
| Get message attributes | GET /messaging/v4/orders/{sp-apiOrderId}/attributes | See the message attributes available for an order |
| Send a message | POST /messaging/v4/orders/{sp-apiOrderId}/messages/... | Send one of the nine message types above |
| Get available solicitation types | GET /solicitations/v4/orders/{sp-apiOrderId} | See which solicitations you can send for an order |
| Request a product review and seller feedback | POST /solicitations/v4/orders/{sp-apiOrderId}/solicitations/productReviewAndSellerFeedback | Ask the buyer for a review and feedback |
Best practices
- Get an access token for the seller before you call these APIs. Both APIs define
readandwritescopes. See Authentication. - Check the available types for the order before every message or solicitation.
- Send only messages related to the order.
- Handle
401by getting a new access token, and back off and retry on429.
