ProductIsListed
Mit dieser ServiceOperation kann geprüft werden, ob ein Produkt bei eBay eingestellt ist.
Diese ServiceOperation erlaubt nur die Request Methode: GET.
Parameter
Paramter | Werttyp | Erläuterung |
---|
productId | Int64 | Entspricht der Id aus dem EntitySet Products. |
Request
Das unten aufgeführten Beispiel bezieht sich auf das Entity mit der Id 1.
GET http://sandboxapi.via.de/publicapi/v1/api.svc/ProductIsListed?productId=1L
Request HTTP-Header
Content-Type: application/xml
SubscriptionToken: g93af799-6ae8-e111-8406-0050568261dc
Cookie: .ASPXAUTH=0186587E1743637D35632A7EDAF4F07EA67C6E4577770C3778FD9C17904A9D85B01369A8198B23A9AF530DBE93A68687C219BE1876B16B 0DAEBBD2C3318CA6C99D9C53E5B9FE17B7CF9661C5CDDDB97B90D5D3AF550100227EC8D6E6858FAE986AF2302C337B8DFEC6099898C19AA335A81317AB2B382DE72586AA9DF830C715332215AEBFD5E2FBA45F2BB5A7CA9793; path=/; HttpOnly
Request Body
Nicht erforderlich
Response Header
Status Code: 200 OK
Cache-Control: no-cache
DataServiceVersion: 1.0;
...
Response Body
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ProductIsListed p1:type="Edm.Boolean" xmlns:p1="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices">true</ProductIsListed>
Request HTTP-Header
Content-Type: application/json
SubscriptionToken: g93af799-6ae8-e111-8406-0050568261dc
Cookie: .ASPXAUTH=0186587E1743637D35632A7EDAF4F07EA67C6E4577770C3778FD9C17904A9D85B01369A8198B23A9AF530DBE93A68687C219BE1876B16B 0DAEBBD2C3318CA6C99D9C53E5B9FE17B7CF9661C5CDDDB97B90D5D3AF550100227EC8D6E6858FAE986AF2302C337B8DFEC6099898C19AA335A81317AB2B382DE72586AA9DF830C715332215AEBFD5E2FBA45F2BB5A7CA9793; path=/; HttpOnly
Request Body
Nicht erforderlich
Response Header
Status Code: 200 OK
Cache-Control: no-cache
DataServiceVersion: 1.0;
...
Response Body
{
"d": {
"ProductIsListed": true
}
}
Ist ein Produkt nicht bei eBay aktiv, wird im Response anstatt true false zurück gegeben.