Chuyển đến nội dung chính
POST
/
product-collections
/
{id}
/
unarchive
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});

const response = await client.productCollections.unarchive('id');

console.log(response.collection_id);
{
  "collection_id": "<string>",
  "excluded_product_ids": [
    "<string>"
  ],
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.dodopayments.com/llms.txt

Use this file to discover all available pages before exploring further.

Ủy quyền

Authorization
string
header
bắt buộc

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Tham số đường dẫn

id
string
bắt buộc

Product Collection Id

Phản hồi

Product Collection Unarchived Successfully

collection_id
string
bắt buộc

Collection ID that was unarchived

excluded_product_ids
string[]
bắt buộc

Product IDs that were excluded because they are archived

message
string
bắt buộc

Success message

Last modified on May 22, 2026