Skip to main content
POST
/
accounts
/
{address}
/
payment-intent
Create a payment intent
curl --request POST \
  --url https://grid.squads.xyz/api/grid/v1/accounts/{address}/payment-intent \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": "<string>",
  "destination": {
    "currency": "<string>",
    "details": "<any>",
    "payment_rail": "<string>"
  },
  "source": {
    "currency": "<string>",
    "details": "<any>",
    "payment_rail": "<string>"
  },
  "webhook_url": "<string>"
}'
{
  "amount": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "currency": "<string>",
  "destination": "<any>",
  "id": "<string>",
  "kms_payloads": [
    {
      "address": "<string>",
      "payload": "<string>",
      "provider": "privy"
    }
  ],
  "payment_rail": "<string>",
  "source": "<any>",
  "source_deposit_instructions": "<any>",
  "status": "<string>",
  "threshold": 123,
  "transaction": "<string>",
  "transaction_signers": [
    "<string>"
  ],
  "valid_until": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Your Grid API key from the Grid Dashboard

Path Parameters

address
string
required

Smart account address

Body

application/json
amount
string
required
destination
object
required
  • Option 1
  • Option 2
  • Option 3
  • Option 4
source
object
required
  • Option 1
  • Option 2
  • Option 3
  • Option 4
webhook_url
string | null

Response

Payment intent created successfully

amount
string
required
created_at
string<date-time>
required
currency
string
required
destination
any
required
id
string
required
payment_rail
string
required
source
any
required
status
string
required
transaction_signers
string[]
required
valid_until
string<date-time>
required
kms_payloads
object[]
source_deposit_instructions
any
threshold
integer | null
transaction
string | null