Supplier / Vendor information

golabekpgolabekp Member Posts: 14

Hi

Is it possible to extract supplier/vendor/purchase information from the api. I have gone through the documentation and cannot seem to see anything on that side.

Comments

  • RobVGRobVG Member Posts: 53 admin

    Hi @golabekp,

    Today we released a change to the API that allows you to list and get vendor details. The API reference documentation was updated. Hopefully this data is enough for your use case :smile:

    query ListVendors ($businessId: ID!) {
      business(id: $businessId) {
        id
        vendors {
          pageInfo {
            currentPage
            totalPages
            totalCount
          }
          edges {
            node {
              id
              name
              firstName
              lastName
              email
              displayId
              mobile
              phone
              fax
              tollFree
              website
              internalNotes
              address {
                addressLine1
                addressLine2
                city
                province {
                  code
                }
                country {
                  code
                }
                postalCode
              }
              shippingDetails {
                name
                phone
                instructions
                address {
                  addressLine1
                  addressLine2
                  city
                  province {
                    code
                  }
                  country {
                    code
                  }
                  postalCode
                }
              }
              createdAt
              modifiedAt
            }
          }
        }
      }
    }
    
  • golabekpgolabekp Member Posts: 14

    Thanks so much @RobVG well done.

    Just for interest sakes what is the scope is required, and is there a query to return purchases for the vendor - I see that there is a query for products by vendor.

    edited June 28, 2020
  • RobVGRobVG Member Posts: 53 admin

    Hi @golabekp,

    We have updated the scope docs to include vendor:read. This is a scope that will allow you query for a list of vendors. Sorry about that :smile:

    is there a query to return purchases for the vendor - I see that there is a query for products by vendor.

    I don't fully understand the question. Wave has a concept of a "Bill" which is something a business pays to a vendor for bought product/service. This is the inverse of an "Invoice" which is something a business sells to a customer for a sold product/service. Bills is not available over the API at this time.

    edited June 30, 2020
  • golabekpgolabekp Member Posts: 14

    Hi @RobVG

    Thanks, your understanding was correct, I was referring to a Bill.

    Are Bills in the api on the API roadmap.

    edited July 1, 2020
  • RobVGRobVG Member Posts: 53 admin

    In terms of the API roadmap, we are primarily focusing on Accounting and Invoicing functionality at this time. Wave has a many features and we hope to expose the majority of them over the API, but it will take some time. I don't have an ETA to share for Bills today, sorry.

Sign In or Register to comment.