SuppliersCreate Supplier

Create Supplier

Creates a new supplier for the authenticated company.

Rules:

  • The name field is required and must not be empty.
  • Two suppliers with the same name cannot exist for the same company.

Once created, use the returned supplier ID to classify expenses when recording transactions.

curl -X POST "https://api-sandbox.contasimples.com/suppliers/v1/suppliers" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "name": "Example Supplier LLC"
}'
{
  "id": 16,
  "name": "Example Supplier LLC",
  "type": {
    "id": 1,
    "type": "CUSTOM"
  }
}
POST
/suppliers/v1/suppliers
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Bearer token from OAuth 2.0 client credentials. Format: Bearer {token}

Bearer token from OAuth 2.0 client credentials. Format: Bearer {token}
Content-Typestring
Required

The media type of the request body

Options: application/json
namestring
Required

Supplier name. Must be unique per company.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Bearer token from OAuth 2.0 client credentials. Format: Bearer {token}

Body

application/json
namestring
Required

Supplier name. Must be unique per company.

Responses