Usage examples
1. Create Order
pip install requestsimport requests
import json
url = "https://api.aryze.io/v1/orders"
headers = {"Content-Type": "application/json", "x-api-key": "YOUR_API_KEY"}
data = {
"customerName": "John Doe",
"chainId": "1",
"amount": "1000",
"mintWallet": "0x1234567890abcdef",
"customerOrder": "Order123",
"stableCoin": "eUSD"
}
response = requests.post(url, headers=headers, data=json.dumps(data))
print(response.text)npm install axiosconst axios = require('axios');
const url = "https://api.aryze.io/v1/orders";
const headers = {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY"
};
const data = {
"customerName": "John Doe",
"chainId": "1",
"amount": "1000",
"mintWallet": "0x1234567890abcdef",
"customerOrder": "Order123",
"stableCoin": "eUSD"
};
axios.post(url, data, { headers: headers })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('Error:', error.response.data);
});
2. Get All Orders
3. Get Order By ID
4. Update Order
Was this helpful?