Discussing APIs and development related to customers, discounts, and order management.
Hello,
I'm working on a project that uses Shopify as a headless store and I am able to create a checkout via graphql API update it, add promo codes finish the payment with credit card and I'm doing all this through storefront graphQl mutations and I can't seem to find a way to add a tip to the current checkout than finish the payment.
I was looking for something like this
mutation {
addTipToCheckout(checkoutID:"string",amount:"number"){
checkout {
id
}
userErrors {
field
message
}
}
}
Has anybody found any solution to this? We are also having this problem.
There is no documentation as far as we could tell about tipping via API.
The order API does not appear to support tipping.
(This question marked as solved does not have an actual solution: https://community.shopify.com/c/shopify-apis-and-sdks/adding-tips-to-an-order-using-the-order-api/td...
)