Vendors

Create a vendor

Add a new vendor to your database.

post/v1/vendors

Request

  • Base URL: https://api.frihet.io
  • URL: https://api.frihet.io/v1/vendors
  • Auth: API key in header X-API-Key

Request body

namestring required

Vendor name (person or company)

emailstring email

Contact email

phonestring

Phone number

taxIdstring

Tax identification number (NIF/CIF/VAT)

Example request

{
  "name": "Office Depot",
  "email": "billing@officedepot.com",
  "phone": "+34 912 345 678",
  "taxId": "B87654321",
  "address": {
    "street": "Calle Gran Via 28",
    "city": "Madrid",
    "province": "Madrid",
    "zip": "28013",
    "country": "ES"
  }
}

Response

Vendor created

idstring

Unique identifier

createdAtstring date-time
updatedAtstring date-time
namestring required

Vendor name (person or company)

emailstring email

Contact email

phonestring

Phone number

taxIdstring

Tax identification number (NIF/CIF/VAT)

Example response

{
  "name": "Office Depot",
  "email": "billing@officedepot.com",
  "phone": "+34 912 345 678",
  "taxId": "B87654321",
  "address": {
    "street": "Calle Gran Via 28",
    "city": "Madrid",
    "province": "Madrid",
    "zip": "28013",
    "country": "ES"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.