How can I know the checkoutId to use it in checkoutDiscountCodeApplyV2? In the documentation the mutation has this form:
mutation checkoutDiscountCodeApplyV2($checkoutId: ID!, $discountCode: String!) {
checkoutDiscountCodeApplyV2(checkoutId: $checkoutId, discountCode: $discountCode) {
checkout {
# Checkout fields
}
checkoutUserErrors {
# CheckoutUserError fields
}
}
}
With these variables:
{
"checkoutId": "",
"discountCode": ""
}
Where do I find the checkoutId?