Suppliers

Suppliers

List and get suppliers. Same field names as client list items. Scope: relations.read.

List suppliers

GET /v1/suppliers
clients.read
Authorization: HTTP
name: httpBearer
type: http
scheme: bearer
Query
Name Type Description
page integer Page number (from 1, default 1)
per_page integer Items per page (default 25, max 200)
search string Free-text search
contact_type string company|private; other values ignored
Request body

None

Response
data array
id string
type string

Relation type. On write, only exact `company` stays company; any other value becomes `private`.

Enum
company private
company_name string
firstname string
lastname string
email string
phone string
city string
country string
debtor_number string
meta object
page integer
per_page integer
total integer
pages integer

Examples

GET /v1/suppliers
curl -X GET "https://api.appficient.nl/v1/suppliers" \
  -H "Authorization: Bearer apf_xxxxxxxx" \
  -H "Accept: application/json"

Curl, Node and response are shown to the right of this endpoint.

Create a supplier

POST /v1/suppliers
clients.write
Authorization: HTTP
name: httpBearer
type: http
scheme: bearer
Headers
Name Type Description
Idempotency-Key string Optional on POST only; cached 24h; replay returns X-Idempotent-Replay
Request body
type string

Relation type. On write, only exact `company` stays company; any other value becomes `private`.

Enum
company private
company_name string
firstname string
lastname string
email string
phone string
city string
country string
Response
data object

UUID `id` only; no internal integer PKs in response.

id string
type string

Relation type. On write, only exact `company` stays company; any other value becomes `private`.

Enum
company private
company_name string
firstname string
lastname string
email string
phone string
city string
country string
debtor_number string
meta object

Examples

POST /v1/suppliers
curl -X POST "https://api.appficient.nl/v1/suppliers" \
  -H "Authorization: Bearer apf_xxxxxxxx" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "company",
    "company_name": "string",
    "firstname": "string",
    "lastname": "string",
    "email": "string",
    "phone": "string",
    "city": "string",
    "country": "string"
}'

Curl, Node and response are shown to the right of this endpoint.

Retrieve a supplier

GET /v1/suppliers/{id}
clients.read
Authorization: HTTP
name: httpBearer
type: http
scheme: bearer
Path
Name Type Description
id Required string Resource id (UUID, lowercase)
Request body

None

Response
data object

UUID `id` only; no internal integer PKs in response.

id string
type string

Relation type. On write, only exact `company` stays company; any other value becomes `private`.

Enum
company private
company_name string
firstname string
lastname string
email string
phone string
city string
country string
debtor_number string
meta object

Examples

GET /v1/suppliers/{id}
curl -X GET "https://api.appficient.nl/v1/suppliers/{id}" \
  -H "Authorization: Bearer apf_xxxxxxxx" \
  -H "Accept: application/json"

Curl, Node and response are shown to the right of this endpoint.

Update a supplier

PATCH /v1/suppliers/{id}
clients.write
Authorization: HTTP
name: httpBearer
type: http
scheme: bearer
Path
Name Type Description
id Required string Resource id (UUID, lowercase)
Request body
type string

Relation type. On write, only exact `company` stays company; any other value becomes `private`.

Enum
company private
company_name string
firstname string
lastname string
email string
phone string
city string
country string
Response
data object

UUID `id` only; no internal integer PKs in response.

id string
type string

Relation type. On write, only exact `company` stays company; any other value becomes `private`.

Enum
company private
company_name string
firstname string
lastname string
email string
phone string
city string
country string
debtor_number string
meta object

Examples

PATCH /v1/suppliers/{id}
curl -X PATCH "https://api.appficient.nl/v1/suppliers/{id}" \
  -H "Authorization: Bearer apf_xxxxxxxx" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "company",
    "company_name": "string",
    "firstname": "string",
    "lastname": "string",
    "email": "string",
    "phone": "string",
    "city": "string",
    "country": "string"
}'

Curl, Node and response are shown to the right of this endpoint.