ChemPal Documentation - v1.6.0
    Preparing search index...

    Interface AmbeedProductStockResponse

    Root of the product stock response body returned by webapi/v1/product_stock.

    interface AmbeedProductStockResponse {
        time: string;
        lang: string;
        source: number;
        code: number;
        value:
            | []
            | {
                has_stock_quantitychina: number;
                has_stock_quantityam789: number;
                size: any;
                quantityam789: number;
                quantitychina: number;
                quantityam: number;
                has_stock_quantityusa: number;
                has_stock_quantityam: number;
                has_stock?: number;
                is_login: number;
                quantity_sale: number;
                quantityusa: number;
                rows: unknown[];
            }[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    time: string

    The timestamp of the response

    lang: string

    The language of the response

    source: number

    The source of the response

    code: number

    The response code

    value:
        | []
        | {
            has_stock_quantitychina: number;
            has_stock_quantityam789: number;
            size: any;
            quantityam789: number;
            quantitychina: number;
            quantityam: number;
            has_stock_quantityusa: number;
            has_stock_quantityam: number;
            has_stock?: number;
            is_login: number;
            quantity_sale: number;
            quantityusa: number;
            rows: unknown[];
        }[]

    Per-size stock rows, or an empty array when no stock data is available.

    Type declaration

    • []
    • {
          has_stock_quantitychina: number;
          has_stock_quantityam789: number;
          size: any;
          quantityam789: number;
          quantitychina: number;
          quantityam: number;
          has_stock_quantityusa: number;
          has_stock_quantityam: number;
          has_stock?: number;
          is_login: number;
          quantity_sale: number;
          quantityusa: number;
          rows: unknown[];
      }[]
      • has_stock_quantitychina: number

        Whether the China warehouse has stock (1/0).

      • has_stock_quantityam789: number

        Whether the AM789 warehouse has stock (1/0).

      • size: any

        Size/quantity this stock row applies to.

      • quantityam789: number

        Quantity available in the AM789 warehouse.

      • quantitychina: number

        Quantity available in the China warehouse.

      • quantityam: number

        Quantity available in the AM warehouse.

      • has_stock_quantityusa: number

        Whether the USA warehouse has stock (1/0).

      • has_stock_quantityam: number

        Whether the AM warehouse has stock (1/0).

      • Optionalhas_stock?: number

        Aggregate stock flag; > 0 means in stock (absent when out of stock).

      • is_login: number

        Whether the requesting user is logged in (1/0).

      • quantity_sale: number

        Quantity available for sale.

      • quantityusa: number

        Quantity available in the USA warehouse.

      • rows: unknown[]

        Additional per-batch stock rows.