Skip to main content
GET
/
v1
/
stores
/
{store}
/
subscription-plans
List subscription plans
curl --request GET \
  --url https://api.confiopagos.com/v1/stores/{store}/subscription-plans \
  --header 'Authorization: Bearer <token>'
{
  "plans": [
    {
      "name": "organizations/01JNRR1NY8MDX4XCGG0N4F06X3/stores/01JNRRDZDPH40DB2YRW329BFXM/subscription-plans/01JNRVWWHH68E76V3TMFFT6GHJ",
      "displayName": "Premium Monthly Plan",
      "amountCents": 5000000,
      "currencyCode": "COP",
      "billingCycleFrequency": "MONTHLY",
      "billingCycleInterval": 1,
      "trialPeriodDays": 7,
      "status": "ACTIVE",
      "createTime": "2024-01-15T10:30:00Z",
      "updateTime": "2024-01-15T10:30:00Z",
      "description": "Access to all premium features"
    }
  ],
  "nextPageToken": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

store
string
required
Example:

"01G65Z755AFWAKHE12NY0CQ9FH"

Query Parameters

pageSize
string

The maximum number of items to return. Default is 50, max is 1000.

Example:

"20"

pageToken
string

A page token received from a previous call for pagination.

Response

200 - application/json

Successfully fetched subscription plans.

plans
object[]
required

List of subscription plans

nextPageToken
string

Token for retrieving the next page of results