# createPaymentIntentRetry

> Required permission: Authenticated

Source: https://docs.gastrogate.io/docs/api/mutations/createPaymentIntentRetry

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

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `paymentIntentId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `input` | [`PaymentIntentRetryInput`](https://docs.gastrogate.io/docs/api/types/PaymentIntentRetryInput.md)! |  |

## Returns

[`PaymentIntent`](https://docs.gastrogate.io/docs/api/types/PaymentIntent.md)

## 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 } }"}'
```
