FlyFishFinder API

Orders

This API is responsible for handling Stripe checkout sessions, subscriptions, and other order-related functionality for FlyFishFinder.

POST Get Checkout Session

/api/orders/getCheckoutSession

Body

  • sessionId: ID of the Stripe checkout session

Retrieves details of a specific Stripe checkout session, verifying it belongs to the requesting user

POST Create Checkout Session

/api/orders/createCheckoutSession

Body

  • priceId: Stripe price ID for the product
  • email: (optional) Customer email address
  • stripeCustomerID: (optional) Stripe customer ID
  • promoCode: (optional) Promotion code to apply
  • uid: User ID

Creates a new Stripe checkout session for subscription purchases with optional promotional discounts

POST Get Avant Order Details

/api/orders/getAvantOrderDetails

Body

  • sessionId: ID of the Stripe checkout session

Retrieves detailed order information including the subscription associated with a checkout session

GET Get Product Datafeed

/api/orders/getProductDatafeed

No parameters required

Returns a CSV file containing product information for integration with external services

POST Cancel User Stripe Subscription

/api/orders/cancelUserStripeSubscription

Body

  • subscriptionID: ID of the Stripe subscription to cancel
  • cancellationDetails: (optional) Object containing cancellation feedback and comments

Cancels a user's Stripe subscription

POST Get Stripe Subscription

/api/orders/getStripeSubscription

Body

  • subscriptionID: ID of the Stripe subscription

Retrieves details about a specific Stripe subscription