Work with Orders
Last updated 4 months ago
200
const response = await fetch('https://api.clickcrate.xyz/v1/shopify/order/{orderId}', { method: 'GET', headers: { "Authorization": "Bearer API key", "authorization": "text" }, }); const data = await response.json();
{}
const response = await fetch('https://api.clickcrate.xyz/v1/square/order/{orderId}', { method: 'GET', headers: { "Authorization": "Bearer API key", "authorization": "text" }, }); const data = await response.json();
const response = await fetch('https://api.clickcrate.xyz/v1/clickcrate/orders', { method: 'GET', headers: { "Authorization": "Bearer API key", "authorization": "text" }, }); const data = await response.json();
{ "orders": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "productId": "text", "productName": "text", "buyerId": "text", "sellerId": "text", "size": "text", "quantity": 0, "totalPrice": 0, "orderManager": "clickcrate", "creatorId": "text", "status": "Pending", "createdAt": "2024-12-25T14:41:07.393Z", "updatedAt": "2024-12-25T14:41:07.393Z", "shippingName": "text", "shippingEmail": "name@gmail.com", "shippingPhone": "text", "shippingAddress": "text", "shippingCity": "text", "shippingStateProvince": "text", "shippingCountryRegion": "text", "shippingZipCode": "text" } ] }