跳转到主要内容
POST
取消注册支付方式
为用户取消注册已保存的支付方式。向取消注册 endpoint 发送 POST 请求后,支付方式的状态将变为 UNENROLLED。
取消注册信息要取消注册支付方式,您需要提供 payment_method_id,即使用注册支付方式 endpoint 时收到的 vaulted_token。

授权

public-api-key
string
header
默认值:<Your public-api-key>
必填
private-secret-key
string
header
默认值:<Your private-secret-key>
必填
X-Idempotency-Key
string
header
默认值:<Your X-Idempotency-Key>
必填

路径参数

customer_id
string
必填

客户的唯一标识符(UUID,36 个字符)。

payment_method_id
string
必填

支付方式的唯一标识符。该值是使用注册支付方式注册支付方式时收到的 vaulted_token(UUID,36 个字符)。

响应

200

id
string
示例:

"cbdcc878-ceb4-4dd8-b0f0-49d444855de0"

account_id
string
示例:

"493e9374-510a-4201-9e09-de669d75f256"

name
string
示例:

"VISA ****1111"

description
string
示例:

"VISA ****1111"

type
string
示例:

"CARD"

category
string
示例:

"CARD"

country
string
示例:

"US"

status
string
示例:

"UNENROLLED"

created_at
string
示例:

"2024-06-06T13:32:49.715656Z"

updated_at
string
示例:

"2024-06-06T13:37:38.891106Z"

enrollment
object
provider
object
verify
object
preferred
any
idempotency_key
string

幂等键。

示例:

"f8f624e9-0621-4775-8f58-5194024008b2"

parent_type
any | null

父类型。

sub_status
any | null

子状态。

vaulted_token
string

Vault 令牌。

示例:

"3727b020-b1d3-4fe6-884e-31a5354a8c20"

callback_url
any | null

Callback URL。

action
string

操作。

示例:

"FORM"

redirect_url
any | null

重定向 URL。

card_data
object

卡数据。

last_successfully_used
any | null

最近一次成功使用。

last_successfully_used_at
any | null

最近一次成功使用的时间。