Create Order
X-API-Key<token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/orders" \ -H "Content-Type: application/json" \ -d '{ "items": [ { "product": "string" } ], "proProfil": "string", "owner": "string" }'{ "type": "success", "code": "string", "status": 0, "message": "string", "data": { "id": "string", "orderItems": [ { "id": "string", "quantity": 1, "totalPrice": 0, "order": {}, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "productId": "string", "productSnapshot": { "_id": "string", "name": "string", "description": "string", "pictures": [ { "Key": "string", "Bucket": "string", "Location": "string", "public": "string" } ], "attributes": { "specifications": {}, "pricing": { "amount": 29.99, "currency": "USD", "pricingType": "buy", "frequency": "monthly", "promotion": 10, "negotiable": false }, "attachedServices": [ null ], "condition": "new", "conditionDetails": "string", "warranty": { "hasWarranty": true, "duration": 1, "durationType": "days", "description": "string", "terms": "string", "type": "seller" }, "stock": { "available": 0, "sku": "string", "location": "string" }, "shipping": { "weightKg": 0, "dimensions": { "length": 0, "width": 0, "height": 0 }, "isDeliveryFree": false }, "legal": { "ageRestriction": 0, "certifications": [ "string" ] }, "booking": { "allowInstallments": true, "maxInstallments": 0 } }, "metadata": { "isArchived": false, "archivedAt": "2019-08-24T14:15:22Z" }, "owner": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "payout": { "payeeType": "Profil", "payee": "string", "amount": 0, "assignedBy": "string", "assignedAt": "2019-08-24T14:15:22Z", "status": "pending", "releasedAt": "2019-08-24T14:15:22Z", "transactionId": "string" }, "priceAdjustments": [ { "previousAmount": 0, "newAmount": 0, "by": "string", "at": "2019-08-24T14:15:22Z", "reason": "string" } ], "referredBy": "string" } ], "orderNumber": "string", "commission": 0, "totalPrice": 0, "currency": "string", "owner": { "id": "string", "username": "string", "firstName": "string", "lastName": "string", "fullName": "string", "profilPicture": { "Key": "string", "Bucket": "string", "Location": "string", "public": "string" }, "coverPicture": { "Key": "string", "Bucket": "string", "Location": "string", "public": "string" }, "profilType": "user", "authId": "string", "contacts": { "tels": [ "string" ], "emails": [ "string" ], "message": "string", "position": { "name": "string", "location": { "type": "Point", "coordinates": [ 0, 0 ] } }, "socialMedia": { "facebook": "string", "twitter": "string", "linkedin": "string", "instagram": "string", "tiktok": "string" }, "externalAccounts": [ { "provider": "string", "accountId": "string", "payload": {} } ] }, "billingPlan": {}, "planBenefices": { "maxSimultaneousSearch": 0, "maxContactsPerSearch": 0 }, "credit": 0, "balance": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "profilNumber": "string" }, "proProfil": "string", "status": "pending", "paymentStatus": "unpaid", "paymentMethod": "wallet", "paymentMethodAllowed": [ "wallet" ], "payload": {}, "deliveredBy": "string", "position": { "name": "string", "location": { "type": "Point", "coordinates": [ 0, 0 ] } }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "paidAmount": 0, "installments": [ { "_id": "string", "label": "string", "amount": 0, "dueDate": "2019-08-24T14:15:22Z", "status": "pending", "paidAt": "2019-08-24T14:15:22Z", "paymentId": "string" } ], "paymentLink": { "token": "string", "url": "string", "createdAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "usedAt": "2019-08-24T14:15:22Z" }, "accesses": [ { "_id": "string", "targetType": "Profil", "target": "string", "role": "viewer", "grantedBy": "string", "grantedAt": "2019-08-24T14:15:22Z", "revokedAt": "2019-08-24T14:15:22Z", "status": "active" } ], "commissionMode": "seller_margin", "createdBySeller": true }}