1. Internal
dy-gateway
  • Health
    • 健康检查
      GET
  • Open
    • 统一券核销入口
      POST
    • 验券准备
      POST
    • 获取当前抖音 access_token
      GET
    • 查询门店信息
      GET
  • Internal
    • 查询核销流水
      GET
    • 查询核销汇总报表
      GET
    • 创建核销端应用
      POST
    • 查询核销端应用列表
      GET
    • 修改应用 token 读取权限
      PATCH
  • 数据模型
    • HealthResponse
    • ErrorResponse
    • MessageResponse
    • AppStatus
    • VerificationStatus
    • EnrichmentStatus
    • OrderStatus
    • PrepareCouponRequest
    • VerifyCouponRequest
    • VerificationView
    • VerificationResponse
    • AccessToken
    • AccessTokenResponse
    • VerifierApp
    • CreateAppResponseData
    • CreateAppRequest
    • CreateAppResponse
    • AppListResponse
    • UpdateTokenAccessRequest
    • VerificationListResponse
    • VerificationSummaryRow
    • VerificationSummaryResponse
  1. Internal

创建核销端应用

POST
/v1/internal/apps
一个 app 对应一套开放接口访问 key/secret。
如果请求中未传 client_key 或 secret,服务端会自动生成。
返回体中的 secret 仅在创建成功时返回一次。

请求参数

Authorization
API Key
在 header 添加参数
X-XTJ-UID
示例:
X-XTJ-UID: ********************
or
Body 参数application/json必填

示例
{
    "name": "string",
    "code": "string",
    "description": "string",
    "client_key": "string",
    "secret": "string",
    "status": "active",
    "allow_token_read": true
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/internal/apps' \
--header 'X-XTJ-UID: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "string",
    "code": "string",
    "description": "string",
    "client_key": "string",
    "secret": "string",
    "status": "active",
    "allow_token_read": true
}'

返回响应

🟢201已创建
application/json
创建成功
Body

示例
{
    "data": {
        "app": {
            "id": 0,
            "created_at": "2019-08-24T14:15:22.123Z",
            "updated_at": "2019-08-24T14:15:22.123Z",
            "name": "string",
            "code": "string",
            "description": "string",
            "client_key": "string",
            "status": "active",
            "allow_token_read": true,
            "last_used_at": "2019-08-24T14:15:22.123Z"
        },
        "secret": "string"
    }
}
🟠400请求有误
🟠401未认证
修改于 2026-03-16 02:28:54
上一页
查询核销汇总报表
下一页
查询核销端应用列表
Built with