# 生成特别目录优惠代码 生成特别目录优惠代码。 Endpoint: PUT /v2/project/{project_id}/admin/unique_catalog_offer/{external_id}/code/generate Version: 2.0.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) 项目ID。您可以在您的发布商帐户项目名称旁边找到。 Example: 44056 - `external_id` (integer, required) 促销活动外部ID。项目内的唯一促销活动标识符。 Example: "coupon_44056_1" ## Request fields (application/json): - `count` (integer, required) Example: 10 ## Response 200 fields (application/json): - `count` (integer) Example: 10 ## Response 401 fields (application/json): - `errorCode` (integer) Example: 1020 - `errorMessage` (string) Example: "[0401-1020]: Error in Authentication method occurred" - `statusCode` (integer) Example: 401 ## Response 404 fields (application/json): - `errorCode` (integer) Example: 4001 - `errorMessage` (string) Example: "[0401-9802]: Promocode not found" - `statusCode` (integer) Example: 404 - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x"