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' \
--data '{
"amount": "1000000000",
"grid_user_id": "123e4567-e89b-12d3-a456-426614174003",
"source": {
"account": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"currency": "USDC"
},
"destination": {
"address": "22222222222222222222222222222223",
"currency": "USDC"
},
"frequency": "Weekly",
"start_date": "2023-07-20T00:00:00.000Z"
}'{
"data": {
"id": "<string>",
"amount": "<string>",
"ui_amount": "<string>",
"currency": "USD",
"payment_rail": "ach",
"source": {
"payment_rail": "ach",
"currency": "USD",
"details": {}
},
"destination": {
"payment_rail": "ach",
"currency": "USD",
"details": {}
},
"frequency": "Daily",
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"status": "active",
"intent_payload": "<string>",
"kms_payloads": [
{
"provider": "privy",
"address": "11111111111111111111111111111112",
"payload": "<string>"
}
],
"transaction_signers": [
"11111111111111111111111111111112"
],
"valid_until": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
},
"metadata": {
"request_id": "123e4567-e89b-12d3-a456-426614174000",
"timestamp": "2023-07-15T14:30:00.000Z"
}
}Create a new recurring standing order
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' \
--data '{
"amount": "1000000000",
"grid_user_id": "123e4567-e89b-12d3-a456-426614174003",
"source": {
"account": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"currency": "USDC"
},
"destination": {
"address": "22222222222222222222222222222223",
"currency": "USDC"
},
"frequency": "Weekly",
"start_date": "2023-07-20T00:00:00.000Z"
}'{
"data": {
"id": "<string>",
"amount": "<string>",
"ui_amount": "<string>",
"currency": "USD",
"payment_rail": "ach",
"source": {
"payment_rail": "ach",
"currency": "USD",
"details": {}
},
"destination": {
"payment_rail": "ach",
"currency": "USD",
"details": {}
},
"frequency": "Daily",
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"status": "active",
"intent_payload": "<string>",
"kms_payloads": [
{
"provider": "privy",
"address": "11111111111111111111111111111112",
"payload": "<string>"
}
],
"transaction_signers": [
"11111111111111111111111111111112"
],
"valid_until": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
},
"metadata": {
"request_id": "123e4567-e89b-12d3-a456-426614174000",
"timestamp": "2023-07-15T14:30:00.000Z"
}
}API key authentication with Bearer token. Include the API key in the Authorization header as 'Bearer YOUR_API_KEY'
Account address
"11111111111111111111111111111112"
Standing order created successfully
The response is of type object.
Was this page helpful?