UseePay API
  1. Payment Intents
UseePay API
  • Introduction
  • Product Overview
  • Authentication
  • Errors
  • Best Intergration
    • Quickly create a paymentIntent for a subscription
  • Integration
    • Get started with online payments
    • Get started with subscriptions
  • Payment Intents
    • Quickly create a paymentIntent
      POST
    • Create a PaymentIntent
      POST
    • Retrieve a PaymentIntent
      GET
    • Update a PaymentIntent
      POST
    • Confirm a PaymentIntent
      POST
    • Cancel a PaymentIntent
      POST
    • Capture a PaymentIntent
      POST
    • List all payment intents
      GET
  • Customers
    • Create a customer
      POST
    • Retrieves a customer
      GET
    • Update a customer
      POST
    • List all customers
      GET
  • Subscriptions
    • Create a subscription
      POST
    • Retrieves a subscription
      GET
    • Update a subscription
      POST
    • List all subscriptions
      GET
    • Cancel a subscription
      POST
  • Invoices
    • Create a invoice
    • Retrieves a invoice
    • Update a invoice
    • List all invoices
    • Pay a invoice
  • Payment Methods
    • Create a payment method
    • Retrieves a payment method
    • Update a payment method
    • List all payment methods
  • Mandates
    • Create a mandate
    • Retrieves a mandate
    • Update a mandate
    • List all mandates
  • Refunds
    • Create a refund
    • Retrieves a refund
    • Update a refund
    • List all refunds
  • Webhooks
    • Webhook events
    • Create a webhook
    • Retrieves a webhook
    • Update a webhook
    • List all webhooks
  • Payment Links
    • Create a payment link
    • Retrieves a payment link
    • Update a payment link
    • List all payment links
  • Embedded Checkout
    • Payment Elements
  • About Testing
    • Test Cards
    • ApplePay&GooglePay
  • case
  • message
    • Useepay Payment Method Messaging Element
  1. Payment Intents

Quickly create a paymentIntent

POST
/api/v1/payment_intents/create

Request

Header Params

Body Params application/json

Example
{
    "amount": 100,
    "currency": "USD",
    "merchant_order_id": "bdaf311331",
    "invoice_id": "inv_1023H3CQ81800",
    "mandate_data": {
        "customer_acceptance": {
            "type": "online",
            "accepted_at": "2024-10-06T10:56:21Z",
            "online": {
                "ip_address": "192.168.12.1",
                "user_agent": "user agent"
            }
        }
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://openapi1.uat.useepay.com/api/v1/payment_intents/create' \
--header 'x-merchant-no;' \
--header 'x-api-key;' \
--header 'x-app-id;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": 100,
    "currency": "USD",
    "merchant_order_id": "bdaf311331",
    "invoice_id": "inv_1023H3CQ81800",
    "mandate_data": {
        "customer_acceptance": {
            "type": "online",
            "accepted_at": "2024-10-06T10:56:21Z",
            "online": {
                "ip_address": "192.168.12.1",
                "user_agent": "user agent"
            }
        }
    }
}'

Responses

🟢200Success
application/json
Body

Example
{}
Modified at 2025-08-21 03:09:56
Previous
Get started with subscriptions
Next
Create a PaymentIntent
Built with