Skip to content

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.

    Path parameters

    • cart_idstringrequired

      The cart's ID, like cart_01k8qs5s….

    Headers

    • X-Cart-Tokenstringrequired

      The cart's token

    • shop-api-versionYYYY-MM

      The version to answer in. Without it, your app’s pinned version, else the newest.

    Body

    • payment_account_idstringrequired

      TypeID with the pacc prefix.

    • methodenumrequired

      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

    Returns

    200 The cart, priced for the method.

    Errors

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