Notifications overview
Receive alerts from Walmart Marketplace at destinations you define, instead of polling the APIs for changes.
Notifications let Walmart tell your application when something happens, so you don't have to keep polling the APIs. Polling uses up your rate limits and delays your reaction to changes. With notifications, you register where alerts should go and which delivery types you want, and Walmart sends them for you.
The Notifications API is built on two resources: destinations, which describe where notifications are delivered, and subscriptions, which turn on a notification type for your account.
Key capabilities
- Manage destinations. Create, list, view and delete the destinations that receive your notifications.
- Subscribe by notification type. Create a subscription for a notification type, then view or delete it.
- Test before you go live. Send a test notification to confirm your setup works end to end.
Benefits
- React to changes faster than a polling schedule allows.
- Make fewer API calls and stay well within your rate limits.
- Keep notification setup in code, so you can repeat it for every seller account you manage.
How it works
- Get an access token. See Authentication.
- Create a destination with
POST /v4/notifications/destinations. Walmart returns the destination with itschannelId. - Create a subscription for a notification type with
POST /v4/notifications/subscriptions/{notification-type}. - Send a test notification with
POST /v4/notifications/{notification-type}/test-notificationand confirm it arrives. - Review your setup at any time with the get operations, and delete subscriptions or destinations you no longer need.
Key concepts
Destinations
A destination (returned as a channel object) describes where notifications go. It has:
| Field | Description |
|---|---|
channelId | The identifier Walmart generates when you create the destination. Use it as destination-id |
channelOwner | The owner of the destination. Required |
channelName | A name for the destination. Required |
type | The destination type. Required |
webhookConfig | Webhook configuration, as an object |
status | The destination's current status |
createdTimestamp, lastModifiedTimestamp | When the destination was created and last changed, as integer timestamps |
Notification types
Subscriptions, test notifications and subscription lookups are organized by notification type. The
notification-type path parameter must be one of:
| Notification type | Delivery |
|---|---|
EMAIL | |
WEBHOOKS | Webhook (HTTP) delivery to a destination |
SMS | Text message |
PULL | Notifications your application retrieves |
MOBILE_PUSH | Mobile push notification |
Subscriptions
A subscription turns on a notification type for your account. Each subscription has a subscription-id that you use
to view or delete it. When you get the subscription for a type, you can pass payloadVersion to choose the version of
the payload object used in the notification.
API operations
| Operation | Method & path | Use it to |
|---|---|---|
| Create destination | POST /v4/notifications/destinations | Register where notifications are delivered |
| Get destinations | GET /v4/notifications/destinations | List all your destinations |
| Get destination | GET /v4/notifications/destinations/{destination-id} | View one destination |
| Delete destination | DELETE /v4/notifications/destinations/{destination-id} | Remove a destination |
| Create subscription | POST /v4/notifications/subscriptions/{notification-type} | Subscribe to a notification type |
| Get subscription | GET /v4/notifications/subscriptions/{notification-type} | View your subscription for a notification type |
| Get subscription by ID | GET /v4/notifications/{notification-type}/subscriptions/{subscription-id} | View a specific subscription |
| Delete subscription | DELETE /v4/notifications/{notification-type}/subscriptions/{subscription-id} | Remove a subscription |
| Send test notification | POST /v4/notifications/{notification-type}/test-notification | Confirm delivery works |
Best practices
- Test every new setup. Send a test notification after you create or change a subscription.
- Respond quickly at webhook destinations. Acknowledge each delivery fast and process it in the background.
- Keep polling as a fallback. Notifications reduce polling but don't replace periodic checks against the source APIs for critical data.
- Clean up. Delete subscriptions and destinations you no longer use so alerts don't go to retired systems.
- Back off on
429. If you get429 Too Many Requests, wait and retry with increasing delays.
