# Shop reorder draft

`POST /shop/reorders/draft` · Rivier · shop

Draft purchase orders for the variants whose stock is at or below its reorder point.

- Scope: shop:write
- Mcp: rivier_shop_reorders_draft
- Sdk: shop.reorder.draft
- Cli: shop reorder draft

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "variantId": {
            "type": "string",
            "format": "uuid"
          },
          "reorderPoint": {
            "type": "integer",
            "minimum": 0
          },
          "target": {
            "type": "integer",
            "minimum": 1
          }
        },
        "required": [
          "variantId",
          "reorderPoint",
          "target"
        ],
        "additionalProperties": false
      },
      "maxItems": 500
    }
  },
  "additionalProperties": false
}
```

## Responses

- `200`: 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/reorders/draft' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "rows": [
    {
      "variantId": "string",
      "reorderPoint": 0,
      "target": 0
    }
  ]
}'
```
