How to manage stores
Stores (points of sales) are managed through delivery locations and related resources. A store is a specific type of delivery location.
This article describes the resources that you should be aware of to manage stores.
To create or modify stores, you will need to follow this procedure:
Determine stores to be created or modified based on your task
Delivery location
An example of a delivery location is shown below. See DeliveryLocation for more details.
Related resources
The relevant relations between a delivery location and its related resources are shown in this table. Consult the schema of each resource to see all the available fields.
Delivery location field | Related resource field |
---|---|
DeliveryLocation .organisations[] | Organisation .id |
DeliveryLocation .accountId | Account .id |
DeliveryLocation .deliveryLocationTypeId | |
DeliveryLocation .channelId | Channel .id |
DeliveryLocation .groupId | |
DeliveryLocation .channelId | Channel .id |
DeliveryLocation .distributionChannel |
Retrieve all associated resources
Retrieve all the data required to manage delivery locations by calling the following methods.
GET /Sales/DeliveryLocationTypes
Retrieve all delivery locations
Create new related resources
Depending on your requirements, you may need to automatically create a related resource that does not already exist in the system.
For example, you might want to automatically create a POS Type.
Create or modify stores
EDI fields correspondence
The following table illustrates the correspondence between the EDI specification and the corresponding fields in the API.
Id | Description | Resource field |
---|---|---|
1 | Référence magasin | DeliveryLocation .reference |
2 | Libellé magasin | DeliveryLocation .label |
3 | Code enseigne | Account .codeAccount |
4 | Organisation | Organisation .reference |
5 | Raison Sociale | DeliveryLocation .companyName |
6 | Telephone1 | DeliveryLocation .phoneNumber |
7 | Telephone2 | DeliveryLocation .phoneNumber2 |
8 | Fax1 | DeliveryLocation .faxNumber |
9 | Fax2 | DeliveryLocation .faxNumber2 |
10 | Adresse1 | DeliveryLocation .addressLine |
11 | Adresse2 | DeliveryLocation .addressLine2 |
12 | CP | DeliveryLocation .postcode |
13 | Ville | DeliveryLocation .city |
14 | Pays | DeliveryLocation .country |
15 | Potentiel (valeur) | DeliveryLocation .potentialVal |
16 | Circuit | Channel .name |
17 | Groupe | DeliveryLocationGroup .label |
18 | Circuit de distribution | DistributionChannel .label |