Countries
Retrieve a specific Country by ID
Unique identifier of the resource
1Country retrieved successfully
Country ID
Country Name
TürkiyeCountry Code
TRIs Active (true/false)
trueCreated Date
2021-07-07T14:00:00ZModified Date
2021-07-07T14:00:00ZUnauthorized Access
The given resource or object was not found or does not exist.
Server Error
GET /api/v1/countries/{id}/ HTTP/1.1
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
1Country ID
Country Name
TürkiyeCountry Code
TRIs Active (true/false)
trueCreated Date
2021-07-07T14:00:00ZModified Date
2021-07-07T14:00:00ZCountry 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
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
1Country 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
Authorization: YOUR_API_KEY
Accept: */*
No content
Partial update a specific Country by ID
Unique identifier of the resource
1Country ID
Country Name
TürkiyeCountry Code
TRIs Active (true/false)
trueCreated Date
2021-07-07T14:00:00ZModified Date
2021-07-07T14:00:00ZCountry 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
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
1Country retrieved successfully with details
Country ID
Country Name
TürkiyeCountry Code
TRIs Active (true/false)
trueCreated Date
2021-07-07T14:00:00ZModified Date
2021-07-07T14:00:00ZUnauthorized Access
The given resource or object was not found or does not exist.
Server Error
GET /api/v1/countries/{id}/detailed/ HTTP/1.1
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
1Indicates the number of rows on the current page.
10Filters 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
0Next page URL
Previous page URL
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
GET /api/v1/countries/ HTTP/1.1
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ürkiyeCountry Code
TRIs Active (true/false)
trueCreated Date
2021-07-07T14:00:00ZModified Date
2021-07-07T14:00:00ZCountry Created
Country ID
Country Name
TürkiyeCountry Code
TRIs Active (true/false)
trueCreated Date
2021-07-07T14:00:00ZModified Date
2021-07-07T14:00:00ZUnauthorized Access
The given resource or object was not found or does not exist.
Server Error
POST /api/v1/countries/ HTTP/1.1
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
1Indicates the number of rows on the current page.
10Filters 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
0Next page URL
Previous page URL
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
GET /api/v1/countries/detailed/ HTTP/1.1
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"
}
}
]
}Last updated
Was this helpful?

