π§βπ³Setup AfterSell Webhook
You could setup webhook manually inside Store -> Settings page or do it via API
To setup webhook you need to call
PATCH https://api.mel.store/api/mel-store/store-settings
{
"after_sell_webhook_url": "https://rbaskets.in/u0auquf",
"after_sell_webhook_key":"ua1TnsjqKADeDX2zxvp1aaDTOooXAulL9MK2sLZCT1jLRjB3YazlXFf6VajEQWtE",
"is_after_sell_webhook_on": true
}
Example of CURL
curl --location --request PATCH 'https://api.mel.store/api/mel-store/store-settings' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ****' \
--data '{
"after_sell_webhook_url": "https://rbaskets.in/u0auquf",
"after_sell_webhook_key":"ua1TnsjqKADeDX2zxvp1aaDTOooXAulL9MK2sLZCT1jLRjB3YazlXFf6VajEQWtE",
"is_after_sell_webhook_on": true
}'
field
description
after_sell_webhook_url
string, required: Your after sell webhook url
after_sell_webhook_key
string, sometimes, size:64. If you would like to check header webhook-key
on your side to verify webook, you can specify 64 characters lenght key
is_after_sell_webhook_on
boolean, true of false, should after sell webhook be enabled or not
Example of response
{
"after_sell_webhook_url": "https://rbaskets.in/u0auquf",
"after_sell_webhook_key":"ua1TnsjqKADeDX2zxvp1aaDTOooXAulL9MK2sLZCT1jLRjB3YazlXFf6VajEQWtE",
"is_after_sell_webhook_on": true
}
Last updated