状态码 | 错误码 | 错误描述 | 解决方案 |
---|---|---|---|
400 | SYSTEM_ERROR | 系统繁忙 | 可能发生了网络或者系统异常,导致服务调用失败,商户可以用同样的请求发起重试 |
400 | INVALID_PARAMETER | ,请检查参数 | 请根据接口返回的参数非法的具体错误信息,修改参数后进行重试 |
400 | CERTIFICATE_IS_INVALID | 凭证已作废 | 对应的凭证已经作废,不能再核销,修改入参后进行重试。 |
400 | CERTIFICATE_IS_USED | 凭证已核销 | 对应的凭证已经被核销,不能再次核销,修改入参后进行重试。 |
400 | CERTIFICATE_NOT_EXIST | 凭证不存在或未发放 | 对应的凭证不存在,修改入参后进行重试。 |
curl --location --request POST 'http://dev-cn.your-api-server.com/v3/alipay/marketing/certificate/certification/use' \
--header 'authorization: ALIPAY-SHA256withRSA app_id=$appid,timestamp=$now,nonce=$uuid,expired_seconds=600,sign=$sign' \
--header 'alipay-request-id: $requestid' \
--header 'Content-Type: application/json' \
--data-raw '{
"biz_dt":"2023-09-07 18:42:10",
"certificate_use_info_list":[
{
"code":"YHQ251847751237542"
}
],
"order_id":"2023090701502300000005940087259495",
"out_biz_no":"a879f99e-1494-4d4a-b125-e526027ee5ce",
"shop_id":"2023090700502007040026779831",
"user_id":"2088912480905594"
}'
{
"certificate_use_result_list":[
{
"certificate_id":"2021042322001426261436764012",
"code":"124AB",
"encrypted_code":"LLyABKAESLgosRSH/OAfU5",
"use_order_no":"2023052100445005835800000045",
"result":"SUCCESS",
"msg":"核销成功",
"out_order_id":"2023073101",
"order_id":"1997081101502300000001290055702988",
"amount_info":{
"original_price":"10.00",
"sale_price":"5.00",
"receipt_amount":"4.00"
},
"serial_info_list":{
"serial_no":"11111",
"amount_info":{
"original_price":"10.00",
"sale_price":"5.00",
"receipt_amount":"4.00"
}
}
}
]
}