I’m integrating Collective2 api to place(send signal which required system id) a trade via system(assuming it as a account). Unfortunately not able to create new system? how to create it? First i created profile, from profile i got person id i.e Results[0][Id] value.
api4-general,collective2,com/General/GetProfile(endpoint replaced ‘.’ to ‘,’)
Got following response:-
{
“Results”: [
{
“Id”: 146719372,
“Alias”: “KKKBlog”,
“FirstName”: “Pradeep”,
“LastName”: “Chauhan”,
“Email”: “pradeepchauhan808098@gmail.com”,
“Phone”: “”,
“IsPhoneVerified”: false,
“Language”: “eng”,
“CountryCode”: “in”,
“DivisionCode”: “mh”,
“Created”: “2023-12-16T00:47:12.0000000Z”,
“LastLoggedIn”: “2023-12-20T12:46:28.0000000Z”,
“LastIP”: “114.79.178.21”,
“IsEmailValidated”: true,
“IsAlive”: true,
“IsManager”: true,
“IsInvestor”: true
}
],
“ResponseStatus”: {
“ErrorCode”: “200”
}
}
api,collective2,com/world/apiv3/createNewSystem(endpoint replaced ‘.’ to ‘,’)
Following parameter passed:-
{
“site_visibility_status” : 1,
“startingcapital” : 25000,
“ownerpersonid” : 146719372,
“name” : “Test API new”,
“creditSystemTimeInSeconds” : 86400,
“apikey” : “CC2FE8CE-59FA-473F-A162-3XXXXX”
}
Got following error:-
{
“ok”: “0”,
“error”: {
“errors”: [
“apikey submitted does not control account of personid submitted”
],
“title”: “Unable to create new system”,
“message”: “There were problems with your request.”
}
}