Create a notification
How to create a notification via API
Request
Arguments
Body Parameter
Type
Required
Example
curl -g -X POST \
'https://yourdomain.commercelayer.io/api/notifications' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer your-access-token' \
-H 'Content-Type: application/vnd.api+json' \
-d '{
"data": {
"type": "notifications",
"attributes": {
"name": "DDT transport document"
},
"relationships": {
"notifiable": {
"data": {
"type": "shipping_methods",
"id": "ABCRtyUpBa"
}
}
}
}
}'Last updated