Problem with the update rest api?

  • vaccarisrl
    14 messages
    Italy
    When an item close unsold, my system receive the Seller_Item_Close_Unsold notification, then call the api itemPut to reopen the item because the documentation tell that: "You can also call this resource to restart a non sold closed item".

    So, what's wrong?

    Thanks.
  • @benjaminl
    Administrator
    113 messages
    Belgium
    Hello,

    Can you explain a bit more about what you are trying to do and what is your problem please ?

    Thanks for your understanding.
  • vaccarisrl
    14 messages
    Italy
    Hello,

    Can you explain a bit more about what you are trying to do and what is your problem please ?

    Thanks for your understanding.
    • Created on 25 Apr 2018 at 02:35
    • #853569
    I receive the notification "Seller_Item_Close_Unsold" so I call itemPut with an updated date_end to relist the item, but doesn't work...
  • @benjaminl
    Administrator
    113 messages
    Belgium
    Hi vaccarisrl,

    can you give me more details about the code you're using to make your call please ?
  • vaccarisrl
    14 messages
    Italy
    'item' => array(
    'action' => 'update',
    'id_category' => 4005,
    'fixed_price' =>'75.00',
    'title' => 'test',
    'personal_reference' => '59314FOG',
    'description' => 'test',
    'renew' => 0,
    'qty' => 1,
    'date_end' => date("Y-m-d H:i:s", time() + 120)
    )

    Then call /item/577121175 with method PUT
  • @benjaminl
    Administrator
    113 messages
    Belgium
    Dear vaccarisrl,

    thank you for your reply.

    Here is your problem: to restart an item, you need to use the "restart" action and not the "update" one.

    For your information, the action parameter with the value "restart" is only necessary in case of a restart.
    Otherwise, this parameter is useless because PUT request is only for update action, by definition.

    I hope this answer will help you.

    Best regards
  • vaccarisrl
    14 messages
    Italy
    Thanks...

Join the collectors community

Register Login