Skip to main content
POST
/
buyers
Create a buyer profile
curl --request POST \
  --url http://localhost:8000/buyers \
  --header 'Content-Type: application/json' \
  --data '
{
  "buyer_id": "<string>",
  "legal_name": "<string>",
  "trade_name": "<string>",
  "contributor_status": "<string>",
  "contributor_type": "<string>",
  "address": "<string>",
  "email": "<string>",
  "phone": "<string>",
  "notes": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "buyer_id": "<string>",
  "buyer_id_type": "<string>",
  "legal_name": "<string>",
  "trade_name": "<string>",
  "contributor_status": "<string>",
  "contributor_type": "<string>",
  "address": "<string>",
  "notes": "<string>",
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "sri_last_verified_at": "2023-11-07T05:31:56Z",
  "email": "<string>"
}

Headers

authorization
string | null
x-api-key
string | null
x-tenant-id
string | null

Cookies

factio_access_token
string | null

Body

application/json
buyer_id
string
required
buyer_id_type
enum<string>
required
Available options:
ruc,
cedula,
passport,
foreign_id
trade_name
string | null
contributor_status
string | null
contributor_type
string | null
address
string | null
email
string | null
phone
string | null
notes
string | null

Response

Successful Response

id
string<uuid>
required
buyer_id
string
required
buyer_id_type
string
required
trade_name
string | null
required
contributor_status
string | null
required
contributor_type
string | null
required
address
string | null
required
notes
string | null
required
is_active
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
sri_last_verified_at
string<date-time> | null
required
email
string | null