Countries
Retrieve a specific Country by ID
Unique identifier of the resource
1
Country retrieved successfully
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
GET /api/v1/countries/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"name": "Türkiye",
"code": "TR",
"is_active": true,
"created_date": "2021-07-07T14:00:00Z",
"modified_date": "2021-07-07T14:00:00Z",
"translations": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
Update a specific Country by ID
Unique identifier of the resource
1
Country ID
Country Name
Türkiye
Country Code
TR
Is Active (true/false)
true
Created Date
2021-07-07T14:00:00Z
Modified Date
2021-07-07T14:00:00Z
Country updated
No content
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
PUT /api/v1/countries/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"name": "Türkiye",
"code": "TR",
"is_active": true
}
No content
Delete a specific Country by ID
Unique identifier of the resource
1
Country deleted successfully
No content
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
DELETE /api/v1/countries/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
No content
Partial update a specific Country by ID
Unique identifier of the resource
1
Country ID
Country Name
Türkiye
Country Code
TR
Is Active (true/false)
true
Created Date
2021-07-07T14:00:00Z
Modified Date
2021-07-07T14:00:00Z
Country updated
No content
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
PATCH /api/v1/countries/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"name": "Türkiye",
"code": "TR",
"is_active": true
}
No content
Retrieve a specific Country by ID with details
Unique identifier of the resource
1
Country retrieved successfully with details
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
GET /api/v1/countries/{id}/detailed/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"name": "Türkiye",
"code": "TR",
"is_active": true,
"created_date": "2021-07-07T14:00:00Z",
"modified_date": "2021-07-07T14:00:00Z",
"translations": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
List Countries
Specifies the page number of the current dataset
1
Indicates the number of rows on the current page.
10
Filters by exact name
Filters by exact code
Filter by integration mapping object's integration type
Filter by integration mapping object's code
Activate id to hyperlink the response data.
OK
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
GET /api/v1/countries/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 0,
"next": "text",
"previous": "text",
"results": [
{
"id": 1,
"name": "Türkiye",
"code": "TR",
"is_active": true,
"created_date": "2021-07-07T14:00:00Z",
"modified_date": "2021-07-07T14:00:00Z",
"translations": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
]
}
Create Country
Country ID
Country Name
Türkiye
Country Code
TR
Is Active (true/false)
true
Created Date
2021-07-07T14:00:00Z
Modified Date
2021-07-07T14:00:00Z
Country Created
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
POST /api/v1/countries/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"name": "Türkiye",
"code": "TR",
"is_active": true
}
{
"id": 1,
"name": "Türkiye",
"code": "TR",
"is_active": true,
"created_date": "2021-07-07T14:00:00Z",
"modified_date": "2021-07-07T14:00:00Z",
"translations": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
List Countries with details
Specifies the page number of the current dataset
1
Indicates the number of rows on the current page.
10
Filters by exact name
Filters by exact code
Filter by integration mapping object's integration type
Filter by integration mapping object's code
Activate id to hyperlink the response data.
OK
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
GET /api/v1/countries/detailed/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 0,
"next": "text",
"previous": "text",
"results": [
{
"id": 1,
"name": "Türkiye",
"code": "TR",
"is_active": true,
"created_date": "2021-07-07T14:00:00Z",
"modified_date": "2021-07-07T14:00:00Z",
"translations": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
]
}
Was this helpful?