Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.32 KB

File metadata and controls

44 lines (35 loc) · 1.32 KB

Create Subscription Response

Defines output parameters in a response from the CreateSubscription endpoint.

Structure

CreateSubscriptionResponse

Fields

Name Type Tags Description
errors Error[] | undefined Optional Errors encountered during the request.
subscription Subscription | undefined Optional Represents a subscription to a subscription plan by a subscriber.

For an overview of the Subscription type, see
Subscription object.

Example (as JSON)

{
  "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
  }
}