curl https://connect.squareup.com/v2/catalog/object \
-X POST \
-H 'Square-Version: 2024-01-18' \
-H 'Authorization: Bearer EAAAl2X1cR2zbmzAH9nuCTJZIDBTyu5UugVvujOElIxQhXVkgVVObQC70g4bpD6r' \
-H 'Content-Type: application/json' \
-d '{
"idempotency_key": "test-plan-'"$(date +%s)"'",
"object": {
"type": "SUBSCRIPTION_PLAN",
"id": "#test-plan",
"subscription_plan_data": {
"name": "TEST - $1 Month",
"phases": [
{
"cadence": "MONTHLY",
"recurring_price_money": {
"amount": 100,
"currency": "USD"
}
}
]
}
}
}'