跳转到主要内容
PATCH
更新计划
Update Plan API 用于修改现有计划,您可以更新计划的状态、分期详情以及与计划关联的支付方式等属性。 使用此 API 在创建后管理和调整分期付款计划。

授权

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

路径参数

installment_code
string
必填

分期计划的唯一标识符。

请求体

application/json
name
string

分期计划名称(MAX 255;MIN 3)

account_id
string[]

将使用该分期计划的 Yuno 账户的唯一标识符(MAX 64 ; MIN 36)。

merchant_reference
string

分期计划的标识(MAX 255;MIN 3)

installments_plan
object[]

各场景下可用分期的定义

country_code
string

发卡机构所在国家(ISO 3166-1,MAX 2;MIN 2)

scheme
string

卡组织信息。(MAX 255;MIN 3)

brand
string[]

卡品牌信息(MAX 255;MIN 3)。

issuer
string

发卡机构(MAX 255;MIN 3)

iin
string[]

发卡机构识别码(IIN)是金融机构所发支付卡卡号的前几位数字(MAX 8;MIN 6)

first_installment_deferral
integer<int32>

首期分期扣款前需等待的月数(MAX: 3)。

amount
object

该分期计划可用的金额范围。如果为 null,则任意金额均可用。

availability
object

该分期计划可用的日期范围。如果为 null,则没有结束日期

响应

目前响应返回的是首字母大写的 amount.Currency,而不是 amount.currency。请以不区分大小写的方式读取该键。

id
string
示例:

"4d573425-33f9-4c46-b009-2c7e749b0ec7"

name
string
示例:

"plan_007"

account_id
string[]
merchant_reference
string
示例:

"Test"

installments_plan
object[]
type
string
示例:

""

source
string
示例:

""

provider_id
string
示例:

""

scheme
string
示例:

""

brand
string[]
issuer
string
示例:

""

issuer_id
string
示例:

""

iin
any
country_code
string
示例:

"US"

first_installment_deferral
integer
默认值:0
示例:

0

amount
object
availability
object
created_at
string
示例:

"2023-10-11T17:52:31.886178246Z"

updated_at
string
示例:

"2023-10-11T17:52:31.886178246Z"

payment_method_type
string

支付方式类型。

示例:

"NU_PAY_ENROLLMENT"