Contacts

Create a contact

Refused with 409 code duplicate_contact and existingContact (id, name, type, isActive) when a live contact in the company already has the same normalized name (case, punctuation, spacing, a leading "The" and a trailing LLC/Inc-style suffix are ignored). Use the existing contact, or PATCH its type to both, instead of creating a duplicate.

post/contacts

Request

  • Base URL: https://ledgerhq.pro/api/v1
  • URL: https://ledgerhq.pro/api/v1/contacts
  • Auth: one of:
    • HTTP bearer and API key in header x-organization-id
    • HTTP bearer and API key in header x-organization-id

Request body

namestring required
emailstring email nullable
phonestring nullable
taxNumberstring nullable
type'customer' | 'supplier' | 'both'
paymentTermsDaysinteger
notesstring nullable
currencyCodestring

Response

Created contact

Changes

No recorded changes to this operation across all 3 revisions of this API.