Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Authorization: Bearer <token>. Accepts EITHER a Keycloak access token (scopes-in-token) OR an opaque POS session token; both resolve to the same pos.* scope vocabulary the route guards enforce.

Body

application/json
id
string
required

Caller-supplied unique order id (409 if it already exists).

Minimum string length: 1
supplierId
string
required

Supplier (fournisseur) the order is placed with.

Minimum string length: 1
shopId
string
required

Store (magasin) the goods are ordered for.

Minimum string length: 1
lines
object[]
required

The ordered lines (commande fournisseur); at least one.

Minimum array length: 1

Response

The created purchase order (status open).

The created purchase order (status open).

id
string
required
Minimum string length: 1
supplierId
string
required
Minimum string length: 1
shopId
string
required
Minimum string length: 1
status
enum<string>
required
Available options:
open,
received
lines
object[]
required