AtlasSwift API
v1.0Integrate AtlasSwift into your applications to automate order creation, manage your products, and track your deliveries.
Getting started
Follow these 3 steps to start using the AtlasSwift API.
Create an account
Sign up on AtlasSwift and access your account.
Generate your API key
Go to Integrations from the sidebar menu and click Generate to get your API key.
Make your first call
Use your key to create your first order via the API.
Base URL
https://api.atlasswift.comAuthentication
All API requests must include your API key in the authorization header.
Authorization: Bearer atlas_live_xxxxxxxxxxxxxxxxxxxxxxxxImportant
Keep your API key secret. Never share it in client-side code or public repositories.
Orders
Manage your customers' orders
/v1/public/ordersCreate a new order
Body Parameters
| Name | Type | Required | Description |
|---|---|---|---|
client_name | string | Required | Full customer name |
client_phone | string | Required | Phone number with country code |
client_address | string | Required | Delivery address |
arrival_country | string | Required | Destination country |
products | array | Required | List of ordered products |
products[].product_id | string | Optional | Product ID as shown on your AtlasSwift Products page (e.g., PRD-001586). Required if name is not provided. |
products[].name | string | Optional | Exact product name on AtlasSwift. Used to look up the product if product_id is not provided. |
products[].quantity | integer | Required | Quantity (> 0) |
products[].price | number | Required | Unit price (> 0) |
products[].variant_id | string | Optional | Variant ID (e.g., comb_abc123) |
products[].variant_name | string | Optional | Variant name (e.g., "Black - L") |
total_price | number | Required | Total order price |
currency_code | string | Required | Currency code (e.g., XOF, EUR) |
delivery_note | string | Optional | Delivery instructions |
Request body
{
"client_name": "Jean Dupont",
"client_phone": "+2250701020304",
"client_address": "Cocody Angré, Abidjan",
"arrival_country": "Côte d'Ivoire",
"products": [
{
"product_id": "PRD-001586",
"name": "Montre Connectée Prestige X9",
"quantity": 1,
"price": 185000,
"variant_id": "comb_abc123",
"variant_name": "Noir - L"
},
{
"product_id": "PRD-002345",
"name": "Sac à Dos Cuir Véritable",
"quantity": 1,
"price": 150000
}
],
"total_price": 335000,
"currency_code": "XOF",
"delivery_note": "Appeler avant 16h"
}Response
{
"success": true,
"message": "Commande enregistrée avec succès.",
"data": {
"order_id": "ORD-1717778456123"
}
}Code example
curl -X POST "https://api.atlasswift.com/v1/public/orders" \
-H "Authorization: Bearer atlas_live_xxxxxxxx"
-H "Content-Type: application/json" \
-d '{
"client_name": "Jean Dupont",
"client_phone": "+2250701020304",
"client_address": "Cocody Angré, Abidjan",
"arrival_country": "Côte d'Ivoire",
"products": [
{
"product_id": "PRD-001586",
"name": "Montre Connectée Prestige X9",
"quantity": 1,
"price": 185000,
"variant_id": "comb_abc123",
"variant_name": "Noir - L"
},
{
"product_id": "PRD-002345",
"name": "Sac à Dos Cuir Véritable",
"quantity": 1,
"price": 150000
}
],
"total_price": 335000,
"currency_code": "XOF",
"delivery_note": "Appeler avant 16h"
}'Products
Get the list of your products
/v1/public/productsGet the list of products
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | Optional | Items per page (default: 20) |
offset | integer | Optional | Offset for pagination (default: 0) |
search | string | Optional | Search by product name |
order_by | string | Optional | Sort field |
is_active | boolean | Optional | Filter by active status (true/false) |
Response
{
"success": true,
"message": "Produits récupérés avec succès",
"data": {
"data": [
{
"id": "PRD-001586",
"seller_id": "seller_abc123",
"name": "Montre Connectée Prestige X9",
"description": "Montre connectée avec suivi de santé",
"price": 185000,
"currency_code": "XOF",
"image_url": "https://example.com/image.jpg",
"image_urls": [
"https://example.com/image.jpg"
],
"is_active": true,
"category": "Électronique",
"slug": "montre-connectee-prestige-x9",
"variants": {
"types": [
{
"id": "type_1",
"name": "Couleur",
"values": [
{
"id": "opt_1",
"name": "Noir"
}
]
}
],
"combinations": [
{
"id": "comb_abc123",
"name": "Noir - L",
"options": {
"Couleur": "Noir"
},
"price": 185000,
"is_active": true
}
]
},
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-06-01T14:00:00Z"
}
],
"total": 50,
"page": 1,
"limit": 20,
"offset": 0,
"total_pages": 3
}
}Code example
curl -X GET "https://api.atlasswift.com/v1/public/products" \
-H "Authorization: Bearer atlas_live_xxxxxxxx"
-H "Content-Type: application/json"Currencies
Get the list of supported currencies
/v1/public/currenciesGet the list of supported currencies
Response
{
"success": true,
"data": [
{
"currency_code": "XOF",
"currency_name": "West African CFA franc",
"rate_to_usd": 0.0016,
"updated_at": "2024-06-01T12:00:00Z"
},
{
"currency_code": "EUR",
"currency_name": "Euro",
"rate_to_usd": 1.08,
"updated_at": "2024-06-01T12:00:00Z"
}
],
"count": 2
}Code example
curl -X GET "https://api.atlasswift.com/v1/public/currencies" \
-H "Content-Type: application/json"Error Handling
The API uses standard HTTP codes to indicate the success or failure of a request.
| Code | Description |
|---|---|
400 | Missing or invalid data |
401 | API key missing or malformed |
403 | Invalid or disabled API key |
404 | Resource not found |
429 | Too many requests (rate limiting) |
500 | Internal server error |
Error Format
{
"success": false,
"message": "Données invalides",
"errors": [
{
"field": "client_phone",
"message": "Format de téléphone invalide"
}
]
}Rate limits
The API enforces request limits to ensure service stability. Limits are applied per API key.
Standard
60 requests per minute per API key.
Limit exceeded
429 Too Many Requests response. Wait before retrying.