GET api/pvo2/sites/{IDSite}/prospects/{IDProspect}/tradein-url
Retourne l'url de trade-in pour un client sur un site.
Si le client n'a pas de RefPVO sur le site concerné, il est créé.
Si le client a une RefPVO2 mais n'est pas trouvé par PVO2 (pb suite mauvaise config dans edv), il est recréé.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| IDSite |
ID du site eSeller |
integer |
Required |
| IDProspect |
ID du client/prospect dans eSeller |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
ProspectRefPVO2| Name | Description | Type | Additional information |
|---|---|---|---|
| IDSite | integer |
None. |
|
| RefPVO2 | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"IDSite": 2,
"RefPVO2": "sample string 3"
}
application/xml, text/xml
Sample:
<ProspectRefPVO2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SelectUp.APIeSellerREST.Models"> <IDProspect>1</IDProspect> <IDSite>2</IDSite> <RefPVO2>sample string 3</RefPVO2> </ProspectRefPVO2>