1
I can’t raise a client in Asmin. I can create an invoice, and access the data, but I’m not getting a customer.
This is the request I’m making on js:
function createClient(token) {
var firstPartyClient = {
"customerGroup": "01",
"paymentMethod": "CC_DINHEIRO",
"paymentTerm": "00",
"partyTaxSchema": "IVA-RN-MN",
"locked": false,
"accountingSchema": 1,
"oneTimeCustomer": false,
"endCustomer": true,
"partyKey": "NewCustomer",
"searchTerm": "NewCustomer",
"name": "NewCustomer",
"isExternallyManaged": false,
"currency": "EUR",
"country": "PT",
"isPerson": true
};
request({
uri: customerParties,
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
'Accept': 'application/json'
},
data: firstPartyClient,
method: 'POST'
}, function (err, res, body) {
console.log(res);
console.log("status: "+res.statusCode);
console.log("status: "+err);
});
}
The mistake I get is:
"{
"validations": [
{
"propertyName": "customerPartyResource",
"errorMessage": "Ambiguous match found."
}
]
}"
I don’t know if it’s the wish that’s wrong.
You can put the Uri you’re wearing here?
– Daniel Vieira
Yes,
uri:'https://my.jasminsoftware.com/api/<tenant>/<organization>/salescore/customerParties'
– user2638929