API: Tier price removal issues

edited January 2015 in API Vote Up0Vote Down
The tier_prices=%d:%.3f update seems to work fine to apply new tier price settings to a lot.

But I'm trying to remove tier prices through the API, and I can't find how to do it.
tier_prices=0:0.000 is rejected with the API saying "Tier price must be greater than 0"
tier_prices= is rejected with the same error message

How is one supposed to remove tier prices? Was it an API oversight?

Comments

  • 5 Comments sorted by Votes Date Added
  • Small correction:
    tier_prices= is actually rejected with the error message "You did not pass any lot update arguments"
  • Wouldn't 0:0.000 be 0,0.000 (comma rather than a colon?)
  • The (lapsed) programmer in me would also suggest trying to set existing tier pricing to the current normal price... so if normal price is 0.05 and tiers are currently set at 100 and 200 pieces, I'd try 100,0.05:200,0.05 ... you never know :)
  • Hoddie, you raise another good point I forgot to mention. :)

    The API documentation says:
    'tier1quantity:tier1price,tier2quantity:tier2price,tier3quantity:tier3price'
    but then it gives as an example:
    '100,0.05:200,0.04'

    The first format is the one accepted by the API, what is given in example is rejected.
Sign In or Register to comment.