Public
Documentation Settings

Magento 2 Product Alert GraphQL & Examples

POSTCustomer Token

{{magento_base_url}}/graphql
HEADERS
Content-Type

application/json

POSTGet Out-of-stock List

{{magento_base_url}}/graphql
HEADERS
Content-Type

application/json

Authorization

Bearer {{customer_token}}

POSTGet Price Alert List

{{magento_base_url}}/graphql
HEADERS
Content-Type

application/json

Authorization

Bearer {{customer_token}}

POSTCreate New Price Alert Subcribe

{{magento_base_url}}/graphql
HEADERS
Content-Type

application/json

Bodygraphql
Query
graphql
mutation NotifyPriceDrops($email: String!, $productSku: String!){
	MpProductAlertNotifyPriceDrops(
		input: { email: $email, productSku: $productSku }
	) {
		customer_email
		customer_group
		customer_id
		last_send_date
		old_price
		product_id
		send_count
		status
		status
		store_id
		subscribe_created_at
		subscribe_updated_at
		subscriber_id
		type
		website_id
        product_data {
            name
            product_image_url
            product_url
            sku
        }
	}
}
GraphQL Variables
json
{
	"email": "roni_cost@example.com",
	"productSku": "24-MB02"
}

POSTCreate New Out-of-Stock Subcribe

{{magento_base_url}}/graphql
HEADERS
Content-Type

application/json

Bodygraphql
Query
graphql
mutation NotifyInStock($email: String!, $productSku: String!) {
	MpProductAlertNotifyInStock(
		input: { email: $email, productSku: $productSku }
	) {
		customer_email
		customer_group
		customer_id
		last_send_date
		old_price
		product_id
		send_count
		status
		status
		store_id
		subscribe_created_at
		subscribe_updated_at
		subscriber_id
		type
		website_id
	}
}
GraphQL Variables
json
{
	"email": "roni_cost@example.com",
	"productSku": "24-WB04"
}
Loading