视频一区二区三区自拍_千金肉奴隷1985未删减版在线观看_国产成人黄色视频在线播放_少女免费播放片高清在线观看_国产精品v欧美精品v

Login expired. Please log in again.

Feedback

0/300

Feedback

Submitted successfully

ok

Feedback

Network exception, please try again later

ok

Modify Customs Declaration Info API

Latest update time:2022.08.04 Release notes

This API allows merchants to modify additional order information.

Tips:

This API will generate new data for declaration while invalidating the old application data. There is no need to call the re-push API. This API can be used to modify only the merchant's customs registration No., tariff, sub-order amount, logistics fee, and product price. If the merchant's customs registration No. is modified, the new registration No. and registered name of the merchant will be obtained for declaration again.

1. API Intro

Applicable object: Common mode Institutional mode

API rules:https://apihk.mch.weixin.qq.com/v3/global/customs/orders

Request method:PATCH


Pathparameter is a path parameter.
Queryparameter needs to be passed in the request URL.
Bodyparameter needs to be passed in the request JSON.

2. Request Parameters

Name Variable Name Type Required Description
Institution APPID appid string[1,32] Yes Body Specifies Official Account ID assigned
by WeChat
Example: wxd678efh567hg6787
Merchant ID mchid string[1,32] Yes Body Specifies Merchant ID assigned by
WeChat Payment
Example: 1230000109
Merchant order No. out_trade_no string[1,32] Yes Body internal order No. of the merchant system. Should be within 32 characters and can only contain numbers, uppercase and lowercase letters, and _-|*@. It is unique for a merchant ID.
Example: 20150806125346
WeChat order No. transaction_id string[1,32] Yes Body Order No. returned by WeChat Pay
Example: 1000320306201511078440737890
Customs customs string[1,32] Yes Body Customs for declaration. For the enumerated values, refer to Parameter Specifications
Example: SHANGHAI_ZS
Merchant's customs registration No. merchant_customs_no string[1,32] Yes Body Customs registration No. of the merchant
Example: 123456
Tariff duty int No Body Tariff (in 0.01 CNY). It is not required and will not be submitted to the customs.
Example: 88
Merchant sub-order No. sub_order_no string[1,32] No Body Merchant sub-order No. It is required if there is a split order.
Example: 20150806125346
Sub-order amount order_fee int No Body Sub-order amount (in 0.01 CNY). Cannot exceed the original order amount. order\_fee=transport_fee+product_fee (payable amount = logistics fee + product price). It is required if there is a split order
Example: 888
Logistics fee transport_fee int No Body Logistics fee (in 0.01 CNY). It is required if there is a split order.
Example: 888
Product price product_fee int No Body Product price (in 0.01 CNY). It is required if there is a split order.
Example: 888

Request Eample:

{
 "appid": "wxd678efh567hg6787",
   "mchid": "1230000109",
   "out_trade_no": "20150806125346",
   "transaction_id": "1000320306201511078440737890",
   "sub_order_no": "20150806125346",
   "customs": "SHANGHAI_ZS",
   "merchant_customs_no": "123456",
   "duty": 888,
   "order_fee": 888,
   "transport_fee": 888,
   "product_fee": 888
}	

{
  "currency": "CNY",
  "out_trade_no": "P20150806125346",
  "sub_mchid": "1900000109"
}

									{
										"stock_id": ".NET",
										"limit": 10,
									}

									{
										"stock_id": "Python",
										"stock_creator_mchid": "123456",
										"limit": 10,
									}

3. Response Parameters

Response for successful request:

Name Variable Name Type Required Description
Institution APPID appid string[1,32] Yes Official Account ID assigned by WeChat
Example: wxd678efh567hg6787
Merchant ID mchid string[1,32] Yes Merchant ID assigned by WeChat Pay
Example: 1230000109
Declaration status state string[1,32] Yes Declaration result status code
PROCESSING:Declaration in process
UNDECLARED:Undeclared
SUBMITTED:Modified but not declared
SUCCESS:Declaration succeeded
FAIL:Declaration failed
EXCEPT:Exceptional customs API
Example: PROCESSING
Merchant order No. out_trade_no string[1,32] Yes internal order No. of the merchant system. Should be within 32 characters and can only contain numbers, uppercase and lowercase letters, and _-|*@. It is unique for a merchant ID.
Example: 20150806125346
WeChat order No. transaction_id string[1,32] Yes Order No. returned by WeChat Pay
Example: 1000320306201511078440737890
Merchant sub-order No. sub_order_no string[1,32] No Merchant sub-order No., which is returned for a split order.
Example: 20150806125346
WeChat sub-order No. sub_order_id string[1,32] No WeChat sub-order No., which is returned for a split order.
Example: 20150806125346
Last update time modify_time string[1,32] No Last update time, which is obtained from the WeChat server.
Example: 2015-09-01T10:00:00+08:00
Verification institution verify_department string[1,16] Yes Verification institution code
UNIONPAY:Unionpay
NETSUNION:NetsUnion
OTHERS:Others
Example: UNIONPAY
Transaction ID from verification institution Verify_department_trade_id string[1,64] Yes Transaction ID from the verification institution (such as UnionPay) for the merchant to register at the customs
Example: 2018112288340107038204310100000

Response for failed request:

Name Variable Name Type Required Description
Returned status code code string[1,32] Yes Error code. See the error code list for the enumerated values.
Returned information message string[1,256] Yes Returned message. It indicates the reason for the error if not empty.
Detailed error description detail object No It is returned when code is PARAM_ERROR. Details will be described below.
Name Variable Name Type Required Description
The location of incorrect parameter field string[1,256] Yes If the incorrect parameter is in the JSON for request body, it is populated with the JSON Pointer pointing to this parameter. If the incorrect parameter is in the request URL or querystring, it is populated with the variable name of this parameter.
Value of the incorrect parameter value string[1,256] Yes Value of the incorrect parameter
Cause of error issue string[1,256] Yes Cause of error
Location of the incorrect parameter location string[1,256] No body: The incorrect parameter is in the JSON for request body
url: The incorrect parameter is in the request URL
query: The incorrect parameter is in the querystring of the request

Response Example:

    {
	"appid": "wxd678efh567hg6787",
	 "mchid": "1230000109",
	 "state": "SUBMITTED",
	 "out_trade_no": "20150806125346",
	 "transaction_id": "1000320306201511078440737890",
	 "sub_order_no": "20150806125346",
	 "sub_order_id": "20150806125346",
	 "modify_time": "2015-09-01T10:00:00+08:00",
	 "verify_department": "UNIONPAY",
	 "verify_department_trade_id": "2018112288340107038204310100000"
  }
{
	"code": "INVALID_REQUEST",
	"message": "Parameter format verification error",
	"detail": {
		"field": "#/properties/payer",
		"value": "1346177081915535577",
		"issue": "與ALLOF schema不符",
		"location": "body"
	}
}

									{
										"stock_id": ".NET",
										"limit": 10,
									}

									{
										"stock_id": "Python",
										"stock_creator_mchid": "123456",
										"limit": 10,
									}

4. Error Codes

Error Message Description Solution
INVALID_REQUEST Customs declaration record does not exist. The customs declaration record does not exist. Please apply again or contact WeChat Pay Assistant to find out the reason.
Declaration is in process for the payment order. You cannot modify the declaration information. support modifying the information of a payment order that is in the process of declaration. You can modify the payment order information using the modification API after the declaration is completed.
Customs information is not configured. The customs declaration API is only accessible after the customs information has been configured for the merchant. Please configure the customs information by referring to the customs registration guidelines above.
Order amount does not match. The order amount for declaration must be same as the payment amount. Check whether the order amount for declaration is correct.
NOAUTH The merchant has not registered with the current customs. The merchant has not registered with the current customs. Try again after the registration is completed.
Self-Clearance is not enabled. Check whether the Self-Clearance tool has been enabled for the merchant ("WeChat Pay Merchants Platform" > "Product Center" > "Apply for Self-Clearance").
PARAM_ERROR Currency is not set. Currency is required for split declaration. Check whether fee_type is empty.
Transaction currency is different from merchant's settlement currency. Check whether the currency parameter (fee_type) is empty
Parameter error Invalid parameter. The parameter may be incorrect or is missing. Check whether the API parameters have been summited as required.
Incorrect order amount The order amount is different from the payment order amount. Make a check and declare again.
Incorrect transaction order information The transaction order information is incorrect. Make a check and declare again.
Merchant's split declaration amount is incorrect. The merchant's split order amount is greater than the amount of the original payment order. Make a check and declare again.
Transaction currency is different from merchant's settlement currency. Declare again, or contact WeChat Pay Assistant to find out the reason
Missing parameters in split declaration. Parameters fee_type, order_fee, transport_fee, and product_fee are required for split order.
SYSTEMERROR System error Declare again, or contact WeChat Pay Assistant to find out the reason.
    Page Navigation

About  WeChat  Pay

Powered By Tencent & Tenpay Copyright©

2005-2024 Tenpay All Rights Reserved.

Contact Us
Wechat Pay Global

WeChat Pay Global

置頂