Discussions
We have been working on GL Account import. A couple of questions from Jay and Priyanka I was hoping you can help answer: Attached (GLAccount_postRequest.txt and GLAccount_Request_SameAsGet.txt) are the JSON request we are using to create GLAccount using API endpoint : https://bgcascripting.imiscloud.com/api/GLAccount (POST). We are getting an error (GLAccount_postResponse_Error.txt) while making POST API call. Is there a sample JSON we can refer to?
We have been working on create new GL Account import with REST. A couple of questions from Jay and Priyanka I was hoping you can help answer:
Attached (GLAccount_postRequest.txt and GLAccount_Request_SameAsGet.txt) are the JSON request we are using to create GLAccount using API endpoint : https://clientscripting.imiscloud.com/api/GLAccount (POST).
We are getting an error (GLAccount_postResponse_Error.txt) while making POST API call.
Is there a sample JSON we can refer to?
GLAcount_postRequest.txt
Request :
{
"$type": "Asi.Soa.Commerce.DataContracts.GLAccountData, Asi.Contracts",
"FinancialEntity": {
"$type": "Asi.Soa.Commerce.DataContracts.FinancialEntitySummaryData, Asi.Contracts",
"EntityCode": "BGCSEYtest",
"InstituteParty": {
"$type": "Asi.Soa.Membership.DataContracts.PartyReferenceData, Asi.Contracts",
"Status": {
"$type": "Asi.Soa.Membership.DataContracts.PartyStatusData, Asi.Contracts"
},
"IsMarkedForDelete": false
}
},
"GLAccountCode": "78798984",
"Name": "Membership Fees Test",
"Project": {
"$type": "Asi.Soa.Commerce.DataContracts.ProjectData, Asi.Contracts",
"FinancialEntity": {
"$type": "Asi.Soa.Commerce.DataContracts.FinancialEntitySummaryData, Asi.Contracts",
"InstituteParty": {
"$type": "Asi.Soa.Membership.DataContracts.PartyReferenceData, Asi.Contracts",
"Status": {
"$type": "Asi.Soa.Membership.DataContracts.PartyStatusData, Asi.Contracts"
},
"IsMarkedForDelete": false
}
},
"Code": "Test Boys & Girls Club of Seymour"
}
}
Errors we got
Error mapping types.
Mapping types:
GLAccountData -> GLAccount
Asi.Soa.Commerce.DataContracts.GLAccountData -> Asi.EFData.V100.Commerce.Models.GLAccount
Type Map configuration:
GLAccountData -> GLAccount
Asi.Soa.Commerce.DataContracts.GLAccountData -> Asi.EFData.V100.Commerce.Models.GLAccount
Destination Member:
FinancialEntity