Skip to main content
PUT
Update a purchase order receipt

Auktoriseringar

X-API-KEY
string
header
obligatorisk
OW-KEY
string
header
obligatorisk

OpenWrench shared secret. Required on every request alongside X-API-KEY; issued together with your API key.

Kropp

application/json

Receipt update payload (verified against the shared receipt constructor). Unknown fields are ignored.

receiptNumber
string
obligatorisk

REQUIRED

purchaseOrderLineItemId
integer<int64>
obligatorisk

REQUIRED

purchaseOrderId
integer<int64>
obligatorisk

REQUIRED

receivedQuantity
integer
obligatorisk

REQUIRED; must not be 0. Negative values record a return

updatedBy
string
obligatorisk

REQUIRED. Email recorded as the updater (and as receiver for a new receipt)

supplierFacilityId
integer
obligatorisk

REQUIRED

id
integer<int64>

Receipt id to update; the stored receivedBy/receivedOnWorkOrderCompletion/createdAt are preserved

partId
integer<int64>
equipmentTypeId
integer<int64>
equipmentSerialNumbers
string[]
assetTypeId
integer
pricePerQuantity
number
invoiceNumber
string
invoiceCurrency
string
invoiceTotal
string
exchangeRate
string
invoiceTotalPostExchange
string
equipmentPerStockLocationReceiptValues
object[]

Serial/asset numbers per received equipment unit. Not allowed on returns; the list size must equal receivedQuantity; serial/asset numbers already in use are rejected

assetReceiptValues
object[]

Same rules as equipmentPerStockLocationReceiptValues, validated against existing assets on the purchase order

receiptValuesWithoutId
object[]

Same size rules; not allowed on returns

Svar

Successful response

type
string
obligatorisk

Entity type label, e.g. "SupplierPurchaseOrderReceipt". Endpoints that derive it via Scala reflection (most generic list/get endpoints) may return the fully qualified server class name instead (e.g. "models.workorder.WorkOrder"); treat this field as informational.

data
object
obligatorisk
status
enum<string>
obligatorisk

"ok" on success

Tillgängliga alternativ:
ok