Prices

Prices_create

POST
/api/v1/prices
AuthorizationBearer <token>

In: header

category_tag?string | null
labels_tags?unknown
origins_tags?unknown
price?number | null
Formatdouble
Range0 <= value < 100000000
price_is_discounted?boolean
price_without_discount?number | null
Formatdouble
Range0 <= value < 100000000
discount_type?DiscountTypeEnum | BlankEnum | NullEnum
price_per?PricePerEnum | BlankEnum | NullEnum
currency?CurrencyEnum | BlankEnum | NullEnum
date?string | null
Formatdate
receipt_quantity?Receipt's price quantity (user input)
Formatdouble
Range0 <= value < 10000000
owner_comment?string | null
type?TypeF36Enum
  • PRODUCT - PRODUCT
  • CATEGORY - CATEGORY
Value in"PRODUCT" | "CATEGORY"
product_code?string | null
product_name?string | null
location_osm_id?integer | null
Formatint64
Range0 <= value <= 9223372036854776000
location_osm_type?LocationOsmTypeEnum | BlankEnum | NullEnum
location_id?integer
proof_idinteger

Response Body

curl -X POST "https://loading/api/v1/prices" \
  -H "Content-Type: application/json" \
  -d '{
    "proof_id": 0
  }'
{
  "category_tag": "string",
  "labels_tags": null,
  "origins_tags": null,
  "price": 99999999,
  "price_is_discounted": true,
  "price_without_discount": 99999999,
  "discount_type": "QUANTITY",
  "price_per": "UNIT",
  "currency": "ADP",
  "date": "2019-08-24",
  "receipt_quantity": 9999999,
  "owner_comment": "string",
  "type": "PRODUCT",
  "product_code": "string",
  "product_name": "string",
  "location_osm_id": 9223372036854776000,
  "location_osm_type": "NODE",
  "location_id": 0,
  "proof_id": 0
}