انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

Set cart delivery slot

PUT/store/v1/carts/{cart_id}/delivery-slot

    Choose the day (and window) for the cart's delivery option. Changing the option clears it.

    معاملات المسار

    • cart_idstringمطلوب

      معرّف من نوع cart، مثل cart_01k8qs5s….

    الترويسات

    • X-Cart-Tokenstringمطلوب

      The cart's token

    • shop-api-versionYYYY-MM

      الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

    الجسم

    • datedateمطلوب
    • startstringمطلوب

      The window's start, HH:MM; 00:00 for an option that takes a day without windows.

    ما يُرجعه

    200 The updated cart.

    الأخطاء

    • 404not_foundNo such cart.
    • 409A payment is in progress, or the cart is completed.
    • 422validation_failedThat day or window isn't open, or the option doesn't take a day.