Skip to main content
POST
/
api
/
suppliers
Create Supplier
curl --request POST \
  --url https://app.polygonone.com/api/suppliers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "email": "jsmith@example.com",
  "country": "<string>",
  "address": {
    "street": "<string>",
    "postalCode": "<string>",
    "city": "<string>",
    "additional": "<string>",
    "validated": true,
    "latitude": 123,
    "longitude": 123
  },
  "contactName": "<string>",
  "externalSupplierId": "<string>",
  "associatedArticles": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
{
  "imported": [
    {}
  ],
  "failed": [
    {
      "error": "<string>"
    }
  ],
  "skipped": 123
}

Authorizations

Authorization
string
header
required

API key generated in Settings > API Keys. Include as Authorization: Bearer <key>.

Body

application/json
name
string
required

Supplier company name

email
string<email>
required

Supplier contact email

country
string
required

Country name (e.g. "Germany", "Brazil")

address
object
required
contactName
string

Contact person name

externalSupplierId
string

External ID from your ERP system

associatedArticles
string<uuid>[]

List of existing article IDs to link to this supplier

Response

Batch import result

imported
object[]

Successfully imported items

failed
object[]

Items that failed to import

skipped
integer

Number of skipped (duplicate) items