Get started
Upgrading from the pre-2026-10-28 field names
Old money field names keep working, with deprecation headers. Move to the current names at your own pace.
What changed
On 28 October 2026 every money field was renamed so its name says what it belongs to, what it is and its unit: currency became itemLocalCurrency on items and transactionLocalCurrency on transactions, amount became itemLocalCurrencyAmount or transactionLocalCurrencyAmount, and each amount gained a USD cents twin. See Money and currenciesfor the full model. Webhooks did not change: they keep Stripe's field names.
Old names still accepted
Requests that send an old name are processed as if they sent the current one. If a body sends both with the same value, it is accepted; with different values, it is refused. An old name that has no current field on that endpoint is refused with a message saying why. Responses always use the current names. We recommend migrating: the old names are deprecated and will be removed after notice.
| Endpoint | Old name | Current name | Status |
|---|---|---|---|
| POST /v1/checkout-sessions | currency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/checkout-sessions | originalCurrency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/checkout-sessions | displayCurrency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/checkout-sessions | taxAmount | itemTaxLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/checkout-sessions | convenienceFee | itemConvenienceFeeLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/payment-links | currency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/payment-links | originalCurrency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/payment-links | displayCurrency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/payment-links | amount | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/payment-links | amountTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/payment-links | total | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/payment-links | displayAmount | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/payment-links | displayTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/payment-links | displayAmountTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| PUT /v1/payment-links/:id | amount | itemLocalCurrencyAmount | Deprecated: still accepted |
| PUT /v1/payment-links/:id | amountTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| PUT /v1/payment-links/:id | total | itemLocalCurrencyAmount | Deprecated: still accepted |
| PUT /v1/payment-links/:id | displayAmount | itemLocalCurrencyAmount | Deprecated: still accepted |
| PUT /v1/payment-links/:id | displayTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| PUT /v1/payment-links/:id | displayAmountTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/prices | currency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/prices | originalCurrency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/prices | displayCurrency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/prices | amount | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/prices | amountTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/prices | total | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/prices | displayAmount | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/prices | displayTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/prices | displayAmountTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| PUT /v1/prices/:id | amount | itemLocalCurrencyAmount | Deprecated: still accepted |
| PUT /v1/prices/:id | amountTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| PUT /v1/prices/:id | total | itemLocalCurrencyAmount | Deprecated: still accepted |
| PUT /v1/prices/:id | displayAmount | itemLocalCurrencyAmount | Deprecated: still accepted |
| PUT /v1/prices/:id | displayTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| PUT /v1/prices/:id | displayAmountTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/invoices | currency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/invoices | originalCurrency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/invoices | displayCurrency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/invoices | amount | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/invoices | amountTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/invoices | total | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/invoices | displayAmount | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/invoices | displayTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/invoices | displayAmountTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/invoices | taxAmount | itemTaxLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/quotes | currency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/quotes | originalCurrency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/quotes | displayCurrency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/quotes | taxAmount | itemTaxLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/coupons | currency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/coupons | originalCurrency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/coupons | displayCurrency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/coupons | discountAmount | itemDiscountLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/credit-notes | currency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/credit-notes | originalCurrency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/credit-notes | displayCurrency | itemLocalCurrency | Deprecated: still accepted |
| POST /v1/credit-notes | amount | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/credit-notes | amountTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/credit-notes | total | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/credit-notes | displayAmount | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/credit-notes | displayTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/credit-notes | displayAmountTotal | itemLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/credit-notes | taxAmount | itemTaxLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/subscriptions | items[].priceData.currency | items[].priceData.itemLocalCurrency | Deprecated: still accepted |
| POST /v1/subscriptions | items[].priceData.originalCurrency | items[].priceData.itemLocalCurrency | Deprecated: still accepted |
| POST /v1/subscriptions | items[].priceData.displayCurrency | items[].priceData.itemLocalCurrency | Deprecated: still accepted |
| POST /v1/payments | currency | transactionLocalCurrency | Deprecated: still accepted |
| POST /v1/payments | originalCurrency | transactionLocalCurrency | Deprecated: still accepted |
| POST /v1/payments | displayCurrency | transactionLocalCurrency | Deprecated: still accepted |
| POST /v1/payments | amount | transactionLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/payments | displayAmount | transactionLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/payments/:id/refund | amount | transactionAmountUsdCents | Deprecated: still accepted |
| POST /v1/payments/:id/capture | amount | transactionAmountUsdCents | Deprecated: still accepted |
| POST /v1/external-transactions | currency | transactionLocalCurrency | Deprecated: still accepted |
| POST /v1/external-transactions | originalCurrency | transactionLocalCurrency | Deprecated: still accepted |
| POST /v1/external-transactions | displayCurrency | transactionLocalCurrency | Deprecated: still accepted |
| POST /v1/external-transactions | amount | transactionLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/external-transactions | displayAmount | transactionLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/external-transactions | exchangeRate | transactionUsdToLocalCurrencyRate | Deprecated: still accepted |
| POST /v1/external-transactions/:id/refunds | amount | transactionLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/external-transactions/:id/refunds | displayAmount | transactionLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/customers/:id/balance-transactions | currency | transactionLocalCurrency | Deprecated: still accepted |
| POST /v1/customers/:id/balance-transactions | originalCurrency | transactionLocalCurrency | Deprecated: still accepted |
| POST /v1/customers/:id/balance-transactions | displayCurrency | transactionLocalCurrency | Deprecated: still accepted |
| POST /v1/customers/:id/balance-transactions | amount | transactionLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/customers/:id/balance-transactions | displayAmount | transactionLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/connect/charges | currency | transactionLocalCurrency | Deprecated: still accepted |
| POST /v1/connect/charges | originalCurrency | transactionLocalCurrency | Deprecated: still accepted |
| POST /v1/connect/charges | displayCurrency | transactionLocalCurrency | Deprecated: still accepted |
| POST /v1/connect/charges | amount | transactionLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/connect/charges | displayAmount | transactionLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/connect/charges | fee | transactionFeeLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/connect/transfers | currency | transactionLocalCurrency | Deprecated: still accepted |
| POST /v1/connect/transfers | originalCurrency | transactionLocalCurrency | Deprecated: still accepted |
| POST /v1/connect/transfers | displayCurrency | transactionLocalCurrency | Deprecated: still accepted |
| POST /v1/connect/transfers | amount | transactionLocalCurrencyAmount | Deprecated: still accepted |
| POST /v1/connect/transfers | displayAmount | transactionLocalCurrencyAmount | Deprecated: still accepted |
Deprecation headers
A response to a request that used an old name carries Deprecation: true, a Link to this page with rel="deprecation", and PaymentHooks-Deprecated-Fields listing each old name and what it was read as. No Sunset header is sent: no removal date has been set. Log these headers in your client to find the calls to update.
HTTP/1.1 201 Created
Deprecation: true
Link: <https://paymenthooks.com/docs/upgrading-field-names>; rel="deprecation"
PaymentHooks-Deprecated-Fields: currency->itemLocalCurrency, taxAmount->itemTaxLocalCurrencyAmount, convenienceFee->itemConvenienceFeeLocalCurrencyAmountDashboard notice
Every use is recorded on the request's entry in Developers > API Logs and counted per API key, endpoint and field. Developers > API Keys shows a Deprecated API fields in use notice listing each key that still sends an old name, the endpoint, the field, the request count and when it was last seen. The notice disappears when you remove the counted keys or when every integration uses the current names. The list is also available from GET /api/v1/developer/deprecated-fields (scope account:read).
Before and after
POST /api/v1/checkout-sessions
{
"currency": "INR",
"lineItems": [{ "description": "Pro plan", "quantity": 1, "unitPrice": 150000 }],
"taxAmount": 27000,
"convenienceFee": 2000,
"successUrl": "https://yoursite.com/success"
}POST /api/v1/checkout-sessions
{
"itemLocalCurrency": "INR",
"lineItems": [{ "description": "Pro plan", "quantity": 1, "unitPrice": 150000 }],
"itemTaxLocalCurrencyAmount": 27000,
"itemConvenienceFeeLocalCurrencyAmount": 2000,
"successUrl": "https://yoursite.com/success"
}When every line names one of your prices you can leave itemLocalCurrencyout: the request takes the prices' currency.
Response fields
Responses never include the old names. Read these instead:
| Object | Old fields | Current fields |
|---|---|---|
| Payment, Refund, Dispute | amount, currency, originalCurrency, exchangeRate | transactionAmountUsdCents, transactionLocalCurrency, transactionLocalCurrencyAmount, transactionUsdToLocalCurrencyRate |
| Payment | fee, netAmount, refundedAmount | transactionFeeAmountUsdCents, transactionNetAmountUsdCents, transactionRefundedAmountUsdCents |
| Price, Subscription, PaymentLink | amount, currency, exchangeRate | itemLocalCurrencyAmount, itemLocalCurrency, itemAmountUsdCents, itemUsdToLocalCurrencyRate |
| CheckoutSession | amountTotal, currency, originalCurrency, exchangeRate | itemLocalCurrencyAmount, itemLocalCurrency, itemAmountUsdCents, itemUsdToLocalCurrencyRate |
| CheckoutSession | subtotal, taxAmount, convenienceFee | itemSubtotal…, itemTax…, itemConvenienceFee… (…LocalCurrencyAmount / …AmountUsdCents) |
| Invoice, Quote, CreditNote | total, subtotal, taxAmount, currency, displayTotal, displayCurrency | itemLocalCurrencyAmount, itemSubtotal…, itemTax…, itemLocalCurrency (with …AmountUsdCents) |
| Customer | currency, totalSpend | totalSpendAmountUsdCents (no currency) |
| Subscription, CheckoutSession, CreditNote | taxRateBp (basis points) | taxRateMicros (millionths, exact: 14.975% = 149750; taxRateBp x 100) |
Errors you may see
| Error | When | Fix |
|---|---|---|
| VALIDATION_ERROR (400) | An old name and its current name with different values | Send the current name only. error.fields names both. |
| VALIDATION_ERROR (400) | An old name whose current field the endpoint does not take, e.g. currency on PUT /v1/payment-links/:id | Remove it; the message says why (a link keeps its currency). |
| VALIDATION_ERROR (400) | itemLocalCurrency is required: an inline line has no currency | Send itemLocalCurrency, or name your prices on every line. |
| CURRENCY_MISMATCH (400) | Prices in different currencies, or a price not in the sent itemLocalCurrency | Use prices in one currency. |
SDK versions
@paymenthooks/sdk 3.0.0 and later send only the current names. 2.x sends the old ones; it keeps working through the deprecated names above, but its response types describe fields the API no longer returns. Upgrade to the latest major version (see Server SDKs and the API changelog).