Типи даних

Замовлення

Статуси для замовлень

  • pending
  • processing
  • saled
  • cancelled
  • delivering
  • delivered
  • received
  • refund
  • arrived
  • Або ваш персональний статус

InfoType

Структура:

{
    "is_paid": bool,  // флажок про те, чи сплачене замовлення
    "payment_type": string,  // The name of the payment method that is accepted in your system
    // Optional
    "order_text": str  // alternative order_id as a pseudonym; only for display
}

OrderDataType

Структура:

[
    {
        "id": int,  // ID product in your system
        "name": string,  // Name product
        "product_id": int or null,  // "remote_id"; ID of the product, which is fixed in the HugeProfit system as an aid of the product on the marketplace. If the product is synchronized with the marketplace, then the indication of this key simplifies the finding of the product. It is recommended to leave this NULL field and use "local_product_id"
        "sku": string,  // article
        "quantity": float or int,  // quantity product in order
        "price": float or int,  // The price of one unit of goods
        "total": float or int,  // The amount of prices of all units of this product in this order
        "is_paid": bool,  // Paid?
        "payment_type": string,  // The name of the payment method that is accepted in your system
        // if this product in HugeProfit system
        "local_product_id": int  // ID product in HugeProfit system
    }
]

Примітка. Якщо ви знаєте, що цей товар існує в системі Hugeprofit, просто вкажіть ідентифікатор товару в полі local_product_id.

RemoteAddressType

Структура:

{
    // Require
    "address_1": string,  // Actual delivery address
    "city": string,  // Delivery city
    "delivery_cost": int or float  // Delivery cost
    // Optional
    "ttn": string  // int-like string of delivery code
    "delivery_operator": string  // See options below
}

delivery_operator Опції:

  • nova_poshta
  • ukrposhta

Обʼєкти та структури продажів

Статуси продажів за замовчуванням

  • saled
  • reserve_sale
  • cod
  • delivery
  • delivering
  • on-delivering
  • refund
  • arrived