API reference
finalizePaymentIntent
The finalizePaymentIntent mutation. Returns OrderIntent.
finalizePaymentIntent(
paymentIntentId: ID!
accessToken: String
): OrderIntentArguments
| Name | Type | Description |
|---|---|---|
paymentIntentId |
ID! |
|
accessToken |
String |
Returns
Example
mutation FinalizePaymentIntent($paymentIntentId: ID!) {
finalizePaymentIntent(paymentIntentId: $paymentIntentId) {
id
createdAt
updatedAt
finalizeAccessToken
metadata
state
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { finalizePaymentIntent(...) { __typename } }"}'