API reference
cancelPaymentIntent
Required permission: Authenticated
cancelPaymentIntent(
paymentIntentId: ID!
): PaymentIntentArguments
| Name | Type | Description |
|---|---|---|
paymentIntentId |
ID! |
Returns
Example
mutation CancelPaymentIntent($paymentIntentId: ID!) {
cancelPaymentIntent(paymentIntentId: $paymentIntentId) {
id
finalizeAccessToken
metadata
paymentProvider
receiptPaymentMethodLabel
state
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { cancelPaymentIntent(...) { __typename } }"}'