Solved! Go to Solution.
Hi @jay solanki
The doc page here has examples.
You can call the following API to get Mint Developers details -
https://api.enterprise.apigee.com/v1/mint/organizations/{ORG_NAME}/developers/
To get address & other details of a Developer -
https://api.enterprise.apigee.com/v1/mint/organizations/{ORG_NAME}/developers/{DEVELOPER_ID}
Hi @jay solanki
The doc page here has examples.
You can call the following API to get Mint Developers details -
https://api.enterprise.apigee.com/v1/mint/organizations/{ORG_NAME}/developers/
To get address & other details of a Developer -
https://api.enterprise.apigee.com/v1/mint/organizations/{ORG_NAME}/developers/{DEVELOPER_ID}
Yes i'm following the same syntax mentioned over there for MINT_DEVELOPER_ADDRESS.but it's giving me error in it's value.i've mentioned as follows:
{
"name": "MINT_DEVELOPER_ADDRESS",
"value":
"{"address1 ":"Dev One Address",
"city ":"Pleasanton","country":"US","isPrimary":true,"state":"CA","zip ":"94588"}"
}
Is anything wrong in above?
{ "email" : "john.doe@gmail.com", "firstName" : "john", "lastName" : "doe", "userName" : "john.doe@gmail.com", "attributes" : [ { "name": "MINT_BILLING_TYPE", "value": "PREPAID" }, { "name": "MINT_DEVELOPER_ADDRESS", "value": "{\"address1\":\"Dev One Address\",\"city\":\"Pleasanton\",\"country\":\"US\",\"isPrimary\":true,\"state\":\"CA\", \"zip\":\"94588\"}" }, { "name": "MINT_DEVELOPER_TYPE", "value": "TRUSTED" }, { "name" : "MINT_SUPPORTED_CURRENCY", "value" : "USD" } ] }
Here is an e.g.
Got IT. Thank you 🙂
You should have a valid JSON. JSON has to be escaped. You can use public websites to validate the JSON before posting.
Or you can use Content-Type: application/xml to avoid json escaping.
yeah i checked that as well. evenif i'm providing valid JSON as below:
{ "email": "S****ki_J****r@i****.com", "firstName": "J**", "lastName": "So****", "userName": "jas", "attributes": [ { "name": "MINT_DEVELOPER_ADDRESS", "value": [{ "address1": "Dev One Address ", "city": "Pleasanton ", "country": "US ", "isPrimary": true, "state": "CA ", "zip": "94588 " }] }, { "name": "MINT_DEVELOPER_LEGAL_NAME", "value": "j**" } ] }
it's giving me below error while creating developer::
{ "message": "Can not deserialize instance of java.lang.String out of START_ARRAY token\n at [Source: org.apache.cxf.transport.http.AbstractHTTPDestination$1@65a99711; line: 9, column: 43]
(through reference chain: com.apigee.developer.resource.Developer[\"attributes\"]->com.apigee.organizations.keymanagement.Attribute[\"value\"])", "contexts": [] }
yeah i checked that as well. evenif i'm providing valid JSON as below:
{ "email": "Solanki_Jaykumar@infosys.com", "firstName": "Jay", "lastName": "Solanki", "userName": "jas", "attributes": [ { "name": "MINT_DEVELOPER_ADDRESS", "value": [{ "address1": "Dev One Address ", "city": "Pleasanton ", "country": "US ", "isPrimary": true, "state": "CA ", "zip": "94588 " }] }, { "name": "MINT_DEVELOPER_LEGAL_NAME", "value": "jay" } ] }
it's giving me below error while creating developer::
{ "message": "Can not deserialize instance of java.lang.String out of START_ARRAY token\n at [Source: org.apache.cxf.transport.http.AbstractHTTPDestination$1@65a99711; line: 9, column: 43]
(through reference chain: com.apigee.developer.resource.Developer[\"attributes\"]->com.apigee.organizations.keymanagement.Attribute[\"value\"])", "contexts": [] }
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |