Aller au contenu principal

Documentation API

CODRocket API Documentation

The CODRocket REST API allows you to programmatically interact with your CODRocket account. Build custom integrations, automate workflows, connect with platforms we do not natively support, or build your own tools on top of CODRocket. This guide provides an overview of the API and how to get started.

Guide du centre d'aide CODRocket - Documentation API

API Overview

The CODRocket API is a RESTful API that uses standard HTTP methods and returns JSON responses. All API endpoints require authentication via API keys.

Authentication

To authenticate API requests:

  1. Go to Settings > API Keys in your CODRocket dashboard
  2. Click "Generate New Key"
  3. Give the key a descriptive name (e.g., "Custom Integration", "Webhook Handler")
  4. Copy the generated API key
  5. Include the key in all API requests as a Bearer token in the Authorization header

Base URL

All API requests are made to: https://api.codrocket.com/v1/

Available Endpoints

Orders

MethodEndpointDescription
GET/ordersList all orders with pagination and filters
GET/orders/{id}Get a specific order by ID
POST/ordersCreate a new order
PUT/orders/{id}Update an existing order
PATCH/orders/{id}/statusUpdate order status
DELETE/orders/{id}Delete/cancel an order

Products

MethodEndpointDescription
GET/productsList all products
GET/products/{id}Get a specific product
POST/productsCreate a new product
PUT/products/{id}Update a product
PATCH/products/{id}/stockUpdate stock levels

Delivery

MethodEndpointDescription
GET/deliveriesList all deliveries
POST/deliveries/assignAssign orders to a driver
PATCH/deliveries/{id}/statusUpdate delivery status
GET/driversList all drivers

Analytics

MethodEndpointDescription
GET/analytics/salesSales summary with date range filter
GET/analytics/deliveryDelivery performance metrics
GET/analytics/productsProduct performance data

Webhooks

CODRocket can send webhook notifications to your server when events occur:

  • order.created: Fired when a new order is created
  • order.updated: Fired when order details change
  • order.status_changed: Fired when an order status transitions
  • delivery.completed: Fired when a delivery is successfully completed
  • delivery.failed: Fired when a delivery attempt fails
  • inventory.low_stock: Fired when a product hits low stock threshold

Rate Limits

  • Standard plans: 100 requests per minute
  • Professional plans: 500 requests per minute
  • Enterprise plans: 2,000 requests per minute

Rate limit information is included in response headers: X-RateLimit-Remaining and X-RateLimit-Reset.

Error Handling

The API uses standard HTTP status codes. Error responses include a JSON body with an error code and human-readable message. Common status codes: 200 (Success), 201 (Created), 400 (Bad Request), 401 (Unauthorized), 404 (Not Found), 422 (Validation Error), 429 (Rate Limited), 500 (Server Error).

For native platform integrations, see our guides for WooCommerce, Shopify, and YouCan.

Support CODRocket

Répond généralement en quelques minutes

Démarrer le chat