I'm currently experimenting on Tango's testing console for their API. However, when I open the browser's console on that page and run the following code snippet I keep getting a 415 error response.
$.ajax({
url: "https://integration-api.tangocard.com/raas/v2/customers",
type: "POST",
headers: {
'Accept': 'application/json',
'Authorization': 'Basic UUFQbGF0Zm9ybTI6YXBZUGZUNkhOT05wRFJVajNDTEdXWXQ3Z3ZJSE9OcERSVVlQZlQ2SGo='
},
data: {
"customerIdentifier": "dummy475",
"displayName": "dummy475"
},
success: function(response){
console.log(response);
}
});
The authorization and everything else is straight forward, I'm simply using the provided example data. Any ideas why I'm receiving this error?