pixiGetCreditCardInfo
This call returns credit card details for the specified pixi* order number.
Since pixi version: LOU Official - Update 46 (6.9.46.27927) Additional notes:
Request
Request body
Name | Type | Required | Description |
---|---|---|---|
OrderNr | integer | true | pixi* Order number Type: int Default value: Example: 123 Available from: LOU Official - Update 46 (6.9.46.27927) |
Request Example
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body xmlns="">
<pixiGetCreditCardInfo>
<OrderNr>0</OrderNr>
</pixiGetCreditCardInfo>
</Body>
</Envelope>
Response
Name | Type | Description |
---|---|---|
CVC | string | Card Vendor Code Type: varchar (10) Available from: 25.06 (25.6.0.58802) |
OrderNr | integer | Order number in pixi* Type: int Available from: 25.06 (25.6.0.58802) |
CreditCardType | string | Credit Card Type Type: varchar (60) Available from: 25.06 (25.6.0.58802) |
CCPIDUsedBefore | integer | Flag if Credit Card was used before Type: int Available from: 25.06 (25.6.0.58802) |
CreditCardExpiry | string | expiry date of the creditcard (format: MMYY) Type: varchar (4) Available from: 25.06 (25.6.0.58802) |
CreditCardHolder | string | Credit Card holder Type: varchar (60) Available from: 25.06 (25.6.0.58802) |
CreditCardNumber | string | Credit Card number Type: varchar (25) Available from: 25.06 (25.6.0.58802) |
CCPAuthorizationID | string | Credit Card PAuthorizationID Type: varchar (50) Available from: 25.06 (25.6.0.58802) |
Response Example
<PixiGetCreditCardInfoPost200TextXmlResponse>
<OrderNr>0</OrderNr>
<CreditCardType>string</CreditCardType>
<CreditCardHolder>string</CreditCardHolder>
<CreditCardNumber>string</CreditCardNumber>
<CreditCardExpiry>string</CreditCardExpiry>
<CVC>string</CVC>
<CCPAuthorizationID>string</CCPAuthorizationID>
<CCPIDUsedBefore>0</CCPIDUsedBefore>
</PixiGetCreditCardInfoPost200TextXmlResponse>
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:pixiGetCreditCardInfo>
<OrderNr xsi:type="xsd:integer">123</OrderNr> <!-- required -->
</ns1:pixiGetCreditCardInfo>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
PHP Example
<?php
getPixiSoapClientResponse('pixiGetCreditCardInfo', [
'OrderNr' => '123', // integer (required)
]);
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);
}