Complete Checkout Storefront API

Hi, what did checkoutCompleteFree mutation input variable need except checkoutId? I have try run it with only checkoutId in input variable but it got

{
    "data": {
        "checkoutCompleteFree": {
            "checkout": null,
            "checkoutUserErrors": [
                {
                    "code": "MISSING_PAYMENT_INPUT",
                    "field": null,
                    "message": "Checkout requires payment."
                }
            ]
        }
    }
}

Hi tobiasjayas,

The [checkoutCompleteFree mutation] will only work if the paymentDue amount of the checkout is 0 due to all the items being free or the amount being paid through gift cards applied with the [checkoutGiftCardsAppend mutation].