Defines output parameters in a response from the CreateSubscription endpoint.
CreateSubscriptionResponse
Name | Type | Tags | Description |
---|---|---|---|
errors |
Error[] | undefined |
Optional | Errors encountered during the request. |
subscription |
Subscription | undefined |
Optional | Represents a subscription purchased by a customer. For more information, see Manage Subscriptions. |
{
"subscription": {
"card_id": "ccof:qy5x8hHGYsgLrp4Q4GB",
"created_at": "2021-10-20T21:53:10Z",
"customer_id": "CHFGVKYY8RSV93M5KCYTG4PN0G",
"id": "56214fb2-cc85-47a1-93bc-44f3766bb56f",
"location_id": "S8GWD5R9QB376",
"plan_id": "6JHXF3B2CW3YKHDV4XEM674H",
"price_override_money": {
"amount": 100,
"currency": "USD"
},
"source": {
"name": "My App"
},
"start_date": "2021-10-20",
"status": "PENDING",
"tax_percentage": "5",
"timezone": "America/Los_Angeles",
"version": 1594155459464,
"plan_variation_id": "plan_variation_id8"
},
"errors": [
{
"category": "AUTHENTICATION_ERROR",
"code": "REFUND_ALREADY_PENDING",
"detail": "detail1",
"field": "field9"
},
{
"category": "INVALID_REQUEST_ERROR",
"code": "PAYMENT_NOT_REFUNDABLE",
"detail": "detail2",
"field": "field0"
},
{
"category": "RATE_LIMIT_ERROR",
"code": "REFUND_DECLINED",
"detail": "detail3",
"field": "field1"
}
]
}