Site Settings Service Tutorials
How to create a new site
To create a new site, you need to send a request to theLoading...
How to set a list of countries to which a site ships products
Countries that a site ships products to are stored as ISO 3166-1 alpha-2 codes in theshipToCountries
list.To update the shipToCountries
list, you need to send a request to the Loading...
How to enable payment methods
Payment methods are configured per site. Emporix Commerce Engine supports the following payment methods:
- Cash
- Credit card
- Direct debit
- Invoice
orderProcessSettings
mixin. To enable a payment method, you need to set its flag to true
.First, check if the orderProcessSettings
mixin has already been configured by sending a request to the Loading...
orderProcessSettings
have never been configured before or have been deleted, you will receive a 404
error in the response body.In this case, to enable specific payment methods, you need to send a request to the true
.Loading...
orderProcessSettings
have already been configured, you will receive them in the response body. In this case, to enable specific payment methods, you need to send a request to the true
.Loading...
How to set up direct debit payments
Before you start
Make sure you have already finished the How to enable payment methods tutorial.
Configure your business bank account information
Your business bank account information is stored in themerchantInfo
mixin.First, check if the merchantInfo
mixin has already been configured by sending a request to the Loading...
merchantInfo
has never been configured before or has been deleted, you will receive a 404
error in the response body. In this case, to set up your business's bank account information, you need to send a request to the Loading...
merchantInfo
has already been configured, you will receive it in the response body. attention
Check if all of the following fields are filled out with correct information:
merchantName
merchantId
merchantFinanceInfo
merchantInfo
, you need to send a request to the Loading...
Configure settings for direct debit payments
Settings for direct debit payments are stored in thedebitSettings
mixin. To configure them, you need to send a request to the Loading...
Specify your business's SEPA Creditor ID
Your business's SEPA Creditor ID is stored in your tenant'ssepaCreditor
configuration. To set up a sepaCreditor
configuration, you need to send a request to the Loading...
How to add custom attributes to a site
Custom site attributes are stored in a site'smixins
.info
To learn more about mixins in the Emporix Commerce Engine, check out the Standard Practices in the Emporix API.
Define a JSON schema
To be able to apply mixins to your site's settings, you first need to define your custom attributes in the form of a JSON schema.
{
"name": "customerSettings",
"description": "Mixin schema for site-specific customer settings.",
"properties": {
"regExSettings": {
"type": "object",
"description": "Regular expressions for input validation.",
"properties": {
"bic": {
"type": "string"
},
"mail": {
"type": "string"
},
"accountOwner": {
"type": "string"
},
"phone": {
"type": "string"
},
"password": {
"type": "string"
}
}
}
},
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#"
}
Next, upload your schema to a hosting service and save its URL.
Apply custom attributes to a site
Once your schema is ready, send a request to theLoading...