Currency & Akifast Operations
POST
Activate Currency
POST
Activate CurrencySets the active currency for the user's session. This currency will be used for pricing, discounts, and campaigns across the shop.
Commerce supports multiple currencies. By allowing customers to select their preferred currency, the system dynamically adapts product prices, discounts, campaigns, and payment processes to align with the active currency throughout their session.
The multi-currency feature can be managed in two ways: session-based or request-based. A dynamic setting called READ_CURRENCY_FROM_HEADER
determines the behavior, with its default value set to False
. When this setting is switched to True
, the active currency must be provided in the request header using the key x-currency
.
The default active currency is determined by the DEFAULT_CURRENCY
dynamic setting and is used as a fallback when neither session-based nor request-based methods are applicable.
Path: /users/activate-currency/
Authentication Required: No
Headers:
Body Parameters
currency_code
String
True
Specifies the currency to activate.
Request Body
The currency_code
must be included in the AVAILABLE_CURRENCIES
dynamic setting, which can contain the following currencies: tr
, eu
, usd
, egp
, gbp
, mad
, pln
, sar
, ron
, uah
, czk
, huf
, rub
, bgn
, iqd
, kwd
, bhd
, omr
, qar
, aed
, ngn
, inr
, lei
, kzt
, jod
, rsd
.
Example Request
Example Response (204 No Content)
Successfully activated currency.
Example Response (400 Bad Request)
POST
User Create Akifast Guest User Permissions
POST
User Create Akifast Guest User PermissionsThis endpoint is used to store the necessary communication permissions for users who are using Akifast as guests on the payment screen. The entered data is initially stored in the cache and later used when creating a user record in the Commerce.
Path: /users/permissions/
Authentication Required: No
Headers:
Body Parameters
uid
String
True
A unique identifier (UUID).
basket
Integer
True
ID of the basket (BasketStatus must be active
).
sms_allowed
Boolean
False
A value indicating that SMS sending is allowed.
call_allowed
Boolean
False
A value indicating that calling is allowed.
email_allowed
Boolean
False
A value indicating that email sending is allowed.
Request Body
Example Request
Example Response (200 OK)
Example Response (400 Bad Request)
When a request is sent with a basket whose status is not active
,
Was this helpful?