pixiCreateSupplier
API call to create new supplier
Since pixi version: LOU Official (6.3.0.4452) Additional notes:
Request
Request body
Name | Type | Required | Description |
---|---|---|---|
string | false | E-Mail address Type: varchar(60) Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
|
CustNR | string | false | Customer number Type: varchar(20) Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
SupZip | string | false | Supplier ZIP Type: varchar(20) Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
SupCity | string | false | Supplier City Type: varchar(50) Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
SupplNr | string | false | Supplier number (code) Type: varchar(4) Default value: NULL Example: abcd Available from: LOU Official (6.3.0.4452) |
SupName2 | string | false | Supplier Name Type: varchar(60) Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
SupAnrede | string | false | Supplier Title Type: varchar(20) Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
SupPhone1 | string | false | Supplier Phone Type: varchar(50) Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
SupPhone2 | string | false | Supplier 2nd phone number Type: varchar(50) Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
SupplCtry | string | false | Supplier Country Type: varchar(3) Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
SupplName | string | false | Supplier name Type: varchar(60) Default value: NULL Example: abcd Available from: LOU Official (6.3.0.4452) |
CurrencyId | string | false | Currency ID Type: smallint Default value: NULL Example: 1 Available from: AVA Official - Update 23 (8.4.23.27873) |
SupAddress | string | false | Supplier Address Type: varchar(50) Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
SupplFaxNR | string | false | Fax number Type: varchar(100) Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
SupplGroup | string | false | Supplier group Type: varchar(4) Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
HomePageUrl | string | false | Supplier home page URL Type: nvarchar Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
SupplNameExt | string | false | External supplier name Type: varchar(50) Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
MainContact_Fax | string | false | Main contact fax number Type: nvarchar Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
SupplierComment | string | false | Supplier comment Type: varchar(8000) Default value: NULL Example: abcd Available from: 19.02 (8.4.50.37001) |
eMailSupplOrder | string | false | E-mail where to send the supplier order Type: varchar(255) Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
MainContact_Email | string | false | Main contact e-mail address Type: nvarchar Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
MainContact_Phone | string | false | Main contact phone number Type: varchar(200) Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
MainContact_Title | string | false | Main contact title Type: nvarchar Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
DefaultDeliveryDays | integer | false | Default delivery days Type: int Default value: NULL Example: 123 Available from: AVA Official - Update 23 (8.4.23.27873) |
MainContact_JobTitle | string | false | Main contact job title Type: nvarchar Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
MainContact_LastName | string | false | Main contact last name Type: nvarchar Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
MainContact_FirstName | string | false | Main contact first name Type: nvarchar Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
CanDoDirectFulfillment | string | false | Indicator if supplier can do direct fullfillment Type: varchar(1) Default value: NULL Example: Y/N Available from: AVA Official - Update 23 (8.4.23.27873) |
MainContact_JobFunction | string | false | Main contact job function Type: nvarchar Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
MainContact_MobilePhone | string | false | Main contact mobile phone number Type: varchar(200) Default value: NULL Example: abcd Available from: AVA Official - Update 23 (8.4.23.27873) |
Request Example
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body xmlns="">
<pixiCreateSupplier>
<SupplNr>string</SupplNr>
<SupplName>string</SupplName>
<SupplNameExt>string</SupplNameExt>
<SupplGroup>string</SupplGroup>
<DefaultDeliveryDays>0</DefaultDeliveryDays>
<SupplFaxNR>string</SupplFaxNR>
<CustNR>string</CustNR>
<eMail>string</eMail>
<SupAnrede>string</SupAnrede>
<SupName2>string</SupName2>
<SupAddress>string</SupAddress>
<SupZip>string</SupZip>
<SupPhone1>string</SupPhone1>
<CanDoDirectFulfillment>string</CanDoDirectFulfillment>
<SupCity>string</SupCity>
<SupPhone2>string</SupPhone2>
<SupplCtry>string</SupplCtry>
<CurrencyId>string</CurrencyId>
<eMailSupplOrder>string</eMailSupplOrder>
<HomePageUrl>string</HomePageUrl>
<MainContact_Title>string</MainContact_Title>
<MainContact_FirstName>string</MainContact_FirstName>
<MainContact_LastName>string</MainContact_LastName>
<MainContact_JobTitle>string</MainContact_JobTitle>
<MainContact_JobFunction>string</MainContact_JobFunction>
<MainContact_Phone>string</MainContact_Phone>
<MainContact_MobilePhone>string</MainContact_MobilePhone>
<MainContact_Fax>string</MainContact_Fax>
<MainContact_Email>string</MainContact_Email>
<SupplierComment>string</SupplierComment>
</pixiCreateSupplier>
</Body>
</Envelope>
Response
Name | Type | Description |
---|
Response Example
<PixiCreateSupplierPost200TextXmlResponse />
HTTP Example
POST https://apigateway.descartes.com/tms/pixi/
Content-Type: text/xml; charset=utf-8
# echo -n '{{username}}:{{password}}' | base64 | pbcopy
Authorization: Basic {{token}}
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="https://apigateway.descartes.com/tms/pixi/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:pixiCreateSupplier>
<eMail xsi:type="xsd:string">abcd</eMail>
<CustNR xsi:type="xsd:string">abcd</CustNR>
<SupZip xsi:type="xsd:string">abcd</SupZip>
<SupCity xsi:type="xsd:string">abcd</SupCity>
<SupplNr xsi:type="xsd:string">abcd</SupplNr>
<SupName2 xsi:type="xsd:string">abcd</SupName2>
<SupAnrede xsi:type="xsd:string">abcd</SupAnrede>
<SupPhone1 xsi:type="xsd:string">abcd</SupPhone1>
<SupPhone2 xsi:type="xsd:string">abcd</SupPhone2>
<SupplCtry xsi:type="xsd:string">abcd</SupplCtry>
<SupplName xsi:type="xsd:string">abcd</SupplName>
<CurrencyId xsi:type="xsd:string">1</CurrencyId>
<SupAddress xsi:type="xsd:string">abcd</SupAddress>
<SupplFaxNR xsi:type="xsd:string">abcd</SupplFaxNR>
<SupplGroup xsi:type="xsd:string">abcd</SupplGroup>
<HomePageUrl xsi:type="xsd:string">abcd</HomePageUrl>
<SupplNameExt xsi:type="xsd:string">abcd</SupplNameExt>
<MainContact_Fax xsi:type="xsd:string">abcd</MainContact_Fax>
<SupplierComment xsi:type="xsd:string">abcd</SupplierComment>
<eMailSupplOrder xsi:type="xsd:string">abcd</eMailSupplOrder>
<MainContact_Email xsi:type="xsd:string">abcd</MainContact_Email>
<MainContact_Phone xsi:type="xsd:string">abcd</MainContact_Phone>
<MainContact_Title xsi:type="xsd:string">abcd</MainContact_Title>
<DefaultDeliveryDays xsi:type="xsd:integer">123</DefaultDeliveryDays>
<MainContact_JobTitle xsi:type="xsd:string">abcd</MainContact_JobTitle>
<MainContact_LastName xsi:type="xsd:string">abcd</MainContact_LastName>
<MainContact_FirstName xsi:type="xsd:string">abcd</MainContact_FirstName>
<CanDoDirectFulfillment xsi:type="xsd:string">Y/N</CanDoDirectFulfillment>
<MainContact_JobFunction xsi:type="xsd:string">abcd</MainContact_JobFunction>
<MainContact_MobilePhone xsi:type="xsd:string">abcd</MainContact_MobilePhone>
</ns1:pixiCreateSupplier>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
PHP Example
<?php
getPixiSoapClientResponse('pixiCreateSupplier', [
'eMail' => 'abcd', // string
'CustNR' => 'abcd', // string
'SupZip' => 'abcd', // string
'SupCity' => 'abcd', // string
'SupplNr' => 'abcd', // string
'SupName2' => 'abcd', // string
'SupAnrede' => 'abcd', // string
'SupPhone1' => 'abcd', // string
'SupPhone2' => 'abcd', // string
'SupplCtry' => 'abcd', // string
'SupplName' => 'abcd', // string
'CurrencyId' => '1', // string
'SupAddress' => 'abcd', // string
'SupplFaxNR' => 'abcd', // string
'SupplGroup' => 'abcd', // string
'HomePageUrl' => 'abcd', // string
'SupplNameExt' => 'abcd', // string
'MainContact_Fax' => 'abcd', // string
'SupplierComment' => 'abcd', // string
'eMailSupplOrder' => 'abcd', // string
'MainContact_Email' => 'abcd', // string
'MainContact_Phone' => 'abcd', // string
'MainContact_Title' => 'abcd', // string
'DefaultDeliveryDays' => '123', // integer
'MainContact_JobTitle' => 'abcd', // string
'MainContact_LastName' => 'abcd', // string
'MainContact_FirstName' => 'abcd', // string
'CanDoDirectFulfillment' => 'Y/N', // string
'MainContact_JobFunction' => 'abcd', // string
'MainContact_MobilePhone' => 'abcd', // string
]);
function getPixiSoapClientResponse(string $method, array $arguments = [])
{
$soapArguments = [];
foreach ($arguments as $key => $value) {
$soapArguments[] = new SoapVar($value, null, '', '', $key);
}
$soapClient = new SoapClient(null, [
'login' => '...',
'password' => '...',
'uri' => 'https://apigateway.descartes.com/tms/pixi/',
'location' => 'https://apigateway.descartes.com/tms/pixi/',
]);
return $soapClient->__call($method, $soapArguments);
}