Creates a new merchandise item.
The ID of the authorized user.
The application client secret associated with the authorized application.
The details of the merchandise item to create.
Optional
rateLimiterOptions: RateLimiterRequestOptionsOptional rate limiter settings.
An instance of DonationAlertsMerchandise representing the created item.
HttpError if the response status code is not in the 200-299 range.
UnregisteredUserError if the user is not registered in the authentication provider.
Creates or updates a merchandise item.
The ID of the user to use the access token of.
The application client secret. This secret must correspond to the application that the user authenticated.
The merchandise data to create or update.
Optional
rateLimiterOptions: RateLimiterRequestOptionsOptional rate limiter configuration.
An instance of DonationAlertsMerchandise representing the created or updated merchandise item.
A versatile method that either updates an existing merchandise item or creates a new one if it doesn't already exist.
HttpError if the response status code falls outside the 200–299 range.
UnregisteredUserError if the specified user is not registered with the authentication provider.
Sends a sale alert to DonationAlerts.
The ID of the authorized user.
The application client secret associated with the authorized application.
The sale alert data to send.
Optional
rateLimiterOptions: RateLimiterRequestOptionsOptional rate limiter settings.
An instance of DonationAlertsMerchandiseSale representing the sale alert.
HttpError if the response status code is not in the 200-299 range.
UnregisteredUserError if the user is not registered in the authentication provider.
Updates an existing merchandise item.
The ID of the authorized user.
The application client secret associated with the authorized application.
The ID of the merchandise to update.
The modified data for the merchandise item.
Optional
rateLimiterOptions: RateLimiterRequestOptionsOptional rate limiter settings.
An updated instance of DonationAlertsMerchandise
.
HttpError if the response status code is not in the 200-299 range.
UnregisteredUserError if the user is not registered in the authentication provider.
API for managing DonationAlerts' merchandise sales and items.
Remarks
The
DonationAlertsMerchandiseApi
provides methods to create, update, and manage merchandise items, as well as to notify DonationAlerts of new sales. Merchants can use this API to integrate sales systems with DonationAlerts' platform, enabling streamers to sell merchandise with flexible revenue sharing. Access is granted upon request. For details, refer to the official documentation.See
https://www.donationalerts.com/apidoc#advertisement__merchandises