Download the PHP package tcgunel/omniship-surat without Composer
On this page you can find all versions of the php package tcgunel/omniship-surat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tcgunel/omniship-surat
More information about tcgunel/omniship-surat
Files in tcgunel/omniship-surat
Download tcgunel/omniship-surat
More information about tcgunel/omniship-surat
Files in tcgunel/omniship-surat
Vendor tcgunel
Package omniship-surat
Short Description Sürat Kargo carrier for Omniship
License MIT
Package omniship-surat
Short Description Sürat Kargo carrier for Omniship
License MIT
Please rate this library. Is it a good library?
Informations about the package omniship-surat
Omniship Surat Kargo
Surat Kargo carrier driver for the Omniship shipping library.
Uses the unified SOAP API at webservices.suratkargo.com.tr/services.asmx with the newer GonderiyiKargoyaGonderYeniSiparisBarkodOlustur method that returns structured responses with barcode.
Installation
Usage
Initialize
Note: Surat Kargo uses separate passwords for shipment operations (
sifre) and tracking queries (webSifre). The web service password is customer-defined at ekargo.suratkargo.com.tr.
Create Shipment
Cash on Delivery (Kapida Odeme)
Track Shipment
Cancel Shipment
API Endpoints
| Environment | URL |
|---|---|
| Production | https://webservices.suratkargo.com.tr/services.asmx |
| Test | https://prova.suratkargo.com.tr/services.asmx |
Legacy Endpoints (from PDF docs, for reference)
| Service | URL |
|---|---|
| Gonderi (Prod) | http://www.suratkargo.com.tr/GonderiWebServiceGercek/service.asmx |
| Gonderi (Test) | http://www.suratkargo.com.tr/GonderiWebServiceProva/service.asmx |
| Takip (Prod) | http://webservices.suratkargo.com.tr/services.asmx |
| Takip (Test) | https://esatis.suratkargo.com.tr/services.asmx |
Credentials
Surat Kargo uses three credentials (unlike most Turkish carriers):
| Credential | Field | Used For | Set By |
|---|---|---|---|
| Cari Kodu | kullaniciAdi / cariKodu |
All operations | Surat Kargo (10-digit) |
| Cari Sifresi | sifre |
Shipment creation, cancel | Surat Kargo |
| Web Servis Sifresi | webSifre |
Tracking, reporting | Customer (at ekargo portal) |
Test Credentials
| Field | Value |
|---|---|
| Cari Kodu | 1038106246 |
| Cari Sifresi | 123456 |
| Web Servis Sifresi | 123456.Ff |
| COD Cari Kodu | 1038106247 |
| COD Cari Sifresi | 1234567 |
| Test Tracking Codes | 123456789, 12v34567g89 |
SOAP Methods Used
| Operation | SOAP Method | Description |
|---|---|---|
| Create Shipment | GonderiyiKargoyaGonderYeniSiparisBarkodOlustur |
Returns structured response with barcode |
| Track Shipment | KargoTakipHareketDetayliV2 |
Detailed tracking by WebSiparisKodu |
| Cancel Shipment | GonderiGeriCek |
Cancel with reason (IptalNeden) |
Alternative Methods Available
| Method | Description |
|---|---|
GonderiyiKargoyaGonder |
Legacy create (returns "Tamam" string, no barcode) |
GonderiyiKargoyaGonderYeni |
Newer create (returns string, no barcode) |
WebSiparisKodu |
Track by order code (returns DataSet) |
TakipNo |
Track by Surat's barcode number (returns DataSet) |
GonderiSil |
Delete shipment (different auth: cariKodu + WebPassword) |
WebSiparisKodundanKargoTeslimatBilgisi |
Delivery info (returns TeslimatBilgisiSonuc) |
Gonderi Fields
| Field | Type | Required | Description |
|---|---|---|---|
| KisiKurum | string | Yes | Recipient name |
| AliciAdresi | string | Yes | Full address (single field) |
| Il | string | Yes | City/Province |
| Ilce | string | Yes | District |
| TelefonCep | string | Conditional | Mobile phone (required if SMS service) |
| KargoTuru | int | Yes | 1=Dosya, 2=Mi, 3=Koli |
| OdemeTipi | int | Yes | 1=Pesin (sender), 2=Ucret Alici (receiver) |
| Adet | int | Yes | Package count |
| OzelKargoTakipNo | string | No | Your custom tracking code |
| BirimDesi | string | No | Volumetric weight per unit |
| BirimKg | string | No | Weight per unit |
| KapidanOdemeTahsilatTipi | int | If COD | 1=Nakit, 2=POS |
| KapidanOdemeTutari | string | If COD | COD amount |
| IrsaliyeSeriNo | string | If COD | Invoice serial number |
| IrsaliyeSiraNo | string | If COD | Invoice sequence number |
| TeslimSekli | int | No | 1=Address delivery, 2=Branch pickup |
Notes
- The unified service at
webservices.suratkargo.com.trcontains both shipment creation and tracking methods. Legacy separate endpoints may return 404. OzelKargoTakipNo(custom tracking number) set during creation becomes theWebSiparisKoduused for tracking queries.TakipNoin tracking responses is Surat Kargo's internal barcode number (14 digits).- Address is a single field (
AliciAdresi), not structured.Il(city) andIlce(district) are separate required fields. - Cancel requires
IptalNeden(cancellation reason) — it is mandatory. - The
EkHizmetlerfield accepts comma-separated service names:GondericiyeSms,TelefonIhbar,AliciyaSms,AdrestenAlim.
Testing
License
MIT
All versions of omniship-surat with dependencies
PHP Build Version
Package Version
The package tcgunel/omniship-surat contains the following files
Loading the files please wait ...