Python Api Parameter - For Sale, Or Not For Sale

Discussion in 'Shapeways API' started by meikltest, Oct 26, 2019.

  1. meikltest
    meikltest Member
    Hi all,

    new to the API and also not a developer per education, but playing around and try to learn.

    Ok, so my question is hopefully simple for those of you familiar with the Python API:

    When I upload a local stl file via POST, it all seems fine: code is running through, links are generated, model is there. As I would like to sell it, I set the parameter "isForSale" to "1". I thought this would have an effect on the model that I access via the public link, but there it still says "Not For Sale".

    Can someone tell me whether I miss something here?

    Thanks

    Michael

    upload_2019-10-26_12-33-14.png
     
  2. stonysmith
    stonysmith Well-Known Member Moderator
    Did you includea set of materials, and set their prices?

    "materials":{
    "6":{
    "materialId":6,
    "markup":0, #i believe this is no longer used
    "isActive":1,
    "price":4 #set the total price for the item.
    },
    ...
    ...
    },
     
    meikltest likes this.
  3. meikltest
    meikltest Member
    I did now, and it worked! Got the pricing and the option to buy. Thanks a lot for your fast reply! :)