Skip to main content
POST
billing.payment.setup

Authorizations

Authorization
string
header
required

A Lath API key: lath_live_sk… or lath_test_sk… on a server, lath_live_pk… or lath_test_pk… in a browser.

Headers

Idempotency-Key
string

Replays the stored response for the same key and input; refuses different input.

Body

application/json
successUrl
string<uri>
required

Where the processor sends the person after the card is saved

Maximum string length: 2000
cancelUrl
string<uri>

Where they go if they back out; defaults to successUrl

Maximum string length: 2000

Response

{ activityId, result }. activityId is empty for reads.

activityId
string
required

The activity this call created, or empty for a read.

result
object
required
Last modified on September 13, 2026