Subscriptions
CreateSubscription
Creates a subscription for a customer to a subscription plan.
If you provide a card on file in the request, Square charges the card for the subscription. Otherwise, Square bills an invoice to the customer's email address. The subscription starts immediately, unless the request includes the optional start_date. Each individual subscription is associated with a particular location.
post/v2/subscriptions
Request body
Example request
{
"request_body": {
"card_id": "ccof:qy5x8hHGYsgLrp4Q4GB",
"customer_id": "CHFGVKYY8RSV93M5KCYTG4PN0G",
"idempotency_key": "8193148c-9586-11e6-99f9-28cfe92138cf",
"location_id": "S8GWD5R9QB376",
"plan_id": "6JHXF3B2CW3YKHDV4XEM674H",
"price_override_money": {
"amount": 100,
"currency": "USD"
},
"start_date": "2020-08-01",
"tax_percentage": "5",
"timezone": "America/Los_Angeles"
}
}Response
Success
Example response
{
"subscription": {
"card_id": "ccof:qy5x8hHGYsgLrp4Q4GB",
"created_at": "2020-08-03T21:53:10Z",
"customer_id": "CHFGVKYY8RSV93M5KCYTG4PN0G",
"id": "56214fb2-cc85-47a1-93bc-44f3766bb56f",
"location_id": "S8GWD5R9QB376",
"plan_id": "6JHXF3B2CW3YKHDV4XEM674H",
"price_override_money": {
"amount": 100,
"currency": "USD"
},
"start_date": "2020-08-01",
"status": "PENDING",
"tax_percentage": "5",
"timezone": "America/Los_Angeles",
"version": 1594155459464
}
}