Skip to content

hailer.payment

Internal

These endpoints back Hailer's own marketplace billing flows. They are documented for completeness and are not intended for third-party apps.

Pricing and purchase operations for marketplace products.

MethodHost opReturns
createPricing(request)payment.createPricingPromise<PricingData>
updatePricing(request)payment.updatePricingPromise<PricingData>
getPricing(productId)payment.getPricingPromise<PricingData | null>
createPurchase(request)payment.createPurchasePromise<CreatePurchaseResponse>
getPurchases(workspaceId)payment.getPurchasesPromise<Purchase[]>
calculateStripeTax(request)payment.calculateStripeTaxPromise<StripeTaxCalculationResponse>
  • getPricing(productId) sends { productId } and returns the product's pricing, or null.
  • getPurchases(workspaceId) sends { workspaceId } and returns the workspace's purchases (defaults to []).

Request/response shapes (CreatePricingRequest / UpdatePricingRequest, PricingData, CreatePurchaseRequest / CreatePurchaseResponse, Purchase, StripeTaxCalculationRequest / StripeTaxCalculationResponse) are in the Types reference.

Hailer Developer Documentation