User Addresses

Manage delivery addresses (login required)

List Your Addresses

get

Get all saved delivery addresses for the logged-in user.

Query parameters
pageinteger · min: 1Optional

Page number (starts from 1)

Default: 1Example: 1
page_sizeinteger · min: 1Optional

Number of records per page

Default: 10Example: 10
Header parameters
X-CookiestringRequired

Use the X-Cookie header instead of the Cookie header in the “TEST IT” section. When testing via Postman or other external tools, continue using the standard Cookie header. Some commerce applications may use 'sessionid' instead of 'osessionid'. Set 'ENABLE_X_COOKIE_HEADER = True' in your project environments to enable the “TEST IT” feature. This setting should be applied only for the “TEST IT” button.

Example: osessionid=abc123
Accept-Languagestring · enumOptional

Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr

Default: trExample: trPossible values:
Responses
chevron-right
200

List of addresses

application/json
countintegerOptional
nextstring · uri · nullableOptional
previousstring · uri · nullableOptional
get
/address/

Add New Address

post

Save a new delivery address.

Related Settings (Omnitron → Sales Channels → Dynamic Settings):

  • ADDRESS_PHONE_MIN_LENGTH (Integer, default: 11): Minimum phone number length. Example: Set to 10 for countries with shorter phone numbers.

  • ADDRESS_DISTRICT_REQUIRED (Boolean, default: False): Makes district field mandatory. Set to true to require district selection.

  • ADDRESS_SERIALIZER_FIELDS (Dictionary): Country-specific extra fields for addresses. Example:

    {
      "TR": [
        {"field": "tax_office", "validators": [], "kwargs": {}},
        {"field": "tax_no", "validators": [], "kwargs": {}}
      ]
    }

    Fields not in base Address model are stored in extra_field JSON column.

  • IDENTITY_NUMBER_VALIDATOR (String, default: "omnicore.address.validators.null_identity_validator"): Validates identity_number field. Options:

    • "omnicore.address.validators.null_identity_validator" - No validation

    • "omnicore.address.validators.tc_identity_number_validator" - Turkish ID validation

  • IDENTITY_NUMBER_REQUIRED_AMOUNT (Number, nullable, default: None): Order amount threshold requiring identity number. Example: 5000 means ID required for orders above 5000 TRY.

  • ANONYMOUS_ADDRESS_EXPIRE_SECONDS (Integer, default: 1800): How long to keep guest user addresses before cleanup (30 minutes by default).

Header parameters
X-CookiestringRequired

Use the X-Cookie header instead of the Cookie header in the “TEST IT” section. When testing via Postman or other external tools, continue using the standard Cookie header. Some commerce applications may use 'sessionid' instead of 'osessionid'. Set 'ENABLE_X_COOKIE_HEADER = True' in your project environments to enable the “TEST IT” feature. This setting should be applied only for the “TEST IT” button.

Example: osessionid=abc123
Accept-Languagestring · enumOptional

Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr

Default: trExample: trPossible values:
X-CSRFTokenstringRequired

CSRF token for write operations (POST, PUT, PATCH, DELETE). Required for security when using session authentication. Obtain token from cookie 'csrftoken' or meta tag in HTML.

Example: abc123def456ghi789
Body

Input schema for creating/updating addresses

emailstring · emailOptional
phone_numberstring · min: 11Required

International format, min 11 chars (e.g., +905551234567)

first_namestring · min: 2 · max: 30Required
last_namestring · min: 2 · max: 30Required
countryintegerRequired

Country ID

cityintegerRequired

City ID

linestring · min: 10 · max: 512Required

Street address

titlestring · min: 2 · max: 128Required

Address nickname (e.g., "Ev", "İş")

townshipintegerRequired

Township ID

districtintegerOptional

District ID (optional unless ADDRESS_DISTRICT_REQUIRED=True)

postcodestringOptional
notesstringOptional
company_namestring · max: 255Optional
tax_officestring · max: 255Optional
tax_nostring · max: 50Optional
e_bill_taxpayerbooleanOptional

Registered for e-invoicing?

retail_storeintegerOptional

Retail store ID for click-and-collect orders

identity_numberstringOptional

National ID (may be required for large orders)

primarybooleanOptional

Set as default address?

Responses
post
/address/

Get Address Details

get

View a specific address by ID.

Path parameters
pkintegerRequired

Address ID

Header parameters
X-CookiestringRequired

Use the X-Cookie header instead of the Cookie header in the “TEST IT” section. When testing via Postman or other external tools, continue using the standard Cookie header. Some commerce applications may use 'sessionid' instead of 'osessionid'. Set 'ENABLE_X_COOKIE_HEADER = True' in your project environments to enable the “TEST IT” feature. This setting should be applied only for the “TEST IT” button.

Example: osessionid=abc123
Accept-Languagestring · enumOptional

Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr

Default: trExample: trPossible values:
Responses
chevron-right
200

Address details

application/json
pkintegerOptional

Address ID

emailstring · email · nullableOptional
phone_numberstringOptional

International format (e.g., +905551234567)

first_namestringOptional
last_namestringOptional
countryintegerOptional

Country ID

cityintegerOptional

City ID

linestringOptional

Street address, building, apartment

titlestringOptional

Address nickname (e.g., "Ev", "İş")

townshipintegerOptional

Township ID

districtinteger · nullableOptional

District ID

postcodestring · nullableOptional
notesstring · nullableOptional
company_namestring · nullableOptional
tax_officestring · nullableOptional
tax_nostring · nullableOptional
e_bill_taxpayerboolean · nullableOptional

E-invoice taxpayer?

hash_datastringRead-onlyOptional

Address hash for duplicate detection

address_typestringRead-onlyOptional
retail_storeinteger · nullableOptional

Retail store ID for click-and-collect

remote_idstring · nullableOptional

External provider address ID

identity_numberstring · nullableOptional
extra_fieldobjectRead-onlyOptional

Country-specific extra fields

userintegerRead-onlyOptional

User ID

is_corporatebooleanRead-onlyOptional

Is this a corporate address?

primarybooleanOptional

Is this the default address?

get
/address/{pk}/

Update Address

put

Replace all fields of an address.

Path parameters
pkintegerRequired
Header parameters
X-CookiestringRequired

Use the X-Cookie header instead of the Cookie header in the “TEST IT” section. When testing via Postman or other external tools, continue using the standard Cookie header. Some commerce applications may use 'sessionid' instead of 'osessionid'. Set 'ENABLE_X_COOKIE_HEADER = True' in your project environments to enable the “TEST IT” feature. This setting should be applied only for the “TEST IT” button.

Example: osessionid=abc123
Accept-Languagestring · enumOptional

Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr

Default: trExample: trPossible values:
X-CSRFTokenstringRequired

CSRF token for write operations (POST, PUT, PATCH, DELETE). Required for security when using session authentication. Obtain token from cookie 'csrftoken' or meta tag in HTML.

Example: abc123def456ghi789
Body

Input schema for creating/updating addresses

emailstring · emailOptional
phone_numberstring · min: 11Required

International format, min 11 chars (e.g., +905551234567)

first_namestring · min: 2 · max: 30Required
last_namestring · min: 2 · max: 30Required
countryintegerRequired

Country ID

cityintegerRequired

City ID

linestring · min: 10 · max: 512Required

Street address

titlestring · min: 2 · max: 128Required

Address nickname (e.g., "Ev", "İş")

townshipintegerRequired

Township ID

districtintegerOptional

District ID (optional unless ADDRESS_DISTRICT_REQUIRED=True)

postcodestringOptional
notesstringOptional
company_namestring · max: 255Optional
tax_officestring · max: 255Optional
tax_nostring · max: 50Optional
e_bill_taxpayerbooleanOptional

Registered for e-invoicing?

retail_storeintegerOptional

Retail store ID for click-and-collect orders

identity_numberstringOptional

National ID (may be required for large orders)

primarybooleanOptional

Set as default address?

Responses
chevron-right
200

Address updated

application/json
pkintegerOptional

Address ID

emailstring · email · nullableOptional
phone_numberstringOptional

International format (e.g., +905551234567)

first_namestringOptional
last_namestringOptional
countryintegerOptional

Country ID

cityintegerOptional

City ID

linestringOptional

Street address, building, apartment

titlestringOptional

Address nickname (e.g., "Ev", "İş")

townshipintegerOptional

Township ID

districtinteger · nullableOptional

District ID

postcodestring · nullableOptional
notesstring · nullableOptional
company_namestring · nullableOptional
tax_officestring · nullableOptional
tax_nostring · nullableOptional
e_bill_taxpayerboolean · nullableOptional

E-invoice taxpayer?

hash_datastringRead-onlyOptional

Address hash for duplicate detection

address_typestringRead-onlyOptional
retail_storeinteger · nullableOptional

Retail store ID for click-and-collect

remote_idstring · nullableOptional

External provider address ID

identity_numberstring · nullableOptional
extra_fieldobjectRead-onlyOptional

Country-specific extra fields

userintegerRead-onlyOptional

User ID

is_corporatebooleanRead-onlyOptional

Is this a corporate address?

primarybooleanOptional

Is this the default address?

put
/address/{pk}/

Delete Address

delete

Remove an address from your account.

Path parameters
pkintegerRequired
Header parameters
X-CookiestringRequired

Use the X-Cookie header instead of the Cookie header in the “TEST IT” section. When testing via Postman or other external tools, continue using the standard Cookie header. Some commerce applications may use 'sessionid' instead of 'osessionid'. Set 'ENABLE_X_COOKIE_HEADER = True' in your project environments to enable the “TEST IT” feature. This setting should be applied only for the “TEST IT” button.

Example: osessionid=abc123
Accept-Languagestring · enumOptional

Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr

Default: trExample: trPossible values:
Responses
delete
/address/{pk}/

No content

Partially Update Address

patch

Update only specific fields.

Path parameters
pkintegerRequired
Header parameters
X-CookiestringRequired

Use the X-Cookie header instead of the Cookie header in the “TEST IT” section. When testing via Postman or other external tools, continue using the standard Cookie header. Some commerce applications may use 'sessionid' instead of 'osessionid'. Set 'ENABLE_X_COOKIE_HEADER = True' in your project environments to enable the “TEST IT” feature. This setting should be applied only for the “TEST IT” button.

Example: osessionid=abc123
Accept-Languagestring · enumOptional

Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr

Default: trExample: trPossible values:
X-CSRFTokenstringRequired

CSRF token for write operations (POST, PUT, PATCH, DELETE). Required for security when using session authentication. Obtain token from cookie 'csrftoken' or meta tag in HTML.

Example: abc123def456ghi789
Body

Input schema for creating/updating addresses

emailstring · emailOptional
phone_numberstring · min: 11Required

International format, min 11 chars (e.g., +905551234567)

first_namestring · min: 2 · max: 30Required
last_namestring · min: 2 · max: 30Required
countryintegerRequired

Country ID

cityintegerRequired

City ID

linestring · min: 10 · max: 512Required

Street address

titlestring · min: 2 · max: 128Required

Address nickname (e.g., "Ev", "İş")

townshipintegerRequired

Township ID

districtintegerOptional

District ID (optional unless ADDRESS_DISTRICT_REQUIRED=True)

postcodestringOptional
notesstringOptional
company_namestring · max: 255Optional
tax_officestring · max: 255Optional
tax_nostring · max: 50Optional
e_bill_taxpayerbooleanOptional

Registered for e-invoicing?

retail_storeintegerOptional

Retail store ID for click-and-collect orders

identity_numberstringOptional

National ID (may be required for large orders)

primarybooleanOptional

Set as default address?

Responses
chevron-right
200

Address updated

application/json
pkintegerOptional

Address ID

emailstring · email · nullableOptional
phone_numberstringOptional

International format (e.g., +905551234567)

first_namestringOptional
last_namestringOptional
countryintegerOptional

Country ID

cityintegerOptional

City ID

linestringOptional

Street address, building, apartment

titlestringOptional

Address nickname (e.g., "Ev", "İş")

townshipintegerOptional

Township ID

districtinteger · nullableOptional

District ID

postcodestring · nullableOptional
notesstring · nullableOptional
company_namestring · nullableOptional
tax_officestring · nullableOptional
tax_nostring · nullableOptional
e_bill_taxpayerboolean · nullableOptional

E-invoice taxpayer?

hash_datastringRead-onlyOptional

Address hash for duplicate detection

address_typestringRead-onlyOptional
retail_storeinteger · nullableOptional

Retail store ID for click-and-collect

remote_idstring · nullableOptional

External provider address ID

identity_numberstring · nullableOptional
extra_fieldobjectRead-onlyOptional

Country-specific extra fields

userintegerRead-onlyOptional

User ID

is_corporatebooleanRead-onlyOptional

Is this a corporate address?

primarybooleanOptional

Is this the default address?

patch
/address/{pk}/

Get Detailed Address

get

View address with full geographic data (country, city, township, district objects).

Path parameters
pkintegerRequired
Header parameters
X-CookiestringRequired

Use the X-Cookie header instead of the Cookie header in the “TEST IT” section. When testing via Postman or other external tools, continue using the standard Cookie header. Some commerce applications may use 'sessionid' instead of 'osessionid'. Set 'ENABLE_X_COOKIE_HEADER = True' in your project environments to enable the “TEST IT” feature. This setting should be applied only for the “TEST IT” button.

Example: osessionid=abc123
Accept-Languagestring · enumOptional

Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr

Default: trExample: trPossible values:
Responses
chevron-right
200

Detailed address data

application/json

Address with expanded geographic data (full country, city, township, district, user, retail store objects)

pkintegerOptional

Address ID

emailstring · email · nullableOptional
phone_numberstringOptional

International format (e.g., +905551234567)

first_namestringOptional
last_namestringOptional
linestringOptional

Street address, building, apartment

titlestringOptional

Address nickname (e.g., "Ev", "İş")

postcodestring · nullableOptional
notesstring · nullableOptional
company_namestring · nullableOptional
tax_officestring · nullableOptional
tax_nostring · nullableOptional
e_bill_taxpayerboolean · nullableOptional

E-invoice taxpayer?

hash_datastringRead-onlyOptional

Address hash for duplicate detection

address_typestringRead-onlyOptional
remote_idstring · nullableOptional

External provider address ID

identity_numberstring · nullableOptional
extra_fieldobjectRead-onlyOptional

Country-specific extra fields

is_corporatebooleanRead-onlyOptional

Is this a corporate address?

primarybooleanOptional

Is this the default address?

get
/address/{pk}/detailed/

Set Default Address

patch

Mark this address as your default.

Send {"primary": true} to set as default address.

Path parameters
pkintegerRequired
Header parameters
X-CookiestringRequired

Use the X-Cookie header instead of the Cookie header in the “TEST IT” section. When testing via Postman or other external tools, continue using the standard Cookie header. Some commerce applications may use 'sessionid' instead of 'osessionid'. Set 'ENABLE_X_COOKIE_HEADER = True' in your project environments to enable the “TEST IT” feature. This setting should be applied only for the “TEST IT” button.

Example: osessionid=abc123
Accept-Languagestring · enumOptional

Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr

Default: trExample: trPossible values:
X-CSRFTokenstringRequired

CSRF token for write operations (POST, PUT, PATCH, DELETE). Required for security when using session authentication. Obtain token from cookie 'csrftoken' or meta tag in HTML.

Example: abc123def456ghi789
Body
primarybooleanOptional
Responses
chevron-right
200

Default address updated

application/json
patch
/address/{pk}/set-address/

List Detailed Addresses

get

Get all addresses with full geographic data.

Query parameters
pageinteger · min: 1Optional

Page number (starts from 1)

Default: 1Example: 1
page_sizeinteger · min: 1Optional

Number of records per page

Default: 10Example: 10
Header parameters
X-CookiestringRequired

Use the X-Cookie header instead of the Cookie header in the “TEST IT” section. When testing via Postman or other external tools, continue using the standard Cookie header. Some commerce applications may use 'sessionid' instead of 'osessionid'. Set 'ENABLE_X_COOKIE_HEADER = True' in your project environments to enable the “TEST IT” feature. This setting should be applied only for the “TEST IT” button.

Example: osessionid=abc123
Accept-Languagestring · enumOptional

Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr

Default: trExample: trPossible values:
Responses
chevron-right
200

List of detailed addresses

application/json
countintegerOptional
nextstring · uri · nullableOptional
previousstring · uri · nullableOptional
get
/address/detailed/

Search Addresses by Postcode

get

Find addresses by postal code.

Returns geographic data (country, city, township, district objects) matching the postcode.

Query parameters
postcodestring · min: 1Required

Postal code to search (minimum 1 character)

countryintegerOptional

Filter by country ID

pageinteger · min: 1Optional

Page number (starts from 1)

Default: 1Example: 1
page_sizeinteger · min: 1Optional

Number of records per page

Default: 10Example: 10
Header parameters
X-CookiestringRequired

Use the X-Cookie header instead of the Cookie header in the “TEST IT” section. When testing via Postman or other external tools, continue using the standard Cookie header. Some commerce applications may use 'sessionid' instead of 'osessionid'. Set 'ENABLE_X_COOKIE_HEADER = True' in your project environments to enable the “TEST IT” feature. This setting should be applied only for the “TEST IT” button.

Example: osessionid=abc123
Accept-Languagestring · enumOptional

Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr

Default: trExample: trPossible values:
Responses
chevron-right
200

Matching geographic data

application/json
countintegerOptional
nextstring · uri · nullableOptional
previousstring · uri · nullableOptional
get
/address/query/

Last updated

Was this helpful?