Appearance
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.
| Method | Host op | Returns |
|---|---|---|
createPricing(request) | payment.createPricing | Promise<PricingData> |
updatePricing(request) | payment.updatePricing | Promise<PricingData> |
getPricing(productId) | payment.getPricing | Promise<PricingData | null> |
createPurchase(request) | payment.createPurchase | Promise<CreatePurchaseResponse> |
getPurchases(workspaceId) | payment.getPurchases | Promise<Purchase[]> |
calculateStripeTax(request) | payment.calculateStripeTax | Promise<StripeTaxCalculationResponse> |
getPricing(productId)sends{ productId }and returns the product's pricing, ornull.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.