Organization
Get organization
Organization
Get organization
GET
/
api
/
v1
/
organization
curl --request GET \
--url https://api.bundle.social/api/v1/organization/ \
--header 'x-api-key: <api-key>'
{
"id": "<string>",
"createdById": "<string>",
"promotionCodeId": "<string>",
"name": "<string>",
"avatarUrl": "<string>",
"apiAccess": true,
"ref": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"teams": [
{
"id": "<string>",
"name": "<string>",
"avatarUrl": "<string>",
"organizationId": "<string>",
"createdById": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
],
"createdBy": {
"id": "<string>",
"externalId": "<string>",
"email": "<string>",
"emailVerified": "2023-11-07T05:31:56Z",
"firstName": "<string>",
"lastName": "<string>",
"avatarUrl": "<string>",
"role": "ADMIN",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
},
"subscription": {
"id": "<string>",
"organizationId": "<string>",
"couponId": "<string>",
"promotionCodeId": "<string>",
"stripeSubscriptionId": "<string>",
"stripeSubscriptionItems": [
{
"id": "<string>",
"price": "<string>",
"quantity": 123
}
],
"status": "trialing",
"metadata": {},
"stripePriceId": "<string>",
"tier": "PRO",
"cancelAtPeriodEnd": true,
"created": "2023-11-07T05:31:56Z",
"currentPeriodStart": "2023-11-07T05:31:56Z",
"currentPeriodEnd": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"cancelAt": "2023-11-07T05:31:56Z",
"canceledAt": "2023-11-07T05:31:56Z",
"trialStart": "2023-11-07T05:31:56Z",
"trialEnd": "2023-11-07T05:31:56Z",
"maxMonthlyPosts": 123,
"discountStart": "2023-11-07T05:31:56Z",
"discountEnd": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"coupon": {
"id": "<string>",
"name": "<string>",
"amountOff": 123,
"percentOff": 123,
"duration": "forever",
"durationInMonths": 123,
"maxRedemptions": 123,
"valid": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"promotionCodes": [
{
"id": "<string>",
"couponId": "<string>",
"code": "<string>",
"active": true,
"expiresAt": "2023-11-07T05:31:56Z",
"maxRedemptions": 123,
"firstTimeTransaction": true,
"minimumAmount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
},
"promotionCode": {
"id": "<string>",
"couponId": "<string>",
"code": "<string>",
"active": true,
"expiresAt": "2023-11-07T05:31:56Z",
"maxRedemptions": 123,
"firstTimeTransaction": true,
"minimumAmount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"coupon": {
"id": "<string>",
"name": "<string>",
"amountOff": 123,
"percentOff": 123,
"duration": "forever",
"durationInMonths": 123,
"maxRedemptions": 123,
"valid": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
},
"promotionCode": {
"id": "<string>",
"couponId": "<string>",
"code": "<string>",
"active": true,
"expiresAt": "2023-11-07T05:31:56Z",
"maxRedemptions": 123,
"firstTimeTransaction": true,
"minimumAmount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"coupon": {
"id": "<string>",
"name": "<string>",
"amountOff": 123,
"percentOff": 123,
"duration": "forever",
"durationInMonths": 123,
"maxRedemptions": 123,
"valid": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
},
"usage": {
"monthlyPosts": 123
}
}
Authorizations
Response
200
application/json
200
Available options:
ADMIN
, CUSTOMER
Available options:
trialing
, active
, canceled
, incomplete
, incomplete_expired
, past_due
, unpaid
, paused
Available options:
PRO
, BUSINESS
Available options:
forever
, once
, repeating
Available options:
forever
, once
, repeating
Available options:
forever
, once
, repeating
Was this page helpful?
curl --request GET \
--url https://api.bundle.social/api/v1/organization/ \
--header 'x-api-key: <api-key>'
{
"id": "<string>",
"createdById": "<string>",
"promotionCodeId": "<string>",
"name": "<string>",
"avatarUrl": "<string>",
"apiAccess": true,
"ref": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"teams": [
{
"id": "<string>",
"name": "<string>",
"avatarUrl": "<string>",
"organizationId": "<string>",
"createdById": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
],
"createdBy": {
"id": "<string>",
"externalId": "<string>",
"email": "<string>",
"emailVerified": "2023-11-07T05:31:56Z",
"firstName": "<string>",
"lastName": "<string>",
"avatarUrl": "<string>",
"role": "ADMIN",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
},
"subscription": {
"id": "<string>",
"organizationId": "<string>",
"couponId": "<string>",
"promotionCodeId": "<string>",
"stripeSubscriptionId": "<string>",
"stripeSubscriptionItems": [
{
"id": "<string>",
"price": "<string>",
"quantity": 123
}
],
"status": "trialing",
"metadata": {},
"stripePriceId": "<string>",
"tier": "PRO",
"cancelAtPeriodEnd": true,
"created": "2023-11-07T05:31:56Z",
"currentPeriodStart": "2023-11-07T05:31:56Z",
"currentPeriodEnd": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"cancelAt": "2023-11-07T05:31:56Z",
"canceledAt": "2023-11-07T05:31:56Z",
"trialStart": "2023-11-07T05:31:56Z",
"trialEnd": "2023-11-07T05:31:56Z",
"maxMonthlyPosts": 123,
"discountStart": "2023-11-07T05:31:56Z",
"discountEnd": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"coupon": {
"id": "<string>",
"name": "<string>",
"amountOff": 123,
"percentOff": 123,
"duration": "forever",
"durationInMonths": 123,
"maxRedemptions": 123,
"valid": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"promotionCodes": [
{
"id": "<string>",
"couponId": "<string>",
"code": "<string>",
"active": true,
"expiresAt": "2023-11-07T05:31:56Z",
"maxRedemptions": 123,
"firstTimeTransaction": true,
"minimumAmount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
},
"promotionCode": {
"id": "<string>",
"couponId": "<string>",
"code": "<string>",
"active": true,
"expiresAt": "2023-11-07T05:31:56Z",
"maxRedemptions": 123,
"firstTimeTransaction": true,
"minimumAmount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"coupon": {
"id": "<string>",
"name": "<string>",
"amountOff": 123,
"percentOff": 123,
"duration": "forever",
"durationInMonths": 123,
"maxRedemptions": 123,
"valid": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
},
"promotionCode": {
"id": "<string>",
"couponId": "<string>",
"code": "<string>",
"active": true,
"expiresAt": "2023-11-07T05:31:56Z",
"maxRedemptions": 123,
"firstTimeTransaction": true,
"minimumAmount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"coupon": {
"id": "<string>",
"name": "<string>",
"amountOff": 123,
"percentOff": 123,
"duration": "forever",
"durationInMonths": 123,
"maxRedemptions": 123,
"valid": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
},
"usage": {
"monthlyPosts": 123
}
}