# Delete Payment Intent

Execute this endpoint to delete a payment intent. Sandbox or production environment will be selected by **apiKey** passed as authentication.

**Uri**

```url
https://backend.turinlabs.com/graphql
```

**Headers**

```json
{
  "apiKey": "turinpay_sk_test_eee78-de9e-4e84-b2e6-fc2ae0687"
}
```

**GraphQL Query**

```graphql
mutation DELETE_PAYMENT_INTENT_MUTATION($input: DeletePaymentIntentInput!) {
  deleteTPayPaymentIntent(input: $input) {
    __typename
    ... on GenericResult {
        result
    }
    ... on Error {
      code
      message
      description
    }
  }
}
```

**Variables (sample)**

```json
{
    "input": {
        "id": "c6908e14-19a4-4500-a7ff-a517091cb994"
    }
}
```

**Parameters description**

* _**id**_: _(mandatory)_ pass the id of a payment intent to delete it.
