Back to Home

Documentation

Everything you need to know to get the most out of DiscountFlow. Find guides, tutorials, and API references.

Quick Start
API References
FAQs

API References

Overview

API References
/
API Endpoints
/
Queries

Queries

Object: Product

products

Paginated list of products with optional filters.

Arguments:

ArgumentTypeDefaultDescription
filter.partnumberStringPartial match on part number
filter.descriptionStringPartial match on description
filter.modelStringPartial match on model
firstInt15Items per page
pageInt1Page number
{
  products(filter: { partnumber: "ABC" }, first: 10, page: 1) {
    data {
      id
      partnumber
      description
      model
      list_price
      msrp
      moq
      tariff_surcharge
      allow_tariff
      other_details
      created_at
      updated_at
    }
    paginatorInfo {
      currentPage
      lastPage
      total
      hasMorePages
    }
  }
}

product

Find a single product by ID.

{
  product(id: "123") {
    id
    partnumber
    description
    model
    list_price
    msrp
  }
}