Partial update of a purchased item. Two equivalent lookups:
- Call by id — Fairly Made
id(UUID v4) from the201response - Call by unique identifier — your
uniqueIdentifierfrom creation
Updates are locked once traceability collection starts. If you run traceability collection (SDC) with Fairly Made, a
PATCHon this entity is taken into account only until the collection is launched for itsuniqueIdentifier. Collection can be launched only once peruniqueIdentifier— after that launch,PATCHcalls on this entity are no longer taken into account. (Brand products are the exception: they can be updated at any time.)
Call by: uniqueIdentifier — your internal reference from POST /purchased-items.
Partial update with the same body and rules as Call by id. uniqueIdentifier, buyerKind, and buyer/seller identity fields must not be included in the body.
If the item belongs to another client → 404 (PurchasedItemNotFoundByUniqueIdentifier).
System UUID of the purchased entity. Provide exactly one of itemId or itemUniqueIdentifier.
Client uniqueIdentifier of the purchased entity. Mutually exclusive with itemId.
- Mock serverhttps://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/purchased-items/by-unique-identifier/{uniqueIdentifier}
- Productionhttps://api.fairlymade.com/v3/purchased-items/by-unique-identifier/{uniqueIdentifier}
- Sandboxhttps://api.sandbox.fairlymade.com/v3/purchased-items/by-unique-identifier/{uniqueIdentifier}
curl -i -X PATCH \
'https://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/purchased-items/by-unique-identifier/{uniqueIdentifier}' \
-H 'Content-Type: application/json' \
-d '{
"itemId": "f11b669d-7201-4c21-88af-d85092f0c005",
"itemUniqueIdentifier": "string",
"purchaseOrder": "string",
"purchaseOrderDate": "2019-08-24",
"transports": [
{
"name": "BARGE",
"usagePercentage": 0
}
],
"purchasedQuantity": {
"value": 0,
"unit": "GRAMS"
},
"certifications": [
{
"certificationName": "string"
}
]
}'{}