Hi,
I called contact api “contacts?view=suppliers”, each contacts comes twice. company has only 4 contacts.
May I know what could be the reason, herewith I am giving returned json object.
{{
“contacts”: [
{
“url”: “https://api.sandbox.freeagent.com/v2/contacts/86326”,
“organisation_name”: “CAAX ltd”,
“first_name”: “Heet”,
“last_name”: “Patel”,
“active_projects_count”: 0,
“created_at”: “2020-09-02T17:27:40Z”,
“updated_at”: “2020-09-05T07:51:58Z”,
“email”: “heet.caax@gmail.com”,
“billing_email”: “heet.caax@gmail.com”,
“phone_number”: “7043487569”,
“address1”: “202, Chintaman elegance,”,
“town”: “Ahmedabad”,
“region”: “Gujarat”,
“postcode”: “380009”,
“address2”: “nav”,
“address3”: “, ahme”,
“contact_name_on_invoices”: true,
“country”: “India”,
“sales_tax_registration_number”: “12345”,
“charge_sales_tax”: “Auto”,
“locale”: “en”,
“mobile”: “7043487569”,
“account_balance”: “-2200.0”,
“status”: “Active”,
“uses_contact_invoice_sequence”: true,
“emails_invoices_automatically”: false,
“emails_payment_reminders”: false,
“emails_thank_you_notes”: false,
“uses_contact_level_email_settings”: true,
“default_payment_terms_in_days”: 30
},
{
“url”: “https://api.sandbox.freeagent.com/v2/contacts/86329”,
“organisation_name”: “New Supplier From Process Page”,
“first_name”: “New”,
“last_name”: “Supplier”,
“active_projects_count”: 0,
“created_at”: “2020-09-03T05:25:45Z”,
“updated_at”: “2020-09-03T05:25:45Z”,
“contact_name_on_invoices”: false,
“country”: “United Kingdom”,
“locale”: “en”,
“account_balance”: “0.0”,
“status”: “Active”,
“uses_contact_invoice_sequence”: false,
“emails_invoices_automatically”: false,
“emails_payment_reminders”: false,
“emails_thank_you_notes”: false,
“uses_contact_level_email_settings”: false,
“default_payment_terms_in_days”: 20
},
{
“url”: “https://api.sandbox.freeagent.com/v2/contacts/86328”,
“organisation_name”: “Tcs Consultancy”,
“first_name”: “Suryakant”,
“last_name”: “Patel”,
“active_projects_count”: 0,
“created_at”: “2020-09-03T04:18:44Z”,
“updated_at”: “2020-09-04T13:58:44Z”,
“email”: “s@s.com”,
“phone_number”: “50031615”,
“address1”: “Address One One”,
“town”: “Ahmedabad”,
“region”: “Gujarat”,
“postcode”: “380009”,
“contact_name_on_invoices”: false,
“country”: “India”,
“sales_tax_registration_number”: “vat101”,
“locale”: “en”,
“mobile”: “9824527887”,
“account_balance”: “-600.0”,
“status”: “Active”,
“uses_contact_invoice_sequence”: false,
“emails_invoices_automatically”: false,
“emails_payment_reminders”: false,
“emails_thank_you_notes”: false,
“uses_contact_level_email_settings”: false,
“default_payment_terms_in_days”: 25
},
{
“url”: “https://api.sandbox.freeagent.com/v2/contacts/86327”,
“organisation_name”: “Ts”,
“active_projects_count”: 0,
“created_at”: “2020-09-03T04:17:15Z”,
“updated_at”: “2020-09-04T13:57:50Z”,
“contact_name_on_invoices”: false,
“country”: “United Kingdom”,
“locale”: “en”,
“account_balance”: “-400.0”,
“status”: “Active”,
“uses_contact_invoice_sequence”: false,
“emails_invoices_automatically”: false,
“emails_payment_reminders”: false,
“emails_thank_you_notes”: false,
“uses_contact_level_email_settings”: false,
“default_payment_terms_in_days”: 30
}
]
}}
ChildrenTokens: Count = 1
Count: 1
First: {“contacts”: [
{
“url”: “https://api.sandbox.freeagent.com/v2/contacts/86326”,
“organisation_name”: “CAAX ltd”,
“first_name”: “Heet”,
“last_name”: “Patel”,
“active_projects_count”: 0,
“created_at”: “2020-09-02T17:27:40Z”,
“updated_at”: “2020-09-05T07:51:58Z”,
“email”: “heet.caax@gmail.com”,
“billing_email”: “heet.caax@gmail.com”,
“phone_number”: “7043487569”,
“address1”: “202, Chintaman elegance,”,
“town”: “Ahmedabad”,
“region”: “Gujarat”,
“postcode”: “380009”,
“address2”: “nav”,
“address3”: “, ahme”,
“contact_name_on_invoices”: true,
“country”: “India”,
“sales_tax_registration_number”: “12345”,
“charge_sales_tax”: “Auto”,
“locale”: “en”,
“mobile”: “7043487569”,
“account_balance”: “-2200.0”,
“status”: “Active”,
“uses_contact_invoice_sequence”: true,
“emails_invoices_automatically”: false,
“emails_payment_reminders”: false,
“emails_thank_you_notes”: false,
“uses_contact_level_email_settings”: true,
“default_payment_terms_in_days”: 30
},
{
“url”: “https://api.sandbox.freeagent.com/v2/contacts/86329”,
“organisation_name”: “New Supplier From Process Page”,
“first_name”: “New”,
“last_name”: “Supplier”,
“active_projects_count”: 0,
“created_at”: “2020-09-03T05:25:45Z”,
“updated_at”: “2020-09-03T05:25:45Z”,
“contact_name_on_invoices”: false,
“country”: “United Kingdom”,
“locale”: “en”,
“account_balance”: “0.0”,
“status”: “Active”,
“uses_contact_invoice_sequence”: false,
“emails_invoices_automatically”: false,
“emails_payment_reminders”: false,
“emails_thank_you_notes”: false,
“uses_contact_level_email_settings”: false,
“default_payment_terms_in_days”: 20
},
{
“url”: “https://api.sandbox.freeagent.com/v2/contacts/86328”,
“organisation_name”: “Tcs Consultancy”,
“first_name”: “Suryakant”,
“last_name”: “Patel”,
“active_projects_count”: 0,
“created_at”: “2020-09-03T04:18:44Z”,
“updated_at”: “2020-09-04T13:58:44Z”,
“email”: “s@s.com”,
“phone_number”: “50031615”,
“address1”: “Address One One”,
“town”: “Ahmedabad”,
“region”: “Gujarat”,
“postcode”: “380009”,
“contact_name_on_invoices”: false,
“country”: “India”,
“sales_tax_registration_number”: “vat101”,
“locale”: “en”,
“mobile”: “9824527887”,
“account_balance”: “-600.0”,
“status”: “Active”,
“uses_contact_invoice_sequence”: false,
“emails_invoices_automatically”: false,
“emails_payment_reminders”: false,
“emails_thank_you_notes”: false,
“uses_contact_level_email_settings”: false,
“default_payment_terms_in_days”: 25
},
{
“url”: “https://api.sandbox.freeagent.com/v2/contacts/86327”,
“organisation_name”: “Ts”,
“active_projects_count”: 0,
“created_at”: “2020-09-03T04:17:15Z”,
“updated_at”: “2020-09-04T13:57:50Z”,
“contact_name_on_invoices”: false,
“country”: “United Kingdom”,
“locale”: “en”,
“account_balance”: “-400.0”,
“status”: “Active”,
“uses_contact_invoice_sequence”: false,
“emails_invoices_automatically”: false,
“emails_payment_reminders”: false,
“emails_thank_you_notes”: false,
“uses_contact_level_email_settings”: false,
“default_payment_terms_in_days”: 30
}
]}
HasValues: true
Last: {“contacts”: [
{
“url”: “https://api.sandbox.freeagent.com/v2/contacts/86326”,
“organisation_name”: “CAAX ltd”,
“first_name”: “Heet”,
“last_name”: “Patel”,
“active_projects_count”: 0,
“created_at”: “2020-09-02T17:27:40Z”,
“updated_at”: “2020-09-05T07:51:58Z”,
“email”: “heet.caax@gmail.com”,
“billing_email”: “heet.caax@gmail.com”,
“phone_number”: “7043487569”,
“address1”: “202, Chintaman elegance,”,
“town”: “Ahmedabad”,
“region”: “Gujarat”,
“postcode”: “380009”,
“address2”: “nav”,
“address3”: “, ahme”,
“contact_name_on_invoices”: true,
“country”: “India”,
“sales_tax_registration_number”: “12345”,
“charge_sales_tax”: “Auto”,
“locale”: “en”,
“mobile”: “7043487569”,
“account_balance”: “-2200.0”,
“status”: “Active”,
“uses_contact_invoice_sequence”: true,
“emails_invoices_automatically”: false,
“emails_payment_reminders”: false,
“emails_thank_you_notes”: false,
“uses_contact_level_email_settings”: true,
“default_payment_terms_in_days”: 30
},
{
“url”: “https://api.sandbox.freeagent.com/v2/contacts/86329”,
“organisation_name”: “New Supplier From Process Page”,
“first_name”: “New”,
“last_name”: “Supplier”,
“active_projects_count”: 0,
“created_at”: “2020-09-03T05:25:45Z”,
“updated_at”: “2020-09-03T05:25:45Z”,
“contact_name_on_invoices”: false,
“country”: “United Kingdom”,
“locale”: “en”,
“account_balance”: “0.0”,
“status”: “Active”,
“uses_contact_invoice_sequence”: false,
“emails_invoices_automatically”: false,
“emails_payment_reminders”: false,
“emails_thank_you_notes”: false,
“uses_contact_level_email_settings”: false,
“default_payment_terms_in_days”: 20
},
{
“url”: “https://api.sandbox.freeagent.com/v2/contacts/86328”,
“organisation_name”: “Tcs Consultancy”,
“first_name”: “Suryakant”,
“last_name”: “Patel”,
“active_projects_count”: 0,
“created_at”: “2020-09-03T04:18:44Z”,
“updated_at”: “2020-09-04T13:58:44Z”,
“email”: “s@s.com”,
“phone_number”: “50031615”,
“address1”: “Address One One”,
“town”: “Ahmedabad”,
“region”: “Gujarat”,
“postcode”: “380009”,
“contact_name_on_invoices”: false,
“country”: “India”,
“sales_tax_registration_number”: “vat101”,
“locale”: “en”,
“mobile”: “9824527887”,
“account_balance”: “-600.0”,
“status”: “Active”,
“uses_contact_invoice_sequence”: false,
“emails_invoices_automatically”: false,
“emails_payment_reminders”: false,
“emails_thank_you_notes”: false,
“uses_contact_level_email_settings”: false,
“default_payment_terms_in_days”: 25
},
{
“url”: “https://api.sandbox.freeagent.com/v2/contacts/86327”,
“organisation_name”: “Ts”,
“active_projects_count”: 0,
“created_at”: “2020-09-03T04:17:15Z”,
“updated_at”: “2020-09-04T13:57:50Z”,
“contact_name_on_invoices”: false,
“country”: “United Kingdom”,
“locale”: “en”,
“account_balance”: “-400.0”,
“status”: “Active”,
“uses_contact_invoice_sequence”: false,
“emails_invoices_automatically”: false,
“emails_payment_reminders”: false,
“emails_thank_you_notes”: false,
“uses_contact_level_email_settings”: false,
“default_payment_terms_in_days”: 30
}
]}
Next: null
Parent: null
Path: “”
Previous: null
Root: {{
“contacts”: [
{
“url”: “https://api.sandbox.freeagent.com/v2/contacts/86326”,
“organisation_name”: “CAAX ltd”,
“first_name”: “Heet”,
“last_name”: “Patel”,
“active_projects_count”: 0,
“created_at”: “2020-09-02T17:27:40Z”,
“updated_at”: “2020-09-05T07:51:58Z”,
“email”: “heet.caax@gmail.com”,
“billing_email”: “heet.caax@gmail.com”,
“phone_number”: “7043487569”,
“address1”: “202, Chintaman elegance,”,
“town”: “Ahmedabad”,
“region”: “Gujarat”,
“postcode”: “380009”,
“address2”: “nav”,
“address3”: “, ahme”,
“contact_name_on_invoices”: true,
“country”: “India”,
“sales_tax_registration_number”: “12345”,
“charge_sales_tax”: “Auto”,
“locale”: “en”,
“mobile”: “7043487569”,
“account_balance”: “-2200.0”,
“status”: “Active”,
“uses_contact_invoice_sequence”: true,
“emails_invoices_automatically”: false,
“emails_payment_reminders”: false,
“emails_thank_you_notes”: false,
“uses_contact_level_email_settings”: true,
“default_payment_terms_in_days”: 30
},
{
“url”: “https://api.sandbox.freeagent.com/v2/contacts/86329”,
“organisation_name”: “New Supplier From Process Page”,
“first_name”: “New”,
“last_name”: “Supplier”,
“active_projects_count”: 0,
“created_at”: “2020-09-03T05:25:45Z”,
“updated_at”: “2020-09-03T05:25:45Z”,
“contact_name_on_invoices”: false,
“country”: “United Kingdom”,
“locale”: “en”,
“account_balance”: “0.0”,
“status”: “Active”,
“uses_contact_invoice_sequence”: false,
“emails_invoices_automatically”: false,
“emails_payment_reminders”: false,
“emails_thank_you_notes”: false,
“uses_contact_level_email_settings”: false,
“default_payment_terms_in_days”: 20
},
{
“url”: “https://api.sandbox.freeagent.com/v2/contacts/86328”,
“organisation_name”: “Tcs Consultancy”,
“first_name”: “Suryakant”,
“last_name”: “Patel”,
“active_projects_count”: 0,
“created_at”: “2020-09-03T04:18:44Z”,
“updated_at”: “2020-09-04T13:58:44Z”,
“email”: “s@s.com”,
“phone_number”: “50031615”,
“address1”: “Address One One”,
“town”: “Ahmedabad”,
“region”: “Gujarat”,
“postcode”: “380009”,
“contact_name_on_invoices”: false,
“country”: “India”,
“sales_tax_registration_number”: “vat101”,
“locale”: “en”,
“mobile”: “9824527887”,
“account_balance”: “-600.0”,
“status”: “Active”,
“uses_contact_invoice_sequence”: false,
“emails_invoices_automatically”: false,
“emails_payment_reminders”: false,
“emails_thank_you_notes”: false,
“uses_contact_level_email_settings”: false,
“default_payment_terms_in_days”: 25
},
{
“url”: “https://api.sandbox.freeagent.com/v2/contacts/86327”,
“organisation_name”: “Ts”,
“active_projects_count”: 0,
“created_at”: “2020-09-03T04:17:15Z”,
“updated_at”: “2020-09-04T13:57:50Z”,
“contact_name_on_invoices”: false,
“country”: “United Kingdom”,
“locale”: “en”,
“account_balance”: “-400.0”,
“status”: “Active”,
“uses_contact_invoice_sequence”: false,
“emails_invoices_automatically”: false,
“emails_payment_reminders”: false,
“emails_thank_you_notes”: false,
“uses_contact_level_email_settings”: false,
“default_payment_terms_in_days”: 30
}
]
}}