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

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

Set cart payment

PUT/store/v1/carts/{cart_id}/payment

    Say how the buyer will pay: the cart is priced for that method, with its fee or discount. The method must be one of GET /carts/{cart_id}/payment-methods.

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

    • cart_idstringمطلوب

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

    الترويسات

    • X-Cart-Tokenstringمطلوب

      The cart's token

    • shop-api-versionYYYY-MM

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

    الجسم

    • payment_account_idstringمطلوب

      TypeID with the pacc prefix.

    • methodenumمطلوب

      How the customer pays.

      • card
      • mada
      • apple_pay
      • google_pay
      • stc_pay
      • cash_on_delivery
      • bank_transfer
      • gift_card
      • cash
      • card_present
      • on_account
      • mobile_wallet
      • fawry
      • valu
      • sympl
      • souhoola
      • instapay
      • tabby
      • tamara

    ما يُرجعه

    200 The cart, priced for the method.

    الأخطاء

    • 404not_foundNo such cart.
    • 409A payment is in progress, or the cart is completed.
    • 422validation_failedNot a way to pay this cart.