---
title: "Collect a joining fee"
method: POST
path: "/customers/memberships/{membershipId}/checkout-session/joining-fee"
tags: ["Memberships"]
---

# Collect a joining fee

`POST /customers/memberships/{membershipId}/checkout-session/joining-fee`

This endpoint is used to create the Stripe Checkout session for collecting a joining fee
as well as any pro-rata fees. A `stripe_session_id` is returned which can be passed into
the Stripe.js SDK to redirect the user to the checkout.

## Response `200`

The Stripe Checkout session was successfully created.

- StripeCheckoutSession — A Stripe Checkout Session for collecting either Direct Debit mandate details or a joining-fee/pro-rata payment as part of the membership signup flow.
  - `status` string, required — The status of the membership
  - `account_id` string, required — Stripe Connect account ID that owns the Checkout Session. Pass this to `stripe.redirectToCheckout({ stripeAccount })` in the client so the redirect is scoped to the right merchant account. Tenants on a single Stripe account can ignore it.
  - `url` string, required — The URL to get to the Stripe Checkout session
  - `stripe_session_id` string, required — The Stripe Checkout session ID
  - `rate_price` object, required — The price of the membership rate
    - `amount` integer, required — The amount as an integer of the smallest unit (eg pence)
    - `currency` string, required — The currency which the amount is in, uppercase, in the ISO4217 format
  - `rate_frequency` string, required — The frequency that this membership is billed. The duration is specified as an ISO8601 duration string. See https://en.wikipedia.org/wiki/ISO_8601#Durations

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `404` — The resource couldn't be found

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
