Skip to content

Overview

The Merchant API is one API for taking payments on every method and channel your account is set up for. Create a payment intent, send your customer to our checkout or confirm it with the method they chose, and follow it to its outcome. Your server calls it on https://api.example.com; every path is under /v1.

Additive changes (a new field, resource or error code) ship inside /v1, so build your integration to ignore fields it does not know. Removing or changing the meaning of anything needs /v2 and a deprecation period.

Your account has two environments, and an API key belongs to one of them. Test keys (ci_test_..., sk_test_...) work in test mode, where no money ever moves and every payment is simulated. Live keys (ci_live_..., sk_live_...) take real payments. Every object says which it belongs to in livemode, and a key sees only its own mode's objects. Build and try everything in test mode first: see Test mode and test values.