# Submitting the Code for Review

This API is used to submit the uploaded code of a Mini Program (via the "Upload Code" API) for review.

# Request Address

POST https://api.weixin.qq.com/wxa/submit_audit?access_token=ACCESS_TOKEN

# Request Parameters

Parameter Type Required Description
access_token String Yes Mini Program API Call Token
item_list Object Array Yes The list of review items. Its value ranges from 1 to 5.
feedback_info String No Feedback content. It contains a maximum of 200 characters.
feedback_stuff String No The list of media_id separated by using |. A maximum of five pictures are supported. It can be obtained by uploading the feedback via the "Add Temporary Media" API.

Note: The feedback_info and feedback_stuff fields can be used only when the previous version is rejected. Otherwise, ignore these two fields.

# Review items

Parameter Type Required Description
address String Yes A page of the Mini Program. It can be obtained by calling the "Obtain a Page List of a Mini Program" API.
tag String No A tag for a Mini Program. Tags can be separated by spaces. A maximum of 10 tags are supported with a length of up to 20 characters.
first_class String Yes Primary category name
second_class String No Secondary category name
third_class String No Tertiary category name
first_id String Yes Primary category ID
second_id String Yes Secondary category ID
third_id String No Secondary category ID
title String Yes The title of a Mini Program's page. It contains a maximum of 32 characters.

Note: The first_class, second_class, third_class, first_id, second_id, and third_id fields are obtained by calling the "Obtain the Category Information Entered During Review" API.

POST data example

{
	"item_list": [
	{
		"address":"index",
		"tag":"Learning Life",
		"first_class": "Entertainment",
		"second_class": "News",
		"first_id":1,
		"second_id":2,
		"title": "Homepage"
	}
	{
		"address":"page/logs/logs",
		"tag":"Learning Work",
		"first_class": "Education",
		"second_class": "Academic education",
		"third_class": "Higher education",
		"first_id":3,
		"second_id":4,
		"third_id":5,
		"title": "Log"
	}
	],
	"feedback_info": "blablabla",
    	"feedback_stuff": "xx|yy|zz"
}

# Response Parameters

Parameter Type Description
errcode Number Error code
errmsg String Error message
auditid String Review ID

Example of returned result

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

# Error Code

Error Code Description
-1 The system is busy.
0 Successful
86000 It is not called by a third party on behalf of the Mini Program.
86001 No third-party code is submitted.
85006 The tag format is incorrect.
85007 The page URL is incorrect.
85008 The entered category is incorrect.
85009 A version is being reviewed.
85010 An item in the item_list is empty.
85011 The entered title is incorrect.
85023 The number of projects entered in the review list is not within the range from 1 to 5.
85077 The Mini Program's category information is invalid (The category information contains a category that has been deleted officially. Please select another category).
86002 The Mini Program is not configured with an alias, profile photo, and brief introduction. Complete them and then re-submit the code.
85085 Too many Mini Programs are submitted for review in the recent seven days. Please wait and re-submit the code after the reviews are complete.
85086 You need to upload the code before submitting it for review.
85087 The navigateToMiniProgram API has been called for the Mini Program. Please declare the redirection to the appid list and then re-submit the code.