Chord OMS
...
Developer Tools
Next.js
SDK Reference
1min
this page's documentation only applies to chord's next js starter prior to the release of the react docid\ ewxkrz0jhh0zpphikkcri the next js starter now uses the react sdk and does not use the methods documented on this page check out the react sdk reference for complete documentation, and the react sdk migration guide docid\ qmilhjfpz9wbjyzbe50ku for details on how to upgrade the next js starter kit includes a set of react hooks that offer an easy way to interact with chord's order management system for common operations like adding items to a cart these hooks provide access to sdk methods that handle communication with chord's order management system and keep the site's redux state up to date they also automatically send tracking events to segment hook description useanalytics docid\ irck84d2ghw01hwcayxmq provides support for sending ui related tracking events to segment useauth docid\ m9dsvn6fryeoq z0mxs8t provides support for user authentication chord supports passwordless authentication with magic https //magic link/ usecart docid\ ch9blvskrsej xytuutjc returns the current shopping cart, and functions for creating and interacting with the shopping cart useproduct docid\ jfimzpzxvthotegxszdpn provides support for interacting with products usesubscription docid\ x81pcxxft0pa5jj00y5 i provides support for managing user subscriptions usesubscriptions docid\ mtkbundggsxokx0ov7q46 returns the current user's subscriptions usesquarecheckout docid\ gzlux crkzoxynvfpxgp8 provides support for square checkout usetranslate docid\ sselb9pyxvqehg py4hi2 provides support for internationalization useuser docid\ y29mej7wiasr4awplt0vd returns the current user, and functions for loading data about the user