版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

Description: 模板优惠卷核销接口

Body-parameters:

Parameter

Type

Required

Description

opfid

string

true

开放平台ID

nonce

string

true

6位随机字串不能为空

timestamp

string

true

签名时间戳

signature

string

true

签名

uid

string

true

第三方用户id

companyId

string

true

第三方公司id

templateId

string

true

模板id

Request-body:

{
  "opfid": "10",
  "nonce": "5wzawg",
  "timestamp": "2022-05-19 14:55:07",
  "signature": "ojha19",
  "uid": "2c9812df-d7d4-4ac2-b9b9-c965fa0dd3b9",
  "companyId": "bc299ab7-4b46-4929-9bb3-7e9abd83c18c",
  "templateId": "10"
}

Response-fields:

Field

Type

Description

Since

code

string

状态码

-

errorCode

string

错误状态码

-

msg

string

状态描述

-

data

object

数据

-

tempalteIdstring模板id


Response-example:

{
  "code": "24817",
  "errorCode": "24817",
  "msg": "9nctvi",
  "data": {

          “templateId”:"123123123"

   }
}

Curl-example:

curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i /api/template/auto/pay --data '{
  "opfid": "10",
  "nonce": "5wzawg",
  "timestamp": "2022-05-19 14:55:07",
  "signature": "ojha19",
  "uid": "2c9812df-d7d4-4ac2-b9b9-c965fa0dd3b9",
  "companyId": "bc299ab7-4b46-4929-9bb3-7e9abd83c18c",
  "templateId": "10"
}'