curl --request POST \
--url https://api.rootfi.dev/accounting/contacts \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"company_id": 1,
"data": [
{
"name": "Rootfi Test",
"contact_name": "Rootfi Test",
"contact_type": "CUSTOMER",
"currency_id": "GBP",
"tax_number": "1234567890",
"registration_number": "1234567890",
"email": ""
}
]
}'
{
"data": {
"status": "SUCCESS",
"upload_job_id": "xQm2K441VosP8W4",
"data": [
{
"job_id": "aXI9pUDA5T7E2LS",
"status": "success",
"response": {
"platform_id": "3770712000001686001",
"currency_id": "3770712000000000099",
"name": "Mr. John Doe",
"contact_name": "John Doe",
"contact_type": "CUSTOMER",
"tax_number": "ODSPS1279G",
"registration_number": "07CEUPK5322M1ZX",
"status": "ACTIVE",
"updated_at": "2023-11-01T00:00:00.000Z",
"raw_data": {
"platform_id": "1013",
"name": "Mr. John Doe",
"contact_name": "Mr. John Doe",
"contact_type": "CUSTOMER",
"currency_id": "1",
"status": "ARCHIVED"
}
},
"error": null
}
]
},
"request_timestamp": "2023-10-25T13:39:41.201Z",
"response_timestamp": "2023-10-25T13:39:41.201Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}Add a contact.
curl --request POST \
--url https://api.rootfi.dev/accounting/contacts \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"company_id": 1,
"data": [
{
"name": "Rootfi Test",
"contact_name": "Rootfi Test",
"contact_type": "CUSTOMER",
"currency_id": "GBP",
"tax_number": "1234567890",
"registration_number": "1234567890",
"email": ""
}
]
}'
{
"data": {
"status": "SUCCESS",
"upload_job_id": "xQm2K441VosP8W4",
"data": [
{
"job_id": "aXI9pUDA5T7E2LS",
"status": "success",
"response": {
"platform_id": "3770712000001686001",
"currency_id": "3770712000000000099",
"name": "Mr. John Doe",
"contact_name": "John Doe",
"contact_type": "CUSTOMER",
"tax_number": "ODSPS1279G",
"registration_number": "07CEUPK5322M1ZX",
"status": "ACTIVE",
"updated_at": "2023-11-01T00:00:00.000Z",
"raw_data": {
"platform_id": "1013",
"name": "Mr. John Doe",
"contact_name": "Mr. John Doe",
"contact_type": "CUSTOMER",
"currency_id": "1",
"status": "ARCHIVED"
}
},
"error": null
}
]
},
"request_timestamp": "2023-10-25T13:39:41.201Z",
"response_timestamp": "2023-10-25T13:39:41.201Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}curl --request POST \
--url https://api.rootfi.dev/accounting/contacts \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"company_id": 1,
"data": [
{
"name": "Rootfi Test",
"contact_name": "Rootfi Test",
"contact_type": "CUSTOMER",
"currency_id": "GBP",
"tax_number": "1234567890",
"registration_number": "1234567890",
"email": ""
}
]
}'
Create contacts
The company ID
1
The data to be passed through to the integration platform
Show child attributes
The ISO-4217 currency code
Name of the customer on the accounting platform
Name of the contact person for the contact
The type of customer.
CUSTOMER, VENDOR Contact’s tax number
Contact’s identifying number
Contact’s email address
Contact’s website
Contact’s fax number
The mobile numbers associated with the contact
The phone numbers associated with the contact
Array of addresses associated with the contact
A JSON containing fields that you can directly pass to the accounting platform.
Show child attributes
The status of the job.
SUCCESS, FAILED, CREATED, RUNNING The ID of the job.
Show child attributes
The ID of the job.
The status of the job.
success, failed Show child attributes
The ID that the accounting platform uses to identify this contact
The ISO-4217 currency code
Name of the customer on the accounting platform
Name of the contact person for the contact
The type of customer.
CUSTOMER, VENDOR Contact’s tax number
Contact’s identifying number
Contact’s email address
Contact’s website
Contact’s fax number
The mobile numbers associated with the contact
The phone numbers associated with the contact
The status of the contact on the accounting platform.
ACTIVE, ARCHIVED, UNKNOWN The date and time the contact was last updated
The raw JSON response we get from the accounting platform for that data
The time at which the request was received by the server
The time at which the response was sent by the server
The unique ID of the request