I've been conducting experiments on Tango Card's API testing console lately. However, every time I try to execute the code snippet below in the browser's console on that page, I consistently encounter 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);
}
});
Although the authorization and other details seem correct, I'm using the sample data provided. Do you have any insights into why this error keeps occurring?