v1

latestOpenAPI 3.0.32026-07-17485661.9 KB

Get a payment method

Returns a single payment method by ID.

get/spaces/{space_id}/payment/{payment_id}

Path parameters

space_idstring required

Ghost space ID.

payment_idstring required

Payment method ID.

Response

Payment method

idstring required

Payment method ID.

primaryboolean required

True if this is the primary payment method for the space.

pending_deletionboolean required

True if deletion has been scheduled for this payment method. The deletion can be cancelled until processed.

brandstring required

Card brand (e.g. visa, mastercard).

last4string required

Last four digits of the card number.

exp_monthinteger required

Card expiration month (1-12).

exp_yearinteger required

Card expiration year (four digits).