Chuyển đến nội dung chính
PATCH
JavaScript

Ủy quyền

Authorization
string
header
bắt buộc

Send your API key as a bearer token: Authorization: Bearer <api_key>. A test mode key starts with dodo_test_, for example dodo_test_AbCd1234EfGh5678.<secret>. A live mode key starts with dodo_live_. Use a test mode key on test.dodopayments.com and a live mode key on live.dodopayments.com. Keys from before these tags have no tag and operate as before.

Tham số đường dẫn

id
string
bắt buộc

Product Collection Id

Nội dung

application/json
brand_id
string | null

Optional brand_id update

description
string | null

Optional description update - pass null to remove, omit to keep unchanged

effective_at_on_downgrade
null | enum<string>

Effective_at setting for downgrades: Some(Some(val)) = set, Some(None) = clear (inherit), None = no change

Tùy chọn có sẵn:
immediately,
next_billing_date
effective_at_on_upgrade
null | enum<string>

Effective_at setting for upgrades: Some(Some(val)) = set, Some(None) = clear (inherit), None = no change

Tùy chọn có sẵn:
immediately,
next_billing_date
group_order
string<uuid>[] | null

Optional new order for groups (array of group UUIDs in desired order)

image_id
string<uuid> | null

Optional image update - pass null to remove, omit to keep unchanged

name
string | null

Optional new name for the collection

on_payment_failure
null | enum<string>

On payment failure behavior: Some(Some(val)) = set, Some(None) = clear (inherit), None = no change

Tùy chọn có sẵn:
prevent_change,
apply_change
proration_billing_mode_on_downgrade
null | enum<string>

Proration billing mode for downgrades: Some(Some(val)) = set, Some(None) = clear (inherit), None = no change

Tùy chọn có sẵn:
prorated_immediately,
full_immediately,
difference_immediately,
do_not_bill,
prorated_immediately_keep_cycle
proration_billing_mode_on_upgrade
null | enum<string>

Proration billing mode for upgrades: Some(Some(val)) = set, Some(None) = clear (inherit), None = no change

Tùy chọn có sẵn:
prorated_immediately,
full_immediately,
difference_immediately,
do_not_bill,
prorated_immediately_keep_cycle

Phản hồi

Product Collection Updated Successfully

Lần sửa đổi cuối 22 tháng 5, 2026