Save your wardrobe booking apis
  1. order
Save your wardrobe booking apis
  • Customer booking
    • Getting Started
      • Introduction
      • Authentication
      • Attribute groups
    • Authentication
      • Customer login
      • Customer signup
    • categories
      • Get providers
      • Get clothes categories
    • services
      • Get services
    • Upload photos
      • Uplaod photos
    • shoppingCart
      • Create A New Shopping Cart
      • Add items to Shopping Cart
      • Add customer to Shopping Cart
      • Delete Item From Shopping Cart
      • Get Available Logistics Options
      • Add Logistic Option To Shopping Cart
    • order
      • Create the Order from the Shopping Cart
        POST
      • List Orders
        GET
  • Schemas
    • attributesGroup
    • currency
    • translatedString
    • metadata
    • shoppingCart
    • item
    • item Copy
    • order
  1. order

Create the Order from the Shopping Cart

Developing
POST
/api/sip/orders
Tis route is used to place a new order for items in the user’s ShoppingCart. This endpoint finalizes the purchasing process by recording customer details, logistics options, item details, and payment information

Request

Body Params application/json

Example
{"customer":{"title":"man","_id":"679216174e4caf34f9b82ddb","email":"femiy41627@kurbieh.com","familyName":"pavard","givenName":"emiy","phone":"+33999999999","address":{"address":"gggg","secondAddress":"","city":"lyon","state":"","zipCode":"69001","country":"France","deliveryNotes":"gggg"}},"logisticOption":"658462789d81f10042bb13bb","source":"web","items":[{"itemId":"6797651d63d826003712a840","categoryId":{"tag":["Womenswear"],"image":"https://d2adus3uxlgbln.cloudfront.net/bvfkj9cs7np_1_2_3_PantalonsJeans.png","subClothesCategories":["65d4d259551d23003953f9d4","65d4d26e551d23003953f9d6","65d4d47945d8400044942eb2"],"_id":"65d4cb73e2b7c1003905e6f6","name":{"fr":"Pantalons & Jeans","en":"Pantalons"},"id":1},"subClothesCategory":{"image":"","_id":"65d4d259551d23003953f9d4","name":{"fr":"En denim","en":"Pantalons-Denim"}},"images":[{"tag":"full","mimeType":"image/jpeg","name":"51QXJVUI7L.jpg","url":"https://d2adus3uxlgbln.cloudfront.net/qgffeqbgwvs_1_2_3_51QXJVUI7L.jpg","key":"qgffeqbgwvs_1_2_3_51QXJVUI7L.jpg","bucket":"syw-book-and-pack-staging-asset-public","ETag":"\"e1c519378ee80ff72129bb852ed05da0\"","dimensions":[{"_id":"6797651d63d826003712a841","type":"small","width":100,"height":100,"orientation":0,"url":"https://d2adus3uxlgbln.cloudfront.net/9e86f10d-0617-4ec8-b4c2-151eda9e1d5e_small.jpg"},{"_id":"6797651d63d826003712a842","type":"medium","width":1000,"height":1000,"orientation":0,"url":"https://d2adus3uxlgbln.cloudfront.net/a8714d00-b3e6-4fac-9b05-7f17acbdf1a0_medium.jpg"},{"_id":"6797651d63d826003712a843","type":"large","width":2000,"height":2000,"orientation":0,"url":"https://d2adus3uxlgbln.cloudfront.net/9f602e25-8968-4604-ac30-31b8be7aaf49_large.jpg"}]},{"tag":"zoomed","mimeType":"image/png","name":"images.png","url":"https://d2adus3uxlgbln.cloudfront.net/tkfjpumrcq8_1_2_3_images.png","key":"tkfjpumrcq8_1_2_3_images.png","bucket":"syw-book-and-pack-staging-asset-public","ETag":"\"2fe26fea1cd1330bc45febb0c7ecc5c2\"","dimensions":[{"_id":"6797651d63d826003712a844","type":"small","width":100,"height":100,"orientation":0,"url":"https://d2adus3uxlgbln.cloudfront.net/37360e15-6687-444d-9747-3e4b93cb4ca1_small.jpg"},{"_id":"6797651d63d826003712a845","type":"medium","width":1000,"height":1000,"orientation":0,"url":"https://d2adus3uxlgbln.cloudfront.net/f7c4c444-894d-40d5-890d-4d1a7f783933_medium.jpg"},{"_id":"6797651d63d826003712a846","type":"large","width":2000,"height":2000,"orientation":0,"url":"https://d2adus3uxlgbln.cloudfront.net/7995a016-1e87-442f-9622-cebcc5b188ef_large.jpg"}]}],"subServices":[{"subServiceId":"66a796c4a8ff7c00378cde70","quantity":1,"originalPrice":{"EUR":22},"price":{"EUR":14},"appliedDiscountOffer":{"isActive":true,"isDeleted":false,"isRepairFund":true,"repairFundService":"ZIP (Petit)","percentage":null,"fixedAmount":{"EUR":8},"applyOnProvider":false,"_id":"65f0702f3f759e003843e067","name":"ZIP (Petit)","type":"fixedAmount"}}],"values":{"Brand":"Maje","MATERIAL-COMPOSITION":"","Doublure":"Avec doublure","NOTES-COMPLEMENTAIRE":"bbbbb"},"attributeGroup":"65f0139c3f759e003843e054"}],"requestType":"order","orderDate":"2025-01-27T10:52:26.178Z","providerId":"66aa51d473348dc769c106e3","paymentMethod":"card","language":"fr","discountCode":""}

Responses

🟢200Success
application/json
Body

Example
{
    "id": "67f79bea1200350037cda6b2",
    "items": [
        {
            "isRevoke": false,
            "name": "",
            "video": null,
            "receipt": null,
            "canEditPrice": true,
            "itemId": "54a5fcf8-61f8-430b-8802-cf2578dcef75",
            "categoryId": "65d4cb73e2b7c1003905e6f6",
            "subClothesCategory": "65d4d26e551d23003953f9d6",
            "images": [
                {
                    "tag": "full",
                    "mimeType": "image/jpeg",
                    "name": "sac-a-main-marc-jacobs-j-marc.jpg",
                    "url": "https://d2adus3uxlgbln.cloudfront.net/gy8orp14zc6_1_2_3_sac-a-main-marc-jacobs-j-marc.jpg",
                    "key": "gy8orp14zc6_1_2_3_sac-a-main-marc-jacobs-j-marc.jpg",
                    "bucket": "syw-book-and-pack-staging-asset-public",
                    "ETag": "\"b3cf22078aeb4a59ddc03f624698924b\"",
                    "dimensions": [
                        {
                            "_id": "67f79b781200350037cda6a3",
                            "type": "small",
                            "width": 100,
                            "height": 100,
                            "orientation": 0,
                            "url": "https://d2adus3uxlgbln.cloudfront.net/02add7cf-5da3-413e-9b34-79e6092ca953_small.jpg"
                        },
                        {
                            "_id": "67f79b781200350037cda6a4",
                            "type": "medium",
                            "width": 1000,
                            "height": 1000,
                            "orientation": 0,
                            "url": "https://d2adus3uxlgbln.cloudfront.net/70c5a7d0-3f30-45bb-b0cd-981a71f3b205_medium.jpg"
                        },
                        {
                            "_id": "67f79b781200350037cda6a5",
                            "type": "large",
                            "width": 2000,
                            "height": 2000,
                            "orientation": 0,
                            "url": "https://d2adus3uxlgbln.cloudfront.net/3a2e44c0-e3d6-4e13-b5d0-b0109450ff3c_large.jpg"
                        }
                    ]
                },
                {
                    "tag": "zoomed",
                    "mimeType": "image/jpeg",
                    "name": "51QXJVUI7L.jpg",
                    "url": "https://d2adus3uxlgbln.cloudfront.net/y0eigm45xhm_1_2_3_51QXJVUI7L.jpg",
                    "key": "y0eigm45xhm_1_2_3_51QXJVUI7L.jpg",
                    "bucket": "syw-book-and-pack-staging-asset-public",
                    "ETag": "\"e1c519378ee80ff72129bb852ed05da0\"",
                    "dimensions": [
                        {
                            "_id": "67f79b781200350037cda6a6",
                            "type": "small",
                            "width": 100,
                            "height": 100,
                            "orientation": 0,
                            "url": "https://d2adus3uxlgbln.cloudfront.net/7ce36281-30ee-466c-a39b-3b9e56cd5076_small.jpg"
                        },
                        {
                            "_id": "67f79b781200350037cda6a7",
                            "type": "medium",
                            "width": 1000,
                            "height": 1000,
                            "orientation": 0,
                            "url": "https://d2adus3uxlgbln.cloudfront.net/8ec60d32-eedc-477a-86b7-285910fbfd32_medium.jpg"
                        },
                        {
                            "_id": "67f79b781200350037cda6a8",
                            "type": "large",
                            "width": 2000,
                            "height": 2000,
                            "orientation": 0,
                            "url": "https://d2adus3uxlgbln.cloudfront.net/e3576b61-fdbf-4416-ac38-087d4a75e901_large.jpg"
                        }
                    ]
                }
            ],
            "subServices": [
                {
                    "subServiceId": "66a796c4a8ff7c00378cde08",
                    "originalPrice": {
                        "EUR": 21
                    },
                    "price": {
                        "EUR": 21
                    },
                    "displayName": {
                        "en": "Reprise de la couture, avec doublure",
                        "fr": "Reprise de la couture, avec doublure"
                    },
                    "description": {
                        "en": "Reprise de la couture, avec doublure",
                        "fr": "Option à choisir si votre vêtement comporte une doublure"
                    }
                }
            ],
            "attributes": {
                "Brand": {
                    "type": "select",
                    "label": {
                        "en": "MARQUE",
                        "fr": "Marque"
                    },
                    "value": "Maje",
                    "translatedValue": {
                        "en": "Maje",
                        "fr": "Maje"
                    }
                },
                "MATERIAL-COMPOSITION": {
                    "type": "text",
                    "label": {
                        "en": "MATERIAL COMPOSITION",
                        "fr": "Composition principale"
                    },
                    "value": "100% coton"
                },
                "Doublure": {
                    "type": "radio",
                    "label": {
                        "en": "Doublure",
                        "fr": "Doublure"
                    },
                    "value": "Avec doublure",
                    "translatedValue": {
                        "en": "Lined",
                        "fr": "Avec doublure"
                    }
                },
                "NOTES-COMPLEMENTAIRE": {
                    "type": "textArea",
                    "label": {
                        "en": "NOTES COMPLÉMENTAIRE",
                        "fr": "Notes complémentaires"
                    },
                    "value": "gg"
                }
            },
            "id": "67f79bea1200350037cda6b3"
        }
    ],
    "requestType": "order",
    "orderDate": "2025-04-10T10:22:34.548Z",
    "orderNumber": "1744280554695",
    "isRevokedByCustomer": false,
    "paymentMethod": "card",
    "paymentIssue": [],
    "currencyCode": "EUR",
    "pricing": {
        "originalPriceBasketIndex": 0,
        "baskets": [
            {
                "isValidated": true,
                "step": "5796f38f-8773-4a65-ace8-4bc797629911",
                "currency": "EUR",
                "note": [
                    {
                        "role": "",
                        "message": "",
                        "itemId": "54a5fcf8-61f8-430b-8802-cf2578dcef75"
                    }
                ],
                "costToUser": {
                    "total": 63,
                    "totalService": 56,
                    "serviceFee": {
                        "variables": [
                            "originalTotalService"
                        ],
                        "percentage": 0,
                        "fee": 0
                    },
                    "vat": 0.2
                },
                "items": [
                    {
                        "appliedDiscountOffer": null,
                        "isRevoked": false,
                        "itemId": "67f79bea1200350037cda6b3",
                        "servicePrices": 21,
                        "originalPrice": 21,
                        "subServiceIds": "66a796c4a8ff7c00378cde08"
                    },
                    {
                        "appliedDiscountOffer": null,
                        "isRevoked": false,
                        "itemId": "67f79bea1200350037cda6ba",
                        "servicePrices": 35,
                        "originalPrice": 35,
                        "subServiceIds": "66a796c4a8ff7c00378cde09"
                    }
                ]
            }
        ],
        "comissions": {
            "platformFee": {
                "variables": [
                    "originalTotalService"
                ],
                "percentage": 0.1666667,
                "fee": 9.33
            },
            "serviceProvider": {
                "variables": [
                    "originalTotalService"
                ],
                "percentage": 0.8333333,
                "fee": 46.67
            },
            "syw": {
                "variables": [
                    "platformFee",
                    "serviceFee"
                ],
                "percentage": 1,
                "fee": 9.33
            },
            "partner": {
                "variables": [
                    "platformFee",
                    "serviceFee"
                ],
                "percentage": 0,
                "fee": 0
            },
            "stripeFee": {
                "variables": [
                    "platformFee",
                    "serviceFee",
                    "deliveryCompanyFee"
                ],
                "percentage": 0.1,
                "fee": 1.63
            },
            "deliveryCompanyFee": 7
        }
    },
    "isRevoked": false,
    "isArchived": false,
    "hasPaymentConfirmation": false,
    "estimatedCompletionDate": "2025-04-11T10:22:34.548Z",
    "orderCanceledFromStripe": false,
    "histories": [],
    "isPayed": false,
    "isCompleted": false,
    "shipments": [],
    "language": "fr",
    "note": "",
    "orderId": "67f79bea1200350037cda6b2",
    "discountCode": "",
    "store": {
        "services": [
            "65f419e43ed7470042a7618f",
            "66a77c371c44e0affd311ec2"
        ],
        "onlineStore": true,
        "_id": "658999b249f0eb0042abec72",
        "name": "Maje Online",
        "email": "ezzeddine@saveyourwardrobe.com",
        "phone": "+44123456789",
        "address": {
            "address": "london",
            "secondAddress": "",
            "city": "london",
            "state": "",
            "zipCode": "kt1 1aa",
            "country": "United Kingdon",
            "deliveryNotes": ""
        },
        "logisticProvider": null,
        "language": "fr"
    },
    "staff": "667ae5a29d7ffa002e81cce8",
    "customerId": "679216174e4caf34f9b82ddb",
    "providerId": "66aa51d473348dc769c106e3",
    "customerSignature": null,
    "logisticOption": {
        "name": "chronopost",
        "displayName": {
            "en": "Collissimo",
            "fr": "chronopost"
        },
        "price": {
            "GBP": 0,
            "EUR": 7
        },
        "shipments": [
            {
                "flow": "66e84f454fb13a004360798e",
                "type": "onward",
                "logisticProvider": "66d72083ab870bca7607844c",
                "providerName": "chronopost"
            },
            {
                "flow": "6704f775212cb9003738a0dc",
                "type": "backwards",
                "logisticProvider": "66d72083ab870bca7607844c",
                "providerName": "chronopost"
            }
        ],
        "logisticOptionId": "658462789d81f10042bb13bb",
        "tags": []
    },
    "providerUploads": [],
    "address": {
        "address": "gggg",
        "secondAddress": "",
        "city": "lyon",
        "state": "",
        "zipCode": "69001",
        "country": "France",
        "deliveryNotes": "gggg"
    },
    "warrantyStatus": "no_warranty",
    "requests": [],
    "notes": [],
    "attributes": {
        "receivingEntity": {
            "givenName": "emiy",
            "familyName": "pavard",
            "email": "femiy41627@kurbieh.com",
            "phone": "+33999999999",
            "company": "emiy pavard",
            "customerReferenceId": "femiy41627@kurbieh.com",
            "shippingAddress": {
                "address": "gggg",
                "secondAddress": "",
                "city": "lyon",
                "state": "",
                "zipCode": "69001",
                "country": "France",
                "deliveryNotes": "gggg"
            }
        }
    },
    "insurance": {
        "status": "no_insurance",
        "estimatedItemPrice": null,
        "price": null,
        "parcelId": null
    },
    "comments": [],
    "isTransfered": false,
    "customer": {
        "stripeCustomerId": "cus_RdiM05xMUas2Fq",
        "title": "man",
        "customerId": null,
        "email": "femiy41627@kurbieh.com",
        "familyName": "pavard",
        "givenName": "emiy",
        "phone": "+33999999999",
        "lastOrderDate": "2025-04-10T10:22:34.002Z",
        "id": "679216174e4caf34f9b82ddb",
        "userId": "679216174e4caf34f9b82ddb",
        "name": "emiy pavard"
    }
}
Previous
Add Logistic Option To Shopping Cart
Next
List Orders
Built with