TurinLabs
  • 👋Welcome to TurinLabs!
  • ⬜Whitepaper
    • 1. Introduction
    • 2. Products
    • 3. Business Model
    • 4. Smart contracts
    • 5. Tokenomics
    • 6. Roadmap
  • 👀Products
    • TurinPool
      • Guide to investing in a market
    • TurinWallet
    • TurinPay
  • 🤖Developers
    • TurinPay API
      • Getting started with Turinpay
      • GraphQL Endpoints
        • Authentication
        • Create Payment Intent
        • Get Payment Intents
        • Update Payment Intent
        • Delete Payment Intent
        • Errors
      • Webhooks
    • TurinPay API test shop
    • TurinPay Woocommerce plugin and test shop
  • 📬FAQs
    • TurinWallet
    • TurinPay
    • TurinPool
  • 🙋‍♂️Contact us
Powered by GitBook
On this page
  1. Developers
  2. TurinPay API
  3. GraphQL Endpoints

Delete Payment Intent

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

Uri

https://backend.turinlabs.com/graphql

Headers

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

GraphQL Query

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

Variables (sample)

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

Parameters description

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

PreviousUpdate Payment IntentNextErrors

Last updated 2 years ago

🤖