Zum Hauptinhalt springen
GET
/
api
/
plans
/
{id}
/
checkout-links
List checkout links of a plan
curl --request GET \
  --url https://coreapi.io/api/plans/{id}/checkout-links \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "1280792f-4e23-793d-8e9c-3a1bf36630bd",
    "slug": "pro-plan-pro",
    "planTierId": "<string>",
    "planTierName": "Pro",
    "couponsAllowed": true,
    "isEnabled": true,
    "url": "https://coreapi.io/checkout-link/pro-plan-pro/cart",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "salesChannel": {
      "id": "<string>",
      "name": "default",
      "brandName": "Pro Plan"
    }
  }
]

Autorisierungen

Authorization
string
header
erforderlich

Organisation API token. Send it as Authorization: Bearer api_... The token is scoped to a single Organisation.

Pfadparameter

id
string<uuid>
erforderlich

The plan UUID.

Beispiel:

"1280792f-4e23-793d-8e9c-3a1bf36630bd"

Antwort

The checkout links of the plan.

id
string<uuid>
Beispiel:

"1280792f-4e23-793d-8e9c-3a1bf36630bd"

slug
string
Beispiel:

"pro-plan-pro"

planTierId
string
planTierName
string
Beispiel:

"Pro"

couponsAllowed
boolean
isEnabled
boolean
url
string<uri>

Public checkout URL that creates a cart and redirects the buyer.

Beispiel:

"https://coreapi.io/checkout-link/pro-plan-pro/cart"

createdAt
string<date-time>
updatedAt
string<date-time>
salesChannel
object