cURL
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": "<unknown>", "payment_rail": "<string>" }, "source": { "currency": "<string>", "details": "<unknown>", "payment_rail": "<string>" }, "fee_config": "<unknown>" } '
{ "amount": "<string>", "created_at": "2023-11-07T05:31:56Z", "currency": "<string>", "destination": "<unknown>", "id": "<string>", "payment_rail": "<string>", "source": "<unknown>", "status": "<string>", "transaction_signers": [ "<string>" ], "valid_until": "2023-11-07T05:31:56Z", "fee": "<unknown>", "kms_payloads": [ { "address": "<string>", "payload": "<string>", "provider": "privy" } ], "source_deposit_instructions": "<unknown>", "threshold": 123, "transaction": "<string>" }
Create a payment intent for transferring funds between accounts and external payment rails
Your Grid API key from the Grid Dashboard
Smart account address
Show child attributes
Payment intent created successfully
Was this page helpful?