API enhancement - InsertProduct / InsertNominalCode

Discussion in 'Suggestions' started by goldfigure, Oct 7, 2009.

  1. goldfigure New Member

    Just been speaking to Sandile@KashFlow, documenting that conversation here.

    Our existing VPASP Sync for KashFlow uses the KashFlow API to create clients, invoices and invoice lines. At the moment we have elected to use a setting in the SyncApp to choose a single KashFlow productID to be assigned to all invoice lines coming from that instance of VPASP.

    It would be great if... as well as being able to read a nominal code / product list from Kashflow we were also able to create new products. That way every sale from an online store can create the appropriate products in KF if they don't already exist, cutting down on the manual setup required to achieve the same right now.
  2. DuaneJackson Administrator

    Hi Jeremy,

    There's some confusion with the terms used on the API and terms used in the UI.

    "Products" were added in the UI (as a child of a Sales Type) after the API was released.

    When the API refers to products, it actually means Sales Types.

    You can insert a SalesType which (to further confuse matters) is done using the function called InsertNominalCode.
    You can't address or manipulate via the APi what the UI refers to as products yet.
  3. goldfigure New Member

    Cool - oversight - hadn't been looking for nominal codes until now

    Was always thinking 'products' because of the mistake in the docs.

    Would still be good to have API manipulation of products in the future as well.
  4. WhiskyFive New Member

    I'd second that!
  5. neotericuk New Member

    Hi Goldfigure,

    Would you be able to add product or sub product while adding invoice or how will we select product from drop down?
  6. goldfigure New Member

    Not sure if you mean what I think you mean

    You can now access (read only) both products and sub products through the web service. It's always been possible, as per this thread, to add a product (InsertNominalCode) but it's still not possible to insert a sub product through the API.

    Does that answer your question? Bear in mind that I am not KashFlow, just a frustrated developer. :)

Share This Page