Mutation
mutation CreatePurchaseOrderLineItem($request: CreatePurchaseOrderLineItemCommandRequestInput!) {
CreatePurchaseOrderLineItem(request: $request) {
lineItemId
}
}Variables
{
"request": {
"purchaseOrderId": "id",
"itemId": "id",
"quantity": "value",
"netPurchasePriceAmount": "value",
"vatRatePercentage": "value"
}
}Response
{
"data": {
"CreatePurchaseOrderLineItem": {
"lineItemId": "id"
}
}
}Mutations
CreatePurchaseOrderLineItem
Adds one article position to an existing purchase order. The order must be Open or Released — from InProgress onwards the position would already be part of a goods receipt. The article must already be assigned to the order’s supplier; this endpoint never creates that assignment. Fields the caller omits are resolved from the supplier’s master data, so the smallest useful request carries the article, the quantity, the net price and the VAT rate.
If a request with this mutation’s Idempotency-Key was already completed, the response’s extensions contains an idempotency.{responseName} entry with wasReplayed: true.
MUTATION
CreatePurchaseOrderLineItem(request: CreatePurchaseOrderLineItemCommandRequestInput!): CreatePurchaseOrderLineItemCommandResponse!Arguments
request
lineItemId
ID!
Unique ID of the newly created line item.
Mutation
mutation CreatePurchaseOrderLineItem($request: CreatePurchaseOrderLineItemCommandRequestInput!) {
CreatePurchaseOrderLineItem(request: $request) {
lineItemId
}
}Variables
{
"request": {
"purchaseOrderId": "id",
"itemId": "id",
"quantity": "value",
"netPurchasePriceAmount": "value",
"vatRatePercentage": "value"
}
}Response
{
"data": {
"CreatePurchaseOrderLineItem": {
"lineItemId": "id"
}
}
}Was this page helpful?