Batch Processing for Short Drama Cooperative Promotion Program

View Markdown

Last edited on 2026-03-25

This API should be called on the server side and cannot be called directly on the client side (Mini Program, web page, APP, etc.). For details, please refer to API Call Guide.

API English Name: batchProcessDramaPromotion

1. Call Method

HTTPS Call

POST https://api.weixin.qq.com/wxadrama/batchprocessdramapromotion?access_token=ACCESS_TOKEN

Cloud Call

  • This API does not support cloud call.

Third-party Call

  • This API supports third-party platforms on behalf of Merchant call.

  • The permission set ID of this API is: 157

  • After the service provider obtains one of the permission set authorizations, it can use authorizer_access_token to call on behalf of Merchant, for details please refer to Third-party Call documentation.

2. Request Parameters

Query Parameters Query String Parameters

ParameterTypeRequiredExampleDescription
access_tokenstringYesACCESS_TOKENAPI call credential, you can use access_token, authorizer_access_token

Request Body Request Payload

ParameterTypeRequiredDescription
action_typenumberYesAction type. 1 - Join program; 2 - Query program; 3 - Exit program.
listobjarrayYesArray of short dramas

Body.list(Array) Object Payload

Array of short dramas

ParameterTypeRequiredDescription
src_appidstringYesAppID of the Mini Program that submitted the program for review
drama_idstringYesID of the program submitted for review

3. Response Parameters

Response Body Response Payload

ParameterTypeDescription
errcodenumberError code
errmsgstringError message
listobjarrayArray of short dramas

Res.list(Array) Object Payload

Array of short dramas

ParameterTypeDescription
src_appidstringAppID of the Mini Program that submitted the program for review
drama_idstringID of the program submitted for review
statusnumberShort drama status. 0 - Not joined; 1 - Under review; 2 - Review passed; 3 - Review rejected; 4 - Exiting program; 5 - Has been delisted

4. Notes

  1. This API must be invoked by the Mini Program associated with the program submission for review. That is, the appid corresponding to the access_token must be equal to src_appid.
  2. The maximum number of short dramas that can be added in a single batch is 100.
  3. Short dramas must have a bitrate greater than 0.5 Mbps and a resolution greater than 720p.
  4. If any short drama included in the batch does not meet the conditions when joining the program, the addition of all short dramas in this request will fail. Developers can query the status of the short dramas by using the batch query with action_type=2.

5. Code Example

5.1 Example request for joining/exiting the program

Request Example

This example only demonstrates joining the program. To exit the program, change action_type to 3.

{
   "action_type": 1,
   "list": [
           {"src_appid":"example_src_appid", "drama_id":"123456"},
           {"src_appid":"example_src_appid", "drama_id":"123457"}
     ]
}

Response Example

{
    "errcode":0,
    "errmsg":"ok"
}

{ // When joining the program, if the resolution or bitrate does not meet the conditions
    "errcode":106017,
    "errmsg":"Insufficient resolution or bitrate"
}

{ // When joining the program, if a short drama with the same content already exists in the authorization library
    "errcode":106018,
    "errmsg":"A short drama with identical content already exists in the official authorization library. Please do not authorize it again."
}

5.2 Example request for querying the program

Request Example

{
   "action_type": 2,
   "list": [
           {"src_appid":"example_src_appid", "drama_id":"123456"},
           {"src_appid":"example_src_appid", "drama_id":"123457"}
     ]
}

Response Example

{
   "list": [
           {"src_appid":"example_src_appid", "drama_id":"123456", "status": 0 },
           {"src_appid":"example_src_appid", "drama_id":"123457", "status": 1 }
     ],
    "errcode":0,
    "errmsg":"ok"
}

6. Error Codes

The following is the error code list of this API, other error codes can refer to Common Error Codes; When encountering errors in calling the API, you can use the official API Diagnostic Tool to assist in locating and analyzing problems.

Error CodeError Description
-1System error, please try again
0Success
1Does not exist
2Invalid parameter
21000This program is not authorized for playback. Please authorize it via the backend API.
21001The encrypted sessionkey for the user does not exist
21002The merchant's encrypted package is not Base64 encoded
21003Failed to decrypt the merchant's encrypted package. Please ensure it is encrypted according to the encryption scheme provided in the integration documentation, or that the sessionkey is the latest one for the current user.
21004The plaintext before merchant encryption is not in a valid JSON format or the field types are incorrect. Please check according to the integration documentation.
21005The required parameter values (openid, src_appid, and drama_id) in the merchant encryption are empty
21006The input parameters of the player do not match the parameter values in the merchant's encrypted package
21007The openid in the encrypted package is invalid
2100821008 Developer has not enabled pre-fetching
2100921009 Insufficient merchant traffic

7. Applicable Scope

The callable account types for this API are not yet clear, or are determined by the calling parameters in business. Please refer to the actual calling situation.