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

Authorizations

Authorization
string
header
required

Your Grid API key from the Grid Dashboard

Headers

x-grid-environment
string
required

Solana network environment (sandbox, devnet, mainnet)

x-idempotency-key
string | null

Idempotency key to prevent duplicate operations

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
frequency
string
required
source
object
required
  • Option 1
  • Option 2
  • Option 3
  • Option 4
start_date
string<date-time>
required
end_date
string<date-time> | null

Response

Standing order created successfully

amount
string
required
created_at
string<date-time>
required
currency
string
required
destination
object
required
  • Option 1
  • Option 2
  • Option 3
  • Option 4
frequency
string
required
id
string
required
kms_payloads
object[]
required
payment_rail
string
required
source
object
required
  • Option 1
  • Option 2
  • Option 3
  • Option 4
start_date
string<date-time>
required
status
string
required
transaction
string
required
ui_amount
string
required
valid_until
string<date-time>
required
end_date
string<date-time> | null
transaction_signers
string[]