The importconfigkey for the OrgStructure Store Import is defaultImportStoresV1
.
The valid json looks like that:
[
{
"__id": "{{__id}}",
"__organizationalId": "{{__organizationalId}}",
"parentId": "{{parentId}}",
"structureInformation": {
"name": {
"i18nVariants": {
"en_US": "{{name_en_US}}",
"de_DE": "{{name_de_DE}}"
}
}
},
"settings": {
"storeId": "{{storeId}}",
"taxId": {{taxId}},
"emailAddress": "{{emailAddress}}",
"website": "{{Website}}",
"address": {
"type": "{{address/type}}",
"address": "{{address/address}}",
"postalcode": "{{address/postalcode}}",
"city": "{{address/city}}",
"state": "{{address/state}}",
"country": "{{address/country}}",
"telephone": [
"{{address/phone}}"
],
"fax": [
"{{address/fax}}"
],
"addressLine": [
""
],
"latitude": {{latitude}},
"longitude": {{longitude}}
},
"locale": "{{locale}}"
}
}
]
Field | |
| Type: "NNNN" - string Sample: "12345" Description: The internal, unique ID of the store. |
| Type: "NNNN" - string Sample: "-1" Description: The unique ID for the concerning organization structure. By default "-1". |
| Type: "NNNN" - string Sample: "12345" Description: The internal, unique ID of the parent within the organizational structure. |
| Type: "TEXT" - string Sample: "Store New York" Description: The name of the store. |
| Type: "NNNN" - string Sample: "12345" Description: The visible ID of the store. |
| Type: "NNNNN" - string Sample: "12345" Description: The tax id which belongs to the store. |
| Type: "NNNNN" - string Sample: "12345" Description: |
| Type: "TEXT" - string Sample: "www.retail7.io" Description: The website which belongs to the store. |
| Type: "TEXT" - string Sample: "default_address", "invoice_address", "delivery_address" or "other_address" Description: The type of the corresponding address. |
| Type: "TEXT" - string Sample: "Main Street 1" Description: The address of the corresponding address. |
| Type: "NNNNN" - string Sample: "12345" Description: The postal code of the store. |
| Type: "TEXT" - string Sample: "New York City" Description: The city of the corresponding store. |
| Type: "TEXT" - string Sample: "New York" Description: The state of the corresponding store. |
| Type: "TEXT" - string Sample: "germany" Description: The country of the corresponding store. |
| Type: "NNNNN" - string Sample: "12345" Description: The phone number of the store. |
| Type: "NNNNN" - string Sample: "12345" Description: The fax number of the store. |
| Type: "NNNNN" - string Sample: "40.758895" Description: The degree of latitude. |
| Type: "NNNNN" - string Sample: "-73.985131" Description: The degree of longitude. |
| Type: "TEXT" - string Sample: "en_US" Description: The abbreviation for the locale corresponding to the store. |
The Postman project below contains all the necessary files to illustrate an example use-case.
Download postman project "Organizational Structure - Stores Import (API)"
Import all the existing .json files into postman.
Enter the following data in the included environments:
- baseURL
- username
- password
Leave all other entries unchanged.
Open the imported "R7 API | Org. Structure Stores"-Collection in the postman app.
On the top right corner, assign the imported "R7 API | Org. Structure Stores"-Environment to the opened collection.
Click the "Send"-Button to send the post to your management console.
Result: The store should now appear in the mangement console.