You want to Use Watch for
Take a card payment on your own website The Web Payments SDK in the browser to tokenize the card, then the Payments API on your server Every create call needs an idempotency key. Reuse the same key when you retry, so a timeout never charges twice.
Charge for a cart with items, tax and discounts The Orders API, then pay the order A payment with no order behind it reaches Square's reports as an amount, without item detail.
Manage items, variations and prices The Catalog API Objects carry a version number. Send the current one on updates, or you'll overwrite someone's newer change.
Read or change stock counts The Inventory API Counts are per location, and changes are recorded as adjustments or physical counts, not a single number you overwrite.
Charge on a Square reader from your own software The Terminal API Needs a Square Terminal paired to your app with a device code. Steps below.
Find out when something changes Webhooks, plus the Events API to catch up on anything missed Duplicates and out-of-order delivery are normal. The pitfalls further down cover the usual causes.