Discussions
How to get vendor address on separate fields insted of having on a single field?
Hi,
While retrieving a vendor from Rose Rocket it is providing the address information on a single field called name as shown below.
How we can get the address information separately on individual fields. We are getting the address information on separately for customer as below.
Please help us to get the address1, address2, city, state, country and postalCode information separately for Vendors.
Here is the reference link of customers.
https://roserocket.readme.io/discuss/6753f65a5de35800190715a2
Hi,
Can we have any update on this please?
Hi,
Do I have any update on this please
Hello Team,
Please help us on this.
Hi Srinivas,
Sorry for the delay here. Could you please post the request you are trying with in Postman - assuming postman based on your screenshot.
You can see the button </> Code icon in right side of the Postman app (see here for more help)
I just want to be able to reproduce what you're doing before coming up with next steps
Hi Deepan,
Here is the screenshot.
Hi Srinivas, could you actually past the contents of that right hand pane into the window here, so I can inspect it in my own postman?
Hi,
Here is the info.
GET /api/v2/platformModel/objects/ddd4c21a-239f-4d13-ba58-a50aad141186?paths=address HTTP/1.1
Host: network.roserocket.com
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InprUzNuWldLYmczb0R3cHZTWE12MiJ9.eyJodHRwczovL3Jvc2Vyb2NrZXQuY29tL3VzZXJfaWQiOiI2NTEyZTg0NS1hNTczLTRhMDItYjRjOS1jMWQyMGM0YTY5YzkiLCJodHRwczovL3Jvc2Vyb2NrZXQuY29tL29yZ19pZCI6IjlkZmE4MDI2LThhNGItNGVjZC1hMDgxLThiNjEzMTFhZjdkNyIsImh0dHBzOi8vcm9zZXJvY2tldC5jb20vdXNlcl9ncm91cCI6ImFkbWluIiwiaHR0cHM6Ly9yb3Nlcm9ja2V0LmNvbS91c2VyX3JvbGUiOiJhZG1pbiIsImh0dHBzOi8vcm9zZXJvY2tldC5jb20vb3JnX3R5cGVfaWQiOiJjYXJyaWVyIiwiaHR0cHM6Ly9yb3Nlcm9ja2V0LmNvbS9hY2Nlc3NfdHlwZSI6InJlZ3VsYXIiLCJodHRwczovL3Jvc2Vyb2NrZXQuY29tL2dpdmVuX25hbWUiOiJzYmFuZGFydSIsImh0dHBzOi8vcm9zZXJvY2tldC5jb20vZmFtaWx5X25hbWUiOiJzYmFuZGFydSIsImh0dHBzOi8vcm9zZXJvY2tldC5jb20vZW1haWwiOiJzYmFuZGFydUBzdWl0ZWVuZ2luZS5jb20iLCJodHRwczovL3Jvc2Vyb2NrZXQuY29tL3Bob25lIjoiIiwiaHR0cHM6Ly9yb3Nlcm9ja2V0LmNvbS9lbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6Ly9hLnJvc2Vyb2NrZXQuY29tLyIsInN1YiI6ImF1dGgwfDY3M2NiZWNmMjc2ZGY4NWFmYTUwMDhjNSIsImF1ZCI6Imh0dHBzOi8vcm9zZXJvY2tldC5jb20iLCJpYXQiOjE3Mzk1NTU3NTIsImV4cCI6MTczOTU3MDE1Miwic2NvcGUiOiJvZmZsaW5lX2FjY2VzcyIsImF6cCI6IllzOGpzNTBmVmNIUVp2N0JQeVBkMVNqb01JeHBYVUtkIn0.gsws7Nfz-1QmfwQwF06uxF5ibiqex9-yWJfz2Q3yyskfdf5ZA-1OFQzd4Ubve6cM3iw2jXJ0ML0NXsu6vCvGMgmGR5BqQgPbgmd0kfy2wlFW25JzUIjGlNj6AINVNVpfmSxqfri1MYzOXm_naFdYXFFCuTR2fMcpODJD8hlHd922yXCHjI2bCZjt_SO6qFPnyeaIRyoPZMoeCjlNr5k2lLZuvLgYHyj5HpJcG09-qT9gABtD0vp7cPKiQAZUyHgEwnA2HbR4RkKhxI33pTbiTiYtpeyTCIDUwCD9Dorv8kbcS4ue9LhDP0eaVWAA7wCzcz2Wys7G8x3C7YcrHKocMA
Content-Length: 277
{
"boardId": "a63b882f-5b78-5836-9989-68782e3517f7",
"connectedField": null,
"filtersOperator": "and",
"orderByColumnKey": null,
"orderByDirection": "asc",
"searchTerm": "",
"offset": 0,
"limit": 50,
"timezone": "America/Toronto"
}
Let me take a look!
I'm not sure if we can get the address to return in that original search query: but you could try to get the location object as a subsequent call by getting the ID and retrieving using this API: https://roserocket.readme.io/reference/get_objects-recordid
I'll still find out if we can get it returned in the original query, but let me know if this alternative works
In your response you can see the 'address' has an id, that'd be the recordid to use. The object type is 'location'
Try this:
curl --location 'https://example-org.roserocket.com/api/v2/platformModel/objects/[recordid]
--header 'accept: application/json'
--header 'Authorization: Bearer ****
From your screenshot, replace [recordid] with your address id (starts with ba67c58d)
ο»Ώ