Receipt items

Receipt_items_partial_update

PATCH
/api/v1/receipt-items/{id}
AuthorizationBearer <token>

In: header

Path Parameters

idinteger

A unique integer value identifying this Receipt Item.

proof_id?integer
price_id?integer
order?integer

The order of the item in the receipt. Item on top is 1.

Range-2147483648 <= value <= 2147483647
predicted_data?unknown

A dict representing the predicted data of the receipt item. For example the product name, the price etc.

status?ReceiptItemFullStatusEnum | BlankEnum | NullEnum

The current status of the item

  • 0 - deleted
  • 1 - linked_to_price
created?string

When the item was created in DB

Formatdate-time
proof_prediction?integer | null

The proof prediction used to create this receipt item. Null if created by a user.

Response Body

curl -X PATCH "https://loading/api/v1/receipt-items/0" \
  -H "Content-Type: application/json" \
  -d '{}'
{
  "id": 0,
  "proof_id": 0,
  "price_id": 0,
  "order": -2147483648,
  "predicted_data": null,
  "status": 0,
  "created": "2019-08-24T14:15:22Z",
  "updated": "2019-08-24T14:15:22Z",
  "proof_prediction": 0
}