API Item - [Renouvellement]

  • LesTresorsDeVictoria_test

    15 berichten

    België

    Pourquoi je reçois un retour comme erreur "err_item_incorrectRenewOrigin" lorsque j'essaierai de modifier un Item par la méthode PUT.
    Or, si je fais un POST, ça passe. Pourtant, les valeurs du champ *renew sont les mêmes.

    ==> "null" qui est "renew until sold".

    POST :

    [
    "type" => "auction"
    "item" => [
    "id_category" => "1035"
    "currency" => "EUR"
    "title" => "test Ne PAS ACHETER - (local)"
    "personal_reference" => "REF-2"
    "images" => [
    0 => " Link (https) "
    1 => " Link (https) "
    ]
    "id_shipping_model" => "1"
    "fixed_price" => "9.00"
    "qty" => null
    "price_starting" => "9.00"
    "price_increment" => "1.00"
    "description" => null
    "date_end" => "2024-06-26 10:51:00"
    "duration" => 7
    "renew" => "null"
    "option_toplisting" => false
    "option_topmain" => false
    "prefered_end_day" => null
    "prefered_end_hour" => "18:30"
    ]
    ]



    PUT :

    [
    "type" => "auction"
    "item" => [
    "id_category" => "1035"
    "currency" => "EUR"
    "title" => "test Ne PAS ACHETER - (local)"
    "personal_reference" => "REF-2"
    "images" => [
    0 => " Link (https) "
    1 => " Link (https) "
    ]
    "id_shipping_model" => "1"
    "fixed_price" => "9.00"
    "qty" => null
    "price_starting" => "9.00"
    "price_increment" => "1.00"
    "description" => null
    "date_end" => "2024-06-26 10:51:00"
    "duration" => 7
    "renew" => "null"
    "option_toplisting" => false
    "option_topmain" => false
    "prefered_end_day" => null
    "prefered_end_hour" => "18:30"
    ]
    ]

    Merci,
  • Servitel

    429 berichten

    Zwitserland

    1) you pass "null" as quantity

    2) if you have already sold one or more pcs for this item you cannot update the item

    Please write in english here. This is the only method for contact developers and is read by everyone around the world
  • LesTresorsDeVictoria_test

    15 berichten

    België

    Thanks for the reply, and sorry :)

    1) Even if I try to put 1 or "1" as quantity, I got an error. I also tried to omit quantity by unset() function because the sale type is "auction", it failed again

    2) there are no bids or sales on the item yet.

    response:
    [
    "Notification_Token" => "a375f641188ae043e87ff79aa5c64a0f"
    "Notification_Datetime" => "2024-06-19 13:44:59"
    "Notification_Data" => [
    "Headers" => [
    "Ressource" => "item/2051104166"
    "Action" => "PUT"
    "Status" => "400"
    ]
    "body" => [
    "error" => "err_item_incorrectRenewOrigin"
    ]
    ]
    ]
  • LesTresorsDeVictoria_test

    15 berichten

    België

    [SOLVED]

    Sorry, my mistake
    *renew value should be an empty string "" not "null" when PUT is used
    However, "null" can pass when method POST is handled

Word lid van de verzamelaars-community!

Registreren Aanmelden