curl --request POST \
--url https://api.rootfi.dev/v4/payments/contacts \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"company_id": 123,
"name": "<string>",
"tax_number": "<string>",
"status": "ACTIVE",
"addresses": [
{
"type": "SHIPPING",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
]
}
'{
"rootfi_id": 157,
"rootfi_created_at": "2024-01-22T05:07:31.465Z",
"rootfi_updated_at": "2024-01-22T05:07:31.000Z",
"rootfi_company_id": 1089,
"platform_id": "123456",
"rootfi_deleted_at": "2023-11-07T05:31:56Z",
"platform_unique_id": "<string>",
"raw_data": {},
"data_hash": "<string>",
"name": "<string>",
"tax_number": "<string>",
"type": "CUSTOMER",
"status": "ACTIVE",
"created_at": "<string>",
"updated_at": "<string>",
"addresses": [
{
"type": "SHIPPING",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
]
}Create a new contact in the payment platform.
curl --request POST \
--url https://api.rootfi.dev/v4/payments/contacts \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"company_id": 123,
"name": "<string>",
"tax_number": "<string>",
"status": "ACTIVE",
"addresses": [
{
"type": "SHIPPING",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
]
}
'{
"rootfi_id": 157,
"rootfi_created_at": "2024-01-22T05:07:31.465Z",
"rootfi_updated_at": "2024-01-22T05:07:31.000Z",
"rootfi_company_id": 1089,
"platform_id": "123456",
"rootfi_deleted_at": "2023-11-07T05:31:56Z",
"platform_unique_id": "<string>",
"raw_data": {},
"data_hash": "<string>",
"name": "<string>",
"tax_number": "<string>",
"type": "CUSTOMER",
"status": "ACTIVE",
"created_at": "<string>",
"updated_at": "<string>",
"addresses": [
{
"type": "SHIPPING",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
]
}| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Full name or business name of the contact |
| tax_number | string | No | Tax identification number (e.g., EIN, VAT number) |
| status | string | No | Contact status (active, inactive, suspended). Defaults to active |
| addresses | array | No | Array of address objects for billing/shipping |
The Commenda company ID to create the contact under.
Full name or business name of the contact.
Tax identification number (e.g., EIN, VAT number).
Contact status. Defaults to ACTIVE.
ACTIVE, INACTIVE, SUSPENDED, ARCHIVED, UNKNOWN Array of address objects.
Show child attributes
Contact created successfully
V4 Contact model representing individuals or business entities that receive invoices and make payments.
The unique ID we assign for that data's information
157
The date at which RootFi first synced this data
"2024-01-22T05:07:31.465Z"
The latest date at which RootFi updated this data
"2024-01-22T05:07:31.000Z"
The ID of the company in the accounting platform
1089
An unique custom RootFi ID made from platform's unique_id.
"123456"
The date at which the data was deleted in the accounting platform
The ID of the data in the accounting platform.
A JSON containing fields that you can directly get from the accounting platform.
The hash of the data
Full name or business name of the contact (e.g., "Acme Corporation").
Tax identification number (e.g., EIN, VAT number, SSN).
Type of contact relationship (CUSTOMER, VENDOR, BOTH, UNKNOWN).
CUSTOMER, VENDOR, BOTH, UNKNOWN Current status of the contact account (ACTIVE, INACTIVE, SUSPENDED, ARCHIVED, UNKNOWN).
ACTIVE, INACTIVE, SUSPENDED, ARCHIVED, UNKNOWN Original creation timestamp from the source platform (ISO 8601).
Last modification timestamp from the source platform (ISO 8601).
Collection of Address objects for billing and shipping.
Show child attributes