POST
/
supply-chains
/
companies
curl --request POST \
  --url http://localhost:3000/connect/v1/supply-chains/companies/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "currency": "<string>",
  "created_on": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "house_name": "<string>",
  "street": "<string>",
  "city": "<string>",
  "sub_province": "<string>",
  "province": "<string>",
  "latitude": 123,
  "longitude": 123,
  "zipcode": "<string>",
  "country": "<string>",
  "email": "jsmith@example.com",
  "phone": "<string>",
  "name": "<string>",
  "buy_enabled": true,
  "sell_enabled": true,
  "quality_correction": true,
  "allow_multiple_login": true,
  "creator": "<string>",
  "updater": "<string>",
  "buyer": "<string>",
  "entity_card": "<string>"
}'
{
  "id": "<string>",
  "currency": "<string>",
  "updated_on": "2023-11-07T05:31:56Z",
  "created_on": "2023-11-07T05:31:56Z",
  "image": "<string>",
  "description": "<string>",
  "house_name": "<string>",
  "street": "<string>",
  "city": "<string>",
  "sub_province": "<string>",
  "province": "<string>",
  "latitude": 123,
  "longitude": 123,
  "zipcode": "<string>",
  "country": "<string>",
  "email": "jsmith@example.com",
  "phone": "<string>",
  "name": "<string>",
  "buy_enabled": true,
  "sell_enabled": true,
  "quality_correction": true,
  "allow_multiple_login": true,
  "creator": "<string>",
  "updater": "<string>",
  "buyer": "<string>",
  "entity_card": "<string>",
  "members": [
    "<string>"
  ],
  "products": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Body

application/json
name
string
required
Required string length: 1 - 500
id
string
currency
string
Minimum length: 1
created_on
string
description
string | null
Maximum length: 500
house_name
string | null
Maximum length: 100
street
string | null
Maximum length: 500
city
string | null
Maximum length: 500
sub_province
string | null
Maximum length: 500
province
string | null
Maximum length: 500
latitude
number
longitude
number
zipcode
string | null
Maximum length: 50
country
string | null
Maximum length: 500
email
string | null
Maximum length: 100
phone
string | null
Maximum length: 50
buy_enabled
boolean
sell_enabled
boolean
quality_correction
boolean
allow_multiple_login
boolean
creator
string
updater
string
buyer
string
entity_card
string

Response

201 - application/json
name
string
required
Required string length: 1 - 500
id
string
currency
string
Minimum length: 1
updated_on
string
created_on
string
image
string | null
description
string | null
Maximum length: 500
house_name
string | null
Maximum length: 100
street
string | null
Maximum length: 500
city
string | null
Maximum length: 500
sub_province
string | null
Maximum length: 500
province
string | null
Maximum length: 500
latitude
number
longitude
number
zipcode
string | null
Maximum length: 50
country
string | null
Maximum length: 500
email
string | null
Maximum length: 100
phone
string | null
Maximum length: 50
buy_enabled
boolean
sell_enabled
boolean
quality_correction
boolean
allow_multiple_login
boolean
creator
string
updater
string
buyer
string
entity_card
string
members
string[]
products
string[]