π¨βπ¬Test AfterSell Webhook
To check if your url is working and recieve a test event you may call following endpoint
Authorization: Bearer β’β’β’
POST https://api.mel.store/api/mel-store/store-settings/test-sell-webhook
Example of CURL
curl --location --request POST 'https://api.mel.store/api/mel-store/store-settings/test-sell-webhook' \
--header 'Authorization: Bearer β’β’β’β’β’β’' \
--data ''
If you webhook returns 200 code then you recieve 1 and status code 200
On your webhook url you can recieve a test event with following structure and Webhook-key header
{
"headers": {
"Content-Type": [
"application/json"
],
"Webhook-Key": [
"ua1TnsjqKADeDX2zxvp1aaDTOooXAulL9MK2sLZCT1jLRjB3YazlXFf6VajEQWtE"
],
},
"content_length": 465,
"body": "see below",
"method": "POST",
}
Body
{
"uuid": "e0abbf80",
"amount": 1299,
"vat": 259.8,
"total_amount": 1558.8,
"currency": "USD",
"commission": 76.38,
"metadata": {
"order_id": 966,
"shop_url": "https://strosin.com/repellat-et-et-veniam-eaque-officiis"
}
"additional_fields": {
"telegram_username": "@gusikowski.kelsi",
"birth_date": "11.11.2001"
},
"exchange_rate": 1,
"customer_phone": "+14178716680",
"customer_name": "Haven Weimann",
"customer_email": "claudine18@yahoo.com",
"created_at": 1726048320,
"product_id": 1,
"product_title": "Introduction To Modeling And Simulation",
"product_type": "CustomService",
"trigger_type": "manual"
}
To get full explanation of fileds please reffer to After Sell Webhook section
Last updated