# Create a supplier `POST /api/v1/suppliers` Creates a supplier. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Suppliers → Write**. ## Body parameters - `name` (string, required) — Supplier name, up to 191 characters. - `email` (string or null) — Contact email. - `phone` (string or null) — Phone number. - `vat` (string or null) — VAT registration number. - `taxcode` (string or null) — Tax code. - `pec` (string or null) — Certified email address. - `sdi` (string or null) — Electronic invoicing recipient code. - `address` (string or null) — Street address. - `city` (string or null) — City. - `province` (string or null) — Province or state. - `zip` (string or null) — Postal code. - `country` (string or null) — Two-letter country code. - `iban` (string or null) — Account IBAN. - `bic` (string or null) — Bank identifier code. - `is_active` (boolean) — Whether the supplier is active. - `notes` (string or null) — Notes about the supplier. - `metadata` (map or null) — Additional supplier data. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/suppliers" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "Content-Type: application/json" \ --data '{"name":"Example Sports Supplies","email":"orders@example.com"}' ``` ## Response **201 Created** The created supplier is returned in data. Example with fictional data and selected fields. ```json { "message_key": "entities.supplier.messages.created", "data": { "id": 8, "name": "Example Sports Supplies", "email": "orders@example.com", "is_active": true } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `422` — One or more fields failed validation.