Platform
ChangelogAPI Changelog
Every change to the PaymentHooks API, newest first, with the date it went live and the Node SDK version that types it.
2026-11-28 — Inline products named by category and item, Pay once offered by defaultLatest
`productCategory` on inline recurring lines names the product and its price; subscription checkouts offer Pay once unless switched off; a subscription paid in another currency renews in it.
productCategoryon inline recurring line items andpriceData(optional, max 100): the product is named "<category> - <item>" (e.g. "Web Hosting - Starter") and its price<category>_<item>(e.g.web_hosting_starter,com_domain_registration; a multi-interval cycle adds e.g._3month). The name has no currency or amount: one price holds an amount per currency (its currency options), and a new version keeps the name; an automatic name from the earlier_<currency>_<amount>format is replaced the next time the item is sold. The price is looked up inside the product byproductKeyand cycle first and created in your default currency only when missing. Customers never see these names.
- Pay once is offered on every subscription checkout by default:
payOnceOptionautonow offers it unless Settings > Subscriptions > Offer Pay once is switched off.offon a session still hides it; mandate re-authorisation and Retry Payment checkouts never show it. - A subscription checkout charged in another currency than the session's (a regional customer of a default-currency price) creates the subscription in the charged currency, at the price's exact amount in it or the amount the checkout converted, and renews at that amount without converting again.
2026-11-26 — Shipping rates on checkouts, payment links, invoices and quotes, taxed at the destination
Charge a fixed shipping rate, or let the customer choose from up to five on the hosted checkout. Shipping is taxed where the goods are delivered, is part of the total that is charged, and appears on receipts, invoices, the tax report and webhooks.
Node SDK: @paymenthooks/sdk@5.3.0
- POST /v1/checkout-sessions takes
shippingOptions(up to 5 rates:displayName,itemLocalCurrencyAmount, optionalid,taxCodetc_shippingortc_nontaxable,taxBehaviorexclusiveorinclusive) andshippingRateId. Payment mode only. The first rate, orshippingRateId, is preselected. The customer picks a rate on the hosted checkout, and the session is re-priced and re-taxed. The session returnsitemShippingLocalCurrencyAmount/itemShippingAmountUsdCents(the net, inside the total) andshippingRatewith itstaxLocalCurrencyAmount. - Shipping is taxed at the customer's address with the items. In the EU, the UK and GST countries it follows the goods: it is split across their rates in proportion to their value. In the US it follows each state's rule (exempt, taxable, or taxable with the goods). Reverse charge, exemption and registration apply to it as to any line. A coupon never discounts shipping. Tax you send yourself (
taxRate,itemTaxLocalCurrencyAmount) covers the items only. - POST /v1/payment-links takes
shippingOptions; every checkout the link opens offers them. POST /v1/invoices and POST /v1/quotes take oneshippingRate, taxed with the lines and included in the total. An accepted quote's invoice keeps its shipping. Invalid rates are 400VALIDATION_ERRORnamingshippingOptionsorshippingRate. - Receipts, invoice and quote PDFs, and the hosted invoice and quote pages print a "Shipping (name)" row. The tax report files shipping as its own line at the rate or rates it took.
- Webhook
checkout.sessionobjects carry Stripe'sshipping_options,shipping_cost(amount_subtotal,amount_tax,amount_total,shipping_rate,shipping_rate_data,taxes) andtotal_details.amount_shipping.invoiceobjects carryshipping_cost. Amounts are incurrency, plusamount_usd_centsandusd_to_local_currency_rate. - Node SDK 5.3.0 adds
ShippingRateParams,ShippingOption,ShippingRate, the shipping fields on checkout sessions, payment links and invoices, andWebhookShippingCost.
2026-11-26 — Gap-free invoice numbers at finalisation, issue date, date of supply and EU invoice content
Invoices are numbered from your own unbroken series when they are finalised. They carry their issue date and date of supply, and print the content EU and UK VAT law requires. Reverse charge needs a registry-verified VAT number.
Node SDK: @paymenthooks/sdk@5.2.0
- POST /v1/invoices/:id/finalize issues a draft without emailing it (status
open). Send, mark paid and quote acceptance finalise first. Finalising an issued invoice returns it unchanged; a voided draft is 409INVALID_STATE. - New webhook
invoice.finalized, sent once when a draft is issued.status_transitions.finalized_at/effective_atgive the issue date andtax_point_datethe date of supply. - Invoices return
finalizedAt(issue date) andsupplyDate(date of supply / tax point). POST /v1/invoices and PUT /v1/invoices/:id (drafts) takesupplyDateas YYYY-MM-DD, up to 365 days ahead and 6 years back (400VALIDATION_ERRORnaming it). Omitted: the issue date. Subscription invoices use the end of the period they bill. VAT and GST sales are filed under the earliest of supply, issue and payment. - The invoice PDF and hosted page print the issue date and the date of supply, label both parties' numbers "VAT number" in the EU and UK, show a VAT summary for each rate, and print the reverse-charge statement citing Art. 196 Directive 2006/112/EC on EU reverse-charged sales.
- Node SDK 5.2.0 adds
invoices.finalize(),Invoice.finalizedAt/supplyDate,InvoiceCreateParams.supplyDate, theinvoice.finalizedevent type and theopen/voidstatuses.Invoice.invoiceNumberis nowstring | null.
- A draft invoice has no number:
invoiceNumberisnulluntil the invoice is finalised. It then takes the next number of your own series (per merchant, gap-free, never reused; a voided invoice keeps its number). Before, a draft took a number when it was created, and numbers were unique across all accounts. Webhookinvoiceobjects sendnumber: nullon a draft. See /docs/api-reference#docs-api-invoice-numbering. - Credit notes (
CN-0001) and payment receipts (RCPT-0001) have their own per-merchant series. Test Mode receipts useTEST-RCPT-0001. Existing numbers are kept.
- API invoices, quotes, renewals and subscriptions created without a checkout reverse charge only on a customer VAT number the registry verified (VIES, HMRC, Brreg, the Swiss UID register, ABN Lookup where configured), as checkouts already did. Before, a VIES-verified number on file was treated as unverified and VAT was charged.
2026-11-26 — Currency from your prices; pre-2026-10-28 field names accepted with deprecation headers
Requests that name only your prices no longer need itemLocalCurrency, and integrations still sending the old money field names keep working, with headers and a dashboard notice telling you what to update.
Node SDK: @paymenthooks/sdk@5.1.0
itemLocalCurrencyis optional on POST /v1/checkout-sessions, /v1/invoices, /v1/quotes, /v1/payment-links and fixed-amount /v1/coupons when every line (orpriceId/appliesTo) names one of your prices: the request takes their one currency. Prices in different currencies are 400CURRENCY_MISMATCH, naming each price. Any line priced inline still needsitemLocalCurrency(400VALIDATION_ERRORnaming the line). There is no default currency. See /docs/money-and-currencies.- A payment-mode checkout line, an invoice item and a payment link with
priceIdand no amount are charged the price's own amount (a one-time price; a recurring price in payment mode is 400RECURRING_IN_PAYMENT_MODE). - Developers > API keys shows **Deprecated API fields in use**: each API key still sending an old name, with the endpoint, field, request count and last use. The same list: GET /v1/developer/deprecated-fields (account:read). Each use is also recorded on its API log entry.
- Node SDK 5.1.0 types
itemLocalCurrencyas optional onCheckoutSessionCreateParams,InvoiceCreateParamsandPaymentLinkCreateParams(plusitemLocalCurrencyAmounton payment links) and addsInvoiceLineItemInput.priceId.
- The money field names retired on 2026-10-28 (
currency,amount,taxAmount,convenienceFee,exchangeRate, ...) are accepted again as deprecated aliases on every money endpoint and read as their current names. Responses use only the current names and carryDeprecation: true,Link: <https://paymenthooks.com/docs/upgrading-field-names>; rel="deprecation"andPaymentHooks-Deprecated-Fields. An old and a current name with different values are 400VALIDATION_ERRORnaming both; an old name the endpoint has no field for is refused naming its rename (before, it was ignored). See /docs/upgrading-field-names.
2026-11-25 — Tax rates are exact: taxRateMicros replaces taxRateBp
Tax is computed and stored at the exact rate in millionths, so rates that are not a whole basis point (Quebec GST + QST 14.975%, Minnesota 6.875%) are no longer rounded to 0.01%.
Node SDK: @paymenthooks/sdk@5.0.0
- Subscription, checkout session and credit note responses return
taxRateMicrosinstead oftaxRateBp: the same rate x 100, exact (1% =10000; 14.975% =149750; 0 = no tax).taxRateBpis no longer returned. Existing records were converted at the rate they were charged. - Node SDK 5.0.0 types
Subscription.taxRateMicrosandCheckoutSession.taxRateMicrosin place oftaxRateBp.
credit_notewebhooks addtax_rate_microsto eachtotal_tax_amounts[]entry.tax_rate_bpis still sent (Stripe-style) and is the same rate rounded to basis points.
- Tax on rates that are not a whole basis point is charged exactly: tax = round(base x rate). Before, Quebec GST + QST was charged at 14.98% and Minnesota, Missouri, New Jersey and New Mexico at their rate rounded to 0.01%.
2026-11-25 — List products and prices by business; business API keys see their own catalog
GET /v1/products and /v1/prices filter by business, and an API key that belongs to a business reads and creates only that business's products.
- GET /v1/products and GET /v1/prices take
businessEntityId(products sold under that business: assigned to it, or to every business) andbusinessOnly=true(only products assigned to it). An unknown business, orbusinessOnlywithout a business, is 400VALIDATION_ERROR. Totals and pages count only matching rows. The dashboard's Products and Prices lists have a business filter with an **Assigned only** switch, kept in the URL. - The Node SDK types
businessEntityId/businessOnlyonproducts.list()andprices.list(), andbusinessEntityIds/showOnHostedPageson products, in the next release.
- With an API key that belongs to a business: lists always use that business; GET, PUT and DELETE on a product or price (and their nested prices, product and subscriptions) answer 404 when the product is assigned only to other businesses; POST /v1/prices needs a product sold under the business; a product created without
businessEntityIdsis assigned to the key's business, and any other list (or changing the list on PUT) is 422BUSINESS_MISMATCH. Dashboard sessions are unchanged.
2026-11-20 — Billing page plan changes: opt-in per price, products of the subscription's business only
A hosted billing page offers a plan change only to prices the merchant switched on, of products assigned to the subscription's business.
- Prices take
allowCustomerPlanChange(default false; dashboard: Edit price > **Customers can switch to this plan**). The billing page's Change plan lists, and POST /billing-page/change-plan accepts, only prices with it on whose product is assigned to the subscription's business (businessEntityIdscontains it). A product with no business assigned is offered only when the merchant has no businesses. Anything else is refused with 422PRICE_NOT_AVAILABLE. Existing prices are off until switched on.
2026-11-20 — Archive customers; list endpoints refuse unknown query parameters; lost disputes on the balance
Customers are archived instead of deleted, the products, prices, coupons and customers lists refuse a query parameter they do not apply, and a lost dispute is an outflow on the balance and counts as refunded.
- GET /v1/products, /v1/prices, /v1/coupons and /v1/customers now answer 400
VALIDATION_ERRORnaming any query parameter they do not apply (for exampleGET /v1/customers?email=…), as the other lists already did. Before, the parameter was ignored and the whole list was returned. Accepted on all four:page,pageSize(orlimit),search,status,sortField,sortDirection,dateFrom,dateTo; products alsotype,tag,tagMatch; prices alsoproductId,type,tag,tagMatch.
- POST /v1/customers/:id/archive and /unarchive (customers:write; recorded in the activity log as
customer.archived/customer.unarchived; announced ascustomer.updated). An archived customer keeps every payment, invoice and subscription, is left out of GET /v1/customers unlessstatus=archived, and is refused for new checkout sessions, payments, subscriptions and invoices with 409CUSTOMER_ARCHIVED. A customer with an active, trialing or past-due subscription cannot be archived (409CUSTOMER_HAS_ACTIVE_SUBSCRIPTIONS, listing them). GET /v1/customers/:id returnsarchivedandarchivedAt. There is no DELETE /v1/customers/:id; use GDPR erasure to remove personal data.
- A lost dispute is a balance transaction of type
dispute(an outflow, once per dispute, in USD cents with the dispute's local amount) and is subtracted from the available balance. GET /v1/balance/transactions acceptstype=dispute. AnalyticstotalRefunded, the weekly and daily summary emails and the balance summary report count lost disputes as money returned, matching net revenue. A won dispute adds nothing. - Marking an invoice paid or voiding it expires its open checkout sessions (
checkout.session.expired), so the invoice can no longer be paid there. A payment the gateway still captures is refunded in full automatically. - The admin settings API no longer returns or accepts
maintenanceMode(it was saved but never applied). PUT /v1/admin/settings with it answers 400VALIDATION_ERROR.
2026-11-20 — Revoke a hosted invoice link
A hosted invoice link that reached the wrong person can be revoked from the invoice page or the API; a new link replaces it.
- DELETE /v1/invoices/:id/hosted-link (invoices:write) revokes every hosted link of a sent invoice and returns the new one; GET returns the current link. Revoked links, and their PDF links, open "Invoice unavailable" (404). Invoice emails, webhook
hosted_invoice_url/invoice_pdfandhostedInvoiceUrlcarry the new link. Links sent before this release keep working until revoked. The dashboard invoice page has a **Revoke link** action; each revoke is recorded in the activity log asinvoice.hosted_link_revoked.
2026-11-15 — Alert rules now fire
Alert rules created under Settings > Notifications are evaluated when their event happens and notify by email, in the dashboard and by webhook. Rules are validated so a saved rule can always fire.
- Rules on payment.succeeded, payment.failed, payment.refunded, dispute.created, payout.completed, invoice.overdue, subscription.cancelled and subscription.renewal_failed are evaluated when the event happens.
amountcompares USD cents;countcompares the number of events in the last hour. An amount rule fires once per occurrence, a count rule at most once per rule per hour. - New webhook event
alert.triggeredfor rules with the webhook channel, with the rule, its condition, the observed value and the object. New merchant emailalert_rule_triggeredfor the email channel; the in-app channel adds a dashboard notification. - PATCH /v1/notifications/alert-rules/:ruleId updates one rule (for example
{ "enabled": false }), validated the same way.
- POST and PUT /v1/notifications/alert-rules return 400 VALIDATION_ERROR for an unknown event, field, operator or channel, or a value that is not a whole number. GET returns
lastTriggeredAtper rule and lists stored rules that can never fire withinvalid: trueandinvalidReason(never rewritten).
2026-11-15 — Gateway webhooks set up for you; Connect with Razorpay
Stripe webhooks are registered in the merchant's account automatically, and Razorpay accounts can be connected through the PaymentHooks partner app, so no merchant adds a webhook or picks events by hand.
- Connecting Stripe now registers the webhook endpoint in the merchant's own Stripe account with their secret key, subscribed to every event PaymentHooks acts on (including
setup_intent.succeeded), and saves its signing secret. The Webhook Signing Secret field is now optional. The gateway page shows the registration, the events and the last event received, with Re-sync; disconnecting removes the endpoint. NewPOST /api/v1/gateway-marketplace/connections/{id}/webhook. - Connect with Razorpay: the account Owner approves PaymentHooks in Razorpay instead of pasting API keys (test and live). Events for every connected account arrive through the partner app's webhook, routed by
account_id; revoking the app in Razorpay disables the connection and notifies the merchant (gateway.disconnected). Tokens refresh automatically before they expire. A Create a Razorpay account button opens the partner sign-up link.
- The Razorpay webhook instructions for API-key connections now include
payment.authorized(completes a free trial or setup at once) and the dispute events.
2026-11-15 — Free trials at checkout
A subscription checkout now honours the price's trialDays: the customer starts a free trial, saves a payment method without being charged, and is first charged at the trial end.
- When every recurring line of a checkout session is sold from a price with the same
trialDays, the trial is stored on each line (recurring.trialDays, line total 0) and the hosted checkout shows "N-day free trial, then {price} / {interval}. First charge on {date}". One-time lines in the same session are still charged today. - Nothing due today: the payment method is saved without a charge (Stripe SetupIntent; Razorpay Rs 1 authorisation refunded at once and excluded from revenue; Test Mode calls no gateway). New public endpoint
POST /api/v1/checkout-sessions/{id}/trial(actionstart, thenconfirm); the charge endpoints answer 409TRIAL_SETUP_REQUIREDfor such a session. - Each subscription starts
trialingwithtrialStart,trialEndsAtand its first renewal at the trial end; the renewal reminder, the RBI pre-debit notice andsubscription_trial_endingare scheduled for it. A subscription that starts with a free trial gets its own confirmation email,subscription_trial_started(andsubscription_trial_started_no_features), stating the trial and the first charge date intrial_text;subscription_confirmedis unchanged. checkout.session.completedhaspayment_status: "no_payment_required"when nothing was due, and everysubscriptions[]entry carriestrial_start/trial_end;customer.subscription.createdcarriesstatus: "trialing"andtrial_end.- A free trial (and a setup link) is completed when the gateway confirms the saved method, even if the customer closes the page before the confirm: Stripe
setup_intent.succeededand Razorpaypayment.authorized/payment.capturedon the connection webhook finish it on the server, a check 30 minutes after the start catches a missed webhook, and a 3D Secure redirect back to the page completes it (actionreturn). Completed once whichever arrives first; the Rs 1 verification is refunded once; an expired, unused setup cancels its SetupIntent or detaches the unused card. - New 422 codes at session creation:
TRIAL_MISMATCH(recurring lines with different trials, a trial withrecurring.startsAt, or a trialpriceIdwith first-charge line items) andTRIAL_UNSUPPORTED_GATEWAY(no gateway enabled for subscriptions can run the trial; the message names those that can). Only those gateways are offered on the checkout.
2026-11-14 — Set up automatic payments again without an early charge
An active subscription whose automatic-payment authorisation failed, is pending or was cancelled can be re-authorised before the renewal: a setup-only session saves a new payment method without charging or moving the period.
- POST /v1/subscriptions/:id/setup-session (scope subscriptions:write) returns a setup session url for an active or trialing subscription without an active mandate; an open session is returned again with reused: true. 422 SETUP_NOT_AVAILABLE / NO_SETUP_GATEWAY when it cannot be offered.
- Stripe saves the card with a SetupIntent (nothing charged; INR cards register the RBI e-mandate). Razorpay authorises a recurring token with a Rs 1 verification payment that is refunded at once. Cashfree, PhonePe, CCAvenue and PayPal are listed as not available for setup-only; their customers set up automatic payments when the renewal is due.
- Hosted billing page: Set up automatic payments. Dashboard subscription page: Send setup link (POST /v1/subscriptions/:id/send-setup-link, new mandate_setup_link email). The setup link is also emailed automatically when a mandate fails or is cancelled, and the renewal reminder links to it while automatic payments are not set up.
- New webhook event
subscription.payment_method_updated: the new mandate replaced the old one (cancelled at its gateway) and pending mandate dunning was cancelled; the billing period and price are unchanged.
2026-11-14 — Subscription settings that apply, coupon duration on renewals, plan change and period-end cancel in the dashboard
Every Settings > Subscriptions switch now changes billing, coupons keep discounting renewals for their duration, dashboard subscriptions are debited from a saved payment method or invoiced, and the subscription page can change plan and cancel at period end.
- Settings > Subscriptions (GET/PUT /v1/merchant/settings):
gracePeriodDays(past-due feature access window),retryHourOfDayandsmartRetry(when dunning retries run; weekend retries move to Monday),allowPause(customer pause / resume; 403 otherwise),prorateOnPlanChange,billingCycleAnchor(subscription_start|first_of_month) anddefaultTrialDays. Defaults keep the previous behaviour. - Coupons accept
durationonce|repeating(withdurationInMonths1-36) |forever. A subscription bought with a repeating or forever coupon is discounted on each covered renewal, before tax, on its base price and add-ons (appliesTorespected); renewal invoices carryitemDiscountLocalCurrencyAmount/itemDiscountAmountUsdCents, and subscriptionscouponId,couponEndsAt,couponDiscountedPeriods. Duration cannot be changed with PUT (400). - POST /v1/subscriptions/:id/change-plan
{ newPriceId, prorate? }(200 switched, 202 payment_required withpaymentUrl, 402, 409) and POST /v1/subscriptions/:id/reactivate (undo cancel at period end). The subscription page adds Change plan (with proration preview), cancel at the end of the period, and Keep subscription. - POST /v1/billing-page/pause
{ token, subscriptionId, action: "pause" | "resume" }andselfService.pauseAllowedon the billing page.
- POST /v1/subscriptions: renewals are debited from the customer's saved payment method when one can take them, otherwise invoiced with a pay link 7 days before each renewal (previously announced as
subscription.renewal_dueonly). New optionalcollectionMethod; the response addscollection { method, reason, paymentMethodLabel }.charge_automaticallywithout a usable method is 422 NO_SAVED_PAYMENT_METHOD.
- A plan change on a Pay once subscription re-armed an automatic debit; it now keeps renewing by invoice.
2026-11-14 — Routing strategies, gateway limits and metered prices in the dashboard
Routing rules can split traffic by percentage or pick the lowest-cost gateway and are fully editable in the dashboard; gateway connections gain country and payment method limits and a safe Disconnect; metered prices can be created in the dashboard and every price form takes major units.
- Routing rule
action.typeacceptspercentage_split(2-10targetswith wholepercentageshares summing to 100, deterministic per customer, amount, currency and country) andlowest_cost(2-10targets; the lowest fee for the amount wins), next toroute_to_gateway. The engine selects through them when the rule matches, honouring each target's limits. - Creating or updating a routing rule whose
currencyeq / in condition a connection cannot charge returns 422TARGET_CURRENCY_UNSUPPORTED, witherror.fieldsnaming the connection (e.g.action.targets.1.connectionId). - PATCH /v1/gateway-marketplace/connections/:id accepts
countryRestrictions(ISO 3166-1 countries the connection is never used for) andenabledPaymentMethods(a subset of the gateway's methods); the gateway page has a Countries and payment methods card. - GET /v1/gateway-marketplace/connections/:id/disconnect-impact counts pending payments, saved payment authorisations, subscriptions and routing rules that use a connection; the gateway page has a Disconnect action whose confirmation explains each, then disconnects (audit log, email and
gateway.disconnectedwebhook). A failed delete now returns 500 instead of being reported as disconnected. - Create Price (drawer and page) offers usage-based pricing: meter selection with its aggregation, included units, per-unit or tiered (graduated / volume) billing, matching POST /v1/prices.
- Settings > Routing Rules: rules can be edited and deleted (with confirmation), the enable switch persists, conditions offer the operators that fit each field, several conditions with all / any, connections come from your real gateway connections, amounts are typed in major units, and a rule pointing at a removed connection shows a warning.
- The full-page Create Price form took the amount in cents while the drawer took major units; both, and tier amounts, now take major units of the currency (zero-decimal and three-decimal currencies included) and refuse over-precise input. The API still takes the smallest unit.
2026-11-14 — Invoice settings, customer credit on invoices and hosted invoice pages
Invoice Settings now controls numbering, payment terms, notes, the PDF footer and email attachments; customer credit is spent on invoices; and invoices, quotes, tax settings and the billing page gained the controls that were missing.
GET/PUT /v1/invoice-settings: number prefix and next number (moves forward only;nextInvoiceNumberpreviews it),defaultDueDays,defaultNotes,footer(printed on every invoice PDF),attachPdfandautoApplyCredit. Scopes invoices:read / invoices:write. Settings > Invoice Settings edits them.- Customer credit on invoices: sending or paying an invoice spends the customer's balance in the invoice currency first (
itemCustomerBalanceLocalCurrencyAmount/itemCustomerBalanceAmountUsdCentson the invoice; the invoice webhook'samount_dueis net of it andstarting_balanceis negative). Credit covering the total pays the invoice; voiding returns it. POST /v1/invoices/:id/apply-credit applies it on demand. - Every sent invoice has a secure hosted page (
/invoice/{token}) where the customer views it, downloads the PDF and pays it in their local currency through the usual checkout currency rules (customer credit is applied first). Invoice emails link to it with a View and pay invoice button, and invoice webhooks carry it ashosted_invoice_url. - Invoice emails can carry your own files: attach up to 5 PDF, image, CSV, text, Word or Excel files (10 MB each) in the Send Invoice panel or with
/v1/invoices/{id}/attachments(GET list, POST multipart upload, GET download, DELETE). POST /v1/invoices/{id}/send accepts{ attachmentIds }; the files are sent after the invoice PDF. - Hosted billing page: customers can change plan (seeing the prorated cost first, from GET /v1/billing-page/plan-options), cancel a subscription at period end or immediately (POST /v1/billing-page/cancel, refused with 403 when self-cancellation is off) and export their payment history as CSV. The resolve response adds
selfService.cancelAllowedand each subscription'scancelAtPeriodEnd.
- POST /v1/invoices:
dueDateis optional; omitted, the due date is the issue date plus the merchant's payment terms, and omittednotestake the default notes.
- Invoice numbering no longer ignores errors reading the merchant's prefix, and skips a number another account already holds instead of failing the invoice.
2026-11-14 — Public site: subscription billing first
The homepage, navigation, footer, changelog, status and contact pages describe PaymentHooks as subscription billing with payments across many gateways, and state only what the product does.
- The homepage adds features and entitlements, quotes, coupons, payment links and pay pages, and external transactions, each linked to its docs or Help Centre page. Gateway and currency counts are read from the gateway and currency catalogs.
- Removed statements the product cannot back: a static "All systems operational" footer badge, a fixed probe interval and regions on the status page, a status RSS feed that did not exist, a fabricated version history on /changelog (now built from these dated releases), and response-time and sales commitments on the contact page.
2026-11-13 — External transactions
Record payments taken on other services (another gateway, PayPal, bank transfers, cash, marketplaces) so they count in Payments, Transactions, customer spend, analytics, reports, invoices and webhooks.
Node SDK: @paymenthooks/sdk@4.3.0
/v1/external-transactions: POST records a payment (idempotent on externalProvider + externalTransactionId; a changed repeat is 409 EXTERNAL_TRANSACTION_CONFLICT), GET lists and retrieves, PATCH settles a pending record or edits description and metadata, DELETE voids, and POST /:id/refunds records a refund made on the other service. Scopes payments:read / payments:write.- Payments carry
source("gateway" or "external") andexternalProvider; recorded payments usegatewayId: "external". Payment webhooks addpayment_sourceandexternal_providerto the payment_intent object. - The Node SDK adds
externalTransactions(create, retrieve, list, update, void, refund) in 4.3.0.
- POST /v1/payments/:id/refund answers 422 EXTERNAL_PAYMENT_REFUND for a recorded external payment instead of looking for a gateway connection.
2026-11-13 — Product features in subscription emails
Subscription emails list the plan's features as What's included, with a variant without the section for plans that have none; feature and entitlement endpoints are fully documented.
Node SDK: @paymenthooks/sdk@4.2.2
subscription_confirmedandsubscription_plan_changedlist the features the subscription grants under What's included (placeholderfeatures_text, one line per enabled feature, with the customer's overrides and the price's overage terms), the same wording as the checkout. A trialing subscription adds a note that usage above a limit is not billed until the first billing date.- When the plan has no enabled features,
subscription_confirmed_no_featuresorsubscription_plan_changed_no_featuresis sent instead: the same email without the section, under the same Subscription updates switch.notification.triggeredcarries the code actually sent. The hosted checkout also leaves What's included out when the product has no enabled features. - ENTITLEMENT_LIMIT_REACHED, ENTITLEMENT_OVERAGE_CAP_REACHED, NO_ENTITLEMENT, FEATURE_METER_BILLED_BY_PRICE and FEATURE_METER_AGGREGATION_UNSUPPORTED are listed in the error code reference.
- openapi.json now carries
x-required-scopeand request bodies for the feature and entitlement endpoints (POST /v1/features, PATCH /v1/features/:id, PUT /v1/products/:id/features, PUT /v1/prices/:id/feature-overage, customer entitlements, usage, overrides and entitlement settings), and for meters, subscription items and upcoming invoices. No endpoint changed behaviour.
2026-11-09 — Scoped related lists, list filters checked
A record's related lists return only that record's rows, and list endpoints refuse filters they do not apply.
Node SDK: @paymenthooks/sdk@4.2.2
- GET /v1/payouts/:id/payments: the payments settled in one payout.
- GET /v1/subscriptions/:id/payments rows carry customerId, gatewayId and paymentMethod; /invoices rows carry id, invoiceNumber, customerId and dueDate.
- GET /v1/payments, /v1/invoices and /v1/subscriptions refuse a query parameter the endpoint does not support (400 VALIDATION_ERROR naming it) instead of returning every record.
limitis accepted as an alias ofpageSize.
- Proration invoices and credit notes (plan changes, mid-cycle cancellation) store their lines as document lines with local amounts and USD cents, like every other invoice.
2026-11-08 — Catalog keys, webhook event catalog, phone validation, business branding
Inline prices are filed under one product per item, webhook endpoints accept only events PaymentHooks sends, and phones are validated worldwide.
Node SDK: @paymenthooks/sdk@4.2.2
productKeyandproductNameon inline recurring line items andpriceData: every customer buying the same item shares one product and one price per currency, amount and cycle, named e.g.com_domain_renewal_usd_15and reused when it exists. The line's description stays the customer's own text. Without a key, inline prices go under one generic product per billing cycle.
- Webhook endpoint create and update refuse a
subscribedEventsname PaymentHooks never sends (for examplecharge.refunded) with 400.invoice.upcoming,invoice.overdue,invoice.voided,credit_note.created,credit_note.voidedandcustomer.balance_transaction.createdare now documented. - Customer
phoneis checked against the numbering plan of its country and stored in E.164;emailuses the hosted checkout's rules. An invalid value is 400 VALIDATION_ERROR witherror.fields.phone/error.fields.email. The hosted checkout shows the phone as a country selector plus the number. - Branding is split: the business owns the order details on checkout, receipts and emails (logo or icon, colour, display), and a custom domain owns only the page header logo and favicon.
- Routing rules may only use your own gateway connections: a foreign or missing connection is 422 CONNECTION_NOT_FOUND, a
gatewayIdthat does not match the connection is 422 GATEWAY_MISMATCH, and malformed JSON is 400. - The hosted browser script /sdk/paymenthooks.js (2.1.0) renders inline checkout totals from
itemLocalCurrencyAmountinitemLocalCurrency, with each currency's own decimals.
2026-11-07 — Usage billing, add-ons, mixed billing cycles
Subscriptions gain metered prices, recurring add-ons, several billing cycles in one checkout and delayed starts.
Node SDK: @paymenthooks/sdk@4.2.0
mode: "setup"was never implemented and is now refused with 400 INVALID_MODE.
mode: "payment" | "subscription"on checkout sessions. Subscription sessions take recurring line items (no catalog price needed) or a top-levelpriceId.- Recurring lines on different intervals become one subscription per billing cycle after a single payment, all renewed through the one payment method the customer authorised.
recurring.startsAtdelays a line's first charge (its subscription startstrialing). New 400 codes: INVALID_STARTS_AT, STARTS_AT_IN_PAST, STARTS_AT_TOO_FAR, NO_AMOUNT_DUE.- Meters and meter events, metered and overage prices (
usageType,meterId,includedQuantity), subscription items (prorated add-ons), pending invoice items and GET /v1/subscriptions/:id/upcoming-invoice.
2026-11-02 — Tags on products and prices
Organise the catalog with tags and filter lists by them.
Node SDK: @paymenthooks/sdk@4.1.0
2026-10-31 — Tax-inclusive amounts, dispute evidence uploads
Declare that your amounts already contain tax, and submit dispute evidence as real files.
Node SDK: @paymenthooks/sdk@4.0.0
- Dispute evidence files are multipart uploads;
evidenceFilesURLs are refused with 400.
taxBehavior: "inclusive"on checkout sessions and prices: the tax inside the amount is carved out, never added again.taxRateIdandtaxName; subscriptions keep the tax agreed at checkout for every renewal.hsnCode(India GST HSN/SAC) on products.
2026-10-29 — Money fields renamed
Every money field says what it belongs to, what it is and its unit. Request and response names changed; webhooks keep Stripe's shapes.
Node SDK: @paymenthooks/sdk@3.0.0
- Items (prices, payment links, subscriptions, checkout sessions, invoices, credit notes, quotes) use
itemLocalCurrency,itemLocalCurrencyAmount,itemAmountUsdCentsanditemUsdToLocalCurrencyRate. - Money that moved (payments, refunds, disputes, payouts) uses
transactionLocalCurrency,transactionLocalCurrencyAmount,transactionAmountUsdCentsandtransactionUsdToLocalCurrencyRate. Refund and capture amounts are USD cents. - The retired names (
amount,currency,total,subtotal,fee,exchangeRate, ...) are not accepted: there are no aliases.
- Webhook money objects keep Stripe's
amount/currencyand also carryamount_usd_centsandusd_to_local_currency_rate.
2026-10-25 — SDK aligned with the live API
The Node SDK targets https://paymenthooks.com/api/v1 with the live key formats and routes.
Node SDK: @paymenthooks/sdk@2.0.0
- SDK base URL https://paymenthooks.com/api/v1; secret keys start
phk_live_, publishable keysphk_pub_; updates use PUT.
adjustableQuantityon checkout line items (SDK 2.1.0): let the customer change a quantity or remove an item.
2026-07-01 — General availability
Payments, checkout sessions, payment links, subscriptions, invoices, webhooks and gateway routing.
Node SDK: @paymenthooks/sdk@1.0.0
- REST API v1 with customers, payments, refunds, checkout sessions, payment links, products, prices, subscriptions, invoices, credit notes, disputes and webhooks, signed with HMAC-SHA256.
- Gateway routing rules and a simulator; the gateway marketplace; multi-currency pricing with live USD rates; idempotency keys and rate limiting.