API reference

createPaymentIntentRetry

Required permission: Authenticated

graphql
createPaymentIntentRetry(
  paymentIntentId: ID!
  input: PaymentIntentRetryInput!
): PaymentIntent

Arguments

Name Type Description
paymentIntentId ID!
input PaymentIntentRetryInput!

Returns

PaymentIntent

Example

graphql
mutation CreatePaymentIntentRetry($paymentIntentId: ID!, $input: PaymentIntentRetryInput!) {
  createPaymentIntentRetry(paymentIntentId: $paymentIntentId, input: $input) {
    id
    finalizeAccessToken
    metadata
    paymentProvider
    receiptPaymentMethodLabel
    state
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { createPaymentIntentRetry(...) { __typename } }"}'