# Say that a supplier sells a variant, at a unit cost

`POST /shop/supplied` · Rivier · shop

Say that a supplier sells a variant, at a unit cost.

- Scope: shop:write
- Mcp: rivier_shop_supplier_link
- Sdk: shop.supplied.create
- Cli: shop supplied create

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "supplierId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "variantId": {
      "type": "string",
      "format": "uuid"
    },
    "sku": {
      "type": "string",
      "maxLength": 100
    },
    "unitCost": {
      "type": "object",
      "properties": {
        "amountMinor": {
          "type": "integer",
          "minimum": 0
        },
        "currency": {
          "type": "string",
          "minLength": 3,
          "maxLength": 3
        }
      },
      "required": [
        "amountMinor",
        "currency"
      ],
      "additionalProperties": false
    },
    "leadTimeDays": {
      "type": "integer",
      "minimum": 0,
      "maximum": 365
    },
    "packSize": {
      "type": "integer",
      "minimum": 1,
      "default": 1
    }
  },
  "required": [
    "supplierId",
    "variantId",
    "unitCost"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/shop/supplied' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "supplierId": "string",
  "variantId": "string",
  "unitCost": {
    "amountMinor": 0,
    "currency": "string"
  }
}'
```
