Here is a MCV:
let options = {
auth: {
clientId: '<ClientId goes here>',
clientSecret: '<ClientSecret goes here>'
}
};
const RestClient = new FuelRest(options);
options = {
method: 'GET',
uri: '/messaging/v1/messageDefinitionSends/key:extern_id123/deliveryRecords/b648d03asdd6-af44-4564-8a3ad123d-a8f4caddadsa2512f7',
headers: {
'Content-Type': 'application/json'
}
};
return RestClient.get(options);
Im getting a 404 response code from this request. Is the last parameter of the URI suppose to be 'RecipientSendId' because the docs don't say if the last parameter is that? Also why am I getting a 404 response?
Link to docs: https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/messageDefinitionSendsDeliveryRecords.htm