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
Minimum string length: 1
supplierId
string
required
Minimum string length: 1
shopId
string
required
Minimum string length: 1
lines
object[]
required
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