curl --request POST \
--url https://api-sandbox.circle.com/v1/paymentIntents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"idempotencyKey": "ba943ff1-ca16-49b2-ba55-1057e70ca5c7",
"amount": {
"amount": "3.14",
"currency": "USD"
},
"settlementCurrency": "USD",
"paymentMethods": [
{
"type": "blockchain",
"chain": "ALGO",
"address": "0x8381470ED67C3802402dbbFa0058E8871F017A6F"
}
],
"merchantWalletId": "212000"
}
'{
"data": {
"amount": {
"amount": "3.14",
"currency": "USD"
},
"settlementCurrency": "USD",
"paymentMethods": [
{
"type": "blockchain",
"chain": "ALGO",
"address": "0x8381470ED67C3802402dbbFa0058E8871F017A6F"
}
],
"id": "b8627ae8-732b-4d25-b947-1df8f4007a29",
"amountPaid": {
"amount": "3.14",
"currency": "USD"
},
"amountRefunded": {
"amount": "3.14",
"currency": "USD"
},
"fees": [
{
"type": "blockchainLeaseFee",
"amount": "3.14",
"currency": "USD"
}
],
"paymentIds": [
"69808f36-3e5e-4f37-bf82-ca79e4d70fc1"
],
"refundIds": [
"425dca6d-ac79-43b6-b0f9-43fdc51de91b"
],
"timeline": [
{
"status": "created",
"time": "2023-11-07T05:31:56Z",
"context": "underpaid",
"reason": "requested_by_merchant"
}
],
"expiresOn": "2020-04-10T02:13:30.000Z",
"updateDate": "2020-04-10T02:13:30.000Z",
"createDate": "2020-04-10T02:13:30.000Z",
"merchantWalletId": "212000"
}
}Create a transient or continuous payment intent
curl --request POST \
--url https://api-sandbox.circle.com/v1/paymentIntents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"idempotencyKey": "ba943ff1-ca16-49b2-ba55-1057e70ca5c7",
"amount": {
"amount": "3.14",
"currency": "USD"
},
"settlementCurrency": "USD",
"paymentMethods": [
{
"type": "blockchain",
"chain": "ALGO",
"address": "0x8381470ED67C3802402dbbFa0058E8871F017A6F"
}
],
"merchantWalletId": "212000"
}
'{
"data": {
"amount": {
"amount": "3.14",
"currency": "USD"
},
"settlementCurrency": "USD",
"paymentMethods": [
{
"type": "blockchain",
"chain": "ALGO",
"address": "0x8381470ED67C3802402dbbFa0058E8871F017A6F"
}
],
"id": "b8627ae8-732b-4d25-b947-1df8f4007a29",
"amountPaid": {
"amount": "3.14",
"currency": "USD"
},
"amountRefunded": {
"amount": "3.14",
"currency": "USD"
},
"fees": [
{
"type": "blockchainLeaseFee",
"amount": "3.14",
"currency": "USD"
}
],
"paymentIds": [
"69808f36-3e5e-4f37-bf82-ca79e4d70fc1"
],
"refundIds": [
"425dca6d-ac79-43b6-b0f9-43fdc51de91b"
],
"timeline": [
{
"status": "created",
"time": "2023-11-07T05:31:56Z",
"context": "underpaid",
"reason": "requested_by_merchant"
}
],
"expiresOn": "2020-04-10T02:13:30.000Z",
"updateDate": "2020-04-10T02:13:30.000Z",
"createDate": "2020-04-10T02:13:30.000Z",
"merchantWalletId": "212000"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests.
"ba943ff1-ca16-49b2-ba55-1057e70ca5c7"
Desired currency for the payments to settle in. This must match the currency used for the payment method.
USD, EUR, BTC, ETH Show child attributes
blockchain The blockchain network for the payment.
ALGO, ARB, AVAX, BASE, BTC, ETH, HBAR, NOBLE, OP, POLY, SOL, SUI, XLM "0x8381470ED67C3802402dbbFa0058E8871F017A6F"
Unique system generated identifier for the wallet of the merchant.
36"212000"
Successfully created a payment intent.
Show child attributes
Desired currency for the payments to settle in.
USD, BTC, ETH Show child attributes
blockchain The blockchain network for the payment.
ALGO, ARB, AVAX, BASE, BTC, ETH, HBAR, NOBLE, OP, POLY, SOL, SUI, XLM "0x8381470ED67C3802402dbbFa0058E8871F017A6F"
Unique system generated identifier for the entity.
"b8627ae8-732b-4d25-b947-1df8f4007a29"
Show child attributes
List of associated payments.
List of associated refunds.
State management timeline.
Show child attributes
created, pending, complete, expired, failed, refunded ISO-8601 UTC date/time format.
underpaid, paid, overpaid requested_by_merchant, fee_collection_failed ISO-8601 UTC date/time format.
"2020-04-10T02:13:30.000Z"
ISO-8601 UTC date/time format.
"2020-04-10T02:13:30.000Z"
ISO-8601 UTC date/time format.
"2020-04-10T02:13:30.000Z"
Unique system generated identifier for the wallet of the merchant.
36"212000"
Was this page helpful?