I'm currently playing with and validating commercetools api. I want to subscribe to a certain SQS queue, in order to push messages to this queue. However if im trying to add a subscription for a certain message type, the api returns:
{"statusCode":400,"message":"The TypeId 'DeliveryAdded' is unknown or not supported by subscriptions.","errors":[{"code":"InvalidInput","message":"The TypeId 'DeliveryAdded' is unknown or not supported by subscriptions."}]}] with root cause
For resourceTypeId, I use the above mentioned names (e.g. DeliveryAdded) The request itself is fine. I tried some different types, always with the same result. Is there any MessageType, which is actually supported for subscriptions ?
Edit:
POST https://api.sphere.io/some-project/subscriptions HTTP/1.1
{
"destination" : {
"type" : "SQS",
"accessKey" : "XXXXXXXX",
"accessSecret" : "XXXXXXXX",
"region" : "EU",
"queueUrl" : "https://sqs.eu-central-1.amazonaws.com/XXXXXX/YYYYYYYY"
},
"messages" : [ {
"resourceTypeId" : "CustomerCreated"
} ]
for the CustomerCreated
Message the resourceTypeId
should be customer
please find a list of supported resource type ids on:
http://dev.commercetools.com/http-api-projects-subscriptions.html#changesubscription