Zum Hauptinhalt springen

registerCancellations

UpdateOrdersResponse registerCancellations( 
CPAuth auth,
CPCancellation[] cancellations
);

Input

Parameter

Type

Optional

Comment

auth

CPAuth

no

Authentication data

cancellations

CPCancellation[]

no

A list of cancellations. Maximum of 100 per request!

Output

Gibt ein "UpdateOrdersResponse" zurück.

Beschreibung

Mit diesem Aufruf kannst Du Stornierungen bei Channel Pilot Pro registrieren. Die Rückgabe eines Kunden wird ebenfalls als Stornierung behandelt. Dabei kann es sich um eine vollständige Stornierung oder eine Teilstornierung handeln. Wenn bei einer Teilstornierung alle Artikel storniert werden, behandelt Channel Pilot Pro diesen Aufruf automatisch als vollständige Stornierung.

Eingabefelder

Für eine vollständige Stornierung musst Du "CPCancellation.isWholeOrderCancelled" auf "true" setzen. Bei einer teilweisen Stornierung setzt Du diesen Wert auf "false" und sendest "cancelledItems".

Beispiele (SOAP-UI)

Vollständige Stornierung

Anfrage

<soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:v4="http://v4_2.seller.api.channelpilot.com/">
<soapenv:Header/>
<soap:Body>
<v4:registerCancellations>
<auth>
<merchatId>xxxxxxxxxx</merchantId>
<shopToken>xxxxxxxxxx</shopToken>
</auth>
<cancellations>
<item>
<orderHeader>
<orderId>1234567</orderId>
<orderIdExternal>TEST_ORDER_531_2</orderIdExternal>
<source>ebay.de</source>
</orderHeader>
<cancellationTime>2019-02-06T14:00:00+02:00</cancellationTime>
<isWholeOrderCancelled>1</isWholeOrderCancelled>
</item>
</cancellations>
</v4:registerCancellations>
</soapenv:Body>
</soapenv:Envelope>

Antwort

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:registerCancellationsResponse xmlns:ns1="http://v4_2.seller.api.channelpilot.com/">
<return>
<header>
<resultCode>200</resultCode>
<resultMessage/>
</header>
<updateResults>
<header>
<resultCode>200</resultCode>
<resultMessage/>
</header>
<orderHeader>
<orderId>1234567</orderId>
<orderIdExternal>TEST_ORDER_531_2</orderIdExternal>
<source>ebay.de</source>
<status>
<identifier>99</identifier>
<publicTitle>Storniert</publicTitle>
<publicDescription>Bestellung wurde storniert</publicDescription>
<hasError>false</hasError>
</status>
<orderTime>2019-02-07T12:59:03+01:00</orderTime>
<isBusinessOrder>false</isBusinessOrder>
</orderHeader>
</updateResults>
</return>
</ns1:registerCancellationsResponse>
</soap:Body>
</soap:Envelope>

Teilweise Stornierung

Anfrage

<soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:v4="http://v4_2.seller.api.channelpilot.com/">
<soapenv:Header/>
<soap:Body>
<v4:registerCancellations>
<auth>
<merchatId>xxxxxxxxxx</merchantId>
<shopToken>xxxxxxxxxx</shopToken>
</auth>
<cancellations>
<item>
<orderHeader>
<orderId>1234567</orderId>
<orderIdExternal>TEST_ORDER_531_2</orderIdExternal>
<source>ebay.de</source>
</orderHeader>
<cancellationTime>2019-02-06T14:00:00+02:00</cancellationTime>
<isWholeOrderCancelled>0</isWholeOrderCancelled>
<cancelledItems>
<id>SW10013</id>
<idExternal>TEST_ORDER_531_2_ITEM_1</idExternal>
<quantityOrdered>2</quantityOrdered>
<quantityDelivered>0</quantityDelivered>
<quantityCancelled>1</quantityCancelled>
</cancelledItems>
</item>
</cancellations>
</v4:registerCancellations>
</soapenv:Body>
</soapenv:Envelope>

Antwort

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:registerCancellationsResponse xmlns:ns1="http://v4_2.seller.api.channelpilot.com/">
<return>
<header>
<resultCode>200</resultCode>
<resultMessage/>
</header>
<updateResults>
<header>
<resultCode>200</resultCode>
<resultMessage/>
</header>
<orderHeader>
<orderId>1234567</orderId>
<orderIdExternal>TEST_ORDER_531_2</orderIdExternal>
<source>ebay.de</source>
<status>
<identifier>20</identifier>
<publicTitle>Importiert</publicTitle>
<publicDescription>Bestellung wurde in den Shop importiert </publicDescription>
<hasError>false</hasError>
</status>
<orderTime>2019-02-07T12:59:03+01:00</orderTime>
<isBusinessOrder>false</isBusinessOrder>
</orderHeader>
</updateResults>
</return>
</ns1:registerCancellationsResponse>
</soap:Body>
</soap:Envelope>

Hat dies deine Frage beantwortet?