RestApi-Navigation » ServiceOperations » SetCatalogProfile

SetCatalogProfile

Zuletzt geändert von Thomas Hoffmann am 2017/11/21 15:17
Kommentare (0) · Anhänge (0) · Historie

Mit dieser ServiceOperation kann man den Katalogen die VIA-Connect Profile (Zahlarten, Versandarten/-kosten und/oder Widerruf) zuweisen.


Diese ServiceOperation erlaubt nur die Request Methode:  POST.
 

Weitere Informationen zu den Profilen finden Sie im Bereich FAQ.

Parameter

ParamterWerttypAngabeErläuterung
catalogIdInt64PflichtEntspricht der Id aus dem EntitySet Catalogs
 
typeIntPflichtEnthält den Typen des Profiles

Mögliche Werte:

1 = Zahlarten (PaymentProfil)
2 = Widerruf (ReturnProfil)
3 = Versandarten (ShippingProfil)

profilIdInt64OptionalEnthält die Id des Profils passend zu dem jeweiligen Typen

Request

Das unten aufgeführten Beispiel bezieht sich auf das Product Entity mit der Id 1.

Es wird die PaymentProfilId 1 zugewiesen.


POST                    http://sandboxapi.via.de/publicapi/v1/api.svc/SetCatalogProfile?catalogId=1L&type=1&profileId=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

Response Header


Status Code:            200 OK
Cache-Control:          no-cache
DataServiceVersion:     1.0;
...

Response Body


<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<SetCatalogProfile p1:type="Edm.Boolean">true</SetCatalogProfile>

Request HTTP-Header


Content-Type:           application/json
SubscriptionToken:      g93af799-6ae8-e111-8406-0050568261dc
Cookie:                 .ASPXAUTH=0186587E1743637D35632A7EDAF4F07EA67C6E4577770C3778FD9C17904A9D85B01369A8198B23A9AF530DBE93A68687C219BE1876B16B 0DAEBBD2C3318CA6C99D9C53E5B9FE17B7CF9661C5CDDDB97B90D5D3AF550100227EC8D6E6858FAE986AF2302C337B8DFEC6099898C19AA335A81317AB2B382DE72586AA9DF830C715332215AEBFD5E2FBA45F2BB5A7CA9793; path=/; HttpOnly

Request Body


Nicht erforderlich

Response

Response Header


Status Code:            200 OK
Cache-Control:          no-cache
DataServiceVersion:     1.0;
...

Response Body


{
d : {
SetCatalogProfile : true
}
-
}

Tags:
Erstellt von Thomas Hoffmann am 2014/03/27 12:31

Copyright 2004-2023 XWiki