Cashramp
  • Introduction
    • Getting Started
    • Payment Rails
    • API Endpoints
    • Authentication
    • Webhooks
    • Integration Guide
    • SDKs
  • Hosted Ramp
    • Overview
    • Deposits
    • Withdrawals
    • Cancel Payment
  • Direct Ramp
    • Overview
    • Ramp Quotes
    • Deposits
    • Withdrawals
  • Onchain Ramp
    • Overview
    • On-Off Ramp
  • Cashramp API
    • Queries
    • Customers
    • Payment Methods
    • Withdraw Onchain
Powered by GitBook
On this page
  1. Hosted Ramp

Cancel Payment

Use the cancelHostedPayment mutation to cancel a hosted payment that is still in the created state.

mutation {
  cancelHostedPayment(
    paymentRequest: "VHlwZXM6OkNhc2hyYW1wOjpBUEk6Ok1lcmNoYW50UGF5bWVudFJlcXVlc3QtMTFlZDhkZjUtZDI4Ni00MTI3LWJjZjktMTA3NTFkZTYxN2I4"
  )
}

Argument

Name
Type
Required
Description

paymentRequest

ID!

Yes

Global ID of the hosted-payment request to cancel.

You can only cancel requests whose status is created. Once a payment has progressed to picked_up, completed, or canceled, it can no longer be voided with this mutation.

PreviousWithdrawalsNextOverview

Last updated 10 days ago