Unable to update an Item

  • carte113

    61 messages

    France

    Hello

    I'm trying tu update an item with the delcampe API.
    I have the error :
    <?xml version="1.0" encoding="UTF-8"?>
    <Delcampe_Notification>
    <Notification_Token>7577efba6106eae78969f3838f6d4502</Notification_Token>
    <Notification_Datetime>2018-12-19 10:04:50</Notification_Datetime>
    <Notification_Data>
    <Headers>
    <Ressource>item/629800660</Ressource>
    <Action>PUT</Action>
    <Status>400</Status>
    </Headers>
    <body>
    <error>err_item_incorrectRenewOrigin</error>
    </body>
    </Notification_Data>
    </Delcampe_Notification>

    I send this request :
    * Found bundle for host rest.delcampe.net: 0x564ac4416b00 [can pipeline] * Re-using existing connection! (#0) with host rest.delcampe.net * Connected to rest.delcampe.net (82.146.118.155) port 80 (#0) > PUT /item/629800660?token=7577efba6106eae78969f3838f6d4502 HTTP/1.1 Host: rest.delcampe.net User-Agent: GuzzleHttp/6.3.3 curl/7.61.1 PHP/7.2.12 Content-Type: application/x-www-form-urlencoded Content-Length: 285 * upload completely sent off: 285 out of 285 bytes < HTTP/1.1 200 OK < Date: Wed, 19 Dec 2018 10:04:50 GMT < Content-Type: text/xml; charset=UTF-8 < Transfer-Encoding: chunked < Connection: keep-alive < Vary: Accept-Encoding < Cache-Control: no-cache < Set-Cookie: localization_currency=EUR; expires=Sat, 16-Dec-2028 10:04:50 GMT; Max-Age=315360000; path=/; HttpOnly < Set-Cookie: localization_timezone=Europe%2FParis; expires=Sat, 16-Dec-2028 10:04:50 GMT; Max-Age=315360000; path=/; HttpOnly < Set-Cookie: localization_locale=fr; expires=Sat, 16-Dec-2028 10:04:50 GMT; Max-Age=315360000; path=/; HttpOnly < Cache-Control: private, must-revalidate < pragma: no-cache < expires: -1 < * Connection #0 to host rest.delcampe.net left intact

    Somebody can help me please.
  • Compte supprimé
    Administrateur
    Compte supprimé

    0 message

    Belgique

    Les informations ne sont plus disponibles car le compte de cet utilisateur est supprimé (Règlement RGPD)
  • carte113

    61 messages

    France

    I don't update the renew parameter.
    I update only title, description and price_starting.

    The source code :
    public function updateItem($item)
    {
    $response = $this->client->put(' Lien (http) ['query' =>
    [
    'token' => $this->token,
    ],
    'form_params' => [
    'title' => $item->title,
    'description' => $item->description,
    'price_starting' => $item->price_starting,
    ]
    ]);

    dd($response->getBody()->getContents());
    }
  • Compte supprimé
    Administrateur
    Compte supprimé

    0 message

    Belgique

    Les informations ne sont plus disponibles car le compte de cet utilisateur est supprimé (Règlement RGPD)

Rejoignez la communauté des collectionneurs !

S'inscrire Se connecter