Step 1: Sign Up and Get API Key
If you haven’t already, sign up for an account on our platform to access the API. Upon registration, you’ll receive an API key which you’ll need to include in your requests for authentication purposes.Step 2: Authentication
To authenticate your requests, include your API key in the header of each request. Here’s an example using cURL:API keys will be used for testing Daraa’s API and simple operations. Production functionality will require access tokens using OAuth
Step 3: Explore Endpoints
Check out our full API documentation to see what’s available. We provide tools for managing SKUs, customers, orders, and more!Core API Documentation
Check out the full Daraa API
/sku
which acts as a “Hello World” test. We’ll use this endpoint for the rest of the guide.
Step 4: Making Requests
You can make requests to our API using any programming language or tool that supports HTTP requests. The right sidebar of each endpoint includes multiple formats depending on your chosen language or tool.
Step 5: Handling Responses
Our API returns responses in JSON format. Make sure to handle the responses appropriately based on the status codes and data returned. Assuming you correctly set up the/sku
example, you should get the following response: