API Documentation

API Endpoint

Organization Subscriptions

Organization Subscriptions

Supported Enumerations

Payment methods:

  • credit_card (payment_method_id: 1)

  • invoice (payment_method_id: 2)

GET /api/v2/organization_subscriptions/1
Requestsreturns organization subscription

GET  /api/v2/organization_subscriptions/394

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "394",
    "type": "organization_subscriptions",
    "attributes": {
      "billing_email": null,
      "billing_address": null,
      "subscription_state_id": 1,
      "trial_ends_at": null,
      "subscription_ends_at": null,
      "next_billing_cycle_at": null,
      "grace_period_ends_at": null,
      "plan_price": 24,
      "monthly_plan_price": 24,
      "yearly_plan_price": 240,
      "discount": null,
      "discount_expires_on": null,
      "plan_cycle": "month",
      "plan_type": "premium",
      "downgrades": [
        {
          "id": "standard",
          "name": "Standard",
          "type": "regular",
          "monthly_price_cents": 1500,
          "yearly_price_cents": 15000,
          "currency": "USD",
          "upgrades": [
            "premium"
          ],
          "downgrades": [],
          "features": {
            "custom_fields": {
              "type": "metered",
              "limit": 3
            },
            "custom_fields_per_project": {
              "type": "metered",
              "limit": 1
            },
            "public_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "private_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "scheduling_placeholders": {
              "type": "metered",
              "limit": 0
            },
            "multigrouping": {
              "type": "switch",
              "available": false
            },
            "client_access_to_budgets": {
              "type": "switch",
              "available": false
            },
            "subsidiaries": {
              "type": "switch",
              "available": false
            },
            "time_approvals": {
              "type": "switch",
              "available": false
            },
            "expenses_approvals": {
              "type": "switch",
              "available": false
            },
            "timeoff_approvals": {
              "type": "switch",
              "available": false
            },
            "autotracking": {
              "type": "switch",
              "available": false
            },
            "forecasting": {
              "type": "switch",
              "available": false
            },
            "webhooks": {
              "type": "switch",
              "available": false
            },
            "table_pivoting": {
              "type": "switch",
              "available": false
            },
            "formula_fields": {
              "type": "switch",
              "available": false
            },
            "single_sign_on": {
              "type": "switch",
              "available": false
            }
          }
        }
      ],
      "current_plan": {
        "id": "premium",
        "name": "Premium",
        "type": "regular",
        "monthly_price_cents": 2400,
        "yearly_price_cents": 24000,
        "currency": "USD",
        "upgrades": [],
        "downgrades": [
          "standard"
        ],
        "features": {
          "custom_fields": {
            "type": "metered",
            "limit": 15,
            "used": 0
          },
          "custom_fields_per_project": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "public_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "private_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "scheduling_placeholders": {
            "type": "metered",
            "limit": 5,
            "used": 0
          },
          "multigrouping": {
            "type": "switch",
            "available": true
          },
          "client_access_to_budgets": {
            "type": "switch",
            "available": true
          },
          "subsidiaries": {
            "type": "switch",
            "available": true
          },
          "time_approvals": {
            "type": "switch",
            "available": true
          },
          "expenses_approvals": {
            "type": "switch",
            "available": true
          },
          "timeoff_approvals": {
            "type": "switch",
            "available": true
          },
          "autotracking": {
            "type": "switch",
            "available": true
          },
          "forecasting": {
            "type": "switch",
            "available": true
          },
          "webhooks": {
            "type": "switch",
            "available": true
          },
          "table_pivoting": {
            "type": "switch",
            "available": true
          },
          "formula_fields": {
            "type": "switch",
            "available": true
          },
          "single_sign_on": {
            "type": "switch",
            "available": true
          }
        }
      },
      "upgrades": [],
      "payment_method_id": 1,
      "employee_count": 1,
      "seats": null,
      "seats_used": 1,
      "trial_plan_ends_at": null,
      "trial_plan_type": null,
      "card_brand": null,
      "card_last4": null,
      "card_month": null,
      "card_year": null,
      "balance": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 394
        }
      }
    }
  },
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      }
    }
  }
}

Gets a organization subscription
GET/api/v2/organization_subscriptions/{id}

URI Parameters
HideShow
id
number (required) Example: 1

organization subscription id


PATCH /api/v2/organization_subscriptions/1
Requestscreates subscriptionupdates subscriptionsets trial plansets trial plansets trial plandoes not change trial plandoes not change trial planreturns errorreturns errorsets trial_plan to nullupdates subscriptionupdates subscriptionupdates subscriptionupdates subscriptionupdates subscriptionreturns error

PATCH  /api/v2/organization_subscriptions/395

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "stripe_token": "tok_u5dg20Gra"
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "395",
    "type": "organization_subscriptions",
    "attributes": {
      "billing_email": null,
      "billing_address": null,
      "subscription_state_id": 7,
      "trial_ends_at": null,
      "subscription_ends_at": "2015-10-15 23:59:59",
      "next_billing_cycle_at": "2015-10-15 23:59:59",
      "grace_period_ends_at": null,
      "plan_price": 24,
      "monthly_plan_price": 24,
      "yearly_plan_price": 240,
      "discount": null,
      "discount_expires_on": null,
      "plan_cycle": "month",
      "plan_type": "premium",
      "downgrades": [
        {
          "id": "standard",
          "name": "Standard",
          "type": "regular",
          "monthly_price_cents": 1500,
          "yearly_price_cents": 15000,
          "currency": "USD",
          "upgrades": [
            "premium"
          ],
          "downgrades": [],
          "features": {
            "custom_fields": {
              "type": "metered",
              "limit": 3
            },
            "custom_fields_per_project": {
              "type": "metered",
              "limit": 1
            },
            "public_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "private_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "scheduling_placeholders": {
              "type": "metered",
              "limit": 0
            },
            "multigrouping": {
              "type": "switch",
              "available": false
            },
            "client_access_to_budgets": {
              "type": "switch",
              "available": false
            },
            "subsidiaries": {
              "type": "switch",
              "available": false
            },
            "time_approvals": {
              "type": "switch",
              "available": false
            },
            "expenses_approvals": {
              "type": "switch",
              "available": false
            },
            "timeoff_approvals": {
              "type": "switch",
              "available": false
            },
            "autotracking": {
              "type": "switch",
              "available": false
            },
            "forecasting": {
              "type": "switch",
              "available": false
            },
            "webhooks": {
              "type": "switch",
              "available": false
            },
            "table_pivoting": {
              "type": "switch",
              "available": false
            },
            "formula_fields": {
              "type": "switch",
              "available": false
            },
            "single_sign_on": {
              "type": "switch",
              "available": false
            }
          }
        }
      ],
      "current_plan": {
        "id": "premium",
        "name": "Premium",
        "type": "regular",
        "monthly_price_cents": 2400,
        "yearly_price_cents": 24000,
        "currency": "USD",
        "upgrades": [],
        "downgrades": [
          "standard"
        ],
        "features": {
          "custom_fields": {
            "type": "metered",
            "limit": 15,
            "used": 0
          },
          "custom_fields_per_project": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "public_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "private_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "scheduling_placeholders": {
            "type": "metered",
            "limit": 5,
            "used": 0
          },
          "multigrouping": {
            "type": "switch",
            "available": true
          },
          "client_access_to_budgets": {
            "type": "switch",
            "available": true
          },
          "subsidiaries": {
            "type": "switch",
            "available": true
          },
          "time_approvals": {
            "type": "switch",
            "available": true
          },
          "expenses_approvals": {
            "type": "switch",
            "available": true
          },
          "timeoff_approvals": {
            "type": "switch",
            "available": true
          },
          "autotracking": {
            "type": "switch",
            "available": true
          },
          "forecasting": {
            "type": "switch",
            "available": true
          },
          "webhooks": {
            "type": "switch",
            "available": true
          },
          "table_pivoting": {
            "type": "switch",
            "available": true
          },
          "formula_fields": {
            "type": "switch",
            "available": true
          },
          "single_sign_on": {
            "type": "switch",
            "available": true
          }
        }
      },
      "upgrades": [],
      "payment_method_id": 1,
      "employee_count": 1,
      "seats": null,
      "seats_used": 1,
      "trial_plan_ends_at": null,
      "trial_plan_type": null,
      "card_brand": "MasterCard",
      "card_last4": "5100",
      "card_month": "12",
      "card_year": "2020",
      "balance": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 395
        }
      }
    }
  },
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/organization_subscriptions/396

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "stripe_token": "tok_u5dg20Gra"
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "396",
    "type": "organization_subscriptions",
    "attributes": {
      "billing_email": null,
      "billing_address": null,
      "subscription_state_id": 7,
      "trial_ends_at": null,
      "subscription_ends_at": "2015-10-15 23:59:59",
      "next_billing_cycle_at": "2015-10-15 23:59:59",
      "grace_period_ends_at": null,
      "plan_price": 24,
      "monthly_plan_price": 24,
      "yearly_plan_price": 240,
      "discount": null,
      "discount_expires_on": null,
      "plan_cycle": "month",
      "plan_type": "premium",
      "downgrades": [
        {
          "id": "standard",
          "name": "Standard",
          "type": "regular",
          "monthly_price_cents": 1500,
          "yearly_price_cents": 15000,
          "currency": "USD",
          "upgrades": [
            "premium"
          ],
          "downgrades": [],
          "features": {
            "custom_fields": {
              "type": "metered",
              "limit": 3
            },
            "custom_fields_per_project": {
              "type": "metered",
              "limit": 1
            },
            "public_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "private_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "scheduling_placeholders": {
              "type": "metered",
              "limit": 0
            },
            "multigrouping": {
              "type": "switch",
              "available": false
            },
            "client_access_to_budgets": {
              "type": "switch",
              "available": false
            },
            "subsidiaries": {
              "type": "switch",
              "available": false
            },
            "time_approvals": {
              "type": "switch",
              "available": false
            },
            "expenses_approvals": {
              "type": "switch",
              "available": false
            },
            "timeoff_approvals": {
              "type": "switch",
              "available": false
            },
            "autotracking": {
              "type": "switch",
              "available": false
            },
            "forecasting": {
              "type": "switch",
              "available": false
            },
            "webhooks": {
              "type": "switch",
              "available": false
            },
            "table_pivoting": {
              "type": "switch",
              "available": false
            },
            "formula_fields": {
              "type": "switch",
              "available": false
            },
            "single_sign_on": {
              "type": "switch",
              "available": false
            }
          }
        }
      ],
      "current_plan": {
        "id": "premium",
        "name": "Premium",
        "type": "regular",
        "monthly_price_cents": 2400,
        "yearly_price_cents": 24000,
        "currency": "USD",
        "upgrades": [],
        "downgrades": [
          "standard"
        ],
        "features": {
          "custom_fields": {
            "type": "metered",
            "limit": 15,
            "used": 0
          },
          "custom_fields_per_project": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "public_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "private_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "scheduling_placeholders": {
            "type": "metered",
            "limit": 5,
            "used": 0
          },
          "multigrouping": {
            "type": "switch",
            "available": true
          },
          "client_access_to_budgets": {
            "type": "switch",
            "available": true
          },
          "subsidiaries": {
            "type": "switch",
            "available": true
          },
          "time_approvals": {
            "type": "switch",
            "available": true
          },
          "expenses_approvals": {
            "type": "switch",
            "available": true
          },
          "timeoff_approvals": {
            "type": "switch",
            "available": true
          },
          "autotracking": {
            "type": "switch",
            "available": true
          },
          "forecasting": {
            "type": "switch",
            "available": true
          },
          "webhooks": {
            "type": "switch",
            "available": true
          },
          "table_pivoting": {
            "type": "switch",
            "available": true
          },
          "formula_fields": {
            "type": "switch",
            "available": true
          },
          "single_sign_on": {
            "type": "switch",
            "available": true
          }
        }
      },
      "upgrades": [],
      "payment_method_id": 1,
      "employee_count": 1,
      "seats": null,
      "seats_used": 1,
      "trial_plan_ends_at": null,
      "trial_plan_type": null,
      "card_brand": "MasterCard",
      "card_last4": "5100",
      "card_month": "12",
      "card_year": "2020",
      "balance": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 396
        }
      }
    }
  },
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/organization_subscriptions/397

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "trial_plan_type": "premium"
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "397",
    "type": "organization_subscriptions",
    "attributes": {
      "billing_email": null,
      "billing_address": null,
      "subscription_state_id": 5,
      "trial_ends_at": null,
      "subscription_ends_at": null,
      "next_billing_cycle_at": null,
      "grace_period_ends_at": null,
      "plan_price": 15,
      "monthly_plan_price": 15,
      "yearly_plan_price": 150,
      "discount": null,
      "discount_expires_on": null,
      "plan_cycle": "month",
      "plan_type": "standard",
      "downgrades": [],
      "current_plan": {
        "id": "standard",
        "name": "Standard",
        "type": "regular",
        "monthly_price_cents": 1500,
        "yearly_price_cents": 15000,
        "currency": "USD",
        "upgrades": [
          "premium"
        ],
        "downgrades": [],
        "features": {
          "custom_fields": {
            "type": "metered",
            "limit": 3,
            "used": 0
          },
          "custom_fields_per_project": {
            "type": "metered",
            "limit": 1,
            "used": 0
          },
          "public_custom_reports": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "private_custom_reports": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "scheduling_placeholders": {
            "type": "metered",
            "limit": 0,
            "used": 0
          },
          "multigrouping": {
            "type": "switch",
            "available": false
          },
          "client_access_to_budgets": {
            "type": "switch",
            "available": false
          },
          "subsidiaries": {
            "type": "switch",
            "available": false
          },
          "time_approvals": {
            "type": "switch",
            "available": false
          },
          "expenses_approvals": {
            "type": "switch",
            "available": false
          },
          "timeoff_approvals": {
            "type": "switch",
            "available": false
          },
          "autotracking": {
            "type": "switch",
            "available": false
          },
          "forecasting": {
            "type": "switch",
            "available": false
          },
          "webhooks": {
            "type": "switch",
            "available": false
          },
          "table_pivoting": {
            "type": "switch",
            "available": false
          },
          "formula_fields": {
            "type": "switch",
            "available": false
          },
          "single_sign_on": {
            "type": "switch",
            "available": false
          }
        }
      },
      "upgrades": [
        {
          "id": "premium",
          "name": "Premium",
          "type": "regular",
          "monthly_price_cents": 2400,
          "yearly_price_cents": 24000,
          "currency": "USD",
          "upgrades": [],
          "downgrades": [
            "standard"
          ],
          "features": {
            "custom_fields": {
              "type": "metered",
              "limit": 15
            },
            "custom_fields_per_project": {
              "type": "metered",
              "limit": 10
            },
            "public_custom_reports": {
              "type": "metered",
              "limit": 30
            },
            "private_custom_reports": {
              "type": "metered",
              "limit": 30
            },
            "scheduling_placeholders": {
              "type": "metered",
              "limit": 5
            },
            "multigrouping": {
              "type": "switch",
              "available": true
            },
            "client_access_to_budgets": {
              "type": "switch",
              "available": true
            },
            "subsidiaries": {
              "type": "switch",
              "available": true
            },
            "time_approvals": {
              "type": "switch",
              "available": true
            },
            "expenses_approvals": {
              "type": "switch",
              "available": true
            },
            "timeoff_approvals": {
              "type": "switch",
              "available": true
            },
            "autotracking": {
              "type": "switch",
              "available": true
            },
            "forecasting": {
              "type": "switch",
              "available": true
            },
            "webhooks": {
              "type": "switch",
              "available": true
            },
            "table_pivoting": {
              "type": "switch",
              "available": true
            },
            "formula_fields": {
              "type": "switch",
              "available": true
            },
            "single_sign_on": {
              "type": "switch",
              "available": true
            }
          }
        }
      ],
      "payment_method_id": 1,
      "employee_count": 1,
      "seats": null,
      "seats_used": 1,
      "trial_plan_ends_at": "2019-01-15 23:59:59",
      "trial_plan_type": "premium",
      "card_brand": null,
      "card_last4": null,
      "card_month": null,
      "card_year": null,
      "balance": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 397
        }
      }
    }
  },
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 3,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 1,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 0,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": false
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": false
      },
      "subsidiaries": {
        "type": "switch",
        "available": false
      },
      "time_approvals": {
        "type": "switch",
        "available": false
      },
      "expenses_approvals": {
        "type": "switch",
        "available": false
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": false
      },
      "autotracking": {
        "type": "switch",
        "available": false
      },
      "forecasting": {
        "type": "switch",
        "available": false
      },
      "webhooks": {
        "type": "switch",
        "available": false
      },
      "table_pivoting": {
        "type": "switch",
        "available": false
      },
      "formula_fields": {
        "type": "switch",
        "available": false
      },
      "single_sign_on": {
        "type": "switch",
        "available": false
      }
    }
  }
}

PATCH  /api/v2/organization_subscriptions/398

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "trial_plan_type": "premium"
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "398",
    "type": "organization_subscriptions",
    "attributes": {
      "billing_email": null,
      "billing_address": null,
      "subscription_state_id": 5,
      "trial_ends_at": null,
      "subscription_ends_at": null,
      "next_billing_cycle_at": null,
      "grace_period_ends_at": null,
      "plan_price": 150,
      "monthly_plan_price": 15,
      "yearly_plan_price": 150,
      "discount": null,
      "discount_expires_on": null,
      "plan_cycle": "year",
      "plan_type": "standard",
      "downgrades": [],
      "current_plan": {
        "id": "standard",
        "name": "Standard",
        "type": "regular",
        "monthly_price_cents": 1500,
        "yearly_price_cents": 15000,
        "currency": "USD",
        "upgrades": [
          "premium"
        ],
        "downgrades": [],
        "features": {
          "custom_fields": {
            "type": "metered",
            "limit": 3,
            "used": 0
          },
          "custom_fields_per_project": {
            "type": "metered",
            "limit": 1,
            "used": 0
          },
          "public_custom_reports": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "private_custom_reports": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "scheduling_placeholders": {
            "type": "metered",
            "limit": 0,
            "used": 0
          },
          "multigrouping": {
            "type": "switch",
            "available": false
          },
          "client_access_to_budgets": {
            "type": "switch",
            "available": false
          },
          "subsidiaries": {
            "type": "switch",
            "available": false
          },
          "time_approvals": {
            "type": "switch",
            "available": false
          },
          "expenses_approvals": {
            "type": "switch",
            "available": false
          },
          "timeoff_approvals": {
            "type": "switch",
            "available": false
          },
          "autotracking": {
            "type": "switch",
            "available": false
          },
          "forecasting": {
            "type": "switch",
            "available": false
          },
          "webhooks": {
            "type": "switch",
            "available": false
          },
          "table_pivoting": {
            "type": "switch",
            "available": false
          },
          "formula_fields": {
            "type": "switch",
            "available": false
          },
          "single_sign_on": {
            "type": "switch",
            "available": false
          }
        }
      },
      "upgrades": [
        {
          "id": "premium",
          "name": "Premium",
          "type": "regular",
          "monthly_price_cents": 2400,
          "yearly_price_cents": 24000,
          "currency": "USD",
          "upgrades": [],
          "downgrades": [
            "standard"
          ],
          "features": {
            "custom_fields": {
              "type": "metered",
              "limit": 15
            },
            "custom_fields_per_project": {
              "type": "metered",
              "limit": 10
            },
            "public_custom_reports": {
              "type": "metered",
              "limit": 30
            },
            "private_custom_reports": {
              "type": "metered",
              "limit": 30
            },
            "scheduling_placeholders": {
              "type": "metered",
              "limit": 5
            },
            "multigrouping": {
              "type": "switch",
              "available": true
            },
            "client_access_to_budgets": {
              "type": "switch",
              "available": true
            },
            "subsidiaries": {
              "type": "switch",
              "available": true
            },
            "time_approvals": {
              "type": "switch",
              "available": true
            },
            "expenses_approvals": {
              "type": "switch",
              "available": true
            },
            "timeoff_approvals": {
              "type": "switch",
              "available": true
            },
            "autotracking": {
              "type": "switch",
              "available": true
            },
            "forecasting": {
              "type": "switch",
              "available": true
            },
            "webhooks": {
              "type": "switch",
              "available": true
            },
            "table_pivoting": {
              "type": "switch",
              "available": true
            },
            "formula_fields": {
              "type": "switch",
              "available": true
            },
            "single_sign_on": {
              "type": "switch",
              "available": true
            }
          }
        }
      ],
      "payment_method_id": 1,
      "employee_count": 1,
      "seats": null,
      "seats_used": 1,
      "trial_plan_ends_at": "2019-01-15 23:59:59",
      "trial_plan_type": "premium",
      "card_brand": null,
      "card_last4": null,
      "card_month": null,
      "card_year": null,
      "balance": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 398
        }
      }
    }
  },
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 3,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 1,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 0,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": false
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": false
      },
      "subsidiaries": {
        "type": "switch",
        "available": false
      },
      "time_approvals": {
        "type": "switch",
        "available": false
      },
      "expenses_approvals": {
        "type": "switch",
        "available": false
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": false
      },
      "autotracking": {
        "type": "switch",
        "available": false
      },
      "forecasting": {
        "type": "switch",
        "available": false
      },
      "webhooks": {
        "type": "switch",
        "available": false
      },
      "table_pivoting": {
        "type": "switch",
        "available": false
      },
      "formula_fields": {
        "type": "switch",
        "available": false
      },
      "single_sign_on": {
        "type": "switch",
        "available": false
      }
    }
  }
}

PATCH  /api/v2/organization_subscriptions/399

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "plan_cycle": "year",
      "trial_plan_type": "premium"
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "399",
    "type": "organization_subscriptions",
    "attributes": {
      "billing_email": null,
      "billing_address": null,
      "subscription_state_id": 5,
      "trial_ends_at": null,
      "subscription_ends_at": null,
      "next_billing_cycle_at": null,
      "grace_period_ends_at": null,
      "plan_price": 150,
      "monthly_plan_price": 15,
      "yearly_plan_price": 150,
      "discount": null,
      "discount_expires_on": null,
      "plan_cycle": "year",
      "plan_type": "standard",
      "downgrades": [],
      "current_plan": {
        "id": "standard",
        "name": "Standard",
        "type": "regular",
        "monthly_price_cents": 1500,
        "yearly_price_cents": 15000,
        "currency": "USD",
        "upgrades": [
          "premium"
        ],
        "downgrades": [],
        "features": {
          "custom_fields": {
            "type": "metered",
            "limit": 3,
            "used": 0
          },
          "custom_fields_per_project": {
            "type": "metered",
            "limit": 1,
            "used": 0
          },
          "public_custom_reports": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "private_custom_reports": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "scheduling_placeholders": {
            "type": "metered",
            "limit": 0,
            "used": 0
          },
          "multigrouping": {
            "type": "switch",
            "available": false
          },
          "client_access_to_budgets": {
            "type": "switch",
            "available": false
          },
          "subsidiaries": {
            "type": "switch",
            "available": false
          },
          "time_approvals": {
            "type": "switch",
            "available": false
          },
          "expenses_approvals": {
            "type": "switch",
            "available": false
          },
          "timeoff_approvals": {
            "type": "switch",
            "available": false
          },
          "autotracking": {
            "type": "switch",
            "available": false
          },
          "forecasting": {
            "type": "switch",
            "available": false
          },
          "webhooks": {
            "type": "switch",
            "available": false
          },
          "table_pivoting": {
            "type": "switch",
            "available": false
          },
          "formula_fields": {
            "type": "switch",
            "available": false
          },
          "single_sign_on": {
            "type": "switch",
            "available": false
          }
        }
      },
      "upgrades": [
        {
          "id": "premium",
          "name": "Premium",
          "type": "regular",
          "monthly_price_cents": 2400,
          "yearly_price_cents": 24000,
          "currency": "USD",
          "upgrades": [],
          "downgrades": [
            "standard"
          ],
          "features": {
            "custom_fields": {
              "type": "metered",
              "limit": 15
            },
            "custom_fields_per_project": {
              "type": "metered",
              "limit": 10
            },
            "public_custom_reports": {
              "type": "metered",
              "limit": 30
            },
            "private_custom_reports": {
              "type": "metered",
              "limit": 30
            },
            "scheduling_placeholders": {
              "type": "metered",
              "limit": 5
            },
            "multigrouping": {
              "type": "switch",
              "available": true
            },
            "client_access_to_budgets": {
              "type": "switch",
              "available": true
            },
            "subsidiaries": {
              "type": "switch",
              "available": true
            },
            "time_approvals": {
              "type": "switch",
              "available": true
            },
            "expenses_approvals": {
              "type": "switch",
              "available": true
            },
            "timeoff_approvals": {
              "type": "switch",
              "available": true
            },
            "autotracking": {
              "type": "switch",
              "available": true
            },
            "forecasting": {
              "type": "switch",
              "available": true
            },
            "webhooks": {
              "type": "switch",
              "available": true
            },
            "table_pivoting": {
              "type": "switch",
              "available": true
            },
            "formula_fields": {
              "type": "switch",
              "available": true
            },
            "single_sign_on": {
              "type": "switch",
              "available": true
            }
          }
        }
      ],
      "payment_method_id": 1,
      "employee_count": 1,
      "seats": null,
      "seats_used": 1,
      "trial_plan_ends_at": "2019-01-15 23:59:59",
      "trial_plan_type": "premium",
      "card_brand": null,
      "card_last4": null,
      "card_month": null,
      "card_year": null,
      "balance": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 399
        }
      }
    }
  },
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 3,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 1,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 0,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": false
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": false
      },
      "subsidiaries": {
        "type": "switch",
        "available": false
      },
      "time_approvals": {
        "type": "switch",
        "available": false
      },
      "expenses_approvals": {
        "type": "switch",
        "available": false
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": false
      },
      "autotracking": {
        "type": "switch",
        "available": false
      },
      "forecasting": {
        "type": "switch",
        "available": false
      },
      "webhooks": {
        "type": "switch",
        "available": false
      },
      "table_pivoting": {
        "type": "switch",
        "available": false
      },
      "formula_fields": {
        "type": "switch",
        "available": false
      },
      "single_sign_on": {
        "type": "switch",
        "available": false
      }
    }
  }
}

PATCH  /api/v2/organization_subscriptions/400

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "plan_cycle": "year"
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "400",
    "type": "organization_subscriptions",
    "attributes": {
      "billing_email": null,
      "billing_address": null,
      "subscription_state_id": 5,
      "trial_ends_at": null,
      "subscription_ends_at": null,
      "next_billing_cycle_at": null,
      "grace_period_ends_at": null,
      "plan_price": 150,
      "monthly_plan_price": 15,
      "yearly_plan_price": 150,
      "discount": null,
      "discount_expires_on": null,
      "plan_cycle": "year",
      "plan_type": "standard",
      "downgrades": [],
      "current_plan": {
        "id": "standard",
        "name": "Standard",
        "type": "regular",
        "monthly_price_cents": 1500,
        "yearly_price_cents": 15000,
        "currency": "USD",
        "upgrades": [
          "premium"
        ],
        "downgrades": [],
        "features": {
          "custom_fields": {
            "type": "metered",
            "limit": 3,
            "used": 0
          },
          "custom_fields_per_project": {
            "type": "metered",
            "limit": 1,
            "used": 0
          },
          "public_custom_reports": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "private_custom_reports": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "scheduling_placeholders": {
            "type": "metered",
            "limit": 0,
            "used": 0
          },
          "multigrouping": {
            "type": "switch",
            "available": false
          },
          "client_access_to_budgets": {
            "type": "switch",
            "available": false
          },
          "subsidiaries": {
            "type": "switch",
            "available": false
          },
          "time_approvals": {
            "type": "switch",
            "available": false
          },
          "expenses_approvals": {
            "type": "switch",
            "available": false
          },
          "timeoff_approvals": {
            "type": "switch",
            "available": false
          },
          "autotracking": {
            "type": "switch",
            "available": false
          },
          "forecasting": {
            "type": "switch",
            "available": false
          },
          "webhooks": {
            "type": "switch",
            "available": false
          },
          "table_pivoting": {
            "type": "switch",
            "available": false
          },
          "formula_fields": {
            "type": "switch",
            "available": false
          },
          "single_sign_on": {
            "type": "switch",
            "available": false
          }
        }
      },
      "upgrades": [
        {
          "id": "premium",
          "name": "Premium",
          "type": "regular",
          "monthly_price_cents": 2400,
          "yearly_price_cents": 24000,
          "currency": "USD",
          "upgrades": [],
          "downgrades": [
            "standard"
          ],
          "features": {
            "custom_fields": {
              "type": "metered",
              "limit": 15
            },
            "custom_fields_per_project": {
              "type": "metered",
              "limit": 10
            },
            "public_custom_reports": {
              "type": "metered",
              "limit": 30
            },
            "private_custom_reports": {
              "type": "metered",
              "limit": 30
            },
            "scheduling_placeholders": {
              "type": "metered",
              "limit": 5
            },
            "multigrouping": {
              "type": "switch",
              "available": true
            },
            "client_access_to_budgets": {
              "type": "switch",
              "available": true
            },
            "subsidiaries": {
              "type": "switch",
              "available": true
            },
            "time_approvals": {
              "type": "switch",
              "available": true
            },
            "expenses_approvals": {
              "type": "switch",
              "available": true
            },
            "timeoff_approvals": {
              "type": "switch",
              "available": true
            },
            "autotracking": {
              "type": "switch",
              "available": true
            },
            "forecasting": {
              "type": "switch",
              "available": true
            },
            "webhooks": {
              "type": "switch",
              "available": true
            },
            "table_pivoting": {
              "type": "switch",
              "available": true
            },
            "formula_fields": {
              "type": "switch",
              "available": true
            },
            "single_sign_on": {
              "type": "switch",
              "available": true
            }
          }
        }
      ],
      "payment_method_id": 1,
      "employee_count": 1,
      "seats": null,
      "seats_used": 1,
      "trial_plan_ends_at": "2019-01-08 23:59:59",
      "trial_plan_type": "premium",
      "card_brand": null,
      "card_last4": null,
      "card_month": null,
      "card_year": null,
      "balance": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 400
        }
      }
    }
  },
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 3,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 1,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 0,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": false
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": false
      },
      "subsidiaries": {
        "type": "switch",
        "available": false
      },
      "time_approvals": {
        "type": "switch",
        "available": false
      },
      "expenses_approvals": {
        "type": "switch",
        "available": false
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": false
      },
      "autotracking": {
        "type": "switch",
        "available": false
      },
      "forecasting": {
        "type": "switch",
        "available": false
      },
      "webhooks": {
        "type": "switch",
        "available": false
      },
      "table_pivoting": {
        "type": "switch",
        "available": false
      },
      "formula_fields": {
        "type": "switch",
        "available": false
      },
      "single_sign_on": {
        "type": "switch",
        "available": false
      }
    }
  }
}

PATCH  /api/v2/organization_subscriptions/401

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "plan_type": "premium"
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "401",
    "type": "organization_subscriptions",
    "attributes": {
      "billing_email": null,
      "billing_address": null,
      "subscription_state_id": 5,
      "trial_ends_at": null,
      "subscription_ends_at": null,
      "next_billing_cycle_at": null,
      "grace_period_ends_at": null,
      "plan_price": 24,
      "monthly_plan_price": 24,
      "yearly_plan_price": 240,
      "discount": null,
      "discount_expires_on": null,
      "plan_cycle": "month",
      "plan_type": "premium",
      "downgrades": [
        {
          "id": "standard",
          "name": "Standard",
          "type": "regular",
          "monthly_price_cents": 1500,
          "yearly_price_cents": 15000,
          "currency": "USD",
          "upgrades": [
            "premium"
          ],
          "downgrades": [],
          "features": {
            "custom_fields": {
              "type": "metered",
              "limit": 3
            },
            "custom_fields_per_project": {
              "type": "metered",
              "limit": 1
            },
            "public_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "private_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "scheduling_placeholders": {
              "type": "metered",
              "limit": 0
            },
            "multigrouping": {
              "type": "switch",
              "available": false
            },
            "client_access_to_budgets": {
              "type": "switch",
              "available": false
            },
            "subsidiaries": {
              "type": "switch",
              "available": false
            },
            "time_approvals": {
              "type": "switch",
              "available": false
            },
            "expenses_approvals": {
              "type": "switch",
              "available": false
            },
            "timeoff_approvals": {
              "type": "switch",
              "available": false
            },
            "autotracking": {
              "type": "switch",
              "available": false
            },
            "forecasting": {
              "type": "switch",
              "available": false
            },
            "webhooks": {
              "type": "switch",
              "available": false
            },
            "table_pivoting": {
              "type": "switch",
              "available": false
            },
            "formula_fields": {
              "type": "switch",
              "available": false
            },
            "single_sign_on": {
              "type": "switch",
              "available": false
            }
          }
        }
      ],
      "current_plan": {
        "id": "premium",
        "name": "Premium",
        "type": "regular",
        "monthly_price_cents": 2400,
        "yearly_price_cents": 24000,
        "currency": "USD",
        "upgrades": [],
        "downgrades": [
          "standard"
        ],
        "features": {
          "custom_fields": {
            "type": "metered",
            "limit": 3,
            "used": 0
          },
          "custom_fields_per_project": {
            "type": "metered",
            "limit": 1,
            "used": 0
          },
          "public_custom_reports": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "private_custom_reports": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "scheduling_placeholders": {
            "type": "metered",
            "limit": 0,
            "used": 0
          },
          "multigrouping": {
            "type": "switch",
            "available": false
          },
          "client_access_to_budgets": {
            "type": "switch",
            "available": false
          },
          "subsidiaries": {
            "type": "switch",
            "available": false
          },
          "time_approvals": {
            "type": "switch",
            "available": false
          },
          "expenses_approvals": {
            "type": "switch",
            "available": false
          },
          "timeoff_approvals": {
            "type": "switch",
            "available": false
          },
          "autotracking": {
            "type": "switch",
            "available": false
          },
          "forecasting": {
            "type": "switch",
            "available": false
          },
          "webhooks": {
            "type": "switch",
            "available": false
          },
          "table_pivoting": {
            "type": "switch",
            "available": false
          },
          "formula_fields": {
            "type": "switch",
            "available": false
          },
          "single_sign_on": {
            "type": "switch",
            "available": false
          }
        }
      },
      "upgrades": [],
      "payment_method_id": 1,
      "employee_count": 1,
      "seats": null,
      "seats_used": 1,
      "trial_plan_ends_at": "2019-01-08 23:59:59",
      "trial_plan_type": "premium",
      "card_brand": null,
      "card_last4": null,
      "card_month": null,
      "card_year": null,
      "balance": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 401
        }
      }
    }
  },
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 3,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 1,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 0,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": false
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": false
      },
      "subsidiaries": {
        "type": "switch",
        "available": false
      },
      "time_approvals": {
        "type": "switch",
        "available": false
      },
      "expenses_approvals": {
        "type": "switch",
        "available": false
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": false
      },
      "autotracking": {
        "type": "switch",
        "available": false
      },
      "forecasting": {
        "type": "switch",
        "available": false
      },
      "webhooks": {
        "type": "switch",
        "available": false
      },
      "table_pivoting": {
        "type": "switch",
        "available": false
      },
      "formula_fields": {
        "type": "switch",
        "available": false
      },
      "single_sign_on": {
        "type": "switch",
        "available": false
      }
    }
  }
}

PATCH  /api/v2/organization_subscriptions/402

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "trial_plan_type": "premium"
    }
  }
}
Responses422
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "errors": [
    {
      "status": "422",
      "code": "invalid_attribute",
      "title": "Invalid Attribute",
      "detail": "can't trial plans in free trial",
      "source": {
        "pointer": "data/attributes/trial_plan_type"
      }
    }
  ]
}

PATCH  /api/v2/organization_subscriptions/403

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "trial_plan_type": "premium"
    }
  }
}
Responses422
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "errors": [
    {
      "status": "422",
      "code": "invalid_attribute",
      "title": "Invalid Attribute",
      "detail": "can't trial plan more than once",
      "source": {
        "pointer": "data/attributes/trial_plan_type"
      }
    }
  ]
}

PATCH  /api/v2/organization_subscriptions/404

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "trial_plan_type": null
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "404",
    "type": "organization_subscriptions",
    "attributes": {
      "billing_email": null,
      "billing_address": null,
      "subscription_state_id": 5,
      "trial_ends_at": null,
      "subscription_ends_at": null,
      "next_billing_cycle_at": null,
      "grace_period_ends_at": null,
      "plan_price": 150,
      "monthly_plan_price": 15,
      "yearly_plan_price": 150,
      "discount": null,
      "discount_expires_on": null,
      "plan_cycle": "year",
      "plan_type": "standard",
      "downgrades": [],
      "current_plan": {
        "id": "standard",
        "name": "Standard",
        "type": "regular",
        "monthly_price_cents": 1500,
        "yearly_price_cents": 15000,
        "currency": "USD",
        "upgrades": [
          "premium"
        ],
        "downgrades": [],
        "features": {
          "custom_fields": {
            "type": "metered",
            "limit": 3,
            "used": 0
          },
          "custom_fields_per_project": {
            "type": "metered",
            "limit": 1,
            "used": 0
          },
          "public_custom_reports": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "private_custom_reports": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "scheduling_placeholders": {
            "type": "metered",
            "limit": 0,
            "used": 0
          },
          "multigrouping": {
            "type": "switch",
            "available": false
          },
          "client_access_to_budgets": {
            "type": "switch",
            "available": false
          },
          "subsidiaries": {
            "type": "switch",
            "available": false
          },
          "time_approvals": {
            "type": "switch",
            "available": false
          },
          "expenses_approvals": {
            "type": "switch",
            "available": false
          },
          "timeoff_approvals": {
            "type": "switch",
            "available": false
          },
          "autotracking": {
            "type": "switch",
            "available": false
          },
          "forecasting": {
            "type": "switch",
            "available": false
          },
          "webhooks": {
            "type": "switch",
            "available": false
          },
          "table_pivoting": {
            "type": "switch",
            "available": false
          },
          "formula_fields": {
            "type": "switch",
            "available": false
          },
          "single_sign_on": {
            "type": "switch",
            "available": false
          }
        }
      },
      "upgrades": [
        {
          "id": "premium",
          "name": "Premium",
          "type": "regular",
          "monthly_price_cents": 2400,
          "yearly_price_cents": 24000,
          "currency": "USD",
          "upgrades": [],
          "downgrades": [
            "standard"
          ],
          "features": {
            "custom_fields": {
              "type": "metered",
              "limit": 15
            },
            "custom_fields_per_project": {
              "type": "metered",
              "limit": 10
            },
            "public_custom_reports": {
              "type": "metered",
              "limit": 30
            },
            "private_custom_reports": {
              "type": "metered",
              "limit": 30
            },
            "scheduling_placeholders": {
              "type": "metered",
              "limit": 5
            },
            "multigrouping": {
              "type": "switch",
              "available": true
            },
            "client_access_to_budgets": {
              "type": "switch",
              "available": true
            },
            "subsidiaries": {
              "type": "switch",
              "available": true
            },
            "time_approvals": {
              "type": "switch",
              "available": true
            },
            "expenses_approvals": {
              "type": "switch",
              "available": true
            },
            "timeoff_approvals": {
              "type": "switch",
              "available": true
            },
            "autotracking": {
              "type": "switch",
              "available": true
            },
            "forecasting": {
              "type": "switch",
              "available": true
            },
            "webhooks": {
              "type": "switch",
              "available": true
            },
            "table_pivoting": {
              "type": "switch",
              "available": true
            },
            "formula_fields": {
              "type": "switch",
              "available": true
            },
            "single_sign_on": {
              "type": "switch",
              "available": true
            }
          }
        }
      ],
      "payment_method_id": 1,
      "employee_count": 1,
      "seats": null,
      "seats_used": 1,
      "trial_plan_ends_at": "2019-01-08 23:59:59",
      "trial_plan_type": null,
      "card_brand": null,
      "card_last4": null,
      "card_month": null,
      "card_year": null,
      "balance": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 404
        }
      }
    }
  },
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 3,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 1,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 0,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": false
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": false
      },
      "subsidiaries": {
        "type": "switch",
        "available": false
      },
      "time_approvals": {
        "type": "switch",
        "available": false
      },
      "expenses_approvals": {
        "type": "switch",
        "available": false
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": false
      },
      "autotracking": {
        "type": "switch",
        "available": false
      },
      "forecasting": {
        "type": "switch",
        "available": false
      },
      "webhooks": {
        "type": "switch",
        "available": false
      },
      "table_pivoting": {
        "type": "switch",
        "available": false
      },
      "formula_fields": {
        "type": "switch",
        "available": false
      },
      "single_sign_on": {
        "type": "switch",
        "available": false
      }
    }
  }
}

PATCH  /api/v2/organization_subscriptions/405

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "plan_cycle": "year"
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "405",
    "type": "organization_subscriptions",
    "attributes": {
      "billing_email": null,
      "billing_address": null,
      "subscription_state_id": 5,
      "trial_ends_at": null,
      "subscription_ends_at": null,
      "next_billing_cycle_at": null,
      "grace_period_ends_at": null,
      "plan_price": 240,
      "monthly_plan_price": 24,
      "yearly_plan_price": 240,
      "discount": null,
      "discount_expires_on": null,
      "plan_cycle": "year",
      "plan_type": "premium",
      "downgrades": [
        {
          "id": "standard",
          "name": "Standard",
          "type": "regular",
          "monthly_price_cents": 1500,
          "yearly_price_cents": 15000,
          "currency": "USD",
          "upgrades": [
            "premium"
          ],
          "downgrades": [],
          "features": {
            "custom_fields": {
              "type": "metered",
              "limit": 3
            },
            "custom_fields_per_project": {
              "type": "metered",
              "limit": 1
            },
            "public_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "private_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "scheduling_placeholders": {
              "type": "metered",
              "limit": 0
            },
            "multigrouping": {
              "type": "switch",
              "available": false
            },
            "client_access_to_budgets": {
              "type": "switch",
              "available": false
            },
            "subsidiaries": {
              "type": "switch",
              "available": false
            },
            "time_approvals": {
              "type": "switch",
              "available": false
            },
            "expenses_approvals": {
              "type": "switch",
              "available": false
            },
            "timeoff_approvals": {
              "type": "switch",
              "available": false
            },
            "autotracking": {
              "type": "switch",
              "available": false
            },
            "forecasting": {
              "type": "switch",
              "available": false
            },
            "webhooks": {
              "type": "switch",
              "available": false
            },
            "table_pivoting": {
              "type": "switch",
              "available": false
            },
            "formula_fields": {
              "type": "switch",
              "available": false
            },
            "single_sign_on": {
              "type": "switch",
              "available": false
            }
          }
        }
      ],
      "current_plan": {
        "id": "premium",
        "name": "Premium",
        "type": "regular",
        "monthly_price_cents": 2400,
        "yearly_price_cents": 24000,
        "currency": "USD",
        "upgrades": [],
        "downgrades": [
          "standard"
        ],
        "features": {
          "custom_fields": {
            "type": "metered",
            "limit": 15,
            "used": 0
          },
          "custom_fields_per_project": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "public_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "private_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "scheduling_placeholders": {
            "type": "metered",
            "limit": 5,
            "used": 0
          },
          "multigrouping": {
            "type": "switch",
            "available": true
          },
          "client_access_to_budgets": {
            "type": "switch",
            "available": true
          },
          "subsidiaries": {
            "type": "switch",
            "available": true
          },
          "time_approvals": {
            "type": "switch",
            "available": true
          },
          "expenses_approvals": {
            "type": "switch",
            "available": true
          },
          "timeoff_approvals": {
            "type": "switch",
            "available": true
          },
          "autotracking": {
            "type": "switch",
            "available": true
          },
          "forecasting": {
            "type": "switch",
            "available": true
          },
          "webhooks": {
            "type": "switch",
            "available": true
          },
          "table_pivoting": {
            "type": "switch",
            "available": true
          },
          "formula_fields": {
            "type": "switch",
            "available": true
          },
          "single_sign_on": {
            "type": "switch",
            "available": true
          }
        }
      },
      "upgrades": [],
      "payment_method_id": 1,
      "employee_count": 1,
      "seats": null,
      "seats_used": 1,
      "trial_plan_ends_at": null,
      "trial_plan_type": null,
      "card_brand": null,
      "card_last4": null,
      "card_month": null,
      "card_year": null,
      "balance": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 405
        }
      }
    }
  },
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/organization_subscriptions/406

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "plan_cycle": "month"
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "406",
    "type": "organization_subscriptions",
    "attributes": {
      "billing_email": null,
      "billing_address": null,
      "subscription_state_id": 5,
      "trial_ends_at": null,
      "subscription_ends_at": null,
      "next_billing_cycle_at": null,
      "grace_period_ends_at": null,
      "plan_price": 24,
      "monthly_plan_price": 24,
      "yearly_plan_price": 240,
      "discount": null,
      "discount_expires_on": null,
      "plan_cycle": "month",
      "plan_type": "premium",
      "downgrades": [
        {
          "id": "standard",
          "name": "Standard",
          "type": "regular",
          "monthly_price_cents": 1500,
          "yearly_price_cents": 15000,
          "currency": "USD",
          "upgrades": [
            "premium"
          ],
          "downgrades": [],
          "features": {
            "custom_fields": {
              "type": "metered",
              "limit": 3
            },
            "custom_fields_per_project": {
              "type": "metered",
              "limit": 1
            },
            "public_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "private_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "scheduling_placeholders": {
              "type": "metered",
              "limit": 0
            },
            "multigrouping": {
              "type": "switch",
              "available": false
            },
            "client_access_to_budgets": {
              "type": "switch",
              "available": false
            },
            "subsidiaries": {
              "type": "switch",
              "available": false
            },
            "time_approvals": {
              "type": "switch",
              "available": false
            },
            "expenses_approvals": {
              "type": "switch",
              "available": false
            },
            "timeoff_approvals": {
              "type": "switch",
              "available": false
            },
            "autotracking": {
              "type": "switch",
              "available": false
            },
            "forecasting": {
              "type": "switch",
              "available": false
            },
            "webhooks": {
              "type": "switch",
              "available": false
            },
            "table_pivoting": {
              "type": "switch",
              "available": false
            },
            "formula_fields": {
              "type": "switch",
              "available": false
            },
            "single_sign_on": {
              "type": "switch",
              "available": false
            }
          }
        }
      ],
      "current_plan": {
        "id": "premium",
        "name": "Premium",
        "type": "regular",
        "monthly_price_cents": 2400,
        "yearly_price_cents": 24000,
        "currency": "USD",
        "upgrades": [],
        "downgrades": [
          "standard"
        ],
        "features": {
          "custom_fields": {
            "type": "metered",
            "limit": 15,
            "used": 0
          },
          "custom_fields_per_project": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "public_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "private_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "scheduling_placeholders": {
            "type": "metered",
            "limit": 5,
            "used": 0
          },
          "multigrouping": {
            "type": "switch",
            "available": true
          },
          "client_access_to_budgets": {
            "type": "switch",
            "available": true
          },
          "subsidiaries": {
            "type": "switch",
            "available": true
          },
          "time_approvals": {
            "type": "switch",
            "available": true
          },
          "expenses_approvals": {
            "type": "switch",
            "available": true
          },
          "timeoff_approvals": {
            "type": "switch",
            "available": true
          },
          "autotracking": {
            "type": "switch",
            "available": true
          },
          "forecasting": {
            "type": "switch",
            "available": true
          },
          "webhooks": {
            "type": "switch",
            "available": true
          },
          "table_pivoting": {
            "type": "switch",
            "available": true
          },
          "formula_fields": {
            "type": "switch",
            "available": true
          },
          "single_sign_on": {
            "type": "switch",
            "available": true
          }
        }
      },
      "upgrades": [],
      "payment_method_id": 1,
      "employee_count": 1,
      "seats": null,
      "seats_used": 1,
      "trial_plan_ends_at": null,
      "trial_plan_type": null,
      "card_brand": null,
      "card_last4": null,
      "card_month": null,
      "card_year": null,
      "balance": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 406
        }
      }
    }
  },
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/organization_subscriptions/407

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "plan_type": "premium"
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "407",
    "type": "organization_subscriptions",
    "attributes": {
      "billing_email": null,
      "billing_address": null,
      "subscription_state_id": 5,
      "trial_ends_at": null,
      "subscription_ends_at": null,
      "next_billing_cycle_at": null,
      "grace_period_ends_at": null,
      "plan_price": 24,
      "monthly_plan_price": 24,
      "yearly_plan_price": 240,
      "discount": null,
      "discount_expires_on": null,
      "plan_cycle": "month",
      "plan_type": "premium",
      "downgrades": [
        {
          "id": "standard",
          "name": "Standard",
          "type": "regular",
          "monthly_price_cents": 1500,
          "yearly_price_cents": 15000,
          "currency": "USD",
          "upgrades": [
            "premium"
          ],
          "downgrades": [],
          "features": {
            "custom_fields": {
              "type": "metered",
              "limit": 3
            },
            "custom_fields_per_project": {
              "type": "metered",
              "limit": 1
            },
            "public_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "private_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "scheduling_placeholders": {
              "type": "metered",
              "limit": 0
            },
            "multigrouping": {
              "type": "switch",
              "available": false
            },
            "client_access_to_budgets": {
              "type": "switch",
              "available": false
            },
            "subsidiaries": {
              "type": "switch",
              "available": false
            },
            "time_approvals": {
              "type": "switch",
              "available": false
            },
            "expenses_approvals": {
              "type": "switch",
              "available": false
            },
            "timeoff_approvals": {
              "type": "switch",
              "available": false
            },
            "autotracking": {
              "type": "switch",
              "available": false
            },
            "forecasting": {
              "type": "switch",
              "available": false
            },
            "webhooks": {
              "type": "switch",
              "available": false
            },
            "table_pivoting": {
              "type": "switch",
              "available": false
            },
            "formula_fields": {
              "type": "switch",
              "available": false
            },
            "single_sign_on": {
              "type": "switch",
              "available": false
            }
          }
        }
      ],
      "current_plan": {
        "id": "premium",
        "name": "Premium",
        "type": "regular",
        "monthly_price_cents": 2400,
        "yearly_price_cents": 24000,
        "currency": "USD",
        "upgrades": [],
        "downgrades": [
          "standard"
        ],
        "features": {
          "custom_fields": {
            "type": "metered",
            "limit": 3,
            "used": 0
          },
          "custom_fields_per_project": {
            "type": "metered",
            "limit": 1,
            "used": 0
          },
          "public_custom_reports": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "private_custom_reports": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "scheduling_placeholders": {
            "type": "metered",
            "limit": 0,
            "used": 0
          },
          "multigrouping": {
            "type": "switch",
            "available": false
          },
          "client_access_to_budgets": {
            "type": "switch",
            "available": false
          },
          "subsidiaries": {
            "type": "switch",
            "available": false
          },
          "time_approvals": {
            "type": "switch",
            "available": false
          },
          "expenses_approvals": {
            "type": "switch",
            "available": false
          },
          "timeoff_approvals": {
            "type": "switch",
            "available": false
          },
          "autotracking": {
            "type": "switch",
            "available": false
          },
          "forecasting": {
            "type": "switch",
            "available": false
          },
          "webhooks": {
            "type": "switch",
            "available": false
          },
          "table_pivoting": {
            "type": "switch",
            "available": false
          },
          "formula_fields": {
            "type": "switch",
            "available": false
          },
          "single_sign_on": {
            "type": "switch",
            "available": false
          }
        }
      },
      "upgrades": [],
      "payment_method_id": 1,
      "employee_count": 1,
      "seats": null,
      "seats_used": 1,
      "trial_plan_ends_at": null,
      "trial_plan_type": null,
      "card_brand": null,
      "card_last4": null,
      "card_month": null,
      "card_year": null,
      "balance": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 407
        }
      }
    }
  },
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 3,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 1,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 0,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": false
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": false
      },
      "subsidiaries": {
        "type": "switch",
        "available": false
      },
      "time_approvals": {
        "type": "switch",
        "available": false
      },
      "expenses_approvals": {
        "type": "switch",
        "available": false
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": false
      },
      "autotracking": {
        "type": "switch",
        "available": false
      },
      "forecasting": {
        "type": "switch",
        "available": false
      },
      "webhooks": {
        "type": "switch",
        "available": false
      },
      "table_pivoting": {
        "type": "switch",
        "available": false
      },
      "formula_fields": {
        "type": "switch",
        "available": false
      },
      "single_sign_on": {
        "type": "switch",
        "available": false
      }
    }
  }
}

PATCH  /api/v2/organization_subscriptions/408

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "plan_type": "standard",
      "plan_cycle": "month"
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "408",
    "type": "organization_subscriptions",
    "attributes": {
      "billing_email": null,
      "billing_address": null,
      "subscription_state_id": 5,
      "trial_ends_at": null,
      "subscription_ends_at": null,
      "next_billing_cycle_at": null,
      "grace_period_ends_at": null,
      "plan_price": 15,
      "monthly_plan_price": 15,
      "yearly_plan_price": 150,
      "discount": null,
      "discount_expires_on": null,
      "plan_cycle": "month",
      "plan_type": "standard",
      "downgrades": [],
      "current_plan": {
        "id": "standard",
        "name": "Standard",
        "type": "regular",
        "monthly_price_cents": 1500,
        "yearly_price_cents": 15000,
        "currency": "USD",
        "upgrades": [
          "premium"
        ],
        "downgrades": [],
        "features": {
          "custom_fields": {
            "type": "metered",
            "limit": 15,
            "used": 0
          },
          "custom_fields_per_project": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "public_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "private_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "scheduling_placeholders": {
            "type": "metered",
            "limit": 5,
            "used": 0
          },
          "multigrouping": {
            "type": "switch",
            "available": true
          },
          "client_access_to_budgets": {
            "type": "switch",
            "available": true
          },
          "subsidiaries": {
            "type": "switch",
            "available": true
          },
          "time_approvals": {
            "type": "switch",
            "available": true
          },
          "expenses_approvals": {
            "type": "switch",
            "available": true
          },
          "timeoff_approvals": {
            "type": "switch",
            "available": true
          },
          "autotracking": {
            "type": "switch",
            "available": true
          },
          "forecasting": {
            "type": "switch",
            "available": true
          },
          "webhooks": {
            "type": "switch",
            "available": true
          },
          "table_pivoting": {
            "type": "switch",
            "available": true
          },
          "formula_fields": {
            "type": "switch",
            "available": true
          },
          "single_sign_on": {
            "type": "switch",
            "available": true
          }
        }
      },
      "upgrades": [
        {
          "id": "premium",
          "name": "Premium",
          "type": "regular",
          "monthly_price_cents": 2400,
          "yearly_price_cents": 24000,
          "currency": "USD",
          "upgrades": [],
          "downgrades": [
            "standard"
          ],
          "features": {
            "custom_fields": {
              "type": "metered",
              "limit": 15
            },
            "custom_fields_per_project": {
              "type": "metered",
              "limit": 10
            },
            "public_custom_reports": {
              "type": "metered",
              "limit": 30
            },
            "private_custom_reports": {
              "type": "metered",
              "limit": 30
            },
            "scheduling_placeholders": {
              "type": "metered",
              "limit": 5
            },
            "multigrouping": {
              "type": "switch",
              "available": true
            },
            "client_access_to_budgets": {
              "type": "switch",
              "available": true
            },
            "subsidiaries": {
              "type": "switch",
              "available": true
            },
            "time_approvals": {
              "type": "switch",
              "available": true
            },
            "expenses_approvals": {
              "type": "switch",
              "available": true
            },
            "timeoff_approvals": {
              "type": "switch",
              "available": true
            },
            "autotracking": {
              "type": "switch",
              "available": true
            },
            "forecasting": {
              "type": "switch",
              "available": true
            },
            "webhooks": {
              "type": "switch",
              "available": true
            },
            "table_pivoting": {
              "type": "switch",
              "available": true
            },
            "formula_fields": {
              "type": "switch",
              "available": true
            },
            "single_sign_on": {
              "type": "switch",
              "available": true
            }
          }
        }
      ],
      "payment_method_id": 1,
      "employee_count": 1,
      "seats": null,
      "seats_used": 1,
      "trial_plan_ends_at": null,
      "trial_plan_type": null,
      "card_brand": null,
      "card_last4": null,
      "card_month": null,
      "card_year": null,
      "balance": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 408
        }
      }
    }
  },
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/organization_subscriptions/409

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "plan_cycle": "month"
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "409",
    "type": "organization_subscriptions",
    "attributes": {
      "billing_email": null,
      "billing_address": null,
      "subscription_state_id": 5,
      "trial_ends_at": null,
      "subscription_ends_at": null,
      "next_billing_cycle_at": null,
      "grace_period_ends_at": null,
      "plan_price": 24,
      "monthly_plan_price": 24,
      "yearly_plan_price": 240,
      "discount": null,
      "discount_expires_on": null,
      "plan_cycle": "month",
      "plan_type": "premium",
      "downgrades": [
        {
          "id": "standard",
          "name": "Standard",
          "type": "regular",
          "monthly_price_cents": 1500,
          "yearly_price_cents": 15000,
          "currency": "USD",
          "upgrades": [
            "premium"
          ],
          "downgrades": [],
          "features": {
            "custom_fields": {
              "type": "metered",
              "limit": 3
            },
            "custom_fields_per_project": {
              "type": "metered",
              "limit": 1
            },
            "public_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "private_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "scheduling_placeholders": {
              "type": "metered",
              "limit": 0
            },
            "multigrouping": {
              "type": "switch",
              "available": false
            },
            "client_access_to_budgets": {
              "type": "switch",
              "available": false
            },
            "subsidiaries": {
              "type": "switch",
              "available": false
            },
            "time_approvals": {
              "type": "switch",
              "available": false
            },
            "expenses_approvals": {
              "type": "switch",
              "available": false
            },
            "timeoff_approvals": {
              "type": "switch",
              "available": false
            },
            "autotracking": {
              "type": "switch",
              "available": false
            },
            "forecasting": {
              "type": "switch",
              "available": false
            },
            "webhooks": {
              "type": "switch",
              "available": false
            },
            "table_pivoting": {
              "type": "switch",
              "available": false
            },
            "formula_fields": {
              "type": "switch",
              "available": false
            },
            "single_sign_on": {
              "type": "switch",
              "available": false
            }
          }
        }
      ],
      "current_plan": {
        "id": "premium",
        "name": "Premium",
        "type": "regular",
        "monthly_price_cents": 2400,
        "yearly_price_cents": 24000,
        "currency": "USD",
        "upgrades": [],
        "downgrades": [
          "standard"
        ],
        "features": {
          "custom_fields": {
            "type": "metered",
            "limit": 15,
            "used": 0
          },
          "custom_fields_per_project": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "public_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "private_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "scheduling_placeholders": {
            "type": "metered",
            "limit": 5,
            "used": 0
          },
          "multigrouping": {
            "type": "switch",
            "available": true
          },
          "client_access_to_budgets": {
            "type": "switch",
            "available": true
          },
          "subsidiaries": {
            "type": "switch",
            "available": true
          },
          "time_approvals": {
            "type": "switch",
            "available": true
          },
          "expenses_approvals": {
            "type": "switch",
            "available": true
          },
          "timeoff_approvals": {
            "type": "switch",
            "available": true
          },
          "autotracking": {
            "type": "switch",
            "available": true
          },
          "forecasting": {
            "type": "switch",
            "available": true
          },
          "webhooks": {
            "type": "switch",
            "available": true
          },
          "table_pivoting": {
            "type": "switch",
            "available": true
          },
          "formula_fields": {
            "type": "switch",
            "available": true
          },
          "single_sign_on": {
            "type": "switch",
            "available": true
          }
        }
      },
      "upgrades": [],
      "payment_method_id": 1,
      "employee_count": 1,
      "seats": null,
      "seats_used": 1,
      "trial_plan_ends_at": null,
      "trial_plan_type": null,
      "card_brand": null,
      "card_last4": null,
      "card_month": null,
      "card_year": null,
      "balance": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 409
        }
      }
    }
  },
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/organization_subscriptions/410

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "stripe_token": "tok_u5dg20Gra"
    }
  }
}
Responses402
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "errors": [
    {
      "status": 402,
      "title": "Stripe error",
      "detail": "The card was declined.",
      "source": {
        "pointer": null
      }
    }
  ]
}

Update a organization subscription
PATCH/api/v2/organization_subscriptions/{id}

URI Parameters
HideShow
id
number (required) Example: 1

organization subscription id


PATCH /api/v2/organization_subscriptions/1/cancel
Requestscancels subscriptionreturns error

PATCH  /api/v2/organization_subscriptions/413/cancel

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "deactivation_reason_id": 2,
      "deactivation_note": "Why I quit Productive"
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "413",
    "type": "organization_subscriptions",
    "attributes": {
      "billing_email": null,
      "billing_address": null,
      "subscription_state_id": 6,
      "trial_ends_at": null,
      "subscription_ends_at": "2015-10-15 23:59:59",
      "next_billing_cycle_at": "2015-10-15 23:59:59",
      "grace_period_ends_at": null,
      "plan_price": 24,
      "monthly_plan_price": 24,
      "yearly_plan_price": 240,
      "discount": null,
      "discount_expires_on": null,
      "plan_cycle": "month",
      "plan_type": "premium",
      "downgrades": [
        {
          "id": "standard",
          "name": "Standard",
          "type": "regular",
          "monthly_price_cents": 1500,
          "yearly_price_cents": 15000,
          "currency": "USD",
          "upgrades": [
            "premium"
          ],
          "downgrades": [],
          "features": {
            "custom_fields": {
              "type": "metered",
              "limit": 3
            },
            "custom_fields_per_project": {
              "type": "metered",
              "limit": 1
            },
            "public_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "private_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "scheduling_placeholders": {
              "type": "metered",
              "limit": 0
            },
            "multigrouping": {
              "type": "switch",
              "available": false
            },
            "client_access_to_budgets": {
              "type": "switch",
              "available": false
            },
            "subsidiaries": {
              "type": "switch",
              "available": false
            },
            "time_approvals": {
              "type": "switch",
              "available": false
            },
            "expenses_approvals": {
              "type": "switch",
              "available": false
            },
            "timeoff_approvals": {
              "type": "switch",
              "available": false
            },
            "autotracking": {
              "type": "switch",
              "available": false
            },
            "forecasting": {
              "type": "switch",
              "available": false
            },
            "webhooks": {
              "type": "switch",
              "available": false
            },
            "table_pivoting": {
              "type": "switch",
              "available": false
            },
            "formula_fields": {
              "type": "switch",
              "available": false
            },
            "single_sign_on": {
              "type": "switch",
              "available": false
            }
          }
        }
      ],
      "current_plan": {
        "id": "premium",
        "name": "Premium",
        "type": "regular",
        "monthly_price_cents": 2400,
        "yearly_price_cents": 24000,
        "currency": "USD",
        "upgrades": [],
        "downgrades": [
          "standard"
        ],
        "features": {
          "custom_fields": {
            "type": "metered",
            "limit": 15,
            "used": 0
          },
          "custom_fields_per_project": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "public_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "private_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "scheduling_placeholders": {
            "type": "metered",
            "limit": 5,
            "used": 0
          },
          "multigrouping": {
            "type": "switch",
            "available": true
          },
          "client_access_to_budgets": {
            "type": "switch",
            "available": true
          },
          "subsidiaries": {
            "type": "switch",
            "available": true
          },
          "time_approvals": {
            "type": "switch",
            "available": true
          },
          "expenses_approvals": {
            "type": "switch",
            "available": true
          },
          "timeoff_approvals": {
            "type": "switch",
            "available": true
          },
          "autotracking": {
            "type": "switch",
            "available": true
          },
          "forecasting": {
            "type": "switch",
            "available": true
          },
          "webhooks": {
            "type": "switch",
            "available": true
          },
          "table_pivoting": {
            "type": "switch",
            "available": true
          },
          "formula_fields": {
            "type": "switch",
            "available": true
          },
          "single_sign_on": {
            "type": "switch",
            "available": true
          }
        }
      },
      "upgrades": [],
      "payment_method_id": 1,
      "employee_count": 1,
      "seats": null,
      "seats_used": 1,
      "trial_plan_ends_at": null,
      "trial_plan_type": null,
      "card_brand": null,
      "card_last4": null,
      "card_month": null,
      "card_year": null,
      "balance": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 413
        }
      }
    }
  },
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/organization_subscriptions/414/cancel

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "organization_subscriptions",
    "attributes": {
      "deactivation_reason_id": 2,
      "deactivation_note": "Why I quit Productive"
    }
  }
}
Responses503
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "errors": [
    {
      "status": 503,
      "title": "Stripe error",
      "detail": "A temporary problem with Stripe's servers.",
      "source": {
        "pointer": null
      }
    }
  ]
}

Cancels a organization subscription
PATCH/api/v2/organization_subscriptions/{id}/cancel

URI Parameters
HideShow
id
number (required) Example: 1

organization subscription id


PATCH /api/v2/organization_subscriptions/1/reactivate
Requestsreactivates subscriptionreturns error

PATCH  /api/v2/organization_subscriptions/415/reactivate

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "415",
    "type": "organization_subscriptions",
    "attributes": {
      "billing_email": null,
      "billing_address": null,
      "subscription_state_id": 1,
      "trial_ends_at": null,
      "subscription_ends_at": "2015-10-15 23:59:59",
      "next_billing_cycle_at": "2015-10-15 23:59:59",
      "grace_period_ends_at": null,
      "plan_price": 24,
      "monthly_plan_price": 24,
      "yearly_plan_price": 240,
      "discount": null,
      "discount_expires_on": null,
      "plan_cycle": "month",
      "plan_type": "premium",
      "downgrades": [
        {
          "id": "standard",
          "name": "Standard",
          "type": "regular",
          "monthly_price_cents": 1500,
          "yearly_price_cents": 15000,
          "currency": "USD",
          "upgrades": [
            "premium"
          ],
          "downgrades": [],
          "features": {
            "custom_fields": {
              "type": "metered",
              "limit": 3
            },
            "custom_fields_per_project": {
              "type": "metered",
              "limit": 1
            },
            "public_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "private_custom_reports": {
              "type": "metered",
              "limit": 10
            },
            "scheduling_placeholders": {
              "type": "metered",
              "limit": 0
            },
            "multigrouping": {
              "type": "switch",
              "available": false
            },
            "client_access_to_budgets": {
              "type": "switch",
              "available": false
            },
            "subsidiaries": {
              "type": "switch",
              "available": false
            },
            "time_approvals": {
              "type": "switch",
              "available": false
            },
            "expenses_approvals": {
              "type": "switch",
              "available": false
            },
            "timeoff_approvals": {
              "type": "switch",
              "available": false
            },
            "autotracking": {
              "type": "switch",
              "available": false
            },
            "forecasting": {
              "type": "switch",
              "available": false
            },
            "webhooks": {
              "type": "switch",
              "available": false
            },
            "table_pivoting": {
              "type": "switch",
              "available": false
            },
            "formula_fields": {
              "type": "switch",
              "available": false
            },
            "single_sign_on": {
              "type": "switch",
              "available": false
            }
          }
        }
      ],
      "current_plan": {
        "id": "premium",
        "name": "Premium",
        "type": "regular",
        "monthly_price_cents": 2400,
        "yearly_price_cents": 24000,
        "currency": "USD",
        "upgrades": [],
        "downgrades": [
          "standard"
        ],
        "features": {
          "custom_fields": {
            "type": "metered",
            "limit": 15,
            "used": 0
          },
          "custom_fields_per_project": {
            "type": "metered",
            "limit": 10,
            "used": 0
          },
          "public_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "private_custom_reports": {
            "type": "metered",
            "limit": 30,
            "used": 0
          },
          "scheduling_placeholders": {
            "type": "metered",
            "limit": 5,
            "used": 0
          },
          "multigrouping": {
            "type": "switch",
            "available": true
          },
          "client_access_to_budgets": {
            "type": "switch",
            "available": true
          },
          "subsidiaries": {
            "type": "switch",
            "available": true
          },
          "time_approvals": {
            "type": "switch",
            "available": true
          },
          "expenses_approvals": {
            "type": "switch",
            "available": true
          },
          "timeoff_approvals": {
            "type": "switch",
            "available": true
          },
          "autotracking": {
            "type": "switch",
            "available": true
          },
          "forecasting": {
            "type": "switch",
            "available": true
          },
          "webhooks": {
            "type": "switch",
            "available": true
          },
          "table_pivoting": {
            "type": "switch",
            "available": true
          },
          "formula_fields": {
            "type": "switch",
            "available": true
          },
          "single_sign_on": {
            "type": "switch",
            "available": true
          }
        }
      },
      "upgrades": [],
      "payment_method_id": 1,
      "employee_count": 1,
      "seats": null,
      "seats_used": 1,
      "trial_plan_ends_at": null,
      "trial_plan_type": null,
      "card_brand": null,
      "card_last4": null,
      "card_month": null,
      "card_year": null,
      "balance": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 415
        }
      }
    }
  },
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/organization_subscriptions/416/reactivate

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses503
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "errors": [
    {
      "status": 503,
      "title": "Stripe error",
      "detail": "A temporary problem with Stripe's servers.",
      "source": {
        "pointer": null
      }
    }
  ]
}

Reactivates a organization subscription
PATCH/api/v2/organization_subscriptions/{id}/reactivate

URI Parameters
HideShow
id
number (required) Example: 1

organization subscription id


Generated by aglio on 10 Aug 2020