pixiDeleteInvoicePackage
API call procedure which delete invoice package info.
Since pixi version: AVA Official - Update 23 (8.4.23.27873) Additional notes:
Request
POST
https://apigateway.descartes.com/tms/pixi/pixiDeleteInvoicePackage
Request body
Name | Type | Required | Description |
---|---|---|---|
PackageId | integer | false | Reference for InvoicePackage table Type: int Default value: Example: Available from: AVA Official - Update 23 (8.4.23.27873) |
InvoiceKey | integer | false | Reference for Invoices table. Type: int Default value: Example: Available from: AVA Official - Update 23 (8.4.23.27873) |
Request Example
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body xmlns="">
<pixiDeleteInvoicePackage>
<PackageId>0</PackageId>
<InvoiceKey>0</InvoiceKey>
</pixiDeleteInvoicePackage>
</Body>
</Envelope>
Response
Name | Type | Description |
---|
Response Example
<PixiDeleteInvoicePackagePost200TextXmlResponse />
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:pixiDeleteInvoicePackage>
<PackageId xsi:type="xsd:integer"></PackageId>
<InvoiceKey xsi:type="xsd:integer"></InvoiceKey>
</ns1:pixiDeleteInvoicePackage>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
PHP Example
<?php
getPixiSoapClientResponse('pixiDeleteInvoicePackage', [
'PackageId' => '', // integer
'InvoiceKey' => '', // integer
]);
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);
}