API Reference

Create a transaction (V2)

posthttps://api.circle.com/v2/cpn/payments/{paymentId}/transactions

  • Reference
  • Playground

Create a V2 transaction for signing

Path parameters
paymentId
uuid
Required

The payment id created previously.

Body parameters
idempotencyKey
string
Required

Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests. To create a UUIDv4 go to uuidgenerator.net. If the same key is reused, it will be treated as the same request and the original response will be returned.

metadata
object

Key-value pairs for storing reference data. Up to 50 keys allowed, with key names up to 40 characters and values up to 500 characters.

Response
RequestChoose a language
ResponseChoose an example
1{
2  "data": {
3    "id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
4    "paymentId": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
5    "status": "PENDING",
6    "expireDate": "2023-01-01T12:04:05Z",
7    "senderAddress": "0xe01be9cdd9e744ae6a709794bfe531ec3ec0671c",
8    "blockchain": "ETH-SEPOLIA",
9    "amount": {
10      "amount": "110.270000",
11      "currency": "USDC"
12    },
13    "destinationAddress": "0xe01be9cdd9e744ae6a709794bfe531ec3ec0671c",
14    "messageType": "PAYMENT_SETTLEMENT_CONTRACT_V1_0_PAYMENT_INTENT",
15    "messageToBeSigned": {},
16    "metadata": {},
17    "failureReason": "FAILED_ONCHAIN",
18    "transactionHash": "2vmEDSBThR143WJyJePkpKVQcERVo9KePuCUwYU8fkoJaQjarTMj6sZG7DNnJ4zjhtRz6hDruqEFEkD4wJpGviiW"
19  }
20}
Did this page help you?
© 2023-2025 Circle Technology Services, LLC. All rights reserved.