Skip to main content

Payment Intents Overview

Description

The Payment Intent API group provides a robust set of endpoints to manage and process cryptocurrency payments, focusing on stablecoins like USDC and USDT. Designed for merchants and developers, it enables the creation, retrieval, listing, and cancellation of payment intents, offering seamless integration with blockchain-based transactions across multiple chains such as Base and Ethereum.

API Endpoints

API Endpoint Reference

MethodEndpointDescription
POST/v1/payment_intentsCreates a new payment intent for a transaction.
GET/v1/payment_intents/:idRetrieves details of a specific payment intent.
GET/v1/payment_intents?offset=0&limit=10Lists payment intents with pagination.
POST/v1/payment_intents/:id/cancelCancels a payment intent by its ID.

The PaymentIntent Object

The PaymentIntent object represents the details of a payment intent. It is returned by various endpoints in this group.

Attributes

AttributeTypeDescription
idstringUnique identifier for the payment intent (e.g., pay_t24b28nbodnk4icGMyE7).
account_idstringID of the account associated with the intent.
payer_addressstring or nullAddress of the payer, if provided.
one_time_addressstringOne-time address for the payer to send funds (e.g., 0xa1A0340cF7b9326eA4210AB49c17e20e0c32a2FB).
chainstringBlockchain chain used (e.g., base).
amountstringTotal amount to be paid (e.g., 15.0).
currencystringCurrency of the transaction (e.g., USDC).
amount_receivedstringAmount received so far (e.g., 0.0).
descriptionstring or nullOptional description of the payment intent.
metadataobject or nullAdditional metadata, if provided.
customer_idstring or nullID of the customer, if associated.
customer_emailstring or nullCustomer email, if provided.
statusstringCurrent status of the payment intent (e.g., requires_payment_method).
tx_hashstring or nullTransaction hash, if available.
created_attimestampTime when the payment intent was created.
updated_attimestampTime when the payment intent was last updated.
expired_attimestamp or nullTime when the payment intent expires.

Status Enum

The status field indicates the current state of the payment intent. Possible values are:

  • requires_payment_method: The payment intent requires a payment method to be provided.
  • requires_confirmation: The payment intent is awaiting confirmation from the user or system.
  • requires_additional_payment: Additional payment is needed to complete the intent.
  • confirmed: The payment intent has been confirmed and is being processed.
  • succeeded: The payment intent has successfully completed.
  • canceled: The payment intent has been canceled.
  • failed: The payment intent failed due to an error.