API接口目录

政企业务

政企商品API
政企价格API
政企库存API
政企订单API
政企物流API
政企发票API
政企售后API
政企其他API
政企易企购API
政企抽检API
异常码自查工具
suning.govbus.alipay.create 支付宝支付接口
¥免费

支付宝支付接口

公共参数
请求参数
名称 类型 是否必须 示例值 描述
orderIdsStringN
orderIdStringY100005242245政企订单号
backUrlStringNhttp://xxxxx支付成功的回跳链接
channelTypeStringYPC/WAP/SDK下单支付渠道
mobileOSStringN0101代表IOS;02代表安卓;
mobileModelStringN苹果6手机型号
响应参数
名称 类型 示例值 描述
serviceStringcreate_direct_pay_by_user支付宝接口名称
partnerString2088421564849326合作者身份 ID
inputCharsetStringutf-8参数编码字符集
signTypeStringRSA签名方式
signStringSOodNdHzFG26hkJGoUiglnbm1uf5ZFeo1FdkSv6iIWo1N签名
notifyUrlStringhttp://tradepre.suning.com/spps-web/alipay/notify/payNotify.htm服务器异步通知URL
returnUrlStringhttp://tradepre.suning.com/spps-web/alipay/notify/pcFrontNotify.htm页面跳转同步通知页面
outTradeNoString15670172137197236966447支付流水号
subjectString苏宁易购商品商品名称
totalFeeString5.10交易金额
sellerIdString2088421564849326卖家支付宝用户号
paymentTypeString1支付类型
showUrlStringhttp:www.suning.com商品展示网址
itBPayString2880m超时时间
rnCheckStringF实名验证
buyerCertNoString1236523854买家证件号码
buyerRealNameString张三买家真实姓名
sceneStringZJCZTJF收单场景
appPayStringY是否需要唤起支付宝客户端支付
goodsTypeString1商品类型
hbFqParamStringhb_fq_seller_percent^100|hb_fq_num^3花呗相关参数
enablePaymethodStringpcredit,moneyFund可用渠道
disablePaymethodStringpcreditpayInstallment不可用渠道
请求示例
  • XML示例
  • JSON示例
复制全部代码
                                <sn_request>
  <sn_body>
    <createAlipay>
      <backUrl>http://xxxxx</backUrl>
      <mobileModel>苹果6</mobileModel>
      <channelType>PC/WAP/SDK</channelType>
      <orderIds>
        <orderId>100005242245</orderId>
      </orderIds>
      <mobileOS>01</mobileOS>
    </createAlipay>
  </sn_body>
</sn_request>

                                
                                {
  "sn_request": {
    "sn_body": {
      "createAlipay": {
        "backUrl": "http://xxxxx",
        "mobileModel": "苹果6",
        "channelType": "PC/WAP/SDK",
        "orderIds": [
          {
            "orderId": "100005242245"
          }
        ],
        "mobileOS": "01"
      }
    }
  }
}
                                
响应示例
  • XML示例
  • JSON示例
复制全部代码
                              <sn_responseContent>
  <sn_body>
    <createAlipay>
      <disablePaymethod>pcreditpayInstallment</disablePaymethod>
      <appPay>Y</appPay>
      <enablePaymethod>pcredit,moneyFund</enablePaymethod>
      <subject>苏宁易购商品</subject>
      <sign>SOodNdHzFG26hkJGoUiglnbm1uf5ZFeo1FdkSv6iIWo1N</sign>
      <showUrl>http:www.suning.com</showUrl>
      <buyerRealName>张三</buyerRealName>
      <goodsType>1</goodsType>
      <paymentType>1</paymentType>
      <scene>ZJCZTJF</scene>
      <rnCheck>F</rnCheck>
      <sellerId>2088421564849326</sellerId>
      <buyerCertNo>1236523854</buyerCertNo>
      <partner>2088421564849326</partner>
      <hbFqParam>hb_fq_seller_percent^100|hb_fq_num^3</hbFqParam>
      <totalFee>5.10</totalFee>
      <service>create_direct_pay_by_user</service>
      <outTradeNo>15670172137197236966447</outTradeNo>
      <notifyUrl>http://tradepre.suning.com/spps-web/alipay/notify/payNotify.htm</notifyUrl>
      <signType>RSA</signType>
      <inputCharset>utf-8</inputCharset>
      <returnUrl>http://tradepre.suning.com/spps-web/alipay/notify/pcFrontNotify.htm</returnUrl>
      <itBPay>2880m</itBPay>
    </createAlipay>
  </sn_body>
</sn_responseContent>

                              
                              {
  "sn_responseContent": {
    "sn_body": {
      "createAlipay": {
        "disablePaymethod": "pcreditpayInstallment",
        "appPay": "Y",
        "enablePaymethod": "pcredit,moneyFund",
        "subject": "苏宁易购商品",
        "sign": "SOodNdHzFG26hkJGoUiglnbm1uf5ZFeo1FdkSv6iIWo1N",
        "showUrl": "http:www.suning.com",
        "buyerRealName": "张三",
        "goodsType": "1",
        "paymentType": "1",
        "scene": "ZJCZTJF",
        "rnCheck": "F",
        "sellerId": "2088421564849326",
        "buyerCertNo": "1236523854",
        "partner": "2088421564849326",
        "hbFqParam": "hb_fq_seller_percent^100|hb_fq_num^3",
        "totalFee": "5.10",
        "service": "create_direct_pay_by_user",
        "outTradeNo": "15670172137197236966447",
        "notifyUrl": "http://tradepre.suning.com/spps-web/alipay/notify/payNotify.htm",
        "signType": "RSA",
        "inputCharset": "utf-8",
        "returnUrl": "http://tradepre.suning.com/spps-web/alipay/notify/pcFrontNotify.htm",
        "itBPay": "2880m"
      }
    }
  }
}
                              
异常示例
  • XML示例
  • JSON示例
复制全部代码

  
  	API异常码
  	异常码中文描述
  

                           	  
{
  "sn_responseContent": {
    "sn_error": {
      "error_code": "API异常码",
      "error_msg": "异常码中文描述"
    }
  }
}
                           		
业务异常码
异常码 错误描述 解决方案
biz.govbus.createalipay.missing-parameter:* 参数必填 请检查此参数的值,*号表示参数字段名
isp.sys.service.unavailable.gcapi 接口异常 系统异常,请稍后重试
biz.govbus.createalipay.invalid-biz:100 输入报文格式错误 输入报文格式错误,请确认报文格式
biz.govbus.createalipay.invalid-biz:101 订单号错误,请输入正确的订单号 订单号错误,请输入正确的订单号
biz.govbus.createalipay.invalid-biz:102 订单不属于该用户,请确认订单号后重新输入 订单不属于该用户,请确认订单号后重新输入
biz.govbus.createalipay.invalid-biz:103 订单状态无法支付 订单状态无法支付
biz.govbus.createalipay.invalid-biz:105 订单支付方式不为支付宝支付 订单支付方式不为支付宝支付
biz.govbus.createalipay.invalid-biz:106 合并支付的订单不属于同一账户 检查入参订单是否属于同一账户
biz.govbus.createalipay.invalid-biz:108 20账期+在线支付暂不支持多单合并支付 检查入参是否是单订单支付
公共异常码
API工具
FAQ