"renew" shows negative values

  • fnwbr

    43 mensajes

    Alemania

    Depending on which API endpoint we query, we get to see different values for the "renew" field of the same listing.

    Example item ID: 296992288

    When using GET /item *renew* shows an empty string.
    When using GET /item/fixedprice/opened *renew* shows a value of -150.

    What does -150 mean? Is it the same as an empty string / null value meaning it will be renewed until sold?
  • @thomas
    Administrador

    352 mensajes

    Bélgica

    Depending on which API endpoint we query, we get to see different values for the "renew" field of the same listing.

    Example item ID: 296992288

    When using GET /item *renew* shows an empty string.
    When using GET /item/fixedprice/opened *renew* shows a value of -150.

    What does -150 mean? Is it the same as an empty string / null value meaning it will be renewed until sold?
    Hello @fnwbr,

    You’re right – the field doesn’t return the same result depending on which endpoint is called. This isn’t intended behaviour; I’ll release a fix to standardise it.

    renew – will now always display the total number of renewals (to be consistent with the /item POST request). “” for renewal until it is sold.
    renew_count – will display the number of renewals already carried out.

    -150 was a mistake; it was the total – already done. But as the total was 0 (null), it came out as -150.

    I’ll let you know when it goes live.

    Kind Regards,
    Thomas
    Delcampe Team
  • fnwbr

    43 mensajes

    Alemania

    Understood; thanks for the quick response and the explanation! Much appreciated.