Shipment Flows
This part of the document contains the list of services that can be integrated in flows above. 2 configuration parameters will be shared during integration:
password
Password for basic authentication
This parameter indicates which credentials should be used for multi-account management. It is an optional parameter, and even if not sent, a default set of credentials should be defined:
generate-shipment (POST)
This service is used to start a new shipping process.
URL
Request Headers
x-akinon-api-version
Akinon Customer API version.
Mandatory
x-akinon-credentials-identifier
Unique id specifying the credentials for multiple account
Optional
Authorization
Basic [BASE64_encoded(username:password)]
Mandatory
Request Body raw (json)
Sender Address Information
If your service requires a sender information ID with a predefined sender address, the following part is sent in addition to the above request. This originId must be the same as the addressId in the response of the generate address service.
Product List Information
If your service needs product information, these will be filled from product attributes in addition to the above request as a hashMap. Keys in the hashMap may change depending on the availability of product attributes.
Payment Information
If the payment type is pay on delivery, the following information will be sent in addition to the above request.
Statuses
DELETED
The package has not yet been received by the cargo company and the sender canceled and deleted previously created records.
SHIPPING
From the receipt of the package to the first arrival at the customer.
ATTEMPTED_DELIVERY
The package could not be delivered due to the customer.
DELIVERED
Delivered.
DELIVERY_FAILED
The package could not be delivered for any reason.
READY_FOR_PICKUP
The package has arrived at the pickup location.
Response Body raw 200 (json)
query-shipment (GET)
This service is used to query the latest status of previously initiated cargo transactions.
URL
Request Headers
x-akinon-api-version
Akinon Customer API version.
Mandatory
x-akinon-credentials-identifier
Unique id specifying the credentials for multiple account
Optional
Authorization
Basic [BASE64_encoded(username:password)]
Mandatory
Request Parameters
queryType: SHIPMENT_ID
(default), WAYBILL_NUMBER
, TRACKING_NUMBER
This parameter indicates which value is sent in the ID field. If there is no parameter, the default value should be used.
Request Body
Response Body raw 200 (json)
query-shipment-history (GET)
This service is used to inquire in detail the latest status of the cargo transactions that have been initiated before.
URL
Request Headers
x-akinon-api-version
Akinon Customer API version.
Mandatory
x-akinon-credentials-identifier
Unique id specifying the credentials for multiple account
Optional
Authorization
Basic [BASE64_encoded(username:password)]
Mandatory
Request Parameters
queryType: SHIPMENT_ID
(default), WAYBILL_NUMBER
, TRACKING_NUMBER
This parameter indicates which value is sent in the ID field. If there is no parameter, the default value should be used.
Request Body
Response Body raw 200 (json)
delete-shipment (DELETE)
This service is used to cancel the previously initiated cargo transactions before the carrier receives the package.
URL
Request Headers
x-akinon-api-version
Akinon Customer API version.
Mandatory
x-akinon-credentials-identifier
Unique id specifying the credentials for multiple account
Optional
Authorization
Basic [BASE64_encoded(username:password)]
Mandatory
Request Body
Response Body raw 204
update-shipment (PATCH)
This service is used to update the address information of the previously created cargo request.
URL
Request Headers
x-akinon-api-version
Akinon Customer API version.
Mandatory
x-akinon-credentials-identifier
Unique id specifying the credentials for multiple account
Optional
Authorization
Basic [BASE64_encoded(username:password)]
Mandatory
Request Body raw (json)
Response Body raw 200
query-shipment-label (GET)
This service is used to retrieve the label of the previously created cargo request.
URL
Request Headers
x-akinon-api-version
Akinon Customer API version.
Mandatory
x-akinon-credentials-identifier
Unique id specifying the credentials for multiple account
Optional
Authorization
Basic [BASE64_encoded(username:password)]
Mandatory
Request Parameters
Request Body
Response Body raw 200 (json)
generate-easy-return (POST)
This service is used to initiate the return process of the product that has been delivered.
URL
Request Headers
x-akinon-api-version
Akinon Customer API version.
Mandatory
x-akinon-credentials-identifier
Unique id specifying the credentials for multiple account
Optional
Authorization
Basic [BASE64_encoded(username:password)]
Mandatory
Request Body raw (json)
If target location information and detailed information are required for easy return, the following part will be sent in addition to the above request:
If destination address has a predefined addressId it can be used instead of detailed open address above. This destinationId must be the same as the addressId in the response of the generate address service.
If the package is to be picked up from the customer's address, the following part will be sent in addition to the above request.
If your service needs product information, these will be filled from product attributes in addition to the above request as a hashMap. Keys in the hashMap may change depending on the availability of product attributes.
If your service needs pickup date, the following part will be sent in addition to the above request. Available pickup dates can be obtained from search-appointment-dates service.
Response Body raw 200 (json)
query-easy-return (GET)
This service is used to query the latest status of the product whose return process has started.
URL
Request Headers
x-akinon-api-version
Akinon Customer API version.
Mandatory
x-akinon-credentials-identifier
Unique id specifying the credentials for multiple account
Optional
Authorization
Basic [BASE64_encoded(username:password)]
Mandatory
Request Body
Response Body raw 200 (json)
delete-easy-return (DELETE)
This service is used to cancel the initial return process.
URL
Request Headers
x-akinon-api-version
Akinon Customer API version.
Mandatory
x-akinon-credentials-identifier
Unique id specifying the credentials for multiple account
Optional
Authorization
Basic [BASE64_encoded(username:password)]
Mandatory
Request Body
Response Body raw 204
search-appointment-dates (POST)
This service is used to get available appointment dates. It can be used for expected date of delivery when ordering or pickup date for easy return.
URL
Request Headers
x-akinon-request-id
Unique ID for problem solving & tracing.
Mandatory
x-akinon-api-version
Akinon Customer API version.
Mandatory
Request Body
Response Body raw 200 (json)
generate-address (POST)
This service is used to generate a new predefined shipping address.
URL
Request Headers
x-akinon-api-version
Akinon Customer API version.
Mandatory
x-akinon-credentials-identifier
Unique id specifying the credentials for multiple account
Optional
Authorization
Basic [BASE64_encoded(username:password)]
Mandatory
Request Body
If your service requires coordinates of address, the following part is sent in addition to the above request.
If your service requires hours the location is open, the following part is sent in addition to the above request.
Response Body raw 201 (json)
get-addresses (POST)
This service is used to get predefined shipping addresses.
URL
Request Headers
x-akinon-api-version
Akinon Customer API version.
Mandatory
Authorization
Basic [BASE64_encoded(username:password)]
Mandatory
Request Body
If your service needs product information, these will be filled from product attributes in addition to the above request as a hashMap. Keys in the hashMap may change depending on the availability of product attributes.
Response Body raw 200 (json)
get-address-detail (GET)
This service is used to get details of predefined delivery addresses.
URL
Request Headers
x-akinon-api-version
Akinon Customer API version.
Mandatory
Authorization
Basic [BASE64_encoded(username:password)]
Mandatory
Request Body
Response Body raw 200 (json)
Response Body For Errors (ALL)
If any errors are encountered in the services, these errors should be reported in the format below, and the list of error codes should be shared with Akinon.
Response Body raw 4xx/5xx (json)
Was this helpful?