/api/v1/accounts/{accountId}/vendors (POST)
POST
/api/v1/accounts/{accountId}/vendors
const url = 'https://example.com/api/v1/accounts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/vendors';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","name":"example","kind":"store","address":"example","phone":"example","website":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/accounts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/vendors \ --header 'Content-Type: application/json' \ --data '{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "kind": "store", "address": "example", "phone": "example", "website": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”accountId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
item
required
object
id
required
string format: uuid
rowVersion
required
integer
ownerAccountId
required
string format: uuid
name
required
string
kind
required
string
address
required
string | null
phone
required
string | null
website
required
string | null
possibleDuplicates
required
Array<object>
object
id
required
string format: uuid
name
required
string
similarity
required
number
Example
{ "item": { "kind": "store" }}