Show more

Use to navigate results, ENTER to select one, ESC to close

Type in any word to easily find the endpoint, property or group of operations you are looking for.

API changelog
Download source
  • JSON OpenAPI specification
  • YAML OpenAPI specification
Documentation
Class Manager
stage
  • dev default
  • prod
  • stage

Topics

  • Introduction
  • Servers

Endpoints

  • Activity Logs
    • List GET
  • Addresses
    • Get addresses GET
    • Update addresses for entity PUT
    • Delete addresses for entity DELETE
  • Auth
    • Check token POST
    • Forgot Password POST
    • Log In POST
    • Log Out POST
    • Reset Password POST
    • List GET
    • Get account permissions GET
    • Revoke DELETE
    • Link Family to Company POST
    • Check User Existence POST
    • Register Company POST
    • Register POST
  • Search
    • Create search key GET
  • Balance
    • List family balances GET
    • Retrieve family balance GET
  • Basket
    • Finalise checkout process by creating transactions and capturing payment POST
    • Get quote GET
  • Bill
    • Get bill GET
  • Tax Rates
    • Get GET
    • Update PUT
    • Delete DELETE
    • List GET
    • Create POST
    • Make Default POST
  • Attendances
    • List GET
    • Create POST
    • Delete Many DELETE
    • Get GET
    • Delete DELETE
    • Restore POST
    • Restore Many POST
  • Attendance Stats
    • Stats GET
  • Attendees
    • List GET
  • Courses
    • Archive POST
    • Archive Many POST
    • Unarchive POST
    • Unarchive Many POST
    • Get GET
    • Delete DELETE
    • Update PATCH
    • List GET
    • Create POST
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
  • Enrolment Adjustments
    • Cancel Enrolment POST
    • Delayed Start Enrolment POST
    • Get GET
    • Delete DELETE
    • List GET
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
    • Make Up Lesson POST
  • Enrolments
    • By Month Chart GET
    • Get GET
    • Delete DELETE
    • List GET
    • Create POST
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
    • Get enrolment unique students count GET
    • Update enrolments PUT
  • Lesson Adjustments
    • Additional Lesson POST
    • Cancel Class POST
    • Cancel Lesson POST
    • Change Lesson Date POST
    • Get GET
    • Delete DELETE
    • List GET
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
  • Lessons
    • List GET
    • List On Date GET
  • Make Up Lessons
    • Delete DELETE
    • List GET
    • Create POST
  • Trial Availabilities
    • List GET
  • Trials
    • Archive POST
    • Archive Many POST
    • Unarchive POST
    • Unarchive Many POST
    • Get GET
    • Update PUT
    • Delete DELETE
    • List GET
    • Create POST
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
  • Waiting Lists
    • Delete DELETE
    • List GET
    • Create POST
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
  • Companies
    • Update PUT
    • Delete DELETE
    • Delete DELETE
    • List GET
    • Get GET
    • Update PUT
    • List GET
    • Update company settings PATCH
    • Update company look and feel settings PATCH
  • Custom Fields
    • Get GET
    • Update PUT
    • Delete DELETE
    • List GET
    • Create POST
    • Get custom field responses GET
    • Update custom field responses PATCH
  • Demos
    • Clear POST
  • Discount Schemes
    • Get GET
    • Delete DELETE
    • List GET
    • Create POST
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
    • Status POST
  • Discount Scheme Values
    • Get GET
    • Update PUT
    • Delete DELETE
    • List GET
    • Create POST
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
  • Contacts
    • Get GET
    • Update PUT
    • Delete DELETE
    • List GET
    • Create POST
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
    • Mark As Primary POST
    • Search GET
  • Families
    • Create POST
    • Archive POST
    • Archive Many POST
    • Unarchive POST
    • Unarchive Many POST
    • Count GET
    • Get GET
    • Update PUT
    • Update POST
    • Delete DELETE
    • List GET
    • Create POST
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
    • Get family invitation link data GET
    • Invite POST
    • Invite Cancel POST
    • Get family invited user data GET
  • Students
    • Archive POST
    • Archive Many POST
    • Unarchive POST
    • Unarchive Many POST
    • List Birthdays GET
    • Count GET
    • Get GET
    • Delete DELETE
    • Update PATCH
    • List GET
    • Create POST
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
  • Agreements
    • List GET
    • Create POST
  • Waivers
    • Archive POST
    • Archive Many POST
    • Unarchive POST
    • Unarchive Many POST
    • Get GET
    • Delete DELETE
    • Update PATCH
    • List GET
    • Create POST
  • FeatureFlags
    • Disables a feature for the logged-in company by an admin POST
    • Disables a feature for the logged-in company POST
    • Disables a feature for all companies POST
    • Enables a feature for the logged-in company by an admin POST
    • Enables a feature for the logged-in company POST
    • Enables a feature for all companies POST
    • Lists all feature flags with their current settings without company-specific values GET
    • Lists all feature flags with their current settings for the logged-in company GET
  • Features
    • Override features by admin POST
    • Get company features GET
    • Update features PATCH
  • Avatars
    • Create an avatar for the entity POST
    • Delete an avatar for the entity DELETE
  • Files
    • Delete files for entity DELETE
    • Create POST
    • Get GET
    • Delete DELETE
    • Get direct upload link POST
  • Holidays
    • Get GET
    • Update PUT
    • Delete DELETE
    • List GET
    • Create POST
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
  • Quickbooks
    • Quickbooksretrieve connection GET
    • Quickbooksauth POST
    • Quickbooksdisconnect POST
    • Quickbooksreset DELETE
    • Quickbookssync all POST
    • Quickbooksurl generator GET
  • Stripe
    • Stripe capture payment intent POST
    • Stripe charge payment method POST
    • Stripe create payment session POST
    • Stripe retrieve refund GET
    • Stripe create refund POST
    • Stripe create setup intent POST
    • Stripe delete payment method DELETE
    • List GET
    • Get onboarding link GET
    • Get Stripe profile link GET
    • Stripe retrieve account GET
    • Stripe retrieve payment intent GET
    • Stripe set default payment method POST
  • Link
    • Process link POST
    • Get GET
  • Locations
    • Archive POST
    • Archive Many POST
    • Unarchive POST
    • Unarchive Many POST
    • Get GET
    • Update PUT
    • Delete DELETE
    • List GET
    • Create POST
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
  • Rooms
    • Archive POST
    • Archive Many POST
    • Unarchive POST
    • Unarchive Many POST
    • Get GET
    • Update PUT
    • Delete DELETE
    • List GET
    • Create POST
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
  • Messages
    • Get GET
    • Delete DELETE
    • List GET
    • Store POST
    • Delete Many DELETE
    • Send POST
  • Message Instances
    • List GET
  • Pay
    • Process payment link POST
    • Retrieve payment link POST
  • Reporting
    • Export Course GET
    • Export Family GET
    • Export Staff GET
    • Export Student GET
    • Export Transaction GET
    • Get Family Stats GET
    • Get Student Stats GET
  • Seasons
    • Archive POST
    • Archive Many POST
    • Unarchive POST
    • Unarchive Many POST
    • Get GET
    • Update PUT
    • Delete DELETE
    • List GET
    • Create POST
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
    • Enrolment Status POST
    • Pricing Scheme POST
  • Pricing Scheme Values
    • Get GET
    • Update PUT
    • Delete DELETE
    • List GET
    • Create POST
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
  • Registration Fees
    • Archive POST
    • Unarchive POST
    • List GET
    • Create POST
    • Get GET
    • Delete DELETE
    • Update PATCH
  • Staff
    • Get staff invitation link data GET
    • Invite POST
    • Invite Cancel POST
    • Get staff invited user data GET
    • Archive POST
    • Archive Many POST
    • Unarchive POST
    • Unarchive Many POST
    • Get staff GET
    • Update PUT
    • Delete DELETE
    • List GET
    • Create POST
    • Delete Many DELETE
    • Restore POST
    • Restore Many POST
  • Transactions
    • By Charge And Payment Chart GET
    • Create credit note POST
    • Create Custom POST
    • Create From Bill POST
    • Create From Season POST
    • Create Manual Payment POST
    • Delete DELETE
    • List GET
  • Users
    • Impersonate POST
    • List GET
    • Update user's email or password PATCH
Powered by Bump.sh
API changelog
Download source
  • JSON OpenAPI specification
  • YAML OpenAPI specification
Documentation
Class Manager

Retrieve payment link

Ask AI
  • Open in ChatGPT
  • Open in Claude

  • View as Markdown
  • Copy as Markdown
POST /v1/payment-links/{paymentLinkId}

Retrieve payment link for given ID

Path parameters

  • paymentLinkId string Required

    Payment link ID

Responses

  • 200 application/json

    successful operation

    Hide response attributes Show response attributes object
    • paymentLink object Required

      Payment Link schema

      Hide paymentLink attributes Show paymentLink attributes object
      • id string Required

        Payment link ID

      • companyId string

        Company ID

      • transactionId string

        Transaction ID

      • createdAt string(date-time) Required

        Created at date

    • aggregateTransaction object Required

      Transaction with related details schema

      Hide aggregateTransaction attributes Show aggregateTransaction attributes object
      • aggregateId string Required

        aggregateId

      • transaction object Required

        Transaction schema

        Hide transaction attributes Show transaction attributes object
        • id string Required

          id

        • companyId string Required

          Company ID

        • familyId string Required

          Family ID

        • familyName string Required

          Family name

        • relatedTransactionId string | null

          Related transaction ID

        • type string Required

          Values are debit or credit.

        • date string(date) Required

          Date of transaction

        • description string Required

          Description of transaction

        • deletedAt string(date-time) | null

          Deleted at date

      • details array[object] Required

        details

        Transaction Details with related entities schema

        Hide details attributes Show details attributes object
        • details object Required

          Transaction Detail schema

          Hide details attributes Show details attributes object
          • id string Required

            id

          • companyId string Required

            Company ID

          • transactionId string Required

            Transaction ID

          • type string Required

            Values are manual-debit, tax, additional-fee, registration-fee, tuition, trial, refund, payment-auto-failed, payment-auto-failed-reversal, discount-credit, payment-manual, discount, discount-tax, credit-note, manual-debit-credit, tax-credit, registration-fee-credit, tuition-credit, trial-credit, payment-auto, payment-pending-card, fee-class-manager, or fee-company.

          • amount integer Required

            Amount of transaction

          • description string Required

            Description of transaction

          • deletedAt string(date-time) | null

            Deleted at date

        • relatedEntities array[object] Required

          relatedEntities

          Transaction Detail Entity schema

          Hide relatedEntities attributes Show relatedEntities attributes object
          • id string Required

            id

          • companyId string Required

            Company ID

          • transactionDetailId string Required

            Transaction Detail ID

          • entityId string Required

            Entity ID

      • stats object Required

        Transaction stats

        Hide stats attributes Show stats attributes object
        • total integer Required

          Total amount of transaction

        • subtotal integer Required

          Subtotal amount of transaction

        • discountTotal integer Required

          Total discount amount of transaction

        • taxTotal integer Required

          Total tax amount of transaction

    • paymentSession object Required
      Hide paymentSession attributes Show paymentSession attributes object
      • paymentIntent object Required
        Hide paymentIntent attributes Show paymentIntent attributes object
        • id string Required

          Payment Intent Id

        • clientSecret string Required

          Payment Intent Client Secret

        • amount integer Required

          Payment Intent Amount

        • status string Required

          Values are canceled, processing, requires_action, requires_capture, requires_confirmation, requires_payment_method, or succeeded.

        • paymentMethod object | null Required
          Hide paymentMethod attributes Show paymentMethod attributes object | null
          • id string Required

            Stripe ID

          • type string Required

            Values are acss_debit, affirm, afterpay_clearpay, alipay, amazon_pay, au_becs_debit, bacs_debit, bancontact, blik, boleto, card, card_present, cashapp, customer_balance, eps, fpx, giropay, grabpay, ideal, interac_present, klarna, konbini, link, mobilepay, multibanco, oxxo, p24, paynow, paypal, pix, promptpay, revolut_pay, sepa_debit, sofort, swish, twint, us_bank_account, wechat_pay, or zip.

          • isDefault boolean Required

            Is default

          • data object Required

            One of:
            StripePaymentMethodCardDataDto object StripePaymentMethodBacsDebitDataDto object
            Hide attributes Show attributes
            • brand string Required

              Values are amex, diners, discover, eftpos_au, jcb, mastercard, unionpay, visa, or unknown.

            • country string Required

              Country

            • expiryMonth integer Required

              Expiry month

            • expiryYear integer Required

              Expiry year

            • cardNumber string Required

              Card number

            • last4 string Required

              Last 4

            Hide attributes Show attributes
            • sortCode string Required

              Sort code

            • accountNumber string Required

              Account number

            • last4 string Required

              Last 4

        • charge object | null Required
          Hide charge attributes Show charge attributes object | null
          • id string Required

            Payment Intent Id

          • amount integer Required

            Payment Intent Amount

          • amountCaptured integer

            Payment Intent Amount Captured

          • amountRefunded integer

            Payment Intent Amount Refunded

          • currency string Required

            Payment Intent Currency

          • refunded boolean Required

            Payment Intent Refunded

          • refunds array[object] Required
            Hide refunds attributes Show refunds attributes object
            • id string Required

              Payment Intent Id

            • amount integer Required

              Refund Amount

            • currency string Required

              Currency

            • status string Required

              Values are pending, requires_action, canceled, succeeded, or failed.

            • createdAt string(date) Required

              Created at

      • customerSession object Required
        Hide customerSession attributes Show customerSession attributes object
        • customerId string

          Customer Id

        • clientSecret string Required

          Customer Session Client Secret

      • ephemeralKey object Required
        Hide ephemeralKey attributes Show ephemeralKey attributes object
        • id string Required

          Ephemeral Key Id

        • secret string Required

          Ephemeral Key Secret

        • associatedObjectId string Required

          Associated Object Id

        • associatedObjectType string Required

          Associated Object Type

POST /v1/payment-links/{paymentLinkId}
curl \
 --request POST 'https://api-dev.classmanager.io/v1/payment-links/{paymentLinkId}'
Response examples (200)
{
  "paymentLink": {
    "id": "pay_xxxxxxxxxxxxxxxxxxxxxxxxxx",
    "companyId": "co_xxxxxxxxxxxxxxxxxxxxxxxxxx",
    "transactionId": "trn_xxxxxxxxxxxxxxxxxxxxxxxxxx",
    "createdAt": "2023-12-05 14:30:41"
  },
  "aggregateTransaction": {
    "aggregateId": "trn_xxxxxxxxxxx",
    "transaction": {
      "id": "trn_123123123123",
      "companyId": "co_123123123123",
      "familyId": "fml_123123123123",
      "familyName": "Potter",
      "relatedTransactionId": "trn_123123123123",
      "type": "debit",
      "date": "2023-12-05",
      "description": "This is a transaction",
      "deletedAt": "2023-12-05 14:30:41"
    },
    "details": [
      {
        "details": {
          "id": "trn_123123123123",
          "companyId": "co_123123123123",
          "transactionId": "trn_123123123123",
          "type": "manual-debit",
          "amount": 100,
          "description": "This is a transaction",
          "deletedAt": "2023-12-05 14:30:41"
        },
        "relatedEntities": [
          {
            "id": "trn_123123123123",
            "companyId": "co_123123123123",
            "transactionDetailId": "trnd_123123123123",
            "entityId": "cls_123123123123"
          }
        ]
      }
    ],
    "stats": {
      "total": 1000,
      "subtotal": 950,
      "discountTotal": 30,
      "taxTotal": 20
    }
  },
  "paymentSession": {
    "paymentIntent": {
      "id": "pm_1234567890",
      "clientSecret": "pm_1234567890_secret_xxxxxxxx",
      "amount": 1999,
      "status": "canceled",
      "paymentMethod": {
        "id": "pm_123456789",
        "type": "acss_debit",
        "isDefault": true,
        "data": {
          "brand": "amex",
          "country": "US",
          "expiryMonth": 12,
          "expiryYear": 2023,
          "cardNumber": "************4242",
          "last4": "4242"
        }
      },
      "charge": {
        "id": "pm_1234567890",
        "amount": 1999,
        "amountCaptured": 1999,
        "amountRefunded": 1999,
        "currency": "usd",
        "refunded": false,
        "refunds": [
          {
            "id": "pm_1234567890",
            "amount": 1999,
            "currency": "usd",
            "status": "pending",
            "createdAt": "2023-12-05"
          }
        ]
      }
    },
    "customerSession": {
      "customerId": "cus_1234567890",
      "clientSecret": "cs_1234567890_secret_xxxxxxxx"
    },
    "ephemeralKey": {
      "id": "ephkey_xxxxxxxx",
      "secret": "ek_xxxxxxxx",
      "associatedObjectId": "cus_xxxxxxxx",
      "associatedObjectType": "customer"
    }
  }
}