SalesChannelCountries

Retrieve Sales Channel Country

get

Retrieve a specific Sales Channel Country by ID

Authorizations
Path parameters
channel_idintegerRequired

The channel ID of the resource.

Example: 5
idintegerRequired

Unique identifier of the resource

Example: 1
Responses
200
Sales Channel Country retrieved successfully
application/json
get
GET /api/v1/channel/{channel_id}/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 Sales Channel Country

put

Update a specific Sales Channel Country by ID

Authorizations
Path parameters
channel_idintegerRequired

The channel ID of the resource.

Example: 5
idintegerRequired

Unique identifier of the resource

Example: 1
Body
idintegerRead-onlyOptional

Country ID

namestringRequired

Country Name

Example: Türkiye
codestringRequired

Country Code

Example: TR
is_activebooleanOptional

Is Active (true/false)

Example: true
created_datestring · date-timeRead-onlyOptional

Created Date

Example: 2021-07-07T14:00:00Z
modified_datestring · date-timeRead-onlyOptional

Modified Date

Example: 2021-07-07T14:00:00Z
Responses
200
Sales Channel Country updated
put
PUT /api/v1/channel/{channel_id}/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 Sales Channel Country

delete

Delete a specific Sales Channel Country by ID

Authorizations
Path parameters
channel_idintegerRequired

The channel ID of the resource.

Example: 5
idintegerRequired

Unique identifier of the resource

Example: 1
Responses
204
Sales Channel Country deleted successfully
delete
DELETE /api/v1/channel/{channel_id}/countries/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*

No content

Partial Update Sales Channel Country

patch

Partial update a specific Sales Channel Country by ID

Authorizations
Path parameters
channel_idintegerRequired

The channel ID of the resource.

Example: 5
idintegerRequired

Unique identifier of the resource

Example: 1
Body
idintegerRead-onlyOptional

Country ID

namestringRequired

Country Name

Example: Türkiye
codestringRequired

Country Code

Example: TR
is_activebooleanOptional

Is Active (true/false)

Example: true
created_datestring · date-timeRead-onlyOptional

Created Date

Example: 2021-07-07T14:00:00Z
modified_datestring · date-timeRead-onlyOptional

Modified Date

Example: 2021-07-07T14:00:00Z
Responses
200
Sales Channel Country updated
patch
PATCH /api/v1/channel/{channel_id}/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 Sales Channel Country with details

get

Retrieve a specific Sales Channel Country by ID with details

Authorizations
Path parameters
channel_idintegerRequired

The channel ID of the resource.

Example: 5
idintegerRequired

Unique identifier of the resource

Example: 1
Responses
200
Sales Channel Country retrieved successfully with details
application/json
get
GET /api/v1/channel/{channel_id}/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 Sales Channel Countries

get

List Sales Channel Countries

Authorizations
Path parameters
channel_idintegerRequired

The channel ID of the resource.

Example: 5
Query parameters
pageinteger · min: 1Optional

Specifies the page number of the current dataset

Default: 1
limitinteger · min: 1Optional

Indicates the number of rows on the current page.

Default: 10
name__exactstringOptional

Filters by exact name

code__exactstringOptional

Filters by exact code

mapping__integration_typestring · enumOptional

Filter by integration mapping object's integration type

Possible values:
mapping__code__exactstringOptional

Filter by integration mapping object's code

hyperbooleanOptional

Activate id to hyperlink the response data.

Responses
200
OK
application/json
get
GET /api/v1/channel/{channel_id}/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 Sales Channel Country

post

Create Sales Channel Country

Authorizations
Path parameters
channel_idintegerRequired

The channel ID of the resource.

Example: 5
Body
idintegerRead-onlyOptional

Country ID

namestringRequired

Country Name

Example: Türkiye
codestringRequired

Country Code

Example: TR
is_activebooleanOptional

Is Active (true/false)

Example: true
created_datestring · date-timeRead-onlyOptional

Created Date

Example: 2021-07-07T14:00:00Z
modified_datestring · date-timeRead-onlyOptional

Modified Date

Example: 2021-07-07T14:00:00Z
Responses
201
Country Created
application/json
post
POST /api/v1/channel/{channel_id}/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 Sales Channel Countries with details

get

List Sales Channel Countries with details

Authorizations
Path parameters
channel_idintegerRequired

The channel ID of the resource.

Example: 5
Query parameters
pageinteger · min: 1Optional

Specifies the page number of the current dataset

Default: 1
limitinteger · min: 1Optional

Indicates the number of rows on the current page.

Default: 10
name__exactstringOptional

Filters by exact name

code__exactstringOptional

Filters by exact code

mapping__integration_typestring · enumOptional

Filter by integration mapping object's integration type

Possible values:
mapping__code__exactstringOptional

Filter by integration mapping object's code

hyperbooleanOptional

Activate id to hyperlink the response data.

Responses
200
OK
application/json
get
GET /api/v1/channel/{channel_id}/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?