GENERAL INFORMATION

 TEST 
                API	: https://www.pts.net:5161/api/shipmentv4/api.php
                WSDL URL Address	: https://www.pts.net:5161/api/shipmentv4/api.php?wsdl
    
 PROD
                API : https://www.pts.net/api/shipmentv4/api.php
                WSDL URL Address	: https://www.pts.net/api/shipmentv4/api.php?wsdl

This API has been prepared for the purpose of transferring customer shipments to the PTS system using SOAP/XML. it is especially aimed to communicate with e-commerce systems.

Session authentication user, password

Release Notes

1.9.2 - Changes made in version 27.02.2025

1. change made in addShipmentVariantJoom method:

In the credentials

kimlik_kart_numara, {Buyer passport serial number information}, kimlik_kart_tarih {Buyer passport issue date} parameters have become mandatory.

2. change made in addShipmentVariantJoom method:

New parameters have been added;

alici_vergi_numara {Tax Number}, kimlik_dokuman_tipi {Document Type}, kimlik_belgesi_yayinlayan {Document Organization}

SECURITY

We provide Developer ID and Key to our API customers who develop their own software. We provide only Developer Keys to software companies that develop plug-ins for the PTS API system, and we give the User Keys to our customers using such ready-made software. When these two keys are used together, the security mechanism of our system authenticates both the developer and the customer.


        Test Environment Developer ID    :DEV-27541194384867335
        Test Environment Developer KEY   :bbd47bf0-8ff8-11ec-83f4-005056b8981b
            
            

https://pts.net:5161/api/shipmentv4/api.php

CHARACTER ENCODING

UTF-8 character encoding expected for all the contents.

CONTENT-TYPE

Responses indicates the response type in the HTTP Content-Type header. Content-Type: text/xml;charset=utf-8

DATE FORMAT

All dates should be in YYYY-mm-dd format.

CREATE SHIPMENT

Method Url: https://pts.net:5161/api/shipmentv4/api.php

This method is the default shipment creation method in PTS sytems. If the request is successful, according to the tag parameter you will send, an A6 size label link will be returned. It can be prinded and labeled on the shipment.

Possible values of the label tag:

  • "0"- No label (default)
  • "1" - PTS Label (need permission)
  • "2" and higher values – LastMile label will rerturned. (need permission)
  • LastMile etiket kullanımı PTS yetkilendirmesi ile mümkündür.

ptsno tag should be send "0" to create a new shipment with PTS tracking no.

Sending and existing ptsno updates the shipment information.


This method allows only Eco and Express service options.

Data format for addshipment

parameter name type Description M/O
Kullanici String(25) User name Mandatory
Sifre String(25) Password Mandatory
siparisno String(40) Your uniqe order number Mandatory
ptsno String(10) 0 – to add new shipment. (Existing PTSno will update the shipment info) Optional
servis String(1) ecoPTS -> “E”,  Ekspres -> “X” Mandatory
yetkili String(35) Receipent name Optional
sirketadi String(35) Receipent company Mandatory
adres String(70) Receipent address Mandatory
sehir String(35) Receipent city Mandatory
eyalet String(2) State code for applicable countries. Mandatory
postakodu String(10) Receipent postal/zip code Mandatory
ulkekodu String(2) Country code (ISO 3166-1 alpha-2 standart) Mandatory
telefon String(40) Receipent phone number Optional
email String(40) Receipent e-mail Optional
toplamkg String(6,2) Total weight of the shipment in KG unit Optional
malcinsi String(40) Short Commodity Description on AWB Mandatory
toplamadet String(3) Number of boxes Mandatory
toplamdeger String(10) Total value of the goods Mandatory
parabirimi String(3) Used currency Mandatory
faturano String(45) Invoice Number
faturatarihi Date (YYYYMMDD) Invoice Date
earsivpdf String(250) Invoice URL (Should be active)
fatura Array Invoice data in lines below (for every product)
   aciklama String(50) Commodity description of the product Mandatory
   miktar Double(6,2) Quantity of the product Mandatory
   birim String(6) Unit measurement (pcs, kg) Mandatory
   birimfiyat Double(6,2) Unit price Mandatory
   gtip String(20) HSCode of the product Optional
etiket String(1) Label default values “0” no label – “1” PTS Label Optional
gonderici_yetkilisi String(30) Sender Name (Person)
Ebat Array Dimension in lines below per package Optional
    en Double(4,1) Width in cm Optional
    boy Double(4,1) Height in cm Optional
    yukselik Double(4,1) Length ebat bilgisi cm cinsinden Optional
    agirlik Double(6,2) Weight in Kg Optional
payType String(1) Payment Type  - “P” for Cash Optional
businessmodel Integer(10) Commercial Type (e-commerce=1, Non e-Commerce=2) Optional
musteriBeyanTuru String(1) Declaration Type: M->Micro Export, N->Non-Document/Sample, D-> Doc optional
faturayetkili String(10) Receipent name the Invoice optional
faturaunvan String(10) Receipent Company name on the invoice optional
faturatelefon String(10) Receipent phone on invoice optional
faturaemail String(10) Receipent email on invoice optional
faturaadres String(50) Receipent address on invoice optional
faturaulkekodu String(10) Receipent country code on invoice optional
faturapostakodu String(10) Receipent postal code on invoice optional
faturasehir String(10) Receipent city on invoice optional
ygarsivpdf String(10) URL of invoice for destination country customs optional
gumruktipi String(10) Incoterm Flag : “D” for DDP -  “H” for DAP(DDU) Mandatory
typeOfGoods String(10) Type of goods optional









Response

If success then PTS Tracking no returns.

<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                  xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:server">
          <SOAP-ENV:Body>
           <ns1:addshipmentResponse xmlns:ns1="urn:server""http://schemas.xmlsoap.org/soap/encoding/">
              <return xsi:type="xsd:string">"success":true,
                  AWB=2280000984
              </return>
           </ns1:addshipmentResponse>
          </SOAP-ENV:Body>
             </SOAP-ENV:Envelope>

PDF:
URL of label created by PTS.

CROSS:
If success then PTS Tracking no returns. (AWB), If label value sent “0” then response will be shown as; AWB=22xxx.

If success then PTS Tracking no returns. (AWB),
If label value sent different then “0” then response will be shown as;

AWB=22xxx|CROSS=|PDF=https://www.pts.net:5161/api/ptsawb/15XXXXX_22XXXX.pdf|

HATA: means
ERROR. Contact with the IT team to get support.







Status Codes HTTP Status Codes Web Services use HTTP status codes to provide information about the transactions performed. Code Description It means that 200 transactions were successful. This means that the 404 Page could not be found. 500 Means an internal server error. You need to take a look at your codes again

CREATE EXPRESS SHIPMENT

You can send the sender information details (different then the sender PTS account) via this method. It is only used for Express service option.

Request parameters:

parameter name type Description M/O
Kullanici String(25) User name Mandatory
Sifre String(25) Password Mandatory
siparisno String(40) Your uniqe order number Mandatory
ptsno String(10) 0 – to add new shipment. (Existing PTSno will update the shipment info) Optional
yetkili String(35) Receipent name Optional
sirketadi String(35) Receipent company Mandatory
adres String(70) Receipent address Mandatory
sehir String(35) Receipent city Mandatory
eyalet String(2) State code for applicable countries.r Mandatory
postakodu String(10) Receipent postal/zip code Mandatory
ulkekodu String(2) Country code (ISO 3166-1 alpha-2 standart) Mandatory
telefon String(40) Receipent phone number Optional
email String(40) Receipent e-mail Optional
gonderici_yetkili String(40) Sender name Mandatory
gonderici_unvan String(40) Sender Company / Title Mandatory
gonderici_adres String(40) Sender Address Mandatory
gonderici_sehir String(40) Sender City Mandatory
gonderici_postakodu String(40) Sender Postal Code Mandatory
gonderici_ulkekodu String(40) Sender Country (ISO 3166-1 alpha-2 standart - TR) Mandatory
gonderici_telefon String(40) Sender Phone Mandatory
gonderici_email String(40) Sender e-mail Mandatory
toplamkg String(6,2) Total weight of the shipment in KG unit Optional
siparisno String(40) Order number Mandatory
malcinsi String(40) Short Commodity Description on AWB Mandatory
toplamadet String(3) Total number of packages Mandatory
toplamdeger String(10) Total Declared Value Mandatory
parabirimi String(3) Currency Mandatory
fatura Array Invoice data in lines below (for every product)
   aciklama String(50) Commodity description of the product Mandatory
   miktar Double(6,2) Quantity of the product Mandatory
   birim String(6) Unit measurement (pcs, kg) Mandatory
   birimfiyat Double(6,2) Unit price Mandatory
   gtip String(20) Customs Tariff Statistical Position Number Optional
faturano String(45) Invoice Number
faturatarihi Date (YYYYMMDD) Invoice Date
earsivpdf String(250) Invoice URL (Should be active)
Ebat Array Dimension in lines below per package Optional
    en Double(4,1) Width in cm Optional
    boy Double(4,1) Length in cm Optional
    yukselik Double(4,1) Height in cm Optional
    agirlik Double(6,2) Weight in Kg Optional
payType String(1) Payment Type  - “P” for Cash Optional
gbeyanTutar String(10) Declaration Value Optional
shipAccessCode String(1) Can be null
ygarsivpdf String(10) URL of invoice for destination country customs Mandatory
vatno String(1) Can be null
eorin String(1) Can be null
gumruktipi String(10) Incoterm Flag : D for DDP, H for DAP(DDU) Mandatory
ioss String(10) IOSS number for EU countries
businessmodel Integer(3) Commercial Type (e-commerce=1, Non e-Commerce=2) Optional
musteriBeyanTuru String(1) Declaration Type: M->Micro Export, N->Non-Document/Sample, D-> Doc Optional
gonderici_vergi_no String(40) Sending Tax number Mandatory

Response output:

At the end of the request you send to the system, the PTS system generates the following responses:

<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:server">
<SOAP-ENV:Body>
 <ns1:addshipmentExpressResponse xmlns:ns1="urn:server""http://schemas.xmlsoap.org/soap/encoding/">
    <return xsi:type="xsd:string">AWB=5580000080|UYARI=_awb5580000080
    </return>
 </ns1:addshipmentExpressResponse>
</SOAP-ENV:Body>
   </SOAP-ENV:Envelope>




Creating a Joom Post

Not reachable.

Request parameters

parameter name type Description M/O
Kullanici String(25) User name Mandatory
Sifre String(25) Password Mandatory
siparisno String(40) Your uniqe order number Mandatory
ptsno String(10) you can send 0; it creates the shipment number and returns it. If a correction is to be made, the previously received PTS Number must be sent. Optional
servis String(1) If “E” is ecoPTS, then “X” is express Mandatory
yetkili String(35) Receipent name Optional
sirketadi String(35) Receipent company Mandatory
adres String(70) Receipent address Mandatory
sehir String(35) Receipent city Mandatory
eyalet String(2) State code for applicable countries. Mandatory
postakodu String(10) Receipent postal/zip code Mandatory
ulkekodu String(2) Country code (ISO 3166-1 alpha-2 standart) Mandatory
telefon String(40) Receipent phone number Optional
email String(40) Receipent e-mail Optional
Kimlik_kart_kod String(4) Recipient passport code information. Optional
Kimlik_kart_seri String(10) Recipient passport serial information Optional
Kimlik_kart_numara String(11) Recipient passport serial number information Mandatory
Kimlik_kart_tarih Date (YYYY-MM-DD) Date of issue of the recipient's passport Mandatory
gonderici_yetkili String(40) Sender name Mandatory
gonderici_unvan String(40) Sender Company / Title Mandatory
gonderici_adres String(40) Sender Address Mandatory
gonderici_sehir String(40) Sender City Mandatory
gonderici_postakodu String(40) Sender Postal Code Mandatory
gonderici_ulkekodu String(40) Sender Country (ISO 3166-1 alpha-2 standart - TR) Mandatory
gonderici_telefon String(40) Sender Phone Mandatory
gonderici_email String(40) Sender e-mail Mandatory
gonderici_vergi_no String(40) Sending Tax number Mandatory
toplamkg String(6,2) Total weight of the shipment in KG unit Optional
siparisno String(40) Order number Mandatory
malcinsi String(40) Short Commodity Description on AWB Mandatory
toplamadet String(3) Total number of packages Mandatory
toplamdeger String(10) Total Declared Value Mandatory
parabirimi String(3) Currency Mandatory
fatura Array Invoice data in lines below (for every product)
   aciklama String(50) Commodity description of the product Mandatory
   miktar Double(6,2) Quantity of the product Mandatory
   birim String(6) Unit measurement (pcs, kg) Mandatory
   birimfiyat Double(6,2) Unit price Mandatory
   gtip String(20) Customs Tariff Statistical Position Number Optional
faturano String(45) Invoice No
faturatarihi Date (YYYYMMDD) Invoice Date
earsivpdf String(250) Invoice URL (Should be active)
etiket String() Default value is 0, values above are subject to authorization Optional
Ebat Array Dimension in lines below per package Optional
    width Double(4,1) Width in cm Optional
    length Double(4,1) Length in cm Optional
    height Double(4,1) Height in cm Optional
    Weight Double(6,2) Weight in Kg Optional
payType String(1) Payment Type - “P” for Cash Optional
gbeyanTutar String(10) Declaration Value Optional
shipAccessCode String(1) Can be null
gonderici_tckn String(10) sender's identification number Mandatory
business_model Integer(1) Customer's type of sales(online sales control) Optional
alici_vergi_numara String(11) Receiver Tax number Optional
kimlik_dokuman_tipi String(10) Document Type Optional
kimlik_belgesi_yayinlayan String(10) Document Organization Optional


Response output

 AWB=222xxxxxx
if the label is 0, the returned value returns AWB=2232184911. if the label is greater than 0;
AWB=22400XXXX|CROSS=0150514XXXXX|PDF=https://www.pts.net/WEB/DPDPDFV4/22XXX_160XXX.pdf it returns an alphanumeric information in the form of a URL where the tag can be downloaded.

If everything is normal, the shipment no returns, it means the transaction was successful: The PTS generated by the AWB System is shipment no. As for ERROR messages, the messages from the carrier's system whose label will be printed, original we transmit it in language and directly.
WARNING messages can sometimes contain errors. If the post no (AWB) has not occurred, or CROSS if it does not occur, it can be interpreted as an error message.
If a PDF Tag has been created, the link to the file belonging to the tag .
CROSS Tracking number associated with the direct label printing feature


Add Shipment with Pick-Up Call

This method is able to create a Pick-Up(Call) along with the creation of a shipment. Delivery of shipments from the companies by courier to the sellers of our Marketplace Customers what he can do it is a service.

Request parameters

parameter name type Description M/O
Kullanici String(25) User name Mandatory
Sifre String(25) Password Mandatory
siparisno String(40) Your uniqe order number Mandatory
pickupTarih String(10)(YYYY-mm-dd) YYYY-mm-dd formatted desired Pickup date Mandatory
ptsno String(10) 0 – to add new shipment. (Existing PTSno will update the shipment info) Optional
servis String(1) eecoPTS -> “E”,  Ekspres -> “X” Mandatory
yetkili String(35) Receipent name Optional
sirketadi String(35) Receipent company Mandatory
adres String(70) Receipent address Mandatory
sehir String(35) Receipent city Mandatory
eyalet String(2) State code for applicable countries. Mandatory
postakodu String(10) Receipent postal/zip code Mandatory
ulkekodu String(2) Country code (ISO 3166-1 alpha-2 standart) Mandatory
telefon String(40) Receipent phone number Optional
email String(40) Receipent e-mail Optional
gonderici_yetkili String(40) Sender Name (Person) Mandatory
gonderici_unvan String(40) Sender Company / Title Mandatory
gonderici_adres String(40) Sender Address Mandatory
gonderici_sehir String(40) Sender City Mandatory
gonderici_postakodu String(40) Sender Postal Code Mandatory
gonderici_ulkekodu String(40) Sender Country (ISO 3166-1 alpha-2 standart - TR) Mandatory
gonderici_telefon String(40) Sender Phone Mandatory
gonderici_email String(40) Sender e-mail Mandatory
toplamkg String(6,2) GTotal weight of the shipment in KG unit Optional
malcinsi String(40) Short Commodity Description on AWB Mandatory
toplamadet String(3) Total number of packages Mandatory
toplamdeger String(10) Total Declared Value Mandatory
parabirimi String(3) Currency Mandatory
faturano String(45) Invoice Number
faturatarihi Date (YYYYMMDD) Invoice Date
earsivpdf String(250) Invoice URL (Should be active)
fatura Array Invoice data in lines below (for every product)
   aciklama String(50) Commodity description of the product Mandatory
   miktar Double(6,2) Quantity of the product Mandatory
   birim String(6) Unit measurement (pcs, kg) Mandatory
   birimfiyat Double(6,2) Unit price Mandatory
   gtip String(20) HSCode of the product Optional
Ebat Array Dimension in lines below per package Optional
    en Double(4,1) Width in cm Optional
    boy Double(4,1) Length ebat bilgisi cm cinsinden Optional
    yukselik Double(4,1) Height in cm Optional
    agirlik Double(6,2) Weight in Kg Optional
payType String(1) Payment Type  - “P” for Cash Optional
gbeyanTutar String(10) Declared Value Optional
shipAccessCode String(1) Can be null
vatno String(1) Can be null
eorin String(1) Can be null
gumruktipi String(10) Incoterm Flag : DDP için D DAP(DDU) için H Mandatory
ioss String(10) Can be null
musteriBeyanTuru String(1) Declaration Type: M->Micro Export, N->Non-Document/Sample, D-> Doc Mandatory
business_model String(1) Customer's type of sales(online sales control) Optional
gonderici_vergi_no String(40) Sending Tax number Mandatory

Response output:

<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:server">
            <SOAP-ENV:Body>
             <ns1:addShipmentWithPickUpResponse xmlns:ns1="urn:server""http://schemas.xmlsoap.org/soap/encoding/">
                <return xsi:type="xsd:string">"success":true,
                AWB=2280000211
                </return>
             </ns1:addShipmentWithPickUpResponse>
            </SOAP-ENV:Body>
               </SOAP-ENV:Envelope>

At the end of the request you send to the system, the PTS system generates the following responses: 1)If everything is normal, the shipment returns no, it means the transaction was successful: AWB=222xxxxxx
The PTS generated by the AWB System is shipment no. As for ERROR messages, the messages from the carrier's system whose label will be printed, original we transmit it in language and directly. WARNING messages can sometimes contain errors. If the post no (AWB) has not occurred, or CROSS if it does not occur, it can be interpreted as an error message.
2) If the post was saved but the proforma line could not be saved in the following format a response comes: AWB=222xxxxxx WARNING: The proforma line could not be saved: type of goods 1
3) Messages containing ERRORS, where the post could not be saved, are listed below:
HATA: Kullanıcı bilgileriniz yanlış. //Username or password is incorrect
HATA: Hesabınız kısıtlanmıştır. Lütfen çağrı merkezimizi arayınız. Tel: xxx x xxx // Your account is blocked, please call our Customer Service
HATA: Toplama tarih formatı hatalı //Pickup date format is incorrect
HATA: Toplama tarihi geçmiş tarih seçilemez. // Pickup date can not be past than today
HATA: Toplama tarihi d-m-Y tarihini geçmemelidir. //Pick up date should not be greater than within week
HATA: Toplama tarihi d-m-Y Pazar gününe gelmektedir. //Selected Pickup date is Sunday. PTS do not collect on Sundays.
HATA: 222xxxxxx nolu gönderide değişiklik yapamazsınız! //Changes are not allowed
HATA: Bu sipariş no daha önce kullanılmış: xxxsiparisnoxxx //Order number Previously used
HATA: Yetkili ya da şirket unvanı dolu olmalıdır!// Authority or company title must be full
HATA: Ülke kodu bulunamadı: UK //Country code is wrong
HATA: Adres bilgisi boş! //Address is empty
HATA: Posta kodu geçerli değil! //Postal Code is not allowed
HATA: Servis türü ecoPTS için E, Express için X olmalıdır! //Service type is wrong
HATA: Gönderi kaydedilemedi! //Shipment could not saved
HATA: Fatura satiri kaydedilemedi! //Invoice could not saved

BULK TRACKING

Receiving shipment tracking information in bulk with the Shipment number or Order number in bulk

Request parameters

parameter name TYPE Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
ptsnolist Array PTS AWB No Optional
siparisnoList Array The barcode number of your shipment that belongs to you Optional

CREATE NAR

Creating a record of pomegranate shipments

Request parameters

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
gumruktipi String(10) Incoterm Flag : D for DDP, H for DAP(DDU) Mandatory
faturano String(45) Invoice No
faturatarihi Date (YYYYMMDD) Invoice date
arsivpdf String(250) Pdf the web address of the invoice (it will open when clicked)

CREATE NAR SHIPMENT

Request parameters

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
masterNo Integer(7) Main Pomegranate Shipment number Mandatory
shipmentNo Array The barcode number of your shipment that belongs to you. Optional

create pickup

Allows you to create a collection date

Request parameters

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
toplama_tarihi Date(YYYYMMDD) Date of collection Mandatory
gonderici_yetkili String(30) Name of the sending authority Optional
gonderici_unvan String(30) The name of the sending company/person Optional
gonderici_adres String(200) Sending Address Mandatory
gonderici_postakodu String(10) The Sender's Postcode Mandatory
gonderici_telefon String(40) The Sender's Phone Optional
gonderici_email String(40) The Sender's e-mail Optional
ptsnolist Array PTS AWB No Optional

ADD SHIPMENT WITH SERVICE TYPE

Request parameters:

Data format for Service Type

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
siparisno String(40) Your unique order number Mandatory
ptsno String(10) 0 – to add new shipment. (Existing PTSno will update the shipment info). Optional
servis String(1) “E” for Eco, “X” for Express etc. See the Service Code section for all options Mandatory
yetkili String(35) Receipent name Optional
sirketadi String(35) Receipent company Mandatory
adres String(70) Receipent address Mandatory
sehir String(35) Receipent city Mandatory
eyalet String(2) State code for applicable countries Mandatory
postakodu String(10) Receipent postal/zip code Mandatory
ulkekodu String(2) Country code (ISO 3166-1 alpha-2 standart) Mandatory
telefon String(40) Receipent phone number Optional
email String(40) Receipent e-mail Optional
toplamkg String(6,2) Total weight of the shipment in KG unit Optional
malcinsi String(40) Short Commodity Description on AWB Mandatory
toplamadet String(3) Total number of packages Mandatory
toplamdeger String(10) Total Declared Value Mandatory
parabirimi String(3) Currency Mandatory
faturano String(45) Fatura numarası
faturatarihi Date (YYYYMMDD) Fatura tarihi
earsivpdf String(250) Pdf faturanın web adresi (tıklanınca açılacak)
fatura Array Invoice data in lines below (for every product)
aciklama String(50) Commodity description of the product Mandatory
miktar Double(6,2) Quantity of the product Mandatory
birim String(6) Unit measurement (pcs, kg) Mandatory
birimfiyat Double(6,2) Unit price Mandatory
gtip String(20) HSCode of the product Optional
etiket String(1) Label option. 1 for PTS Label. Optional
gonderici_yetkili String(30) Sender name
gonderici_unvan String(30) Sender Company
gonderici_adres String(30) Sender Address
gonderici_sehir String(30) Sender City
gonderici_postakodu String(30) Sender Postal Code
gonderici_ulkekodu String(30) Sender Country Code
gonderici_telefon String(30) Sender Phone
gonderici_email String(30) Sender Mail
Ebat Array Dimension in lines below per package Optional
en Double(4,1) Width in cm Optional
boy Double(4,1) Length in cm Optional
yukselik Double(4,1) Height in cm Optional
agirlik Double(6,2) Weight in Kg Optional
payType String(1) Payment Type  - “P” for Cash/td> Optional
gbeyanTutar String(20) Declaration Value Optional
ygarsivpdf String(10) URL of invoice for destination country customs Mandatory
vatno String(10) vatno Mandatory
eorino String(10) eorino Mandatory
gumruktipi String(10) Incoterm Flag : D for DDP, H for DAP(DDU) Mandatory
ioss String(10) IOSS number for EU countries Mandatory
businessmodel Integer(10) Commercial Type (e-commerce=1, Non e-Commerce=2) Optional
musteriBeyanTuru String(1) Declaration Type: M->Micro Export, N->Non-Document/Sample, D-> Doc optional
faturayetkili String(10) Name on invoice optional
faturaunvan String(10) Company name on ivoice optional
faturatelefon String(10) Phone on invoice optional
faturaemail String(10) Email on invoice optional
faturaadres String(50) Address on invoice optional
faturaulkekodu String(10) Country code on invoice optional
faturapostakodu String(10) Zipcode on invoice optional
faturasehir String(10) City on invoice optional
gonderici_vergi_no String(40) Sending Tax number optional
shipAccessCode String(1) it can be left empty optional
labelType PDF,ZPL,pdf,zpl The labelType parameter must be PDF or ZPL. Optional
gonderici_tckn String(10) sender's identity information optional
typeOfGoods String(10) Type of goods Optional









Response output

<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:server">
 <SOAP-ENV:Body>
  <ns1:addshipmentwithservicetypeResponse xmlns:ns1="urn:server""http://schemas.xmlsoap.org/soap/encoding/">
  <return xsi:type="xsd:string">"success":true,
   AWB=2280062997|CROSS=2280062997|PDF=https:\/\/www.pts.net\/WEB\/connects\/fastdespatch\/fastdPDF\/2280062997_1942319266.pdf|UYARI=Sonuc   
       </return>
       </ns1:addshipmentwithservicetypeResponse>
     </SOAP-ENV:Body>
     </SOAP-ENV:Envelope>

PDF:url of the label generated.

CROSS:1.If Success then AWB no returns.

Label 0 then AWB=2232184911
Label different then “0” then;
AWB=22xxx|CROSS=|PDF=https://www.pts.net:5161/api/ptsawb/15XXXXX_22XXXX.pdf|


crossref

It is used to access the distributor agent information. The parameters are as follows : user, password, ptsno, orderisno Special authorization is required for its use.

GET CONSİGNMENT

It returns the link of of the waybill in A4 size in pdf format.

Get Invoice

Request parameters

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv=
"http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:urn="urn:server">
<soapenv:Header/>
<soapenv:Body>
 <urn:getFatura soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <kullanici xsi:type="xsd:string">DEV-275411943848673352</kullanici>
    <sifre xsi:type="xsd:string">bbd47bf0-8ff8-11ec-83f4-005056b8981b</sifre>
    <faturaNo xsi:type="xsd:string">FT-840301</faturaNo>
    <faturaBaslangicTarihi xsi:type="xsd:string">2007-02-17</faturaBaslangicTarihi>
    <faturaBitisTarihi xsi:type="xsd:string">2007-04-17</faturaBitisTarihi>
</urn:getFatura>
</soapenv:Body>
</soapenv:Envelope>

getting billing information

parameter name type Description M/O
Kullanici String(25) Username Mandatory
Sifre String(25) Password Mandatory
faturano String(40) Invoice No
faturabaslagıctarihi Date (YYYYMMDD) Start date of the invoice
faturabitistarihi Date (YYYYMMDD) Finish date of the invoice






Response output:

If the operation is successful, the data is returned in JSON format:

<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:server">
<SOAP-ENV:Body>
    <ns1:getFaturaResponse xmlns:ns1="urn:server""http://schemas.xmlsoap.org/soap/encoding/">
     <return xsi:type="xsd:string">"success":true,
     "data":{"invoices":[{"invoice":{"number":"FT-840301","date":"2007-01-11","
     total":"73.67","KDV":"","EPH":"0.00","receiver"
     :"CANTEKS TEKS.\u0130N\u015e.DI\u015e.T\u0130C.LTD.\u015eT","address1":"MERKEZ MAH.HAVUZLAR CAD.
     ","address2":"NO:1 K:1","address3":"KA\u011eITHANE  \u0130STANBUL",
     "subItems":[{"invoiceDesc":"5558807236 IL TANGA LINGERIE LTD 1.400 KG Gross","invoiceCurrency":"EUR","invoiceAmount":"39.00",
     "KDV":""}],"supplier":"PAKET TA\u015eIMACILIK S\u0130STEMLER\u0130 A.\u015e.","taxNumber":"7190041528 \/MARMARA KUR."}}]},
     "message":"Basarili"}
     </return>
    </ns1:getFaturaResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Information about the invoice that can be used for invoice checks.

Get Label

Returns a label in A6 format. The working conditions are the same as in the addship.

This function is used to create a label. In contrast to the cross reference method when called the label changes and the label is recreated. The parameters are: user, password, ptsno, emirisno, label

An example of a returned value:
AWB=2240000001|CROSS=01505149075717|PDF=https://www.pts.net/WEB/DPDPDFV4/2240000001_1607745124.pdf|UYARI=|HATA= 
            
            

FINDING A GTIP CODE FROM A CATEGORY ID (HSCODE)

Request parameters

parameter name type Description M/O
Kullanici String(25) Username Mandatory
Sifre String(25) Password Mandatory
ulkekodu String(2) Country code (ISO 3166-1 alpha-2 standart) Mandatory
aliexpresskategoriid Integer Aliexpress category ID Mandatory

GETTING THE TYPE OF SERVICE

Ability to Receive the Type of Service with User Information

Request parameters:

parameter name type Description M/O
Kullanici String(25) Username Mandatory
Sifre String(25) Password Mandatory

GETTING WEIGHT INFORMATION

This function is used to query the weight information of a shipment

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:urn="urn:server">
<soapenv:Header/>
<soapenv:Body>
<urn:getweight soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
     <kullanici xsi:type="xsd:string">DEV-27541194384867335</kullanici>
     <sifre xsi:type="xsd:string">bbd47bf0-8ff8-11ec-83f4-005056b8981b</sifre>
     <ptsnolist SOAP-ENC:arrayType="urn:ptstrackingno[2]">
         <code xsi:type="xsd:string">2280063175</code>
         <code xsi:type="xsd:string">2280063176</code>
    </ptsnolist>        
    <siparisnoList SOAP-ENC:arrayType="urn:msiparisno[2]">
       <code xsi:type="xsd:string">96066582</code>
       <code xsi:type="xsd:string">96044959</code>
    </siparisnoList>    
 </urn:getweight>
</soapenv:Body>
</soapenv:Envelope>

Request parameters:

parameter name type Description M/O
Kullanici String(25) Username Mandatory
Sifre String(25) Password Mandatory
ptsnolist Array PTS AWB No (ptsnolist or ordersnolist is mandatory) Optional
siparisnoList Array The barcode number of your shipment belongs to you Optional









Response output:

The returned value is sent directly to the object format or array using the php json_decode function you can convert.
If it is not successful, it returns an error message that is blank or of the following type: ERROR=Not found



<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:server">
<SOAP-ENV:Body>
<ns1:getweightResponse xmlns:ns1="urn:server""http://schemas.xmlsoap.org/soap/encoding/">
    <return xsi:type="xsd:string">"success":true,
       [{"ptsno":"2280063175","siparisno":"TESTORDER35588782282","weight":"2.000","volume":[{"length":"30","width":"40","height":"60"}]},
       {"ptsno":"2280063176","siparisno":"TESTORDER35588782283","weight":"2.000","volume":[{"length":null,"width":null,"height":null}]}]
    </return>
</ns1:getweightResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Getting Customs Declaration(ETGB) Information

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:urn="urn:server">
    <soapenv:Header/>
     <soapenv:Body>
        <urn:gumrukbeyan soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
        <kullanici xsi:type="xsd:string">DEV-27541194384867335</kullanici>
        <sifre xsi:type="xsd:string">bbd47bf0-8ff8-11ec-83f4-005056b8981b</sifre>
        <ptsno xsi:type="xsd:string">2007-02-17</faturaBaslangicTarihi>
        <siparisno xsi:type="xsd:string">2007-04-17</faturaBitisTarihi>
        </urn:gumrukbeyan>
    </soapenv:Body>
    </soapenv:Envelope>

Request parameters:

This function is used to query the customs declaration information of a shipment

parameter name type Description M/O
Kullanici String(25) Username Mandatory
Sifre String(25) Password Mandatory
siparisno String(40) Your uniqe order number Mandatory
ptsno String(10) PTS AWB No Optional

The field descriptions are the same as the other functions.
Parameters: kullanici, sifre, ptsno, siparisnoSaha
Example:
'siparisno'=>'stest34234234',…
Authorization is required for its use.

Response output:


    Server response example:
     2245013963|66179116|20343200EX025010|2020-09-17|116.05|EUR|116.05   

Returning pitches:
PtsNo
SiparişNo, TGCB No, BeyanTarihi (YYYY-MM-DD), declared value,
Declared currency
Amount in euros (converted from the CBRT exchange rate on the date of shipment)

printed

This function is used both when the shipment is delivered to the PTS officer and when a recorded it is used to update the size and weight information of the shipment. In order for this function to work, the shipment was previously uploaded to the system with the addshipment function it is necessary to be. When this function is called,it means that the send label has been printed and delivered to the PTS courier is coming from. This data is used for daily reconciliation reports.

REMOVE SHIPMENT

the function allows the deletion of a saved post. For cancelled orders usable.

In order for this method to be used, the shipment must not have been delivered by PTS is required. Its parameters are :
kullanici, sifre, ptsno, siparisno The field descriptions are the same as the addship. one of ptsno or order no is enough. Example: … 'siparisno'=>'stest34234234', … If the operation is successful, “xxx deleted. " returns a message in the form of, if not successful, the following type of error messages: ERROR: xxx could not be deleted! He saw movement. ERROR: xxx could not be found!

tracker

it works with the same parameters as the crossref function. The latest status of the shipment from the distributor agents queries. Returns the data as follows: 2231048841||ZZZ FREIGHT -AGENT NAME-|01505148980856/https://tracking.zzz.de/parcelstatus? query=01505148980856&locale=en_D2 The last piece of information returned is the shipment tracking link. If the shipment distributor agent if it has not yet been processed by the PTS, the tracking connection of the PTS returns. If the shipment is by the agent if it has been processed, the tracking link belonging to the agent returns. This function allows e-commerce companies to, it has been added so that it can share the current tracking link directly with its own customers. Special authorization is required for its use.

TRACKING

This function is used for the purpose of tracking shipments.

Request parameters:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn=
     "urn:server">
     <soapenv:Body>
     <soapenv:Header/>
      <urn:tracking soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <kullanici xsi:type="xsd:string">DEV-27541194384867335</kullanici>
         <sifre xsi:type="xsd:string">bbd47bf0-8ff8-11ec-83f4-005056b8981b</sifre>
         <ptsno xsi:type="xsd:unsignedLong">0</ptsno>
         <siparisno xsi:type="xsd:string">PTSTST{%Y-%m-%d}-001</siparisno>
         <dil xsi:type="xsd:string">TR</dil>
      </urn:tracking>
      </soapenv:Body>
 </soapenv:Envelope>
parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
siparisno String(40) The barcode number of your shipment belongs to you Mandatory
ptsno String(10) PTS AWB No Optional
dil String(10) language Optional

Language Field descriptions are the same as addship. the language field can be ”TR”,”EN“ or ”DE". Examples: 1)... 'ptsno'=>5552221915, 'dil'=>'en' … 2)... 'siparisno'=>'stest34234234', 'dil'=>'en' …






Response output:


    [{"tarih":"2017-04-10","saat":"16:21","durumkodu":"222","durum":"Abgang ab Station","detay":"test"},
    {"tarih":"2017-05- 19","saat":"11:00","durumkodu":"225","durum":"Ankunft in der Station","detay":"Cologne -
    Germany"},{"tarih":"2017-06-12","saat":"10:00","durumkodu":"225","durum":"Ankunft in der Station",
    "detay":"COLOGNE - GERMANY"}]
                    

If the operation is successful, the data is returned in JSON format:
The returned value is sent directly to the object format or array using the php json_decode function you can convert.
If it is not successful, it returns an error message that is blank or of the following type: ERROR=Not found



Tracking Xml

this function has the same function as the tracking function, it produces output in xml format differently.

trackıngmultı

This function is used for the purpose of tracking shipments.

Request parameters:

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
ptsno String(10) PTS AWB No Optional
siparisno String(40) The barcode number of your shipment belongs to you Optional
dil String(2) Language Option is optional Optional

trackıngxmllatest

This function is used for the purpose of tracking shipments.

Request parameters:

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
ptsno String(10) PTS AWB No Optional
siparisno String(40) The barcode number of your shipment belongs to you Optional
dil String(2) Language Option is optional Optional

trackıngxmlmultıwıthgroup

This function is used for the purpose of tracking shipments.

Request parameters:

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
ptsno String(10) PTS AWB No Optional
siparisno String(40) The barcode number of your shipment belongs to you Optional
dil String(2) Language Option is optional Optional

updatedim

This function is used to update the size and weight information of a saved shipment is used. In order for this function to work, the shipment was previously uploaded to the system with the addshipment function it is necessary to be. … 'order'=>'stest34234234', 'total kg'=>0.25, // weight in kg ‘size'=>$size … If the operation is successful, an ARROW-shaped message is returned, if not successful, an error message of the following type: ERROR= This order did not move

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
ptsno String(10) PTS AWB No Optional
siparisno String(40) The barcode number of your shipment belongs to you Mandatory
Ebat Array Dimension in lines below per package Optional
    width Double(4,1) Width in cm Optional
    length Double(4,1) Length in cm Optional
    height Double(4,1) Height in cm Optional
    Weight Double(6,2) Weight in Kg Optional

Updating Customer Invoice Information

This newly added function is for updating the billing information of a saved shipment it is being used. In order for this function to work, the shipment was previously sent to the system with the addshipment function it is necessary that it is loaded.

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
ptsno String(10) PTS AWB No Optional
siparisno String(40) The barcode number of your shipment belongs to you Mandatory
faturano String(40) Invoice No Mandatory
faturatarihi Date (YYYYMMDD) Invoice Date Mandatory
earsivpdf String(250) E-Arşiv Pdf Link Mandatory
ygarsivpdf String(250) Arrival Customs Commercial Invoice PDF Link Optional

Updating Customer Invoice Information By Uploading a File

This newly added function is for updating the billing information of a saved shipment it is being used. unlike the updateinvoice method, you can transmit files as an image in base64 format, not as a URL. Supports PDF format only. In order for this function to work, the shipment was previously sent to the system with the addshipment function it is necessary that it is loaded.

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
ptsno String(10) PTS AWB No Optional
siparisno String(40) The barcode number of your shipment belongs to you Mandatory
faturano String(40) Invoice No Mandatory
faturatarihi Date (YYYYMMDD) Invoice Date Mandatory
base64earsivPdfContent String(250) E-Arşiv Base64 Pdf Image Mandatory
base64ygarsivPdfContent String(250) Arrival Customs Commercial Invoice PDF Base64 Image Optional

Updating the Billing Information for the Main Shipment Information For the NAR Shipment

Request parameters:

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
masterno Integer(7) Ana Nar Shipment no/td>
faturano String(45) Invoice no
faturatarihi Date (YYYYMMDD) Invoice Date
arsivpdf String(250) Pdf the web address of the invoice (it will open when clicked)

updateConsigneeID

Used to update Recipient Credentials

Request parameters:

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
ptsno String(10) PTS AWB No Mandatory
name String(10) Name Optional
lastName String(10) Last Name Optional
patronymic String(250) name of paternal origin Optional
sex String(10) Gender Optional
birthDate Date (YYYYMMDD) BirthDate Optional
birthPlace String(10) birth Place Mandatory
docTypeCode String(10) Document Type Optional
docSeries String(10) Document Serial Number Optional
docNumber String(10) Document No Optional
docDate Date (YYYYMMDD) Document Date Optional
docOrganization String(10) Document Organization Optional
docOrganizationCode String(10) Document Optional
taxNumber String(10) tax Number Optional

update ıdentıty ınfo

Used to update Recipient Credentials

Request parameters:

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
ptsno String(10) PTS AWB No Mandatory
name String(10) Name Optional
lastName String(10) Last Name Optional
patronymic String(250) name of paternal origin Optional
sex String(10) Gender Optional
birthDate Date (YYYYMMDD) BirthDate Optional
birthPlace String(10) birth Place Mandatory
docTypeCode String(10) Document Type Optional
docSeries String(10) Document Serial Number Optional
docNumber String(10) Document No Optional
docDate Date (YYYYMMDD) Document Date Optional
docOrganization String(10) Document Organization Optional
docOrganizationCode String(10) Document Optional
taxNumber String(10) tax Number Optional

add ıdentıty ınfo

Used to update Recipient Credentials

Request parameters:

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
ptsno String(10) PTS AWB No Mandatory
name String(10) Name Optional
lastName String(10) Last Name Optional
patronymic String(250) name of paternal origin Optional
sex String(10) Gender Optional
birthDate Date (YYYYMMDD) BirthDate Optional
birthPlace String(10) birth Place Mandatory
docTypeCode String(10) Document Type Optional
docSeries String(10) Document Serial Number Optional
docNumber String(10) Document No Optional
docDate Date (YYYYMMDD) Document Date Optional
docOrganization String(10) Document Organization Optional
docOrganizationCode String(10) Document Optional
taxNumber String(10) tax Number Optional

updatepickup

It is used to update the dispatches of the generated Call. (ptsnolist is the method of updating the shipment number information with the call number consisting of the createpickup method service)

Request parameters:

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
ptsnolist Array PTS AWB No Mandatory
cagri_numarasi String(8) Call Number Mandatory

cancelpickup

This function allows a recorded call to be deleted. used to delete a call created with the (createpickup) service

Request parameters:

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
cagri_numarasi String(8) Call Number Mandatory

getPrices

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv=
"http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:urn="urn:server">
<soapenv:Header/>
<soapenv:Body>
<urn:getPrices soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<kullanici xsi:type="xsd:string">DEV-27541194384867335</kullanici>
<sifre xsi:type="xsd:string">bbd47bf0-8ff8-11ec-83f4-005056b8981b</sifre>
<ulkekodu xsi:type="xsd:string">NL</ulkekodu>
<customsType xsi:type="xsd:string">D</customsType>
<ebat xsi:type="urn:dims" SOAP-ENC:arrayType="urn:dim[2]">
<dim>
    <en xsi:type="xsd:string">20</en>
    <boy xsi:type="xsd:decimal">20</boy>
    <yukseklik xsi:type="xsd:string">10</yukseklik>
    <agirlik xsi:type="xsd:decimal">0.75</agirlik>            
   </dim>
<dim>
    <en xsi:type="xsd:decimal">20</en>
    <boy xsi:type="xsd:decimal">20</boy>
    <yukseklik xsi:type="xsd:decimal">10</yukseklik>
    <agirlik xsi:type="xsd:decimal">1.25</agirlik>            
   </dim>
</ebat>
</urn:getPrices>
</soapenv:Body>
</soapenv:Envelope>

This function is used to bring up the price list of companies that depend on the entered size and country information.

Request parameters:

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
ulke_kodu String(2) Country code (ISO 3166-1 alpha-2 standart) Mandatory
customsType String(1) According to the Type of Customs Optional
Ebat Array Dimension in lines below per package Optional
    en Double(4,1) Width in cm Optional
    boy Double(4,1) Height in cm Optional
    yukselik Double(4,1) Length ebat bilgisi cm cinsinden Optional
    agirlik Double(6,2) Weight in Kg Optional


















<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:server">
<SOAP-ENV:Body>
<ns1:getPricesResponse xmlns:ns1="urn:server""http://schemas.xmlsoap.org/soap/encoding/">
    <return xsi:type="xsd:string">"success":true,
    {"Fiyat":[{"serviceName":"Eco","currency":"EUR","price":"11.26","priceTL":"231.88","chargableWeight":"1.500"}]}
    </return>
</ns1:getPricesResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response output:

If the operation is successful, the data is returned in JSON format:
The returned value is sent directly to the object format or array using the php json_decode function you can convert.
If it is not successful, it returns empty [ ]

updateproform

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv=
"http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:urn="urn:server">
<soapenv:Header/>
<soapenv:Body>
<urn:updateproform soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<kullanici xsi:type="xsd:string">DEV-27541194384867335</kullanici>
<sifre xsi:type="xsd:string">bbd47bf0-8ff8-11ec-83f4-005056b8981b</sifre>
<ptsno xsi:type="xsd:unsignedLong">0</ptsno>
</urn:updateproform>
</soapenv:Body>
</soapenv:Envelope>

This is the method used to update the proforma items of the post.

Request parameters:

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
proforma Array proforma Mandatory
ptsno String(10) PTS AWB No Mandatory
siparisno String(40) The barcode number of your shipment belongs to you Optional





Response output:

AWB=0 proforma items updated



getPickupInfo

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv=
"http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:urn="urn:server">
<soapenv:Header/>
<soapenv:Body>
<urn:getPickupInfo soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<kullanici xsi:type="xsd:string">DEV-27541194384867335</kullanici>
<sifre xsi:type="xsd:string">bbd47bf0-8ff8-11ec-83f4-005056b8981b</sifre>
<cagri xsi:type="xsd:string">21416311</cagri>
</urn:getPickupInfo>
</soapenv:Body>
</soapenv:Envelope>

This method is used to list the information belonging to the call and the shipments/shipments that are available in that call.

Request parameters:

parameter name type Description M/O
Kullanici String(25) API User name Mandatory
Sifre String(25) API Password Mandatory
cagri Integer Call Number Mandatory


















<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:server">
<SOAP-ENV:Body>
<ns1:getPickupInfoResponse xmlns:ns1="urn:server""http://schemas.xmlsoap.org/soap/encoding/">
    <return xsi:type="xsd:string">"success":true,
    {"Çağrı":[{"Unvan":"PTSTEST","Adres":"YENİBOSNA MERKEZ MAH. CEMAL ULUSOY CAD. NO:57/2 YENİBOSNA BAHÇELİEVLER ISTANBUL 34197","Telefon":"90(212)444 0787","E-mail":"test@test.com","Tarih":"2023-02-27","Çağrı Durumu":"Onaylandı","Çağrı Durum Kodu":"O"},{"Gönderi":"5515083278","Gönderi Durumu":"Gönderi Toplanmadı","Status":"1"}]}
    </return>
</ns1:getPricesResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response output:

If the operation is successful, the data is returned in JSON format:
The returned value is sent directly to the object format or array using the php json_decode function you can convert.
If it is not successful, it returns empty [ ]


The Status Codes and Descriptions returning from the Responseta are as follows;


Call Status Code Status Description
B It was Reported to the Courier
C The Call Has Come
E Postponed
O Approved
T Completed
W Cancellation Request
X Cancel

Responseta returning Post Status Codes and Descriptions are as follows;


Shipment Status Code Status Description
0 Cancel
1 The Post Was Not Collected
2 The Shipment Was Collected


Service Options by Codes

List of service codes that can be used

Service Code Prefix Description
E 22 ecoPTS
X 55 PTS Express
A 66 Aliexpress
W 77 Wish PTT
T 88 Etsy
J 99 Jumia
C 44 Çiçek Sepeti
H 65 Hedef Avrupa
M 33 Cainiao MENA
U 53 UPS Express
F 54 FEDEX Express
P 24 PTS Mail
Y 23 US ECO
G 25 GBS Rusya
D 26 UPS Expedited
L 27 PTS Flex
S 28 PTS Smart
Q 52 DHL Express
O 45 OZON
R 68 Aliexpress Rusya
I 11 Import
K 29 TY KARAYOLU
B 46 SMSA MENA
N 56 UPS SAVER
Z 21 PTS US-D
1 20 JOOM KARAYOLU
2 30 PTS Flex MENA
V 47 Starlinks MENA
3 31 SPEGAT RUSYA
4 57 Imile MENA
5 32 PTS US-D-EXPEDITED
6 34 FirsMile
7 60 USECO-C
8 70 JOOMINTPTT
9 80 Wallmart
S1 90 SMSATR MENA
CE 91 CEE Air
CM 92 CEE Minivan
UN 72 US-NED
TK 36 Tnt Karayolu
SP 43 Shopify
DM 37 DGR MENA
AZ 40 Amazon
EB 41 Ebay


MOVEMENT(EXCEPTION) CODES

Codes belonging to all movements belonging to the results returned in the tracking methods.

Status Code Status Description
001 The Shipment Was Collected By Courier
004 The Shipment Data Has Arrived
007 Has been sacked
008 API INSTRUCTION
009 Sack Changes Have Been Made
010 Reached Damaged
012 VIAEU Bag Reading
016 Operations Operations are expected
020 Reached Out to The Agent
100 Ordino in Customs
101 During the Airline Transfer Process
104 Delivered to Recipient
105 Customs Advisor Notified
106 Loaded onto Vehicle
107 Vehicle Change
108 Waiting for Power of Attorney from Recipient
113 Waiting for Power of Attorney
201 In Special Price Inquiry Process
203 Special Price Offer Rejected
210 Did Not Reach Operation Area
212 Returned to Center
216 Approval Received from Agent
217 Next Day Flight
218 Shipment on Hold
219 Shipment Reached Center
220 Approval Expected from Agent
221 Branch Exit
222 Preparing for Flight
224 Processed at Cologne Operation
225 Hub Entry
226 At Transfer Station
227 Hub Exit
230 Customs Inspection
240 Abandoned at Customs
250 Withdrawn from Customs
251 Withdrawn from B2B Customs
255 Customs Procedures Ongoing
260 Confiscated by Customs
261 Monthly 5 Shipment Limit Exceeded
270 Missed Linehaul
280 Delay in Transfer
285 Weather Conditions
290 Wrong Destination. Redirected
300 Out for Delivery
304 Out for Delivery
305 Transfer Completed
310 Holiday
330 Delivery Location Closed
400 Wrong Address, Contact with PTS
401 Recipient Moved
402 Delivery Requested to Another Address
405 Address Corrected
420 Delivery Cannot Be Made
430 Shipment Rejected
440 Collect Rejected
450 Delivery Requested for Later
460 Parcelshop Delivery. Awaiting Recipient
477 Returned to AFS Cologne Office
478 Returned to PTS London Office
479 Returned to PTS Amsterdam Depot
550 Due to Customs Issues
710 ATR DOCUMENTED SHIPMENT
720 EUR 1 DOCUMENTED SHIPMENT
730 ORIGIN CERTIFICATE DOCUMENTED SHIPMENT
777 Tracer Opened
778 Tracer Closed
780 Claim Opened
781 Claim Closed
800 Destroyed
888 Lost
890 Payment Expected
891 Payment Received
900 Reverse Operation
901 Return from Dispatch Center to Sender
910 Shipment Cancelled
990 Damaged
992 Delivery Planned
993 AFS Redirect
994 Return Process Completed
995 Delivered to Customs Advisor
996 Estimated Delivery Date
997 Returned to Sender
998 Delivered to Local Agent
999 Delivered

For your questions or solutions, please contact our company itdestek@pts.net