Xsolla-logo
  • 文档
  • 创建帐户

获取优惠券促销活动Server-sideAdmin

get/v2/project/{project_id}/admin/coupon/{external_id}

获取指定的优惠券促销活动。

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

项目编号。您可以在您的发布商帐户项目名称旁边。

Example: 44056
external_id
required
integer

Promotion external ID. Unique promotion identifier within the project.

Example: coupon_44056_1
Responses
200

优惠券已成功收到。

401

基本认证未通过或错误。确保您使用了基本认证或正确的凭据。

404

未找到优惠券。请确保external_id正确无误。

Request samples
Response samples
application/json
{
  • "bonus": [
    ],
  • "date_end": "2020-04-25T18:16:00+05:00",
  • "date_start": "2020-04-15T18:16:00+05:00",
  • "external_id": "summer20221",
  • "is_enabled": true,
  • "name": {
    },
  • "redeem_code_limit": null,
  • "redeem_total_limit": 100,
  • "redeem_user_limit": null,
  • "total_limit_state": {
    }
}