prices

POST /api/v1/prices

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/prices
  • Auth
    HTTP bearer

Request body

product_codestring nullable
category_tagstring nullable
labels_tagsstring[] nullable
origins_tagsstring[] nullable
pricenumber double nullable
price_is_discountedboolean
price_without_discountnumber double nullable
datestring date nullable
receipt_quantitynumber double nullable
owner_commentstring nullable
type'PRODUCT' | 'CATEGORY'
  • PRODUCT - PRODUCT
  • CATEGORY - CATEGORY
product_namestring nullable
location_osm_idinteger nullable
location_idinteger
proof_idinteger required

Response

product_codestring nullable
category_tagstring nullable
labels_tagsstring[] nullable
origins_tagsstring[] nullable
pricenumber double nullable
price_is_discountedboolean
price_without_discountnumber double nullable
datestring date nullable
receipt_quantitynumber double nullable
owner_commentstring nullable
type'PRODUCT' | 'CATEGORY'
  • PRODUCT - PRODUCT
  • CATEGORY - CATEGORY
product_namestring nullable
location_osm_idinteger nullable
location_idinteger
proof_idinteger required

Changes

    • warning

      added the new LITER enum value to the //// response property for the response status

    • info

      added the new LITER enum value to the request property //// (media type: application/json)

    • info

      added the new LITER enum value to the request property //// (media type: application/x-www-form-urlencoded)

    • info

      added the new LITER enum value to the request property //// (media type: multipart/form-data)

    • breaking

      the request property's max was decreased to 10000000.00 (media type: application/json)

    • breaking

      the request property's max was decreased to 10000000.00 (media type: application/x-www-form-urlencoded)

    • breaking

      the request property's max was decreased to 10000000.00 (media type: multipart/form-data)

    • breaking

      the request property's max was decreased to 10000000.00 (media type: application/json)

    • breaking

      the request property's max was decreased to 10000000.00 (media type: application/x-www-form-urlencoded)

    • breaking

      the request property's max was decreased to 10000000.00 (media type: multipart/form-data)

    • breaking

      the request property type changed from no type to array (media type: application/json)

    • breaking

      the request property type changed from no type to array (media type: application/x-www-form-urlencoded)

    • breaking

      the request property type changed from no type to array (media type: multipart/form-data)

    • breaking

      the request property type changed from no type to array (media type: application/json)

    • breaking

      the request property type changed from no type to array (media type: application/x-www-form-urlencoded)

    • breaking

      the request property type changed from no type to array (media type: multipart/form-data)

    • breaking

      the response's property type changed from no type to array for status

    • breaking

      the response's property type changed from no type to array for status

    • warning

      added the new XCG enum value to the //// response property for the response status

    • warning

      added the new ZWG enum value to the //// response property for the response status

    • info

      added the new XCG enum value to the request property //// (media type: application/json)

    • info

      added the new XCG enum value to the request property //// (media type: application/x-www-form-urlencoded)

    • info

      added the new XCG enum value to the request property //// (media type: multipart/form-data)

    • info

      added the new ZWG enum value to the request property //// (media type: application/json)

    • info

      added the new ZWG enum value to the request property //// (media type: application/x-www-form-urlencoded)

    • info

      added the new ZWG enum value to the request property //// (media type: multipart/form-data)