Skip to content

Get Export Codes​

GET
/api/v1/shared/export-codes

Lists the export codes that can be used in package shipments, with pagination.

Parameters​

Header Parameters

Authorization*

Token returned by the Get Token request, with the Bearer prefix

Typestring
Required
Example"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.signature"
Accept-Language

Language of country and unit of measure names and validation error messages. English when it starts with en (e.g. en, en-US), Turkish otherwise. Success messages are always in Turkish.

Typestring
Examples
"tr"
"en"
Default"tr"

Query Parameters

page

Page number

Typeinteger
Minimum1
Default1
perPage

Records per page. To get the whole list, use 200 and iterate over meta.pageCount pages.

Typeinteger
Minimum1
Maximum200
Default50
sortBy

Sort field

Typestring
Valid values
"orderNumber""name""code""id"
Default"orderNumber"
sortOrder

Sort direction (case-insensitive)

Typestring
Valid values
"asc""desc"
Default"desc"

Responses​

Export codes listed

application/json
JSON
{
"success": true,
"message": "İhracat kodları listelendi",
"items": [
{
"id": 10,
"code": "02",
"name": "Sale"
}
],
"meta": {
"page": 1,
"perPage": 50,
"total": 233,
"pageCount": 5
}
}

Playground​

Headers
Variables
Key
Value

Samples​

cURL
JavaScript
PHP
Python