收藏
回答

小微商户进件,v3版本接口申请单查询api和v2版本接口申请单查询api结果不一致

business_code为39,服务商ID为1511399791

小微商户通过v2接口进件,然后进行申请单查询

v2版本请求:

11:16:13,834  INFO WeiXinPayUtil:228 - weixin:https://api.mch.weixin.qq.com/applyment/micro/getstate

<xml><sign><![CDATA[2fb402441284297623dd545e4847f2b40b58c60af73874a8b0b6a2e1c0bce015]]></sign><mch_id><![CDATA[1511399791]]></mch_id><sign_type><![CDATA[HMAC-SHA256]]></sign_type><business_code><![CDATA[39]]></business_code><nonce_str><![CDATA[dfYzXIDwdl1QxxbS]]></nonce_str><version><![CDATA[1.0]]></version></xml>

v2版本返回进件完成:

11:16:14,236  INFO WeiXinPayUtil:254 - weixin re:https://api.mch.weixin.qq.com/applyment/micro/getstate

<xml><return_code><![CDATA[SUCCESS]]></return_code>

<return_msg><![CDATA[OK]]></return_msg>

<nonce_str><![CDATA[xhXQQZ9LyDYDwaE8]]></nonce_str>

<sign><![CDATA[A7AB3449FF4510C8D49DE51C16270155DAA657AF7D247FF44628A63EB649B609]]></sign>

<result_code><![CDATA[SUCCESS]]></result_code>

<applyment_id><![CDATA[2000002127769912]]></applyment_id>

<applyment_state><![CDATA[FINISH]]></applyment_state>

<applyment_state_desc><![CDATA[完成]]></applyment_state_desc>

<sub_mch_id><![CDATA[1552362351]]></sub_mch_id>

</xml>


v3版本接口请求:

11:46:12,177  INFO WeixinPayV3Util:148 - weixinV3 Get Request:https://api.mch.weixin.qq.com/v3/applyment4sub/applyment/business_code/39

v3版本接口返回:其中equest-ID为ok3rzj,返回找不到申请单:

11:46:12,183  INFO WeixinPayV3Util:157 - weixinV3 Get Response:https://api.mch.weixin.qq.com/v3/applyment4sub/applyment/business_code/39 equest-ID:ok3rzj

{"code":"PARAM_ERROR","message":"未能找到申请单"}


v3版本接口使用applyment_id查询,同样找不到申请单:

12:00:15,811  INFO WeixinPayV3Util:151 - weixinV3 Get Request:https://api.mch.weixin.qq.com/v3/applyment4sub/applyment/applyment_id/2000002127769912

12:00:15,814  INFO WeixinPayV3Util:160 - weixinV3 Get Response:https://api.mch.weixin.qq.com/v3/applyment4sub/applyment/applyment_id/2000002127769912 equest-ID:xjoe4s

{"code":"PARAM_ERROR","message":"申请单类型不匹配,未能找到申请单"}


最后一次编辑于  2020-06-16
回答关注问题邀请回答
收藏

1 个回答

  • 北望沣渭
    北望沣渭
    2020-06-16

    v2及v3的小微商户入驻不兼容,用v2申请就用v2查;用v3申请就用v3查,不能串。

    2020-06-16
    有用 2
    回复
登录 后发表内容
问题标签