1. External client integration
How to obtain an OAuth client? NOTE: Before requesting an OAuth client, it is necessary to have established a commercial agreement with Trade. Once this step is completed and the required information detailed below is gathered, you can start the account configuration process using the designated channels provided by X-Mart. Information needed to create an OAuth client:| Data | Required Information | Description | Utility |
|---|---|---|---|
| Country (required) | Name | Name of the country where the application or website will operate. | Necessary for creating delivery addresses, billing information, etc. |
| Allow invoices as final consumer (required) | YES, NO | Show forms for entering billing information | Request billing information before making a purchase. |
| City(ies) (required) | Name - Latitude - Longitude | List of cities. | In Pickup allows obtaining the city’s stores, locates the delivery address. |
| Sector(s) (required) | Name - Latitude - Longitude - City | List of sectors. | Along with the city, allows locating the delivery address, necessary for creating delivery addresses. |
| Brand(s) (required) | Brand name (Vendor) - Brief brand description - Unique brand identifier | List of brands. | Necessary for creating stores, sales channels, and lists. |
| Brand logo(s) (optional) | Compressed file with brand logos (jpg/png), each image file must have the brand name. | Compressed file of brand images. | In future versions, the brand logo may be displayed. |
| Zones (required) | kml, kmz, csv files | Files reflecting the polygons of the coverage areas. | Necessary to get the nearest store. |
| List of zones and stores (required) | Name, identifier or store code - Coverage zone - City | List reflecting the relationship between coverage zone and store. | List used by Trade for configuring zones by store. |
2. Overview of Stores and Lists
X-Mart provides a series of API endpoints that facilitate the management and synchronization of stores, sales channels, and lists within the platform. Below is a summary of the main endpoints available:Stores and Sales Channels
Get stores by brand (GET)
Get stores by brand (GET)
Create Stores and Sales Channels (POST)
Create Stores and Sales Channels (POST)
Get store by ID (GET)
Get store by ID (GET)
Change store status (PUT)
Change store status (PUT)
Lists
Get Synchronization Report (GET)
Get Synchronization Report (GET)
Register or Edit a List (PUT)
Register or Edit a List (PUT)
3. Explanation of v3 injection
X-Mart’s Service Catalog includes a series of methods that facilitate the management and synchronization of data on the platform. Below is a summary of the main endpoints available:Get Token
Get Token
New Order Webhook
New Order Webhook
Order Retrieval
Order Retrieval
4. Fulfillment (status changes)
X-Mart provides a series of API endpoints that facilitate the management and processing of orders, ensuring an efficient flow from order placement to fulfillment. Below is a summary of the main endpoints available:POST: Obtain OAuth token with a registered client
POST: Obtain OAuth token with a registered client
POST: Allows redeeming a local coupon using a UID and promotion code
POST: Allows redeeming a local coupon using a UID and promotion code
POST: Registers tracking information for a specific order Allows registering tracking information for a specific order
POST: Registers tracking information for a specific order Allows registering tracking information for a specific order
POST: Orders - Status Change This endpoint allows making changes to the order status
POST: Orders - Status Change This endpoint allows making changes to the order status
PUT: Orders - Transfer Enables the transfer of orders between different entities or warehouses
PUT: Orders - Transfer Enables the transfer of orders between different entities or warehouses
POST: Pickup Orders - Dispatched This endpoint is used to mark pickup orders as dispatched
POST: Pickup Orders - Dispatched This endpoint is used to mark pickup orders as dispatched
GET: Orders - Payment Information Allows retrieving payment information for orders
GET: Orders - Payment Information Allows retrieving payment information for orders

