receipt-items

POST /api/v1/receipt-items

Changed on

Request

  • Base URL
    https://prices.openfoodfacts.org (the document declares no server; this is the origin it was published from)
  • URL
    https://prices.openfoodfacts.org/api/v1/receipt-items
  • Auth
    HTTP bearer

Request body

idinteger required
proof_idinteger required
price_idinteger required
orderinteger required

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

predicted_dataunknown
schema_versionstring nullable

The schema version of the predicted data. Used to handle changes in the prediction data structure.

createdstring date-time

When the item was created in DB

updatedstring date-time required

When the item was last updated

proof_predictioninteger nullable

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

Response

idinteger required
proof_idinteger required
price_idinteger required
orderinteger required

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

predicted_dataunknown
schema_versionstring nullable

The schema version of the predicted data. Used to handle changes in the prediction data structure.

createdstring date-time

When the item was created in DB

updatedstring date-time required

When the item was last updated

proof_predictioninteger nullable

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

Changes

    • info

      added the new optional request property (media type: application/json)

    • info

      added the new optional request property (media type: application/x-www-form-urlencoded)

    • info

      added the new optional request property (media type: multipart/form-data)

    • info

      added the optional property to the response with the status

    • info

      endpoint added