Skip to main content
POST
Sync a card top-up

Authorizations

x-api-key
string
header
required

Your ps_ API key

Headers

x-workspace-id
string

Only with an account key (ps_account_): the workspace to act on, from GET /v1/workspaces. Without it an account key gets 400 WORKSPACE_ID_REQUIRED.

Path Parameters

id
string
required

The paymentIntentId (pi_…).

Response

Result

paymentIntentId
string
status
string

Stripe's status.

amount
number
currency
string
orderId
string | null
orderStatus
enum<string>
Available options:
COMPLETED,
PENDING,
FAILED,
UNCHANGED
credited
boolean

true only on the call that credited the wallet.

balance
number | null

Wallet balance right after this credit, or null.

cardSaved
boolean