UNPKG

@gnosticdev/highlevel-sdk

Version:
1,302 lines 113 kB
type paths = { '/payments/custom-provider/connect': { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Fetch given provider config * @description API for fetching an existing payment config for given location */ get: operations['fetch-config']; put?: never; /** * Create new provider config * @description API to create a new payment config for given location */ post: operations['create-config']; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; '/payments/custom-provider/disconnect': { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Disconnect existing provider config * @description API to disconnect an existing payment config for given location */ post: operations['disconnect-config']; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; '/payments/custom-provider/provider': { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Create new integration * @description API to create a new association for an app and location */ post: operations['create-integration']; /** * Deleting an existing integration * @description API to delete an association for an app and location */ delete: operations['create-integration_delete']; options?: never; head?: never; patch?: never; trace?: never; }; '/payments/integrations/provider/whitelabel': { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List White-label Integration Providers * @description The "List White-label Integration Providers" API allows to retrieve a paginated list of integration providers. Customize your results by filtering whitelabel integration providers(which are built directly on top of Authorize.net or NMI) based on name or paginate through the list using the provided query parameters. This endpoint provides a straightforward way to explore and retrieve integration provider information. */ get: operations['list-integration-providers']; put?: never; /** * Create White-label Integration Provider * @description The "Create White-label Integration Provider" API allows adding a new payment provider integration to the system which is built on top of Authorize.net or NMI. Use this endpoint to create a integration provider with the specified details. Ensure that the required information is provided in the request payload. This endpoint can be only invoked using marketplace-app token */ post: operations['create-integration provider']; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; '/payments/orders': { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List Orders * @description The "List Orders" API allows to retrieve a paginated list of orders. Customize your results by filtering orders based on name, alt type, order status, payment mode, date range, type of source, contact, funnel products or paginate through the list using the provided query parameters. This endpoint provides a straightforward way to explore and retrieve order information. */ get: operations['list-orders']; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; '/payments/orders/{orderId}': { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get Order by ID * @description The "Get Order by ID" API allows to retrieve information for a specific order using its unique identifier. Use this endpoint to fetch details for a single order based on the provided order ID. */ get: operations['get-order-by-id']; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; '/payments/orders/{orderId}/fulfillments': { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List fulfillment * @description List all fulfillment history of an order */ get: operations['list-order-fulfillment']; put?: never; /** * Create order fulfillment * @description The "Order Fulfillment" API facilitates the process of fulfilling an order. */ post: operations['create-order-fulfillment']; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; '/payments/subscriptions': { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List Subscriptions * @description The "List Subscriptions" API allows to retrieve a paginated list of subscriptions. Customize your results by filtering subscriptions based on name, alt type, subscription status, payment mode, date range, type of source, contact, subscription id, entity id, contact or paginate through the list using the provided query parameters. This endpoint provides a straightforward way to explore and retrieve subscription information. */ get: operations['list-subscriptions']; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; '/payments/subscriptions/{subscriptionId}': { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get Subscription by ID * @description The "Get Subscription by ID" API allows to retrieve information for a specific subscription using its unique identifier. Use this endpoint to fetch details for a single subscription based on the provided subscription ID. */ get: operations['get-subscription-by-id']; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; '/payments/transactions': { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List Transactions * @description The "List Transactions" API allows to retrieve a paginated list of transactions. Customize your results by filtering transactions based on name, alt type, transaction status, payment mode, date range, type of source, contact, subscription id, entity id or paginate through the list using the provided query parameters. This endpoint provides a straightforward way to explore and retrieve transaction information. */ get: operations['list-transactions']; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; '/payments/transactions/{transactionId}': { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get Transaction by ID * @description The "Get Transaction by ID" API allows to retrieve information for a specific transaction using its unique identifier. Use this endpoint to fetch details for a single transaction based on the provided transaction ID. */ get: operations['get-transaction-by-id']; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; }; type webhooks = Record<string, never>; type components = { schemas: { AmountSummary: { /** * @description Discount value on order. * @example 10 */ discount?: number; /** * @description Order sub-total value. * @example 100 */ subtotal: number; }; BadRequestDTO: { /** @example Bad Request */ message?: string; /** @example 400 */ statusCode?: number; }; ConnectCustomProvidersConfigDto: { /** @description Live config containing api-key and publishable key for live payments */ live: components['schemas']['CustomProviderKeys']; /** @description Test config containing api-key and publishable-key for test payments */ test: components['schemas']['CustomProviderKeys']; }; ConnectCustomProvidersResponseSchema: { /** * @description The unique identifier for the custom provider. * @example 662a44ad19a2a44d3cd9d749 */ _id: string; /** * Format: date-time * @description The creation timestamp of the custom provider. * @example 2023-11-20T10:23:36.515Z */ createdAt: string; /** * @description Whether the config is deleted or not. true represents config is deleted * @example true */ deleted: boolean; /** * @description Description of payment gateway. Shown on the payments integrations page as subtext * @example This payment gateway supports payments in India via UPI, Net banking, cards and wallets. */ description: string; /** * @description Public image url for logo of the payment gateway displayed on the payments integrations page. * @example https://testsubscription.paypal.com */ imageUrl: string; /** * @description Location id * @example Lk3nlfk4lxlelVEwcW */ locationId: string; /** * @description The application id of marketplace * @example 65f0b217a05c774da7f1efa5 */ marketplaceAppId: string; /** * @description The name of the custom provider * @example Company Paypal Integration */ name: string; /** * @description Payment provider details. * @example { live: { liveMode: true }, test: { liveMode: false, apiKey: "y5ZQxryRFXZHvUJZdLXXXXXX", publishableKey: "rzp_test_zPRoVMLOa0A9wo" }} */ paymentProvider?: Record<string, never>; /** * @description This url will be loaded in iFrame to start a payment session. * @example https://testpayment.paypal.com */ paymentsUrl: string; /** * @description The url used for querying payments related events. Ex. verify, refund, subscription etc. * @example https://testsubscription.paypal.com */ queryUrl: string; /** * @description Trace id of the custom provider. * @example 302d2cf4-1ba0-4bf5-bc3b-f8fa76fda58a */ traceId?: string; /** * Format: date-time * @description The last update timestamp of the custom provider. * @example 2024-01-23T09:57:04.846Z */ updatedAt: string; }; CreateCustomProvidersDto: { /** * @description Description of payment gateway. Shown on the payments integrations page as subtext * @example This payment gateway supports payments in India via UPI, Net banking, cards and wallets. */ description: string; /** * @description Public image url for logo of the payment gateway displayed on the payments integrations page. * @example https://testsubscription.paypal.com */ imageUrl: string; /** * @description The name of the custom provider * @example Company Paypal Integration */ name: string; /** * @description This url will be loaded in iFrame to start a payment session. * @example https://testpayment.paypal.com */ paymentsUrl: string; /** * @description The url used for querying payments related events. Ex. verify, refund, subscription etc. * @example https://testsubscription.paypal.com */ queryUrl: string; }; CreateCustomProvidersResponseSchema: { /** * @description The unique identifier for the custom provider. * @example 662a44ad19a2a44d3cd9d749 */ _id: string; /** * Format: date-time * @description The creation timestamp of the custom provider. * @example 2023-11-20T10:23:36.515Z */ createdAt: string; /** * @description Whether the config is deleted or not. true represents config is deleted * @example true */ deleted: boolean; /** * @description Description of payment gateway. Shown on the payments integrations page as subtext * @example This payment gateway supports payments in India via UPI, Net banking, cards and wallets. */ description: string; /** * @description Public image url for logo of the payment gateway displayed on the payments integrations page. * @example https://testsubscription.paypal.com */ imageUrl: string; /** * @description Location id * @example Lk3nlfk4lxlelVEwcW */ locationId: string; /** * @description The application id of marketplace * @example 65f0b217a05c774da7f1efa5 */ marketplaceAppId: string; /** * @description The name of the custom provider * @example Company Paypal Integration */ name: string; /** * @description Payment provider details. * @example { live: { liveMode: true }, test: { liveMode: false, apiKey: "y5ZQxryRFXZHvUJZdLXXXXXX", publishableKey: "rzp_test_zPRoVMLOa0A9wo" }} */ paymentProvider?: Record<string, never>; /** * @description This url will be loaded in iFrame to start a payment session. * @example https://testpayment.paypal.com */ paymentsUrl: string; /** * @description The url used for querying payments related events. Ex. verify, refund, subscription etc. * @example https://testsubscription.paypal.com */ queryUrl: string; /** * @description Trace id of the custom provider. * @example 302d2cf4-1ba0-4bf5-bc3b-f8fa76fda58a */ traceId?: string; /** * Format: date-time * @description The last update timestamp of the custom provider. * @example 2024-01-23T09:57:04.846Z */ updatedAt: string; }; CreateFulfillmentDto: { /** * @description Location Id or Agency Id * @example 6578278e879ad2646715ba9c */ altId: string; /** @enum {string} */ altType: 'location'; /** @description Fulfilled items */ items: components['schemas']['FulfillmentItems'][]; /** * @description Need to send a notification to customer * @example true */ notifyCustomer: boolean; /** @description Fulfillment tracking information */ trackings: components['schemas']['FulfillmentTracking'][]; }; CreateFulfillmentResponseDto: { /** @description fulfillment data */ data: components['schemas']['FulfillmentSchema']; /** * @description Status of api action * @example true */ status: boolean; }; CreateWhiteLabelIntegrationProviderDto: { /** * @description location Id / company Id based on altType * @example 6578278e879ad2646715ba9c */ altId: string; /** * @description Alt Type * @example location * @enum {string} */ altType: 'location'; /** * @description A brief description providing additional information about the integration provider. * @example Description */ description: string; /** * @description The URL to an image representing the integration provider. The imageUrl should start with "https://" and ensure that this URL is publicly accessible. * @example https://example.com/image.jpg */ imageUrl: string; /** * @description The type of payment provider associated with the integration provider. * @example { * "AUTHORIZE_NET": "authorize-net", * "NMI": "nmi" * } * @enum {string} */ provider: 'authorize-net' | 'nmi'; /** * @description The title or name of the integration provider. * @example Title */ title: string; /** * @description A unique name given to the integration provider, uniqueName must start and end with a character. Only lowercase characters and hyphens (-) are supported * @example easy-direct */ uniqueName: string; }; CreateWhitelabelIntegrationResponseDto: { /** * @description The unique identifier of the integration provider. * @example 65cb47dda50f4f13ced4b870 */ _id: string; /** * @description The altId / locationId of the integration provider. * @example Z4Bxl8J4SaPEPLq9IQ8g */ altId: string; /** * @description The altType of the integration provider. * @example location */ altType: string; /** * Format: date-time * @description The timestamp when the integration provider was created. * @example 2024-02-13T10:43:41.026Z */ createdAt: string; /** * @description A brief description providing additional information about the integration provider. * @example Lorem */ description: string; /** * @description The URL to an image representing the integration provider. * @example https://example.com/assets/pmd/img/payments/nmi-logo.webp */ imageUrl: string; /** * @description The payment provider associated with the integration provider. * @example nmi */ provider: string; /** * @description The route name associated with the integration provider. * @example epd */ route: string; /** * @description The title or name of the integration provider. * @example Example */ title: string; /** * Format: date-time * @description The timestamp when the integration provider was last updated. * @example 2024-02-13T10:43:41.026Z */ updatedAt: string; }; CustomProviderKeys: { /** * @description Api-key for custom payment provider config * @example y5ZQxryRFXZHvUJZdLeXXXXX */ apiKey: string; /** * @description Publishable-key for custom payment provider config * @example rzp_test_zPRoVMLOa0XXXX */ publishableKey: string; }; CustomRRuleOptionsDto: { /** * @description Max number of task executions * @example 10 */ count?: number; /** * @description -1, 1, 2, 3, ..., 27, 28 * @example 15 */ dayOfMonth?: number; /** * @example mo * @enum {string} */ dayOfWeek?: 'mo' | 'tu' | 'we' | 'th' | 'fr' | 'sa' | 'su'; /** * @description Execute task number of days before * @example 5 */ daysBefore?: number; /** * @description End date in YYYY-MM-DD format * @example 2029-11-01 */ endDate?: string; /** * @description End time in HH:mm:ss format * @example 18:45:00 */ endTime?: string; /** @example 2 */ interval: number; /** * @example monthly * @enum {string} */ intervalType: 'yearly' | 'monthly' | 'weekly' | 'daily' | 'hourly' | 'minutely' | 'secondly'; /** * @example jan * @enum {string} */ monthOfYear?: 'jan' | 'feb' | 'mar' | 'apr' | 'may' | 'jun' | 'jul' | 'aug' | 'sep' | 'oct' | 'nov' | 'dec'; /** * @description -1, 1, 2, 3, 4 * @example -1 */ numOfWeek?: number; /** * @description Start date in YYYY-MM-DD format * @example 2023-01-01 */ startDate: string; /** * @description Start time in HH:mm:ss format * @example 20:45:00 */ startTime?: string; }; DefaultPriceResponseDto: { /** * @description The unique identifier for the price. * @example 655b33aa2209e60b6adb87a7 */ _id: string; /** * @description Continue selling when out of stock * @example true */ allowOutOfStockPurchases?: boolean; /** * @description The amount of the price. * @example 199999 */ amount: number; /** * @description Available inventory stock quantity * @example 5 */ availableQuantity?: number; /** * @description The compare-at price for comparison purposes. * @example 2000000 */ compareAtPrice?: number; /** * Format: date-time * @description The creation timestamp of the price. * @example 2023-11-20T10:23:38.645Z */ createdAt?: string; /** * @description The currency code for the price. * @example INR */ currency: string; /** * @description The unique identifier for the location. * @example 3SwdhCsvxI8Au3KsPJt6 */ locationId?: string; /** @description An array of membership offers associated with the price. */ membershipOffers?: components['schemas']['MembershipOfferDto'][]; /** * @description The name of the price. * @example Red / S */ name: string; /** * @description The unique identifier for the associated product. * @example 655b33a82209e60b6adb87a5 */ product?: string; /** @description The recurring details of the price (if type is recurring). */ recurring?: components['schemas']['RecurringDto']; /** * @description Indicates whether inventory tracking is enabled. * @example null */ trackInventory?: boolean; /** * @description The type of the price (e.g., one_time). * @example one_time * @enum {string} */ type: 'one_time' | 'recurring'; /** * Format: date-time * @description The last update timestamp of the price. * @example 2024-01-23T09:57:04.852Z */ updatedAt?: string; /** * @description The unique identifier for the user. * @example 6YAtzfzpmHAdj0e8GkKp */ userId?: string; /** * @description An array of variant option IDs associated with the price. * @example [ * "h4z7u0im2q8", * "h3nst2ltsnn" * ] */ variantOptionIds?: string[]; }; DefaultProductResponseDto: { /** * @description The unique identifier for the product. * @example 655b33a82209e60b6adb87a5 */ _id: string; /** * @description Indicates whether the product is available in-store. * @example true */ availableInStore?: boolean; /** * @description An array of category Ids for the product * @example [ * "65d71377c326ea78e1c47df5", * "65d71377c326ea78e1c47d34" * ] */ collectionIds?: string[]; /** * Format: date-time * @description The creation timestamp of the product. * @example 2023-11-20T10:23:36.515Z */ createdAt: string; /** * @description product description * @example This is a really awesome product */ description?: string; /** * @description The URL for the product image. * @example https://storage.googleapis.com/ghl-test/3SwdhCsvxI8Au3KsPJt6/media/65af8d5df88bdb4b1022ee90.png */ image?: string; /** * @description A boolean representing whether a product label is enabled or not * @default false * @example true */ isLabelEnabled: boolean; /** * @description Is automatic attachment of taxes enabled for the product * @default false * @example true */ isTaxesEnabled: boolean; /** @description The Product label details */ label?: components['schemas']['ProductLabelDto']; /** * @description The unique identifier for the location. * @example 3SwdhCsvxI8Au3KsPJt6 */ locationId: string; /** @description An array of medias for the product. */ medias?: components['schemas']['ProductMediaDto'][]; /** * @description The name of the product. * @example Awesome Product */ name: string; /** * @description The type of the product (e.g., PHYSICAL). * @example PHYSICAL */ productType: string; /** @description The SEO information for the product requested */ seo?: components['schemas']['ProductSEODto']; /** * @description The slug of the product by which the product will be navigated * @example washing-machine */ slug?: string; /** * @description The statement descriptor for the product. * @example abcde */ statementDescriptor?: string; /** * @description An array of ids of Taxes attached to the Product. If the expand query includes tax, the taxes will be of type `ProductTaxDto`. Please refer to the `ProductTaxDto` for additional details. * @example [ * "654492a4e6bef380114de15a" * ] */ taxes?: string[]; /** * Format: date-time * @description The last update timestamp of the product. * @example 2024-01-23T09:57:04.846Z */ updatedAt: string; /** * @description The unique identifier for the user who created the product. * @example 6YAtzfzpmHAdj0e8GkKp */ userId?: string; /** @description An array of variants for the product. */ variants?: components['schemas']['ProductVariantDto'][]; }; DeleteCustomProvidersConfigDto: { /** * @description Whether the config is for test mode or live mode. true represents config is for live payments * @example true */ liveMode: boolean; }; DeleteCustomProvidersResponseSchema: { /** * @description Whether the custom provider config is disconnect or not. true represents config is disconnect * @example true */ success: boolean; }; DisconnectCustomProvidersResponseSchema: { /** * @description Whether the custom provider config is disconnect or not. true represents config is disconnect * @example true */ success: boolean; }; FulfilledItem: { /** * @description The id of product price * @example 6578278e879ad2646715ba9c */ _id: string; /** * @description Name * @example Iphone 15 pro */ name: string; /** @description Price details */ price: components['schemas']['DefaultPriceResponseDto']; /** @description Product details */ product: components['schemas']['DefaultProductResponseDto']; /** * @description The no of quantity of the current fulfilled item * @example 1 */ qty: number; }; FulfillmentItems: { /** * @description The id of product price * @example 6578278e879ad2646715ba9c */ priceId: string; /** * @description The no of quantity of the item * @example 1 */ qty: number; }; FulfillmentSchema: { /** * @description The unique identifier for the fulfillment item. * @example 655b33a82209e60b6adb87a5 */ _id: string; /** * @description Location Id or Agency Id * @example 6578278e879ad2646715ba9c */ altId: string; /** @enum {string} */ altType: 'location'; /** * @description created at * @example 2023-12-12T09:27:42.355Z */ createdAt: string; /** @description Fulfilled items */ items: components['schemas']['FulfilledItem'][]; /** @description Fulfillment tracking information */ trackings: components['schemas']['FulfillmentTracking'][]; /** * @description updated at * @example 2023-12-12T09:27:42.355Z */ updatedAt: string; }; FulfillmentTracking: { /** * @description Shipping carrier name * @example FedEx */ shippingCarrier?: string; /** * @description Tracking number provided by the shipping carrier * @example 40012345678 */ trackingNumber?: string; /** * @description Tracking URL * @example https://www.fedex.com/wtrk/track/?trknbr=40012345678 */ trackingUrl?: string; }; GetCustomProvidersResponseSchema: { /** * @description The unique identifier for the custom provider. * @example 662a44ad19a2a44d3cd9d749 */ _id: string; /** * Format: date-time * @description The creation timestamp of the custom provider. * @example 2023-11-20T10:23:36.515Z */ createdAt: string; /** * @description Whether the config is deleted or not. true represents config is deleted * @example true */ deleted: boolean; /** * @description Description of payment gateway. Shown on the payments integrations page as subtext * @example This payment gateway supports payments in India via UPI, Net banking, cards and wallets. */ description: string; /** * @description Public image url for logo of the payment gateway displayed on the payments integrations page. * @example https://testsubscription.paypal.com */ imageUrl: string; /** * @description Location id * @example Lk3nlfk4lxlelVEwcW */ locationId: string; /** * @description The application id of marketplace * @example 65f0b217a05c774da7f1efa5 */ marketplaceAppId: string; /** * @description The name of the custom provider * @example Company Paypal Integration */ name: string; /** * @description Payment provider details. * @example { live: { liveMode: true }, test: { liveMode: false, apiKey: "y5ZQxryRFXZHvUJZdLXXXXXX", publishableKey: "rzp_test_zPRoVMLOa0A9wo" }} */ paymentProvider?: Record<string, never>; /** * @description This url will be loaded in iFrame to start a payment session. * @example https://testpayment.paypal.com */ paymentsUrl: string; /** * @description The url used for querying payments related events. Ex. verify, refund, subscription etc. * @example https://testsubscription.paypal.com */ queryUrl: string; /** * @description Trace id of the custom provider. * @example 302d2cf4-1ba0-4bf5-bc3b-f8fa76fda58a */ traceId?: string; /** * Format: date-time * @description The last update timestamp of the custom provider. * @example 2024-01-23T09:57:04.846Z */ updatedAt: string; }; GetOrderResponseSchema: { /** * @description The unique identifier for the order. * @example 653f5e0cde5a1314e62a837c */ _id: string; /** * @description AltId is the unique identifier eg: location id. * @example 3SwdhCu3svxI8AKsPJt6 */ altId: string; /** * @description AltType is the type of identifier. * @example location */ altType: string; /** * @description Order value. * @example 100 */ amount?: number; /** * @description Amount details of the order. * @example { subtotal: 100, discount: 5 } */ amountSummary?: components['schemas']['AmountSummary']; /** * @description Contact id corresponding to the order. * @example XPLSw2SVagl12LMDeTmQ */ contactId?: string; /** * @description Contact details of the order. * @example { last_name: "Mcclain", type: "lead", first_name_lower_case: "rogan", email: "anish+11@gohighlevel.com", last_name_lower_case: "mcclain", location_id: "o6241QsiRwUIJHyjuhos", company_name: "Jordan and Cox Trading"} */ contactSnapshot?: Record<string, never>; /** * @description Coupon details of the order. * @example { code: "FEST10", _id: "63455e48901b43d4ef364a20" } */ coupon?: Record<string, never>; /** * Format: date-time * @description The creation timestamp of the order. * @example 2023-11-20T10:23:36.515Z */ createdAt: string; /** * @description Currency in which order was created. * @example USD */ currency?: string; /** * @description Fingerprint id of the order. * @example 5d51db5a-42b0-4b04-ba88-2c046c982a3a */ fingerprint?: string; /** * @description Fulfillment status of the order. * @example unfulfilled */ fulfillmentStatus?: string; /** * @description Item details of the order. * @example { _id: 61dd33e88058b9f967ca79dc, authorizeAmount: 0, locationId: "SBAWb4yu7A4LSc0skQ6g", name: "Sample Product": price: {}, product: { name: "Testing product", productType: "SERVICE" }} */ items?: string[]; /** * @description Order is in live / test mode. * @example false */ liveMode?: boolean; /** * @description Is test order. * @example false */ markAsTest?: boolean; /** * @description Meta details of the order. * @example { couponSessionExpired: true } */ meta?: Record<string, never>; /** * @description Source details of the order. * @example { type: "invoice", id: "61dd48ff65b013bc39bb09c6" } */ source?: components['schemas']['OrderSource']; /** * @description The status of the order (e.g., completed). * @example completed */ status: string; /** * @description Trace id of the order. * @example d3b16a92-a8ed-4e6b-8467-844750f78ed5 */ traceId?: string; /** * @description Tracking id of the order. * @example 63319ef9-de0a-4c84-aebd-3585fb4a0cdf */ trackingId?: string; /** * Format: date-time * @description The last update timestamp of the order. * @example 2024-01-23T09:57:04.846Z */ updatedAt: string; }; GetSubscriptionResponseSchema: { /** * @description The unique identifier for the subscription. * @example 64bf78af39118e4011926cba */ _id: string; /** * @description AltId is the unique identifier eg: location id. * @example 3SwdhCu3svxI8AKsPJt6 */ altId: string; /** * @description AltType is the type of identifier. * @example location */ altType: Record<string, never>; /** * @description Subscription value. * @example 100 */ amount?: number; /** * @description Auto payment details of the subscription. * @example { customerId: "908879612", paymentMethodId: "908646635" } */ autoPayment?: Record<string, never>; /** * Format: date-time * @description Cancellation timestamp of the subscription. * @example 2023-11-20T10:23:36.515Z */ canceledAt?: string; /** * @description User id who cancelled the subscription. * @example qUuXUiB2AiA2DIthEicP */ canceledBy?: string; /** * @description Contact id corresponding to the subscription. * @example XPLSw2SVagl12LMDeTmQ */ contactId?: string; /** * @description Contact details of the subscriber. * @example { last_name: "Mcclain", type: "lead", first_name_lower_case: "rogan", email: "anish+11@gohighlevel.com", last_name_lower_case: "mcclain", location_id: "o6241QsiRwUIJHyjuhos", company_name: "Jordan and Cox Trading"} */ contactSnapshot?: Record<string, never>; /** * @description Coupon details of the subscription. * @example { _id: "6374c6926d119a393fe1e556", usageCount: 5260, altId: "jVFIxsMY19D94nOSIOEO", altType: "location", name: "FREE-100%", code: "FREE100", discountType: "percentage", discountValue: 100 } */ coupon?: Record<string, never>; /** * Format: date-time * @description The creation timestamp of the subscription. * @example 2023-11-20T10:23:36.515Z */ createdAt: string; /** * @description Currency in which subscription was made. * @example USD */ currency?: string; /** * @description Entity id for the subscription. e.g: order id * @example 62f4db0f3059ecee61379012 */ entityId?: string; /** * @description Entity source details for the subscription. * @example { type: "funnel", id: "lx6ROqruHGVQD2PZwFxK", subType: "upsell", name: "test funnel" } */ entitySource?: components['schemas']['OrderSource']; /** * @description Entity type of subscription (eg: order). * @example order */ entityType?: string; /** * @description Ip address from where subscription was initiated. * @example 103.100.16.82 */ ipAddress?: string; /** * @description Subscription is in live / test mode. * @example false */ liveMode?: boolean; /** * @description Is test subscription. * @example false */ markAsTest?: boolean; /** * @description Meta details of the subscription. * @example { collection: "transactionsv2", id: "6320652f0f664b6632006920" } */ meta?: Record<string, never>; /** * @description Payment provider details for the subscription. * @example { type: "paypal", connectedAccount: { _id: "64410debdc8f3b0503523abb", merchantClientId: "AeXtjrxdgsJiCPwQt5jML5pH-0mwmLs-tH7ub4Uo3IrDKvRl34FvJy8niI6E1wmS_pryIRdNllyVl58b" } } */ paymentProvider?: Record<string, never>; /** * @description Recurring product details of the subscription. * @example { locationId: "Z4Bxl8J4SaPEPLq9IQ8g", funnel: "bQHJWKcyjiKjk4BHv91g", step: "2281a993-8a75-4b48-9912-571f29c99a74", name: "Sofa Set" } */ recurringProduct?: Record<string, never>; /** * @description Scedule details for the subscription. * @example { collection: "transactionsv2", id: "6320652f0f664b6632006920" } */ schedule?: components['schemas']['ScheduleOptionsDto']; /** * @description Subscription status. * @example active */ status?: Record<string, never>; /** * @description Subscription id for subscription. * @example I-0UE609H8E43P */ subscriptionId?: string; /** * @description Snapshot of subscription. * @example { status: "ACTIVE", status_update_time: "2022-08-16T11:06:53Z", id: "I-0UE609H8E43P", plan_id: "P-82K11750F0313430KMLRGE6Y", start_time: "2022-08-16T11:05:31Z", quantity: 1 } */ subscriptionSnapshot?: Record<string, never>; /** * @description Trace id of the subscription. * @example 302d2cf4-1ba0-4bf5-bc3b-f8fa76fda58a */ traceId?: string; /** * Format: date-time * @description The last update timestamp of the subscription. * @example 2024-01-23T09:57:04.846Z */ updatedAt: string; }; GetTxnResponseSchema: { /** * @description The unique identifier for the transaction. * @example 61dd0feac077f72010f78804 */ _id: string; /** * @description AltId is the unique identifier eg: location id. * @example 3SwdhCu3svxI8AKsPJt6 */ altId: string; /** * @description AltType is the type of identifier. * @example location */ altType: string; /** * @description Transaction value. * @example 100 */ amount?: number; /** * @description Transaction amount refunded. * @example 10 */ amountRefunded?: number; /** * @description Charge id for transaction. * @example in_1KGcXDCScnf89tZohCsmImwE */ chargeId?: string; /** * @description Charge snapshot of transaction. * @example { id: "in_1KGcXDCScnf89tZohCsmImwE", object: "invoice", account_country: "US", account_name: "GHL-Testing" } */ chargeSnapshot?: Record<string, never>; /** * @description Contact id corresponding to the transaction. * @example XPLSw2SVagl12LMDeTmQ */ contactId?: string; /** * @description Contact details of the transaction. * @example { last_name: "Mcclain", type: "lead", first_name_lower_case: "rogan", email: "anish+11@gohighlevel.com", last_name_lower_case: "mcclain", location_id: "o6241QsiRwUIJHyjuhos", company_name: "Jordan and Cox Trading"} */ contactSnapshot?: Record<string, never>; /** * Format: date-time * @description The creation timestamp of the transaction. * @example 2023-11-20T10:23:36.515Z */ createdAt: string; /** * @description Currency in which transaction was made. * @example USD */ currency?: string; /** * @description Entity id for the transaction. e.g: order id * @example 61dd0fe9c077f73e67f78803 */ entityId?: string; /** * @description Entity source details for the transaction. * @example { type: "funnel", id: "BDBMEghdIUaqMPEsK349", subType: "two_step_order_form", name: "new funnel" } */ entitySource?: components['schemas']['OrderSource']; /** * @description Entity type of transaction (eg: order). * @example order */ entityType?: string; /** * @description Invoice id for the transaction. * @examp