错误 #138
错误 #72: Mark modified data from Web order PDF onto SO in EAS
KD Customer Profile Approval Failing
100%
描述
A couple of things –
1. The url needs to be - https://customerprofiles-service-test.digikey.com/sell/customer/customerprofiles-api/v1/customers/{Web Id value}/kingdeecustomerprofile
Please note that we identify the customer by the Web Id, not the Kingdee customer number. So the endpoint needs to have the Web id
In your Test environment request (that you sent below), Web Id is 7054. So the url should be –
https://customerprofiles-service-test.digikey.com/sell/customer/customerprofiles-api/v1/customers/7054/kingdeecustomerprofile
customerData":{"accountPayment":"0","complianceProfile":"0","kingdeeCustomerTrueId":"264814","kingdeeId":"264814","shareOrderHistory":"0","shipCarrier":"0","webId":"7054"}
2. Also, I looked in the Test environment database and I don’t see any customer with Web Id value of 7054. How did you get that web Id value?
The WebID Pradip mentioned should be dynamically retrieved from this Kingdee field and added to the URL as Pradip described.
test:https://customerprofiles-service-test.digikey.com/sell/customer/customerprofiles-api/v1/customers/{webId value}/kingdeecustomerprofile
dev:https://customerprofiles-service-dev.digikey.com/sell/customer/customerprofiles-api/v1/customers/{webId value}/kingdeecustomerprofile
文件