Country Service

Back

Overview

Countries represent nation-level reference data used across sales, pricing, promotions, and inventory modules.

They provide a consistent reference for:

Countries are tenant-scoped and managed independently. Removing a country does not automatically modify related data.

All country operations are tenant-aware and scoped to the current tenant.


Endpoints

Back to Reference

GET

/api/v1/Country/GetAllCountries

Returns all countries for the current tenant.

Behavior:

Authorization:


GET

/api/v1/Country/GetCountryByCountryCode/{code}

Returns a single country by its unique country code.

Behavior:

Authorization:


POST

/api/v1/Country/AddNewCountry

Creates a new country.

Request body:

Behavior:

Errors:

Authorization:


PUT

/api/v1/Country/UpdateCountry

Updates an existing country.

Request body:

Behavior:

Errors:

Authorization:


DELETE

/api/v1/Country/DeleteCountryByCountryCode/{code}

Deletes a country by its country code.

Behavior:

Errors:

Authorization:


Notes