Skip to main content

Shipping Query URL

After the user selects their address in the Akifast, a request is sent to the merchant to inquire about the shipping options that will deliver to that address. The URL to which the request will be sent is determined by the query_shipping_option_url parameter sent when the payment session is created by the merchant.

Akifast sends a POST request to the merchant's specified query_shipping_option_url with the parameters listed below.

Query Parameters

ParameterTypeDescription
order_idstringOrder number on the merchant side.
session_tokenstringPayment session key obtained by the merchant.
basket_idstringBasket identifier.
shipping_address.namestringName of the address holder.
shipping_address.surnamestringSurname of the address holder.
shipping_address.phone_numberstringPhone number of the address holder.
shipping_address.postal_codestringPostal code of the address.
shipping_address.notesstringAdditional notes about the address.
shipping_address.company_namestringCompany name if the address is a corporate one.
shipping_address.address_titlestringDescription of the address.
shipping_address.tax_nostringTax number for a corporate address.
shipping_address.tax_officestringTax office for a corporate address.
shipping_address.is_defaultbooleanIndicator for the default address.
shipping_address.linestringAddress information.
shipping_address.address_typestringAddress type (CUSTOMER, RETAIL_STORE).
shipping_address.country.namestringCountry name.
shipping_address.country.codestringCountry code.
shipping_address.city.namestringCity name.
shipping_address.city.codestringCity code.
shipping_address.town.namestringTown name.
shipping_address.town.codestringTown code.
shipping_address.district.namestringDistrict name.
shipping_address.statusstringStatus of the address.
shipping_address.hash_datastringUnique hash code for the address.
billing_address.namestringName of the billing address.
billing_address.surnamestringSurname of the billing address.
billing_address.phone_numberstringPhone number of the billing address.
billing_address.postal_codestringPostal code of the billing address.
billing_address.notesstringAdditional notes about the billing address.
billing_address.company_namestringCompany name if the billing address is a corporate one.
billing_address.address_titlestringDescription of the billing address.
billing_address.tax_nostringTax number for a corporate billing address.
billing_address.tax_officestringTax office for a corporate billing address.
billing_address.is_defaultbooleanIndicator for the default billing address.
billing_address.linestringBilling address information.
billing_address.address_typestringBilling address type (CUSTOMER, RETAIL_STORE).
billing_address.country.namestringBilling country name.
billing_address.country.codestringBilling country code.
billing_address.city.namestringBilling city name.
billing_address.city.codestringBilling city code.
billing_address.town.namestringBilling town name.
billing_address.town.codestringBilling town code.
billing_address.district.namestringBilling district name.
billing_address.statusstringStatus of the billing address.
billing_address.hash_datastringUnique hash code for the billing address.
conversation_idstringPrivate conversation identifier.

Example Request

{
"order_id":"8mMk171XX44919465",
"session_token":"3a78d9f7-d8af-40XX-ae70-1daacaf802a9",
"basket_id":"17108XX919465",
"shipping_address":{
"name":"t2",
"surname":"c2",
"phone_number":"+905XXXXXXXXX",
"postal_code":"",
"notes":null,
"company_name":"",
"address_title":"sample title",
"tax_no":"",
"tax_office":"",
"is_default":true,
"line":"test",
"address_type":"CUSTOMER",
"country":{
"name":"Türkiye",
"code":"TR"
},
"city":{
"name":"İSTANBUL",
"code":"ISTANBUL"
},
"town":{
"name":"BAKIRKÖY",
"code":"ISTANBUL_BAKIRKOY"
},
"district":{
"name":"OSMANİYE MAH",
"code":"89069292"
},
"status":"ACTIVE",
"hash_data":"ACC2D0D134ABDC210C55AB6BC96E5XXB4B7A7CA899131EE182313C94DBA1DC43",
"phone":{
"country_phone_code":"+90",
"national_phone_number":"5XXXXXXXXX"
}
},
"billing_address":{
"name":"t2",
"surname":"c2",
"phone_number":"+905XXXXXXXXX",
"postal_code":"",
"notes":null,
"company_name":"",
"address_title":"sample title",
"tax_no":"",
"tax_office":"",
"is_default":true,
"line":"test",
"address_type":"CUSTOMER",
"country":{
"name":"Türkiye",
"code":"TR"
},
"city":{
"name":"İSTANBUL",
"code":"ISTANBUL"
},
"town":{
"name":"BAKIRKÖY",
"code":"ISTANBUL_BAKIRKOY"
},
"district":{
"name":"OSMANİYE MAH",
"code":"89069292"
},
"status":"ACTIVE",
"hash_data":"ACC2D0D134ABDC210C55AB6BC96E5XXB4B7A7CA899131EE182313C94DBA1DC43",
"phone":{
"country_phone_code":"+90",
"national_phone_number":"5XXXXXXXXX"
}
},
"conversation_id":"42XX231"

Response Parameters

Return ValueTypeDescription
countstringNumber of shipping options.
shipping_options[0].descriptionstringDescription of the shipping option.
shipping_options[0].logo_urlstringURL of the image representing the shipping company.
shipping_options[0].namestringName of the shipping company.
shipping_options[0].keystringAkinon key of the shipping company.
shipping_options[0].shipping_amountnumberShipping cost.

Example Response

{
"count":2,
"shipping_options":[
{
"description":"Hafta içi ve Cumartesi 15:00'e kadar verilen siparişler, aynı gün içinde 23:00'e kadar teslim edilir. 15:00'den sonra, Pazar günleri ve resmi tatil günlerinde verilen siparişler ise takip eden ilk iş günü saat 23:00'e kadar teslim edilir.",
"logo_url":"https://samplelogourl",
"name":"Sample Cargo-1",
"key":"12",
"shipping_amount":9.9
},
{
"description":"Siparişin 2-4 iş günü içerisinde kargoya verilecektir.",
"logo_url":"https://samplelogourl",
"name":"Sample Cargo-2",
"key":"14",
"shipping_amount":19.9
}
]
}