Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
7.1 kB
4
Indexable
Never
array:1 [▼
  "json" => array:2 [▼
    "query" => """
                  query SearchProducts (
                      $productName: String!,
                      $catalogId: String!,
                      $sellerStockStatus: String!,
                      $sellerServices: [String]!,
                      $productHasStock: Boolean!,
                      $page: Int!,
                      $size: Int!,
                      $sortTypes: [String],
                      $sortFields: [String],
                      $categoryIds: [String],
                      $sellerIds: [String],
                      $brandIds: [String],
                      $productTypes: [String],
                      $productPriceRange: [Float],
                      $facets: Boolean!,
                      $facetsCategoryLevel: Int!
                  ) {
                      response: searchProducts(
                          productName: $productName,
                          catalogId: $catalogId,
                          sellerStockStatus: $sellerStockStatus,
                          sellerIds: $sellerIds,
                          sellerServices: $sellerServices,
                          productHasStock: $productHasStock,
                          page: $page,
                          size: $size,
                          sort_types: $sortTypes,
                          sort_fields: $sortFields,
                          categoryIds: $categoryIds,
                          brandIds: $brandIds,
                          productTypes: $productTypes,
                          productPriceRange: $productPriceRange,
                          facets: $facets,
                          facetsCategoryLevel: $facetsCategoryLevel
                      ) {
                             products {
                                 integration_product_id
                                 name
                                 product_slug  
                                 national_codes {
                                      code
                                      acronym
                                      country
                                 }
                                 eans {
                                     ean_id,
                                     code
                                 }
                                 descriptions {
                                     title
                                     body
                                     type
                                 }
                                 medias {
                                     title
                                     resource
                                     position
                                     type
                                     is_high_quality
                                 }
                                 brand {
                                     integration_brand_id
                                     name
                                 }
                                 sales_type {
                                     country
                                 type
                                 }
                                 global_best_price {
                                      seller_name
                                      has_stock
                                      units
                                      amount
                                      currency
                                      seller_id
                                      base_price
                                 }
                                 recommended_prices {
                                     amount
                                     currency
                                     country
                                     base_price
                                 }
                                 best_seller {
                                     seller_id
                                 }
                                 sellers {
                                     seller_name
                                     integration_seller_id
                                     country_code
                                     stock_origin
                                     stock
                                     stock_type
                                     seller_id
                                     has_stock
                                     integration_seller_id
                                     amount
                                     currency
                                     base_price
                                     channel
                                     shipping_commitment
                                     realtime_stock
                                     services
                                 }
                                 main_category {
                                     category_name
                                     category_id
                                     category_code
                                 }
                                 vat_countries {
                                     vat
                                     origin
                                     country
                                 }
                             }
                             metadata {
                                 totalProducts
                                 totalPages
                                 responseTime
                             }
                             facets {
                                 categories {
                                     id
                                     name
                                     slug
                                     readable_id
                                     level
                                     total
                                 }
                                 manufacturers {
                                     id
                                     name
                                     total
                                 }
                                 prices {
                                     from
                                     to
                                     total
                                 }
                             }
                      }
                  }
      """
    "variables" => array:16 [▼
      "productName" => "crema"
      "catalogId" => "a4768472-6e0e-43fa-890e-1776d153e77f"
      "sellerStockStatus" => "active"
      "sellerIds" => null
      "sellerServices" => array:1 [▼
        0 => "marketplace"
      ]
      "productHasStock" => true
      "page" => 1
      "size" => 60
      "sortTypes" => null
      "sortFields" => null
      "categoryIds" => null
      "brandIds" => null
      "productTypes" => "bpc"
      "productPriceRange" => array:2 [▼
        0 => 10.0
        1 => 20.0
      ]
      "facets" => true
      "facetsCategoryLevel" => 0
    ]
  ]
]