Hi @david / @hillel ,
Happy new year.
Hope you are doing great.
Back with the question. We are using /api/v1/clients/{id} to get the client information. We are getting country ids in the response. We will need country name for corresponding country id. We had a look on API document, but couldnt find any supporting api to get the details about country based on country id. Could you please suggest how can we get the country name ? Sample response is given below.
Looking forward to your early and positive reply.
Thanks,
Amitkumar Panchal
{
“data”: {
“id”: “LDdwBWW8b1”,
“user_id”: “LDdwEOza1Y”,
“assigned_user_id”: “WPe9wGDbLy”,
“name”: “Traniya”,
“website”: “”,
“private_notes”: “”,
“balance”: 0,
“group_settings_id”: “”,
“paid_to_date”: 0,
“credit_balance”: 0,
“last_login”: 0,
“size_id”: “”,
“public_notes”: “”,
“client_hash”: “r0M3TRDVLs7ygwV2azQSD51p6HAfJslTBcx6532D”,
“address1”: “MyStreet”,
“address2”: “MySuite”,
“phone”: “”,
“city”: “MyCity”,
“state”: “MyState”,
“postal_code”: “11001”,
"country_id": “840”,
“industry_id”: “”,
“custom_value1”: “”,
“custom_value2”: “”,
“custom_value3”: “”,
“custom_value4”: “”,
“shipping_address1”: “MyShippingStreet”,
“shipping_address2”: “MyShippingSuite”,
“shipping_city”: “MyShippingCity”,
“shipping_state”: “MyState”,
“shipping_postal_code”: “12001”,
"shipping_country_id": “840”,
“settings”: {
“currency_id”: “2”
},
“is_deleted”: false,
“vat_number”: “”,
“id_number”: “”,
“updated_at”: 1638098612,
“archived_at”: 0,
“created_at”: 1638076555,
“display_name”: “Traniya”,
“number”: “0021”,
“contacts”: [
{
“id”: “qaQWgkmldn”,
“first_name”: “Traniya”,
“last_name”: “Geli”,
“email”: “traniya84@jmortgageli.com1”,
“created_at”: 1638076555,
“updated_at”: 1638098612,
“archived_at”: 0,
“is_primary”: true,
“is_locked”: false,
“phone”: “1212121212”,
“custom_value1”: “”,
“custom_value2”: “”,
“custom_value3”: “”,
“custom_value4”: “”,
“contact_key”: “bO3OBmUESPEGrIO37TJeXq1ENFgBRZt1MqRV6lNv”,
“send_email”: true,
“last_login”: 0,
“password”: “”,
“link”: “https://fg-testing.invoicing.co/client/key_login/bO3OBmUESPEGrIO37TJeXq1ENFgBRZt1MqRV6lNv”
}
],
“documents”: [],
“gateway_tokens”: []
}
}