支付成功

更新时间:

用户购买商品并付款成功后,云市场会调用该SPI,将实例相关信息传递给商家。

  • 厂商接收到请求后返回成功响应, 云市场则认为该通知请求成功,后续不会再调用。

  • 请避免阻塞此接口,若耗时较长,异步处理业务逻辑。如果失败云市场都会再次调用(重试时间间隔1m 1m 1m 5m 10m 10m 10m 1h 1h 2h 4h),直到获取到成功状态。如果重试没有成功则会标记为失败状态,后续等待厂商通过OpenAPI [通知失败列表] [确认查收] 主动拉取消息。

  • 该接口可能会被多次调用,如果被重复调用,请保证接口的幂等性(参数中的 requestId)。

参数

参数

必选

类型及范围

说明

action

true

String

固定值:orderPay

requestId

true

String

请求ID,用于幂等

aliUid

true

String

购买商品的阿里云用户标识

orderBizId

true

String

云市场业务实例ID

orderId

true

String

云市场订单ID

productCode

true

String

云市场商品code

skuId

true

String

商品规格ID

token

true

String

SPI 安全令牌

返回值

HTTP/1.1 200 OK

Content-Type: application/json

{"success": true}

调用示例

https://example.aliyundoc.com?action=orderPay&aliUid=12345678901234&orderBizId=12345&orderId=123456789&productCode=cmapi00001&requestId=469363e82a2847838bfcaeed436da272&skuId=yuncode215700000&token=302e51909f91a752b65a618c579ec881

返回示例

{"success": true}