diff options
| author | Zhineng Li <im@zhineng.li> | 2026-07-12 17:11:17 +0800 |
|---|---|---|
| committer | Zhineng Li <im@zhineng.li> | 2026-07-12 17:11:17 +0800 |
| commit | 1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 (patch) | |
| tree | 5f0857666365b7e40cdaa3733ebe1f3ba9e13c67 /data/zh_cn/bssopenapi/2023-09-30/api-docs.php | |
| parent | 7347bac4ab7e136157fc94777e6cf87ef9e08599 (diff) | |
| download | afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.tar.gz afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.zip | |
update APIs 20260712
Diffstat (limited to 'data/zh_cn/bssopenapi/2023-09-30/api-docs.php')
| -rw-r--r-- | data/zh_cn/bssopenapi/2023-09-30/api-docs.php | 12486 |
1 files changed, 5686 insertions, 6800 deletions
diff --git a/data/zh_cn/bssopenapi/2023-09-30/api-docs.php b/data/zh_cn/bssopenapi/2023-09-30/api-docs.php index 2903330..876b70e 100644 --- a/data/zh_cn/bssopenapi/2023-09-30/api-docs.php +++ b/data/zh_cn/bssopenapi/2023-09-30/api-docs.php @@ -1,1594 +1,1031 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'BssOpenApi', - 'version' => '2023-09-30', - ], + 'info' => ['style' => 'RPC', 'product' => 'BssOpenApi', 'version' => '2023-09-30'], 'directories' => [ [ - 'id' => 223311, - 'title' => '订单', + 'children' => ['GetOrders', 'GetOrderDetail'], 'type' => 'directory', - 'children' => [ - 'GetOrders', - 'GetOrderDetail', - ], + 'title' => '订单', + 'id' => 412491, ], [ - 'id' => 208736, - 'title' => '发票', + 'children' => ['ListInvoiceTitle', 'ListInvoiceCandidate', 'CreateInvoice'], 'type' => 'directory', - 'children' => [ - 'ListInvoiceTitle', - 'ListInvoiceCandidate', - 'CreateInvoice', - ], + 'title' => '发票', + 'id' => 412487, ], [ - 'id' => 203314, - 'title' => '资金账户', + 'children' => ['CreateFundAccountPayRelation', 'SetFundAccountLowAvailableAmountAlarm', 'GetFundAccountCanWithdrawAmount', 'GetFundAccountAvailableAmount', 'GetFundAccountLowAvailableAmountAlarm', 'ListFundAccount', 'CancelFundAccountLowAvailableAmountAlarm', 'GetFundAccountCanAllocateCreditAmount', 'ListFundAccountPayRelation', 'GetFundAccountCanRecycleAmount', 'CreateFundAccountTransfer', 'GetFundAccountTransactionDetails', 'SetFundAccountCreditAmount', 'GetFundAccountCanTransferAmount'], 'type' => 'directory', - 'children' => [ - 'CreateFundAccountPayRelation', - 'SetFundAccountLowAvailableAmountAlarm', - 'GetFundAccountCanWithdrawAmount', - 'GetFundAccountAvailableAmount', - 'GetFundAccountLowAvailableAmountAlarm', - 'ListFundAccount', - 'CancelFundAccountLowAvailableAmountAlarm', - 'GetFundAccountCanAllocateCreditAmount', - 'ListFundAccountPayRelation', - 'GetFundAccountCanRecycleAmount', - 'CreateFundAccountTransfer', - 'GetFundAccountTransactionDetails', - 'SetFundAccountCreditAmount', - 'GetFundAccountCanTransferAmount', - ], + 'title' => '资金账户', + 'id' => 412452, ], [ - 'id' => 204580, - 'title' => '优惠券', + 'children' => ['DescribeCoupon', 'DescribeCouponItemList'], 'type' => 'directory', - 'children' => [ - 'DescribeCoupon', - 'DescribeCouponItemList', - ], + 'title' => '优惠券', + 'id' => 412467, ], [ - 'id' => 208201, - 'title' => '账单', + 'children' => ['CreateReportDefinition', 'ListReportDefinitions', 'DeleteReportDefinition'], 'type' => 'directory', - 'children' => [ - 'CreateReportDefinition', - 'ListReportDefinitions', - 'DeleteReportDefinition', - ], + 'title' => '账单', + 'id' => 412470, ], [ - 'id' => 208683, + 'children' => ['SaveCostCenterShareRule', 'QueryCostCenterShareRule', 'CreateCostCenter', 'ModifyCostCenter', 'DeleteCostCenter', 'QueryCostCenter', 'QueryCostCenterResource', 'CreateCostCenterRule', 'ModifyCostCenterRule', 'DeleteCostCenterRule', 'QueryCostCenterRule', 'AllocateCostCenterResource', 'QueryCostByCostCenter'], + 'type' => 'directory', 'title' => '财务单元', + 'id' => 412474, + ], + [ + 'children' => ['CheckBudgetNameExists', 'CreateBudget', 'DeleteBudget', 'DescribeBudget', 'DescribeBudgets', 'DescribeDeductLogs', 'DescribeFrInstances', 'QueryMonthlySlaList', 'SubmitSlaCouponApply', 'UpdateBudget'], 'type' => 'directory', - 'children' => [ - 'SaveCostCenterShareRule', - 'QueryCostCenterShareRule', - 'CreateCostCenter', - 'ModifyCostCenter', - 'DeleteCostCenter', - 'QueryCostCenter', - 'QueryCostCenterResource', - 'CreateCostCenterRule', - 'ModifyCostCenterRule', - 'DeleteCostCenterRule', - 'QueryCostCenterRule', - 'AllocateCostCenterResource', - ], + 'title' => '其他', + 'id' => 449771, ], ], 'components' => [ - 'schemas' => [ - 'DimItem' => [ - 'type' => 'object', - 'properties' => [ - 'PageInfo' => [ - 'type' => 'object', - 'properties' => [ - 'PageSize' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'CurrentPage' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Total' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - ], - ], - 'Values' => [ - 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/ItemValues', - ], - ], - 'Code' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - ], - ], - 'EcIdAccountId' => [ - 'type' => 'object', - 'properties' => [ - 'AccountIds' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - ], - 'EcId' => [ - 'type' => 'string', - ], - ], - ], - 'FieldOption' => [ - 'type' => 'object', - 'properties' => [ - 'IsDefault' => [ - 'type' => 'boolean', - ], - 'Value' => [ - 'type' => 'string', - ], - 'FunctionCode' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - ], - ], - 'ItemValues' => [ - 'type' => 'object', - 'properties' => [], - ], - ], + 'schemas' => [], ], 'apis' => [ - 'GetOrders' => [ - 'summary' => '查询用户或者分销客户订单列表情况。默认查询当前时间最近1小时范围内订单,如需查询更长时间范围的订单数据,请设CreateTimeStart和CreateTimeEnd参数。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'https', - ], + 'AllocateCostCenterResource' => [ + 'summary' => '资源实例(实例型和分拆型)从源财务单元分配到目标财务单元。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'], 'parameters' => [ [ - 'name' => 'CreateTimeEnd', - 'in' => 'query', - 'schema' => [ - 'description' => '创建时间段止(缺省查询当前时间最近1小时内订单),格式:YYYY-MM-ddTHH:mm:ssZ,时区: UTC', - 'type' => 'string', - 'required' => false, - 'example' => '2016-05-23T12:00:00Z', - ], - ], - [ - 'name' => 'PageNum', - 'in' => 'query', - 'schema' => [ - 'description' => '页码。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - ], - [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'description' => '每页条数。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], - ], - [ - 'name' => 'ProductCode', - 'in' => 'query', - 'schema' => [ - 'description' => '产品代码。', - 'type' => 'string', - 'required' => false, - 'example' => 'rds', - ], - ], - [ - 'name' => 'ProductType', - 'in' => 'query', - 'schema' => [ - 'description' => '产品类型。', - 'type' => 'string', - 'required' => false, - 'example' => 'rds', - ], + 'name' => 'FromOwnerAccountId', + 'in' => 'formData', + 'schema' => ['description' => '源财务单元的属主用户 ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1529600453335198'], ], [ - 'name' => 'SubscriptionType', - 'in' => 'query', - 'schema' => [ - 'description' => '订阅类型。取值:'."\n" - .'- Subscription:预付费。'."\n" - .'- PayAsYouGo:后付费。', - 'type' => 'string', - 'required' => false, - 'example' => 'Subscription', - ], + 'name' => 'FromCostCenterId', + 'in' => 'formData', + 'schema' => ['description' => '源财务单元 ID(必传)。'."\n" + ."\n" + .'- 0 表示未分配财务单元 ID'."\n" + .'- 大于 0 表示已分配的财务单元 ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '637180'], ], [ - 'name' => 'OrderType', - 'in' => 'query', - 'schema' => [ - 'description' => '订单类型,取值范围'."\n" - .'- New 新购'."\n" - .'- Renew 续费'."\n" - .'- Upgrade 升级'."\n" - .'- TempUpgrade 短时升级'."\n" - .'- Downgrade 降级'."\n" - .'- Refund 退款'."\n" - .'- Convert 付费类型转换'."\n" - .'- ResizeDisk 调整磁盘大小'."\n" - .'- CompensatoryRenew 补偿续费'."\n" - .'- IncreaseUpgrade 带宽升级'."\n" - .'- Exchange 换购'."\n" - .'- ChangeOperatingSystem 更换操作系统', - 'type' => 'string', - 'required' => false, - 'example' => 'New', - ], + 'name' => 'ToCostCenterId', + 'in' => 'formData', + 'schema' => ['description' => '目标财务单元 ID,取值:'."\n" + ."\n" + .'- -1 表示已分配资源移除到未分配。'."\n" + .'- 大于 0 表示分配到指定财务单元。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '638288'], ], [ - 'name' => 'PaymentStatus', - 'in' => 'query', + 'name' => 'ResourceInstanceList', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'description' => '支付状态。非退款订单,取值范围:'."\n" - .'- Unpaid:未支付。'."\n" - .'- Paid:已支付。'."\n" - .'- Cancelled:已作废。'."\n" - ."\n" - .'> 对于退款订单可置NULL。', - 'type' => 'string', - 'required' => false, - 'example' => 'Paid', + 'description' => '资源实例列表。', + 'type' => 'array', + 'items' => [ + 'description' => '资源实例列表。', + 'type' => 'object', + 'properties' => [ + 'ResourceUserId' => ['description' => '账单实例的属主用户 ID(必传)。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '273394581313325532'], + 'InstanceId' => ['description' => '出账粒度ID(必传)', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou;standard'."\n"], + 'ResourceType' => ['description' => '资源类型。', 'type' => 'string', 'required' => false, 'example' => 'SCU'], + 'PipCode' => ['description' => '产品Code,与费用中心账单产品Code一致。', 'type' => 'string', 'required' => false, 'example' => 'ecs'], + 'ResourceNick' => ['description' => '资源的自定义昵称。', 'type' => 'string', 'required' => false, 'example' => 'ecs-test-1'], + 'ApportionCode' => ['description' => '分拆型实例的分拆型,只有分拆型产品实例才需要传这个参数。'."\n" + .'- 目前分拆项产品有八种商品,其商品code分别是oss、dcdn、snapshot、vod、cdn、live、cbwp。'."\n" + .'- 这个分拆项字段一般是通过QueryCostUnitResource获取用户的某一个财务单元(包含未分配)下的所有账单实例(包括分拆型实例会带分拆项)。', 'type' => 'string', 'required' => false, 'example' => 'qwer1-cn-beijing'], + 'ResourceTag' => ['description' => '资源的Tag标签', 'type' => 'string', 'required' => false, 'example' => 'tag-test1'], + 'RelatedResources' => ['description' => '资源实例相关的资源。', 'type' => 'string', 'required' => false, 'example' => 'related-resource'], + 'ApportionName' => ['description' => '资源分拆名。', 'type' => 'string', 'required' => false, 'example' => 'split-item-test1'], + 'ResourceId' => ['description' => '资源ID', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou;standard:app'], + 'ResourceSource' => ['description' => '资源来源。取值:'."\n" + .'- AUTO_ALLOCATE:自动分配。'."\n" + .'- MANUAL_ALLOCATE:手动分配。', 'type' => 'string', 'required' => false, 'example' => 'AUTO_ALLOCATE'], + 'CommodityCode' => ['description' => '账单实例的商品code(必传)。', 'type' => 'string', 'required' => false, 'example' => 'oss'], + 'ResourceStatus' => ['description' => '资源状态。', 'type' => 'string', 'required' => false, 'example' => '0'], + 'ResourceUserName' => ['description' => '资源归属用户名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'CommodityName' => ['description' => '资源的商品名', 'type' => 'string', 'required' => false, 'example' => 'RESOURCE_UDR'], + 'ResourceGroup' => ['description' => '资源组。', 'type' => 'string', 'required' => false, 'example' => 'xihe_mpp'], + ], + 'required' => false, + ], + 'required' => true, ], ], [ - 'name' => 'CreateTimeStart', + 'name' => 'Nbid', 'in' => 'query', - 'schema' => [ - 'description' => '创建时间段起(缺省查询当前时间最近1小时内订单),格式:YYYY-MM-ddTHH:mm:ssZ,时区: UTC', - 'type' => 'string', - 'required' => false, - 'example' => '2016-05-23T13:00:00Z', - ], - ], - [ - 'name' => 'MemberUid', - 'in' => 'query', - 'schema' => [ - 'description' => '企业多账号中成员账号UID。无此场景,不用填写。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1779628988149763', - ], + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'BssApiPlainResult<CostCenterOperateDto>', + 'description' => 'BssApiPlainResult<CostCenterOperateDto>', 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '状态码。', - 'type' => 'string', - 'example' => 'Success', - ], - 'Message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'Successful!', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4', - ], - 'Success' => [ - 'description' => '是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Data' => [ - 'description' => '返回数据。', - 'type' => 'object', - 'properties' => [ - 'HostName' => [ - 'description' => '主机名。', - 'type' => 'string', - 'example' => 'test', - ], - 'PageNum' => [ - 'description' => '分页数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'description' => '每页条数。建议每页最大20条,条数过多会导致超时。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'TotalCount' => [ - 'description' => '总记录数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'OrderList' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'Order' => [ - 'description' => '订单列表。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'AfterTaxAmount' => [ - 'description' => '税后金额。', - 'type' => 'string', - 'example' => '66', - ], - 'ProductCode' => [ - 'description' => '主产品代码。', - 'type' => 'string', - 'example' => 'rds', - ], - 'CreateTime' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '2017-06-08T09:41:30Z', - ], - 'ProductType' => [ - 'description' => '主产品类型。', - 'type' => 'string', - 'example' => 'rds', - ], - 'RelatedOrderId' => [ - 'description' => '关联订单ID。', - 'type' => 'string', - 'example' => '234535345345342', - ], - 'PaymentCurrency' => [ - 'description' => '支付币种。 CNY:人民币。 USD:美元。 JPY:日元', - 'type' => 'string', - 'example' => 'CNY', - ], - 'PaymentTime' => [ - 'description' => '支付时间。', - 'type' => 'string', - 'example' => '2017-06-08T09:41:30Z', - ], - 'Tax' => [ - 'description' => '税。仅在国际站点使用', - 'type' => 'string', - 'example' => '1', - ], - 'OrderId' => [ - 'description' => '订单号', - 'type' => 'string', - 'example' => '237258627070169', - ], - 'SubscriptionType' => [ - 'description' => '订阅类型,'."\n" - .'Subscription:预付费。'."\n" - .'PayAsYouGo:按量付费。', - 'type' => 'string', - 'example' => 'Subscription', - ], - 'PretaxGrossAmount' => [ - 'description' => '原始金额。', - 'type' => 'string', - 'example' => '0', - ], - 'OrderType' => [ - 'description' => '订单类型,取值范围'."\n" - .'- New 新购'."\n" - .'- Renew 续费'."\n" - .'- Upgrade 升级'."\n" - .'- TempUpgrade 短时升级'."\n" - .'- Downgrade 降级'."\n" - .'- Refund 退款'."\n" - .'- Convert 付费类型转换'."\n" - .'- ResizeDisk 调整磁盘大小'."\n" - .'- CompensatoryRenew 补偿续费'."\n" - .'- IncreaseUpgrade 带宽升级'."\n" - .'- Exchange 换购'."\n" - .'- ChangeOperatingSystem 更换操作系统', - 'type' => 'string', - 'example' => 'New', - ], - 'PretaxAmount' => [ - 'description' => '订单应付金额。', - 'type' => 'string', - 'example' => '0', - ], - 'Currency' => [ - 'description' => '币种', - 'type' => 'string', - 'example' => 'CNY', - ], - 'CommodityCode' => [ - 'description' => '商品Code。', - 'type' => 'string', - 'example' => 'rds', - ], - 'PaymentStatus' => [ - 'description' => '支付状态。非退款订单,取值范围:'."\n" - .'- Unpaid:未支付。'."\n" - .'- Paid:已支付。'."\n" - .'- Cancelled:已作废。'."\n" - ."\n" - .'> 对于退款订单可置NULL。', - 'type' => 'string', - 'example' => 'Paid', - ], - 'PretaxAmountLocal' => [ - 'description' => '本币金额。', - 'type' => 'string', - 'example' => '0', - ], - ], - ], - ], - ], - ], - ], - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'UUID'], + 'OwnerAccountId' => ['title' => '财务单元的属主用户', 'description' => '财务单元的属主用户', 'type' => 'integer', 'format' => 'int64', 'example' => '1529600453335198'], + 'CostCenterId' => ['title' => '财务单元ID', 'description' => '财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '640403'], + 'IsSuccess' => ['title' => '是否成功', 'description' => '是否成功', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidOwner', - 'errorMessage' => 'The specified owner doesn\'t belong to caller.', - ], + ['errorCode' => 'CostCenter.MasterAndSubHasNoRelation', 'errorMessage' => 'Your account has no valid account relation yet.', 'description' => ''], + ['errorCode' => 'CostCenter.ResourceAuthFailed', 'errorMessage' => 'The instance does not belong to the current user.', 'description' => ''], + ['errorCode' => 'CostCenter.ResourceNotExist', 'errorMessage' => 'The specified instance is not found in our records.', 'description' => ''], + ['errorCode' => 'CostCenter.AllocateResourceRepeat', 'errorMessage' => 'The instance has already been assigned a financial unit. Use transfer allocation for adjustment.', 'description' => ''], ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"UUID\\",\\n \\"OwnerAccountId\\": 1529600453335198,\\n \\"CostCenterId\\": 640403,\\n \\"IsSuccess\\": true\\n}","type":"json"}]', + 'title' => '资源分配到财务单元', + 'changeSet' => [ + ['createdAt' => '2025-07-22T05:47:39.000Z', 'description' => '请求参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ [ - [ - 'errorCode' => 'InvalidCaller', - 'errorMessage' => 'The caller\'s primary account is invalid or does not have permission to query enterprise member account information.', - ], - ], - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'bss:AllocateCostUnitResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"Successful!\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"HostName\\": \\"test\\",\\n \\"PageNum\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 1,\\n \\"OrderList\\": {\\n \\"Order\\": [\\n {\\n \\"AfterTaxAmount\\": \\"66\\",\\n \\"ProductCode\\": \\"rds\\",\\n \\"CreateTime\\": \\"2017-06-08T09:41:30Z\\",\\n \\"ProductType\\": \\"rds\\",\\n \\"RelatedOrderId\\": \\"234535345345342\\",\\n \\"PaymentCurrency\\": \\"CNY\\",\\n \\"PaymentTime\\": \\"2017-06-08T09:41:30Z\\",\\n \\"Tax\\": \\"1\\",\\n \\"OrderId\\": \\"237258627070169\\",\\n \\"SubscriptionType\\": \\"Subscription\\",\\n \\"PretaxGrossAmount\\": \\"0\\",\\n \\"OrderType\\": \\"New\\",\\n \\"PretaxAmount\\": \\"0\\",\\n \\"Currency\\": \\"CNY\\",\\n \\"CommodityCode\\": \\"rds\\",\\n \\"PaymentStatus\\": \\"Paid\\",\\n \\"PretaxAmountLocal\\": \\"0\\"\\n }\\n ]\\n }\\n }\\n}","type":"json"}]', - 'title' => '订单列表查询服务', ], - 'GetOrderDetail' => [ - 'summary' => '查询用户或分销客户某个订单详情信息。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'https', - ], + 'CancelFundAccountLowAvailableAmountAlarm' => [ + 'summary' => '取消资金账户低额预警', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'autoTest' => true, - 'tenantRelevance' => 'tenant', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'OrderId', - 'in' => 'query', - 'schema' => [ - 'description' => '订单号。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '233501558440169', - ], - ], - [ - 'name' => 'MemberUid', - 'in' => 'query', - 'schema' => [ - 'description' => '当前账户管理的企业多账号成员UID。如不涉及该场景,请留空。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1715322405372273', - ], + 'name' => 'FundAccountId', + 'in' => 'formData', + 'schema' => ['title' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', 'description' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123321123'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'BssApiPlainResult<Boolean>', + 'description' => 'BssApiPlainResult<Boolean>', 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '状态码。', - 'type' => 'string', - 'example' => 'Success', - ], - 'Message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'Successful!', - ], - 'RequestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F', - ], - 'Success' => [ - 'description' => '是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Data' => [ - 'description' => '返回数据。', - 'type' => 'object', - 'properties' => [ - 'HostName' => [ - 'description' => '主机名。', - 'type' => 'string', - 'example' => 'test', - ], - 'PageNum' => [ - 'description' => '页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'description' => '每页条数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'TotalCount' => [ - 'description' => '总记录数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '400', - ], - 'OrderList' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'Order' => [ - 'description' => '订单列表', - 'type' => 'array', - 'items' => [ - 'description' => '订单详情', - 'type' => 'object', - 'properties' => [ - 'Operator' => [ - 'description' => '订单操作RAM用户对应ID,如无则留空。', - 'type' => 'string', - 'example' => '322315', - ], - 'AfterTaxAmount' => [ - 'description' => '税后金额。', - 'type' => 'string', - 'example' => '0', - ], - 'Config' => [ - 'description' => '主产品的配置。', - 'type' => 'string', - 'example' => 'DBInstanceClass:[DBInstanceClass:rds.mysql.s1.small;EngineVersion:8.0;Region:cn-qingdao;]DBFlowType:[Region:cn-qingdao;]', - ], - 'SubOrderId' => [ - 'description' => '子订单号。', - 'type' => 'string', - 'example' => '234343', - ], - 'PaymentTime' => [ - 'description' => '订单支付时间。', - 'type' => 'string', - 'example' => '2017-06-08T09:41:30Z', - ], - 'Tax' => [ - 'description' => '税费。', - 'type' => 'string', - 'example' => '0', - ], - 'PaymentCurrency' => [ - 'description' => '支付币种。 CNY:人民币。 USD:美元。 JPY:日元', - 'type' => 'string', - 'example' => 'CNY', - ], - 'UsageEndTime' => [ - 'description' => '服务结束时间。', - 'type' => 'string', - 'example' => '2117-06-08T16:00:00Z', - ], - 'SubscriptionType' => [ - 'title' => '', - 'description' => '订阅类型。取值:'."\n" - .'- Subscription:预付费。'."\n" - .'- PayAsYouGo:后付费。', - 'type' => 'string', - 'example' => 'Subscription', - ], - 'PretaxGrossAmount' => [ - 'description' => '原始金额。', - 'type' => 'string', - 'example' => '0', - ], - 'OrderType' => [ - 'description' => '订单类型,取值范围'."\n" - .'- New 新购'."\n" - .'- Renew 续费'."\n" - .'- Upgrade 升级'."\n" - .'- TempUpgrade 短时升级'."\n" - .'- Downgrade 降级'."\n" - .'- Refund 退款'."\n" - .'- Convert 付费类型转换'."\n" - .'- ResizeDisk 调整磁盘大小'."\n" - .'- CompensatoryRenew 补偿续费'."\n" - .'- IncreaseUpgrade 带宽升级'."\n" - .'- Exchange 换购'."\n" - .'- ChangeOperatingSystem 更换操作系统', - 'type' => 'string', - 'example' => 'new', - ], - 'Currency' => [ - 'description' => '币种,取值:'."\n" - .'- CNY。'."\n" - .'- USD。'."\n" - .'- JPY。', - 'type' => 'string', - 'example' => 'CNY', - ], - 'CommodityCode' => [ - 'description' => '商品Code。', - 'type' => 'string', - 'example' => 'rds', - ], - 'UsageStartTime' => [ - 'description' => '服务开始时间。', - 'type' => 'string', - 'example' => '2017-06-08T16:00:00Z', - ], - 'OriginalConfig' => [ - 'description' => '未经标准化的模块信息。', - 'type' => 'string', - 'example' => 'DBInstanceClass:[DBInstanceClass:rds.mysql.s1.small;EngineVersion:8.0;Region:cn-qingdao;]DBFlowType:[Region:cn-qingdao;]', - ], - 'InstanceIds' => [ - 'description' => '实例id列表。', - 'type' => 'string', - 'example' => '["rm-bp1a2vsr018313t6o"]', - ], - 'PaymentStatus' => [ - 'description' => '支付状态。非退款订单,取值范围:'."\n" - .'- Unpaid:未支付。'."\n" - .'- Paid:已支付。'."\n" - .'- Cancelled:已作废。', - 'type' => 'string', - 'example' => 'paid', - ], - 'ExtendInfos' => [ - 'description' => '订单扩展信息', - 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'description' => '订单扩展信息'."\n" - .'- IsAutoRenew=true 表示自动续费订单,非自动续费订单不返回该参数;'."\n" - .'- CouponNo 为优惠券编号;'."\n" - .'- DeductedByCoupons 为优惠券抵扣金额,单位为元;'."\n" - .'- DiscountAmount 为优惠金额,单位为元。', - 'example' => '{"IsAutoRenew":"true","DiscountAmount":"100.98","DeductedByCoupons":"98.88","CouponNo":"319170900877"}', - ], - ], - 'ProductCode' => [ - 'description' => '产品代码。', - 'type' => 'string', - 'example' => 'rds', - ], - 'CreateTime' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '2017-06-08T09:41:30Z', - ], - 'ProductType' => [ - 'description' => '产品类型。', - 'type' => 'string', - 'example' => 'rds', - ], - 'Quantity' => [ - 'description' => '数量。', - 'type' => 'string', - 'example' => '3', - ], - 'RelatedOrderId' => [ - 'description' => '关联订单ID。', - 'type' => 'string', - 'example' => '241559391310332', - ], - 'OrderId' => [ - 'description' => '订单号', - 'type' => 'string', - 'example' => '241559391310333', - ], - 'BillModuleConfig' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'billModuleConfig' => [ - 'description' => '计费配置信息', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'BillModuleProperties' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'billModuleProperties' => [ - 'description' => '配置下的值', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Value' => [ - 'description' => '配置的属性值', - 'type' => 'string', - 'example' => 'cloud_ssd', - ], - 'AttrApiCode' => [ - 'description' => '配置的属性 code', - 'type' => 'string', - 'example' => 'cloud_ssd', - ], - 'ModuleApiCode' => [ - 'description' => '配置apicode', - 'type' => 'string', - 'example' => 'cloud_ssd', - ], - ], - ], - ], - ], - ], - 'ApiCode' => [ - 'description' => 'apiCode', - 'type' => 'string', - 'example' => 'datadisk', - ], - 'Code' => [ - 'description' => '配置 code', - 'type' => 'string', - 'example' => 'datadisk', - ], - 'Name' => [ - 'description' => '配件名', - 'type' => 'string', - 'example' => '数据盘', - ], - ], - ], - ], - ], - ], - 'OriginalModuleConfig' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'originalModuleConfig' => [ - 'description' => '具体配置信息', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ModuleProperties' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'moduleProperties' => [ - 'description' => '配置的属性列表', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Value' => [ - 'description' => '配置属性值', - 'type' => 'string', - 'example' => 'cloud_efficiency', - ], - 'Code' => [ - 'description' => '配置属性 code', - 'type' => 'string', - 'example' => 'cloud_efficiency', - ], - 'Name' => [ - 'description' => '配置属性名称', - 'type' => 'string', - 'example' => '高效云盘', - ], - ], - ], - ], - ], - ], - 'Code' => [ - 'description' => '配置code', - 'type' => 'string', - 'example' => 'systemdisk', - ], - 'Name' => [ - 'description' => '配置名称', - 'type' => 'string', - 'example' => '系统盘', - ], - ], - ], - ], - ], - ], - 'OrderSubType' => [ - 'description' => '子订单类型:'."\n" - .'- productsuborder:产品子订单类型。'."\n" - .'- refundsuborder:退款子订单类型', - 'type' => 'string', - 'example' => 'productsuborder', - ], - 'PretaxAmount' => [ - 'description' => '订单应付金额。', - 'type' => 'string', - 'example' => '0', - ], - 'Region' => [ - 'description' => '地域', - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'PretaxAmountLocal' => [ - 'description' => '本币金额。', - 'type' => 'string', - 'example' => '0', - ], - ], - ], - ], - ], - ], - ], - ], + 'Data' => ['description' => '是否成功', 'type' => 'boolean', 'example' => 'true', 'default' => 'true'], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求id', 'type' => 'string', 'example' => 'DFC1F7F9-3BA9-BA4D-2F2E653'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidOwner', - 'errorMessage' => 'The specified owner doesn\'t belong to caller.', - ], - ], - [ - [ - 'errorCode' => 'InvalidCaller', - 'errorMessage' => 'The caller\'s primary account is invalid or does not have permission to query enterprise member account information.', - ], + ['errorCode' => 'RequestTimeout', 'errorMessage' => 'Request timed out. Please try again later.', 'description' => '请求超时,请稍后再试'], + ['errorCode' => 'NoFundAccountPermission', 'errorMessage' => 'The caller does not have permission for the specified fund account.', 'description' => '当前登录账号没有权限操作指定账户。'], ], - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"DFC1F7F9-3BA9-BA4D-2F2E653\\"\\n}","type":"json"}]', + 'title' => '取消资金账户低额预警', + 'description' => '取消资金账户低额预警', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'bss:ModifyAlarm', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"Successful!\\",\\n \\"RequestId\\": \\"D6E068C3-25BC-455A-85FE-45F0B22ECB1F\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"HostName\\": \\"test\\",\\n \\"PageNum\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 400,\\n \\"OrderList\\": {\\n \\"Order\\": [\\n {\\n \\"Operator\\": \\"322315\\",\\n \\"AfterTaxAmount\\": \\"0\\",\\n \\"Config\\": \\"DBInstanceClass:[DBInstanceClass:rds.mysql.s1.small;EngineVersion:8.0;Region:cn-qingdao;]DBFlowType:[Region:cn-qingdao;]\\",\\n \\"SubOrderId\\": \\"234343\\",\\n \\"PaymentTime\\": \\"2017-06-08T09:41:30Z\\",\\n \\"Tax\\": \\"0\\",\\n \\"PaymentCurrency\\": \\"CNY\\",\\n \\"UsageEndTime\\": \\"2117-06-08T16:00:00Z\\",\\n \\"SubscriptionType\\": \\"Subscription\\",\\n \\"PretaxGrossAmount\\": \\"0\\",\\n \\"OrderType\\": \\"new\\",\\n \\"Currency\\": \\"CNY\\",\\n \\"CommodityCode\\": \\"rds\\",\\n \\"UsageStartTime\\": \\"2017-06-08T16:00:00Z\\",\\n \\"OriginalConfig\\": \\"DBInstanceClass:[DBInstanceClass:rds.mysql.s1.small;EngineVersion:8.0;Region:cn-qingdao;]DBFlowType:[Region:cn-qingdao;]\\",\\n \\"InstanceIds\\": \\"[\\\\\\"rm-bp1a2vsr018313t6o\\\\\\"]\\",\\n \\"PaymentStatus\\": \\"paid\\",\\n \\"ExtendInfos\\": {\\n \\"key\\": \\"{\\\\\\"IsAutoRenew\\\\\\":\\\\\\"true\\\\\\",\\\\\\"DiscountAmount\\\\\\":\\\\\\"100.98\\\\\\",\\\\\\"DeductedByCoupons\\\\\\":\\\\\\"98.88\\\\\\",\\\\\\"CouponNo\\\\\\":\\\\\\"319170900877\\\\\\"}\\"\\n },\\n \\"ProductCode\\": \\"rds\\",\\n \\"CreateTime\\": \\"2017-06-08T09:41:30Z\\",\\n \\"ProductType\\": \\"rds\\",\\n \\"Quantity\\": \\"3\\",\\n \\"RelatedOrderId\\": \\"241559391310332\\",\\n \\"OrderId\\": \\"241559391310333\\",\\n \\"BillModuleConfig\\": {\\n \\"billModuleConfig\\": [\\n {\\n \\"BillModuleProperties\\": {\\n \\"billModuleProperties\\": [\\n {\\n \\"Value\\": \\"cloud_ssd\\",\\n \\"AttrApiCode\\": \\"cloud_ssd\\",\\n \\"ModuleApiCode\\": \\"cloud_ssd\\"\\n }\\n ]\\n },\\n \\"ApiCode\\": \\"datadisk\\",\\n \\"Code\\": \\"datadisk\\",\\n \\"Name\\": \\"数据盘\\"\\n }\\n ]\\n },\\n \\"OriginalModuleConfig\\": {\\n \\"originalModuleConfig\\": [\\n {\\n \\"ModuleProperties\\": {\\n \\"moduleProperties\\": [\\n {\\n \\"Value\\": \\"cloud_efficiency\\",\\n \\"Code\\": \\"cloud_efficiency\\",\\n \\"Name\\": \\"高效云盘\\"\\n }\\n ]\\n },\\n \\"Code\\": \\"systemdisk\\",\\n \\"Name\\": \\"系统盘\\"\\n }\\n ]\\n },\\n \\"OrderSubType\\": \\"productsuborder\\",\\n \\"PretaxAmount\\": \\"0\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"PretaxAmountLocal\\": \\"0\\"\\n }\\n ]\\n }\\n }\\n}","type":"json"}]', - 'title' => '订单详情查询服务', ], - 'ListInvoiceTitle' => [ - 'summary' => '查询可用的发票抬头列表', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CheckBudgetNameExists' => [ + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], - [ - 'APP' => [], - ], ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'BudgetName', + 'in' => 'formData', + 'schema' => ['title' => '预算名称', 'description' => '预算名称', 'type' => 'string', 'required' => true, 'example' => 'department1'], + ], + [ + 'name' => 'Nbid', + 'in' => 'query', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2688801000001'], + ], ], - 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiListResult<BssInvoiceTitleDTO>', - 'description' => 'BssApiListResult<BssInvoiceTitleDTO>', + 'title' => '', + 'description' => '', 'type' => 'object', 'properties' => [ - 'Data' => [ - 'title' => '数据列表', - 'description' => '抬头列表', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'UnifiedSocialCreditCode' => [ - 'title' => '统一社会信用代码', - 'description' => '统一社会信用代码。15、17、18、20位字符。', - 'type' => 'string', - 'example' => '111111111111111', - ], - 'AccountId' => [ - 'title' => '用户ID', - 'description' => '账号ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1990699401005016', - ], - 'RegisteredAddress' => [ - 'title' => '注册场所地址', - 'description' => '注册场所地址', - 'type' => 'string', - 'example' => '北京市朝阳区', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '发票抬头创建时间', - 'type' => 'string', - 'example' => '2025-06-01 00:00:00', - ], - 'InvoiceTitle' => [ - 'title' => '发票抬头', - 'description' => '发票抬头', - 'type' => 'string', - 'example' => 'xx公司', - ], - 'Id' => [ - 'title' => '发票抬头id', - 'description' => '发票抬头ID', - 'type' => 'string', - 'example' => '123456', - ], - 'BankAccountNumber' => [ - 'title' => '基本开户账号', - 'description' => '基本开户账号', - 'type' => 'string', - 'example' => '1234567890', - ], - 'RegisteredLandline' => [ - 'title' => '注册固定电话', - 'description' => '注册固定电话', - 'type' => 'string', - 'example' => '010-12345678', - ], - 'AccountBankName' => [ - 'title' => '开户银行名称', - 'description' => '开户银行名称', - 'type' => 'string', - 'example' => '招商银行', - ], - ], - ], - ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'F1E2D3C4-B5A6-7890-1234-567890ABCDEF'], + 'Exists' => ['title' => '预算名称是否已存在', 'description' => '预算名称是否已存在', 'type' => 'boolean', 'example' => 'true'], + 'BudgetName' => ['title' => '预算名称', 'description' => '预算名称', 'type' => 'string', 'example' => 'department1'], ], ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'AccountNoQueryPricePermission', - 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice.', - ], - [ - 'errorCode' => 'InnerAccountNoQueryPricePermission', - 'errorMessage' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account. More questions please refer to the document.', - ], - [ - 'errorCode' => 'InnerSubAccountNoQueryPricePermission', - 'errorMessage' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account.', - ], - [ - 'errorCode' => 'SubAccountNoQueryPricePermission', - 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Contact the main account to go to the RAM console for authorization. The Action to be authorized is bss:QueryPrice.', - ], - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => 'The specified request contains invalid parameters.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'You are not authorized to perform this action.', - ], - ], - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '检测预算名称是否存在', + 'summary' => '检测budgetName是否存在', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"UnifiedSocialCreditCode\\": \\"111111111111111\\",\\n \\"AccountId\\": 1990699401005016,\\n \\"RegisteredAddress\\": \\"北京市朝阳区\\",\\n \\"CreateTime\\": \\"2025-06-01 00:00:00\\",\\n \\"InvoiceTitle\\": \\"xx公司\\",\\n \\"Id\\": \\"123456\\",\\n \\"BankAccountNumber\\": \\"1234567890\\",\\n \\"RegisteredLandline\\": \\"010-12345678\\",\\n \\"AccountBankName\\": \\"招商银行\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\"\\n}","type":"json"}]', - 'title' => '发票抬头查询服务', - 'requestParamsDescription' => '无需传入参数,接口会直接查询当前登录UID可用的发票抬头列表', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F1E2D3C4-B5A6-7890-1234-567890ABCDEF\\",\\n \\"Exists\\": true,\\n \\"BudgetName\\": \\"department1\\"\\n}","type":"json"}]', ], - 'ListInvoiceCandidate' => [ - 'summary' => '查询开票对象数据,可根据该数据进行开票', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateBudget' => [ + 'summary' => '创建预算', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'], 'parameters' => [ [ - 'name' => 'Status', - 'in' => 'query', + 'name' => 'BudgetName', + 'in' => 'formData', + 'schema' => ['title' => '预算名称', 'description' => '预算名称', 'type' => 'string', 'required' => true, 'example' => 'Department_dev_budget'], + ], + [ + 'name' => 'BudgetType', + 'in' => 'formData', + 'schema' => [ + 'title' => '预算类型', + 'description' => '预算类型', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => ['CONSUME' => 'CONSUME'], + 'example' => 'CONSUME', + ], + ], + [ + 'name' => 'Metric', + 'in' => 'formData', + 'schema' => [ + 'title' => '预算指标', + 'description' => '预算指标', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => ['REQUIRE_AMOUNT' => 'REQUIRE_AMOUNT'], + 'example' => 'REQUIRE_AMOUNT', + ], + ], + [ + 'name' => 'CycleType', + 'in' => 'formData', + 'schema' => [ + 'title' => '周期类型', + 'description' => '周期类型', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => ['QUARTERLY' => 'QUARTERLY', 'ANNUALLY' => 'ANNUALLY', 'MONTHLY' => 'MONTHLY'], + 'example' => 'MONTHLY', + ], + ], + [ + 'name' => 'CycleStartPeriod', + 'in' => 'formData', + 'schema' => ['title' => '起始周期', 'description' => '起始周期', 'type' => 'string', 'required' => true, 'example' => '2026-01'], + ], + [ + 'name' => 'CycleEndPeriod', + 'in' => 'formData', + 'schema' => ['title' => '结束周期', 'description' => '结束周期', 'type' => 'string', 'required' => true, 'example' => '2026-12'], + ], + [ + 'name' => 'QuotaType', + 'in' => 'formData', + 'schema' => [ + 'title' => '额度类型', + 'description' => '额度类型', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => ['SPECIFY' => 'SPECIFY', 'FIXED' => 'FIXED'], + 'example' => 'FIXED', + ], + ], + [ + 'name' => 'Quota', + 'in' => 'formData', + 'schema' => ['title' => '固定额度值,如果是额度的话单位是百分比', 'description' => '固定额度值,如果是额度的话单位是百分比', 'type' => 'string', 'required' => false, 'example' => '1000'], + ], + [ + 'name' => 'CycleQuota', + 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '状态', - 'description' => '开票对象状态列表', + 'title' => '每周期指定额度', + 'description' => '每周期指定额度(当 QuotaType 为 `SPECIFY` 时必填)', 'type' => 'array', 'items' => [ - 'description' => '开票对象状态', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'enumValueTitles' => [ - '已开票', - '未开票(可开票)', - '部分开票', - '开票处理中,被锁定', - ], - 'example' => '1', - 'enum' => [ - '0', - '1', - '2', - '3', + 'type' => 'object', + 'properties' => [ + 'CyclePeriod' => ['title' => '周期', 'description' => '周期', 'type' => 'string', 'required' => false, 'example' => '2026-01'], + 'Quota' => ['title' => '额度', 'description' => '额度', 'type' => 'string', 'required' => false, 'example' => '1000'], ], + 'required' => false, + 'description' => '', ], 'required' => false, - 'enumValueTitles' => [], - 'enum' => [ - '0', - '1', - '2', - '3', - ], ], ], [ - 'name' => 'Types', - 'in' => 'query', + 'name' => 'QueryFilter', + 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '类型', - 'description' => '开票对象类型列表', + 'title' => '过滤条件', + 'description' => '过滤条件', 'type' => 'array', 'items' => [ - 'description' => '开票对象类型', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'enumValueTitles' => [ - 1 => '订单', - '账单', - '合同', - '调账账单', - '退款订单', - 7 => '调账订单', - '佣金账单', - ], - 'example' => '1', - 'enum' => [ - '1', - '2', - '3', - '4', - '5', - '6', - '7', - '8', + 'type' => 'object', + 'properties' => [ + 'Code' => [ + 'title' => '参数code', + 'description' => '参数code', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => ['PRODUCT' => 'PRODUCT', 'RESOURCE_OWNER_ACCOUNT' => 'RESOURCE_OWNER_ACCOUNT', 'COMMODITY' => 'COMMODITY', 'COST_CENTER' => 'COST_CENTER', 'LINE_ITEM_TYPE' => 'LINE_ITEM_TYPE', 'REGION' => 'REGION'], + 'example' => 'RESOURCE_OWNER_ACCOUNT', + ], + 'SelectType' => ['title' => '选择模式', 'description' => '选择模式', 'type' => 'string', 'required' => false, 'example' => 'IN'], + 'Values' => [ + 'title' => '过滤值列表', + 'description' => '过滤值列表', + 'type' => 'array', + 'items' => ['description' => '过滤值', 'type' => 'string', 'required' => false, 'example' => '5772131917493334Test'], + 'required' => false, + ], ], + 'required' => false, + 'description' => '', ], 'required' => false, - 'enumValueTitles' => [], - 'enum' => [ - '1', - '2', - '3', - '4', - '5', - '6', - '7', - '8', - ], ], ], [ - 'name' => 'BusinessIds', - 'in' => 'query', + 'name' => 'Comment', + 'in' => 'formData', + 'schema' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'required' => false, 'example' => 'comment'], + ], + [ + 'name' => 'WarnConfs', + 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '业务单据号', - 'description' => '业务单据号列表', + 'title' => '预警配置', + 'description' => '预警配置', 'type' => 'array', 'items' => [ - 'description' => '业务单据号。如订单号等。', - 'type' => 'string', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '预警名称(用户自定义,可选,不传时后端自动生成)', 'description' => '预警名称(用户自定义,可选,不传时后端自动生成)', 'type' => 'string', 'required' => false, 'example' => 'Alter-1'], + 'WarnTarget' => [ + 'title' => '预警对象', + 'description' => '预警对象', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => ['FORECAST_ACCUMULATED' => 'FORECAST_ACCUMULATED', 'ACTUAL_ACCUMULATED' => 'ACTUAL_ACCUMULATED', 'FORECAST' => 'FORECAST', 'ACTUAL' => 'ACTUAL'], + 'example' => 'FORECAST', + ], + 'ThresholdType' => [ + 'title' => '阈值类型', + 'description' => '阈值类型', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => ['FIXED' => 'FIXED', 'PERCENTAGE' => 'PERCENTAGE'], + 'example' => 'FIXED', + ], + 'ThresholdValue' => ['title' => '阈值', 'description' => '阈值', 'type' => 'string', 'required' => false, 'example' => '2000'], + 'MscContacts' => [ + 'title' => '消息中心联系人列表', + 'description' => '消息中心联系人列表', + 'type' => 'array', + 'items' => ['description' => '消息中心联系人', 'type' => 'string', 'required' => false, 'example' => '1512795'], + 'required' => false, + ], + 'MscChannels' => [ + 'title' => '消息中心通知渠道列表', + 'description' => '消息中心通知渠道列表', + 'type' => 'array', + 'items' => ['description' => '消息中心通知渠道', 'type' => 'string', 'required' => false, 'example' => 'EMAIL'], + 'required' => false, + ], + 'EventBridge' => ['title' => '开启EventBridge', 'description' => '开启EventBridge', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'Comment' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'required' => false, 'example' => 'comment'], + ], 'required' => false, - 'example' => '202506', + 'description' => '', ], 'required' => false, ], ], [ - 'name' => 'StartTime', + 'name' => 'EcIdAccountIds', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'title' => '开始时间', - 'description' => '开始时间。格式:yyyy-mm-dd hh:mm:ss。', - 'type' => 'string', + 'title' => '企业与账号列表,为空表示查询当前账号自身', + 'description' => '企业与账号列表,为空表示查询当前账号自身', + 'type' => 'array', + 'items' => [ + 'description' => '企业与账号', + 'type' => 'object', + 'properties' => [ + 'EcId' => ['title' => '企业实体ID', 'description' => '企业实体ID', 'type' => 'string', 'required' => false, 'example' => '1'], + 'AccountIds' => [ + 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'type' => 'array', + 'items' => ['description' => '访问账号', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '5772131917494444'], + 'required' => false, + ], + ], + 'required' => false, + ], 'required' => false, - 'example' => '2025-06-01 00:00:00', - 'pattern' => '^\\d{4}(-\\d{2}){2}\\s+\\d{2}(:\\d{2}){2}$', ], ], [ - 'name' => 'EndTime', + 'name' => 'Nbid', 'in' => 'query', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '26842'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '结束时间', - 'description' => '结束时间。格式:yyyy-mm-dd hh:mm:ss。', - 'type' => 'string', - 'required' => false, - 'example' => '2025-07-01 00:00:00', - 'pattern' => '^\\d{4}(-\\d{2}){2}\\s+\\d{2}(:\\d{2}){2}$', + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'BudgetName' => ['title' => '预算名称', 'description' => '预算名称', 'type' => 'string', 'example' => 'Department_dev_budget'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '39EDD65E-68C5-1B17-8440-C729C7591D74'], + ], ], ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '创建预算', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"BudgetName\\": \\"Department_dev_budget\\",\\n \\"RequestId\\": \\"39EDD65E-68C5-1B17-8440-C729C7591D74\\"\\n}","type":"json"}]', + ], + 'CreateCostCenter' => [ + 'summary' => '创建财务单元', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'BillingCycles', + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'CostCenterEntityList', 'in' => 'query', 'style' => 'json', 'schema' => [ - 'title' => '账期', - 'description' => '账期列表', + 'title' => '财务单元实体列表', + 'description' => '财务单元实体列表', 'type' => 'array', 'items' => [ - 'description' => '账期', - 'type' => 'integer', - 'format' => 'int32', + 'type' => 'object', + 'properties' => [ + 'CostCenterName' => ['title' => '财务单元名称(同一个账号必须唯一)', 'description' => '财务单元名称(同一个账号必须唯一)', 'type' => 'string', 'required' => true, 'example' => '资源组'], + 'OwnerAccountId' => ['title' => '新财务单元的属主用户 ID', 'description' => '新财务单元的归属用户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1314839403940987'], + 'ParentCostCenterId' => ['title' => '父财务单元 ID,-1 表示财务单元根。', 'description' => '父财务单元 ID,-1 表示财务单元根。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '-1'], + ], 'required' => false, - 'example' => '202506', + 'description' => '', ], - 'required' => false, + 'required' => true, ], ], [ - 'name' => 'InvoiceIssuers', + 'name' => 'Nbid', 'in' => 'query', - 'style' => 'json', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2084210001'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '开票主体', - 'description' => '开票主体列表', - 'type' => 'array', - 'items' => [ - 'description' => '开票主体', - 'type' => 'string', - 'required' => false, - 'example' => 'ALIYUN_SERVICE', - 'pattern' => '^[0-9a-zA-Z_-]+$', + 'title' => 'BssApiListResult<CostCenterCreateDto>', + 'description' => 'BssApiPageResult<CostCenterDto>', + 'type' => 'object', + 'properties' => [ + 'CostCenterDtoList' => [ + 'title' => '数据列表', + 'description' => '数据列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'CostCenterName' => ['title' => '财务单元名字(同一个账号必须唯一)', 'description' => '财务单元名字(同一个账号必须唯一)', 'type' => 'string', 'example' => '资源组'], + 'OwnerAccountId' => ['title' => '财务单元的属主用户', 'description' => '财务单元的归属用户ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1314839403940987'], + 'CostCenterId' => ['title' => '财务单元ID', 'description' => '财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '485938'], + 'ParentCostCenterId' => ['title' => '父级财务单元ID', 'description' => '父级财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '-1'], + ], + 'description' => '', + ], + ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'C1BD134E-D914-6AE0-1901-AEB2A99FA205'], ], - 'required' => false, - 'pattern' => '^[0-9a-zA-Z_-]+$', ], ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'CostCenter.MasterAndSubHasNoRelation', 'errorMessage' => 'Your account has no valid account relation yet.', 'description' => ''], + ['errorCode' => 'CostCenter.UnitNameLengthExceed', 'errorMessage' => 'The length of the financial unit name exceeds the maximum limit.', 'description' => ''], + ['errorCode' => 'CostCenter.UnitNotBelongToUser', 'errorMessage' => 'Cost unit is not belong to this user.', 'description' => ''], + ['errorCode' => 'CostCenter.UnitNameExist', 'errorMessage' => 'The financial unit name already exists.', 'description' => ''], + ['errorCode' => 'CostCenter.UnitNumberExceed', 'errorMessage' => 'The maximum number of financial units has been exceeded.', 'description' => ''], + ['errorCode' => 'CostCenter.UnitNotExist', 'errorMessage' => 'The financial unit does not exist or is invalid.', 'description' => ''], + ['errorCode' => 'CostCenter.UnitLevelExceed', 'errorMessage' => 'The depth of the financial unit exceeds the maximum hierarchy level.', 'description' => ''], + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified request contains invalid parameters.', 'description' => ''], + ['errorCode' => 'MissingParameter', 'errorMessage' => 'The specified request lacks essential parameters.', 'description' => ''], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CostCenterDtoList\\": [\\n {\\n \\"CostCenterName\\": \\"资源组\\",\\n \\"OwnerAccountId\\": 1314839403940987,\\n \\"CostCenterId\\": 485938,\\n \\"ParentCostCenterId\\": -1\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"C1BD134E-D914-6AE0-1901-AEB2A99FA205\\"\\n}","type":"json"}]', + 'title' => '创建财务单元', + 'description' => '创建一个或多个财务单元。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'bss:ModifyCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'CreateCostCenterRule' => [ + 'summary' => '创建财务单元自动分配规则', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'CurrentPage', + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'CostCenterId', + 'in' => 'formData', + 'schema' => ['title' => '财务单元ID', 'description' => '财务单元ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '485938'], + ], + [ + 'name' => 'FilterExpression', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'title' => '当前页码', - 'description' => '当前页码', - 'type' => 'integer', - 'format' => 'int32', + 'title' => '规则表达式', + 'description' => '规则表达式', + 'type' => 'object', + 'properties' => [ + 'ExpressionType' => [ + 'description' => '操作类型', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => ['DIMENSION' => '叶子结点过滤类型(code非标签使用)', 'TAG' => '叶子结点过滤类型(code是标签时使用)', 'NARY' => '子条件关系(非叶子条件时使用)'], + 'example' => 'NARY', + ], + 'OperatorType' => [ + 'description' => '关系表达式', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => ['OR' => 'OR', 'AND' => 'AND'], + 'example' => 'AND', + ], + 'Operands' => [ + 'description' => '条件表达式', + 'type' => 'array', + 'items' => ['description' => '条件表达式'."\n" + .'**整体结构见示例(可以多层嵌套),下面的字段只是字段说明**', 'type' => 'any', 'required' => false, 'example' => '{'."\n" + .' '."\n" + .' "Operands": ['."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "TAG-xxx",'."\n" + .' "Values": ['."\n" + .' "xxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "TAG"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "INSTANCE_ID",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "LIKE"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "INSTANCE_NICK",'."\n" + .' "Values": ['."\n" + .' "111"'."\n" + .' ],'."\n" + .' "SelectType": "LIKE"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "RESOURCE_GROUP",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "ARTICLE",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "PRODUCT",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "OWNER",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' }'."\n" + .' ]'."\n" + .' }'], + 'required' => false, + ], + 'Operand' => ['description' => '筛选条件(废弃)', 'type' => 'any', 'required' => false, 'example' => '无'], + 'FilterValues' => [ + 'description' => '子条件过滤', + 'type' => 'object', + 'properties' => [ + 'Code' => [ + 'description' => '条件过滤KEY', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => ['OWNER' => '账号', 'ARTICLE' => '产品明细', 'RESOURCE_GROUP' => '资源组', 'xxx(用户自定义标签key)' => '业务标签,基于用户实际配置值', 'PRODUCT' => '产品', 'INSTANCE_NICK' => '实例名称', 'INSTANCE_ID' => '实例ID(出账粒度)'], + 'example' => 'TAG-test-xxx-key', + ], + 'CodeName' => ['description' => '条件过滤KEY名称(废弃)', 'type' => 'string', 'required' => false, 'example' => '无'], + 'Values' => [ + 'description' => '条件过滤值列表', + 'type' => 'array', + 'items' => ['description' => '条件过滤值'."\n" + .'INSTANCE_NICK、INSTANCE_NICK时只能录入一个', 'type' => 'string', 'required' => false, 'example' => '["TAG-test-xxx"]'."\n"], + 'required' => false, + ], + 'SelectType' => [ + 'description' => 'code和value关联关系', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => ['LIKE' => 'Code时其他情况下使用', 'IN' => 'Code是INSTANCE_NICK、INSTANCE_NICK时使用'], + 'example' => 'IN', + ], + ], + 'required' => false, + ], + ], 'required' => false, - 'minimum' => '1', - 'example' => '1', - 'default' => '1', ], ], [ - 'name' => 'PageSize', + 'name' => 'Nbid', 'in' => 'query', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2084210001'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '每页大小', - 'description' => '每页大小', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - 'default' => '20', + 'title' => 'BssApiPlainResult<Long>', + 'description' => 'BssApiPlainResult<Long>', + 'type' => 'object', + 'properties' => [ + 'Data' => ['description' => '财务单元分配规则id', 'type' => 'integer', 'format' => 'int64', 'example' => '1111'], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F'], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'CostCenter.MasterAndSubHasNoRelation', 'errorMessage' => 'Your account has no valid account relation yet.', 'description' => ''], + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified request contains invalid parameters.', 'description' => ''], + ['errorCode' => 'CostCenter.RuleExpressionIllegal', 'errorMessage' => 'The auto-allocation rule configuration is invalid.', 'description' => ''], + ['errorCode' => 'CostCenter.UnitNotExist', 'errorMessage' => 'The financial unit does not exist or is invalid.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 1111,\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\"\\n}","type":"json"}]', + 'title' => '创建财务单元自动分配规则', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'bss:ModifyCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + ], + 'CreateFundAccountPayRelation' => [ + 'summary' => '创建资金账户的付款关系', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'FundAccountId', + 'in' => 'formData', + 'schema' => ['title' => '资金账户Id', 'description' => '资金账户Id', 'type' => 'string', 'required' => true, 'example' => '12332112'], + ], [ 'name' => 'EcIdAccountIds', 'in' => 'query', 'style' => 'json', 'schema' => [ - 'title' => '企业与账号列表,为空表示查询当前账号自身', - 'description' => '企业与账号列表,为空表示查询当前账号自身', + 'title' => '企业与账号列表', + 'description' => '企业与账号列表', 'type' => 'array', 'items' => [ + 'description' => '企业与账号列表', 'type' => 'object', 'properties' => [ 'AccountIds' => [ - 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', - 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'title' => '被代付的阿里云账号列表', + 'description' => '被代付的阿里云账号列表', 'type' => 'array', - 'items' => [ - 'description' => '成员账号ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1990699401005016', - ], - 'required' => false, - 'maxItems' => 100, - ], - 'EcId' => [ - 'title' => '企业实体ID', - 'description' => '企业实体ID', - 'type' => 'string', - 'required' => false, - 'example' => '12345', + 'items' => ['description' => '成员账号ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1501603440974415'], + 'required' => true, ], + 'EcId' => ['title' => '企业实体ID', 'description' => '企业实体ID', 'type' => 'string', 'required' => false, 'example' => '1501603440974415'], ], 'required' => false, ], - 'required' => false, + 'required' => true, ], ], [ 'name' => 'Nbid', 'in' => 'query', - 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', - ], + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPageResult<BssOpenInvoiceEvaluateDTO>', - 'description' => 'BssApiPageResult<BssOpenInvoiceEvaluateDTO>', + 'title' => 'BssApiListResult<CreateBillingAccountPayRelationResponse>', + 'description' => 'BssApiListResult<CreateBillingAccountPayRelationResponse>', 'type' => 'object', 'properties' => [ - 'CurrentPage' => [ - 'title' => '当前页码', - 'description' => '当前页码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '每页大小', - 'description' => '每页大小', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], 'Data' => [ 'title' => '数据列表', 'description' => '数据列表', 'type' => 'array', 'items' => [ + 'description' => '返回数据', 'type' => 'object', 'properties' => [ - 'Status' => [ - 'title' => '开票对象状态', - 'description' => '开票对象状态', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'BillingCycle' => [ - 'title' => '账期', - 'description' => '账期', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '202506', - ], - 'AccountId' => [ - 'title' => '账号ID', - 'description' => '账号ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1990699401005016', - ], - 'AcceptedOffsetAmount' => [ - 'title' => '接受冲抵金额', - 'description' => '接受冲抵金额', - 'type' => 'string', - 'example' => '0.01', - ], - 'ProductName' => [ - 'title' => '产品名称', - 'description' => '产品名称', - 'type' => 'string', - 'example' => '性能测试', - ], - 'ProductCode' => [ - 'title' => '产品Code', - 'description' => '产品Code', - 'type' => 'string', - 'example' => 'pts', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-91 00:00:00', - ], - 'TotalAmount' => [ - 'title' => '总金额', - 'description' => '总金额', - 'type' => 'string', - 'example' => '0.01', - ], - 'ResourceOwnerAccountName' => [ - 'title' => '资源归属账号名称', - 'description' => '资源归属账号名称', - 'type' => 'string', - 'example' => '测试账号', - ], - 'InvoiceIssuer' => [ - 'title' => '开票主体', - 'description' => '开票主体', - 'type' => 'string', - 'example' => 'ALIYUN_SERVICE', - ], - 'InvoiceableAmount' => [ - 'title' => '可开票金额', - 'description' => '可开票金额', - 'type' => 'string', - 'example' => '0.01', - ], - 'OffsetAmount' => [ - 'title' => '冲抵金额', - 'description' => '冲抵金额', - 'type' => 'string', - 'example' => '0', - ], - 'Type' => [ - 'title' => '开票对象类型', - 'description' => '开票对象类型', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ResourceOwnerAccountId' => [ - 'title' => '资源归属账号ID', - 'description' => '资源归属账号ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1990699401005016', - ], - 'CommodityCode' => [ - 'title' => '商品Code', - 'description' => '商品Code', - 'type' => 'string', - 'example' => 'pts', - ], - 'Id' => [ - 'title' => '开票对象id', - 'description' => '开票对象id', - 'type' => 'string', - 'example' => '12345', - ], - 'BusinessTime' => [ - 'title' => '业务发生时间', - 'description' => '业务发生时间', - 'type' => 'string', - 'example' => '2025-06-01 00:00:00'."\n", - ], - 'InvoicedAmount' => [ - 'title' => '已开票金额', - 'description' => '已开票金额', - 'type' => 'string', - 'example' => '0', - ], - 'BusinessId' => [ - 'title' => '业务单据号', - 'description' => '业务单据号', - 'type' => 'string', - 'example' => '202506', - ], - 'CommodityName' => [ - 'title' => '商品名称', - 'description' => '商品名称', - 'type' => 'string', - 'example' => '性能测试', - ], - 'AccountName' => [ - 'title' => '账号名称', - 'description' => '账号名称', - 'type' => 'string', - 'example' => '测试账号', - ], + 'AccountId' => ['title' => '使用账户付款的用户AccountId', 'description' => '使用账户付款的用户AccountId', 'type' => 'string', 'example' => '1501603440974415'], + 'FundAccountId' => ['title' => '账户Id', 'description' => '账户Id', 'type' => 'string', 'example' => '12332112'], + 'ResultMessage' => ['title' => '结果信息', 'description' => '结果信息', 'type' => 'string', 'example' => 'Successful'], + 'ResultCode' => ['title' => '结果编码', 'description' => '结果编码', 'type' => 'string', 'example' => 'Success'], + 'AccountName' => ['title' => '使用账户付款的用户名称', 'description' => '使用账户付款的用户名称', 'type' => 'string', 'example' => 'test@test.aliyunid.com'."\n"], ], ], ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4', - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '6000EE23-274B-4E07-A697-FF2E999'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'AccountNoQueryPricePermission', - 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice.', - ], - [ - 'errorCode' => 'InnerAccountNoQueryPricePermission', - 'errorMessage' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account. More questions please refer to the document.', - ], - [ - 'errorCode' => 'InnerSubAccountNoQueryPricePermission', - 'errorMessage' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account.', - ], - [ - 'errorCode' => 'SubAccountNoQueryPricePermission', - 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Contact the main account to go to the RAM console for authorization. The Action to be authorized is bss:QueryPrice.', - ], - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => 'The specified request contains invalid parameters.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'You are not authorized to perform this action.', - ], - [ - 'errorCode' => 'InvoiceCandidateSearchTimeInvalid', - 'errorMessage' => 'Invoicing Candidate query time is illegal.', + ['errorCode' => 'InvalidBillingAccount', 'errorMessage' => 'The caller does not have permission for the specified billing account.', 'description' => '当前登录账号不是此账户的管理员,无权操作此账户。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this action.', 'description' => '您无权执行此操作。'], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"AccountId\\": \\"1501603440974415\\",\\n \\"FundAccountId\\": \\"12332112\\",\\n \\"ResultMessage\\": \\"Successful\\",\\n \\"ResultCode\\": \\"Success\\",\\n \\"AccountName\\": \\"test@test.aliyunid.com\\\\n\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999\\"\\n}","type":"json"}]', + 'title' => '创建资金账户的付款关系', + 'changeSet' => [ + ['createdAt' => '2025-05-28T07:54:23.000Z', 'description' => '请求参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'CreateFundAccountTransfer' => [ + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'FromFundAccountId', + 'in' => 'formData', + 'schema' => ['title' => '转出账户id (出款方账户id)', 'description' => '转出账户id (出款方账户id)', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123212323'], + ], + [ + 'name' => 'ToFundAccountId', + 'in' => 'formData', + 'schema' => ['title' => '转入账户id (收款方账户id)', 'description' => '转入账户id (收款方账户id)', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11112231'], + ], + [ + 'name' => 'Amount', + 'in' => 'formData', + 'schema' => ['title' => '转账金额', 'description' => '转账金额', 'type' => 'string', 'required' => true, 'example' => '100'], + ], + [ + 'name' => 'Currency', + 'in' => 'formData', + 'schema' => ['title' => '币种', 'description' => '币种', 'type' => 'string', 'required' => true, 'example' => 'CNY'], + ], + [ + 'name' => 'FinanceType', + 'in' => 'formData', + 'schema' => ['title' => '资产类型(当前仅支持现金)'."\n" + .'cash-现金;', 'description' => '资产类型(当前仅支持现金)'."\n" + .'cash-现金;', 'type' => 'string', 'required' => true, 'example' => 'cash'], + ], + [ + 'name' => 'TransferType', + 'in' => 'formData', + 'schema' => [ + 'title' => '转账类型'."\n" + .'grant-划拨;'."\n" + .'recycle;回收', + 'description' => '转账类型'."\n" + .'grant-划拨;'."\n" + .'recycle;回收', + 'type' => 'string', + 'required' => true, + 'example' => 'grant', + 'enum' => ['grant', 'recycle'], ], ], - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + [ + 'name' => 'Remark', + 'in' => 'formData', + 'schema' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'required' => true, 'example' => '转账的备注'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'BssApiPlainResult<Void>', + 'description' => 'BssApiPlainResult<Void>', + 'type' => 'object', + 'properties' => [ + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求id', 'type' => 'string', 'example' => '1BB79-5B23-3EA-BB4F-352F93E'."\n" + ."\n"], + ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'RequestTimeout', 'errorMessage' => 'Request timed out. Please try again later.', 'description' => '请求超时,请稍后再试'], + ['errorCode' => 'NoFundAccountPermission', 'errorMessage' => 'The caller does not have permission for the specified fund account.', 'description' => '当前登录账号没有权限操作指定账户。'], + ['errorCode' => 'AccountNotExist', 'errorMessage' => 'Account does not exist.', 'description' => '账号不存在'], + ['errorCode' => 'AvailableTransferAmountNotEnough', 'errorMessage' => 'The available amount for granting or recycling is insufficient.', 'description' => '可划拨/回收的金额不足,请确认后重试。'], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 100,\\n \\"Data\\": [\\n {\\n \\"Status\\": 1,\\n \\"BillingCycle\\": 202506,\\n \\"AccountId\\": 1990699401005016,\\n \\"AcceptedOffsetAmount\\": \\"0.01\\",\\n \\"ProductName\\": \\"性能测试\\",\\n \\"ProductCode\\": \\"pts\\",\\n \\"CreateTime\\": \\"2025-06-91 00:00:00\\",\\n \\"TotalAmount\\": \\"0.01\\",\\n \\"ResourceOwnerAccountName\\": \\"测试账号\\",\\n \\"InvoiceIssuer\\": \\"ALIYUN_SERVICE\\",\\n \\"InvoiceableAmount\\": \\"0.01\\",\\n \\"OffsetAmount\\": \\"0\\",\\n \\"Type\\": 1,\\n \\"ResourceOwnerAccountId\\": 1990699401005016,\\n \\"CommodityCode\\": \\"pts\\",\\n \\"Id\\": \\"12345\\",\\n \\"BusinessTime\\": \\"2025-06-01 00:00:00\\\\n\\",\\n \\"InvoicedAmount\\": \\"0\\",\\n \\"BusinessId\\": \\"202506\\",\\n \\"CommodityName\\": \\"性能测试\\",\\n \\"AccountName\\": \\"测试账号\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\"\\n}","type":"json"}]', - 'title' => '开票对象查询服务', + 'title' => '创建账户划拨/回收', + 'summary' => '创建账户划拨/回收', + 'changeSet' => [ + ['createdAt' => '2025-12-05T11:33:26.000Z', 'description' => '错误码发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"1BB79-5B23-3EA-BB4F-352F93E\\\\n\\\\n\\"\\n}","type":"json"}]', ], 'CreateInvoice' => [ 'summary' => '申请发票', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -1596,41 +1033,21 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - 'autoTest' => false, - 'notSupportAutoTestReason' => '自动化测试平台配置的统一测试UID=1948392007548064不支持开票操作', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false, 'notSupportAutoTestReason' => '自动化测试平台配置的统一测试UID=1948392007548064不支持开票操作'], 'parameters' => [ [ 'name' => 'Amount', 'in' => 'query', - 'schema' => [ - 'title' => '开票信息', - 'description' => '指定开票金额。支持两位小数。'."\n" - .'- 若不填,则按照invoiceCandidateIds的全部总可开票金额开票。'."\n" - .'- 若填写,则按照填写的金额开票。填写金额不可超过invoiceCandidateIds的全部总可开票金额。', - 'type' => 'string', - 'required' => false, - 'example' => '0.01', - 'pattern' => '^[\\d._-]+$', - ], + 'schema' => ['title' => '开票信息', 'description' => '指定开票金额。支持两位小数。'."\n" + .'- 若不填,则按照invoiceCandidateIds的全部总可开票金额开票。'."\n" + .'- 若填写,则按照填写的金额开票。填写金额不可超过invoiceCandidateIds的全部总可开票金额。', 'type' => 'string', 'required' => false, 'example' => '0.01', 'pattern' => '^[\\d._-]+$'], ], [ 'name' => 'InvoiceTitleId', 'in' => 'query', - 'schema' => [ - 'title' => '发票抬头信息Id', - 'description' => '发票抬头ID。'."\n" - ."\n" - .'- 当前登录账号通过 ListInvoiceTitle 接口返回的 ID 参数。', - 'type' => 'string', - 'required' => true, - 'example' => '12345', - 'pattern' => '^\\d+$', - ], + 'schema' => ['title' => '发票抬头信息Id', 'description' => '发票抬头ID。'."\n" + ."\n" + .'- 当前登录账号通过 ListInvoiceTitle 接口返回的 ID 参数。', 'type' => 'string', 'required' => true, 'example' => '12345', 'pattern' => '^\\d+$'], ], [ 'name' => 'RecipientEmails', @@ -1640,12 +1057,7 @@ 'title' => '接收邮箱', 'description' => '发票接收邮箱列表。最多可传入3个。', 'type' => 'array', - 'items' => [ - 'description' => '发票接收邮箱。', - 'type' => 'string', - 'required' => true, - 'example' => '1@1.com', - ], + 'items' => ['description' => '发票接收邮箱。', 'type' => 'string', 'required' => true, 'example' => '1@1.com'], 'required' => true, 'maxItems' => 3, 'minItems' => 1, @@ -1654,14 +1066,7 @@ [ 'name' => 'InvoiceRemark', 'in' => 'query', - 'schema' => [ - 'title' => '发票备注', - 'description' => '发票备注', - 'type' => 'string', - 'required' => false, - 'example' => '备注信息', - 'maxLength' => 200, - ], + 'schema' => ['title' => '发票备注', 'description' => '发票备注', 'type' => 'string', 'required' => false, 'example' => '备注信息', 'maxLength' => 200], ], [ 'name' => 'InvoiceCandidateIds', @@ -1671,13 +1076,7 @@ 'title' => '开票对象列表', 'description' => '开票对象ID列表', 'type' => 'array', - 'items' => [ - 'description' => '开票对象ID', - 'type' => 'string', - 'required' => true, - 'example' => '12345', - 'pattern' => '^\\d+$', - ], + 'items' => ['description' => '开票对象ID', 'type' => 'string', 'required' => true, 'example' => '12345', 'pattern' => '^\\d+$'], 'required' => true, 'pattern' => '^\\d+$', 'minItems' => 1, @@ -1692,15 +1091,9 @@ 'type' => 'integer', 'format' => 'int32', 'required' => true, - 'enumValueTitles' => [ - '数字化电子普票', - '数字化电子专票', - ], + 'enumValueTitles' => ['数字化电子普票', '数字化电子专票'], 'example' => '0', - 'enum' => [ - '0', - '1', - ], + 'enum' => ['0', '1'], ], ], [ @@ -1715,15 +1108,9 @@ 'type' => 'integer', 'format' => 'int32', 'required' => true, - 'enumValueTitles' => [ - '独立开票', - '合并开票', - ], + 'enumValueTitles' => ['独立开票', '合并开票'], 'example' => '0', - 'enum' => [ - '0', - '1', - ], + 'enum' => ['0', '1'], ], ], [ @@ -1741,25 +1128,14 @@ 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', 'type' => 'array', - 'items' => [ - 'description' => '成员账号ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1990699401005016', - ], + 'items' => ['description' => '成员账号ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1990699401005016'], 'required' => false, 'maxItems' => 100, ], - 'EcId' => [ - 'title' => '企业实体ID', - 'description' => '企业实体ID', - 'type' => 'string', - 'required' => false, - 'example' => '12345', - ], + 'EcId' => ['title' => '企业实体ID', 'description' => '企业实体ID', 'type' => 'string', 'required' => false, 'example' => '12345'], ], 'required' => false, + 'description' => '', ], 'required' => false, ], @@ -1767,13 +1143,7 @@ [ 'name' => 'Nbid', 'in' => 'query', - 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', - ], + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], ], ], 'responses' => [ @@ -1790,147 +1160,58 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'AccountId' => [ - 'title' => '账号ID', - 'description' => '账号ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1990699401005016', - ], - 'Message' => [ - 'title' => '错误信息', - 'description' => '错误信息', - 'type' => 'string', - 'example' => '不可开票', - ], - 'Amount' => [ - 'title' => '开票金额', - 'description' => '开票金额', - 'type' => 'string', - 'example' => '0.01', - ], - 'ErrorCode' => [ - 'title' => '错误码', - 'description' => '错误码', - 'type' => 'string', - 'example' => '1001', - ], - 'InvoiceIssuer' => [ - 'title' => '开票主体', - 'description' => '开票主体', - 'type' => 'string', - 'example' => 'ALIYUN_SERVICE', - ], + 'AccountId' => ['title' => '账号ID', 'description' => '账号ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1990699401005016'], + 'Message' => ['title' => '错误信息', 'description' => '错误信息', 'type' => 'string', 'example' => '不可开票'], + 'Amount' => ['title' => '开票金额', 'description' => '开票金额', 'type' => 'string', 'example' => '0.01'], + 'ErrorCode' => ['title' => '错误码', 'description' => '错误码', 'type' => 'string', 'example' => '1001'], + 'InvoiceIssuer' => ['title' => '开票主体', 'description' => '开票主体', 'type' => 'string', 'example' => 'ALIYUN_SERVICE'], ], + 'description' => '', ], ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F', - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InnerAccountNoQueryPricePermission', - 'errorMessage' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account. More questions please refer to the document.', - ], - [ - 'errorCode' => 'InnerSubAccountNoQueryPricePermission', - 'errorMessage' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account.', - ], - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => 'The specified request contains invalid parameters.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'You are not authorized to perform this action.', - ], - [ - 'errorCode' => 'AccountNoQueryPricePermission', - 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice.', - ], - [ - 'errorCode' => 'SubAccountNoQueryPricePermission', - 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Contact the main account to go to the RAM console for authorization. The Action to be authorized is bss:QueryPrice.', - ], - [ - 'errorCode' => 'InvoiceManualAmountNotAllowed', - 'errorMessage' => 'Cross-account independent invoicing, amount cannot be specified.', - ], - [ - 'errorCode' => 'InvoiceRecipientEmailsMoreThanThree', - 'errorMessage' => 'Maximum 3 email addresses allowed for invoice application.', - ], - [ - 'errorCode' => 'InvoiceCandidateNotFound', - 'errorMessage' => 'No valid data to be invoiced can be found based on the invoicing object list and account list passed in.', - ], - [ - 'errorCode' => 'InvoiceTitleNotExist', - 'errorMessage' => 'Invoice title does not exist.', - ], - [ - 'errorCode' => 'InvoiceRemarkTooLong', - 'errorMessage' => 'Invoice remarks must not exceed 200 characters. Please abbreviate and resubmit.', - ], - [ - 'errorCode' => 'InvoiceAmountInValid', - 'errorMessage' => 'Illegal amount requested for invoicing.', - ], - [ - 'errorCode' => 'InvoiceAmountFormatInvalid', - 'errorMessage' => 'Illegal format of invoiced amount.', - ], - [ - 'errorCode' => 'InvoiceModeInvalid', - 'errorMessage' => 'InvoiceMode field is illegal.', - ], - [ - 'errorCode' => 'InvoiceTypeInvalid', - 'errorMessage' => 'InvoiceType field is illegal.', - ], - [ - 'errorCode' => 'InvoiceSpecialOnlyForEnterprises', - 'errorMessage' => 'Special invoices can only be issued by enterprise accounts.', - ], - [ - 'errorCode' => 'InvoiceAmountNegativeInvalid', - 'errorMessage' => 'The sum of the selected amounts is negative and cannot be invoiced.', - ], + ['errorCode' => 'InnerAccountNoQueryPricePermission', 'errorMessage' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account. More questions please refer to the document.', 'description' => '因数据安全及合规要求,对集团上云账号金额信息权限管控,由此带来的不便敬请谅解。您可以通过HCRM/云间平台查看,详见:https://aliyuque.antfin.com/yunfei.xyf/kr0b8h/yvdm6izaeulmq8g2。'], + ['errorCode' => 'InnerSubAccountNoQueryPricePermission', 'errorMessage' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account.', 'description' => '因数据安全及合规要求,对集团上云账号金额信息权限管控,由此带来的不便敬请谅解。您可以通过HCRM/云间平台查看,详见:https://aliyuque.antfin.com/yunfei.xyf/kr0b8h/yvdm6izaeulmq8g2。'], + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified request contains invalid parameters.', 'description' => ''], + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this action.', 'description' => '您无权执行此操作。'], + ['errorCode' => 'AccountNoQueryPricePermission', 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice.', 'description' => '由于您没有折扣查询权限,无法访问该页面。请联系主账号前往费用中心授权,需要授权的权限点为 queryprice'], + ['errorCode' => 'SubAccountNoQueryPricePermission', 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Contact the main account to go to the RAM console for authorization. The Action to be authorized is bss:QueryPrice.', 'description' => '由于您没有折扣查询权限,无法访问该页面。请联系主账号前往RAM控制台授权,需要授权的Action为 bss:QueryPrice'], + ['errorCode' => 'InvoiceManualAmountNotAllowed', 'errorMessage' => 'Cross-account independent invoicing, amount cannot be specified.', 'description' => '跨账号独立开票,不可指定金额'], + ['errorCode' => 'InvoiceRecipientEmailsMoreThanThree', 'errorMessage' => 'Maximum 3 email addresses allowed for invoice application.', 'description' => '申请开票时最多可选3个邮箱'], + ['errorCode' => 'InvoiceCandidateNotFound', 'errorMessage' => 'No valid data to be invoiced can be found based on the invoicing object list and account list passed in.', 'description' => '根据传入的开票对象列表和账号列表,查询不到有效的待开票数据'], + ['errorCode' => 'InvoiceTitleNotExist', 'errorMessage' => 'Invoice title does not exist.', 'description' => '发票抬头不存在'], + ['errorCode' => 'InvoiceRemarkTooLong', 'errorMessage' => 'Invoice remarks must not exceed 200 characters. Please abbreviate and resubmit.', 'description' => '发票备注长度过长,请适当缩写后重新提交!'], + ['errorCode' => 'InvoiceAmountInValid', 'errorMessage' => 'Illegal amount requested for invoicing.', 'description' => '申请开票金额不合法'], + ['errorCode' => 'InvoiceAmountFormatInvalid', 'errorMessage' => 'Illegal format of invoiced amount.', 'description' => '申请开票金额格式不合法'], + ['errorCode' => 'InvoiceModeInvalid', 'errorMessage' => 'InvoiceMode field is illegal.', 'description' => 'InvoiceMode字段不合法'], + ['errorCode' => 'InvoiceTypeInvalid', 'errorMessage' => 'InvoiceType field is illegal.', 'description' => 'InvoiceType字段不合法'."\n"], + ['errorCode' => 'InvoiceSpecialOnlyForEnterprises', 'errorMessage' => 'Special invoices can only be issued by enterprise accounts.', 'description' => '企业类型才能开专票'], + ['errorCode' => 'InvoiceAmountNegativeInvalid', 'errorMessage' => 'The sum of the selected amounts is negative and cannot be invoiced.', 'description' => '所选金额总和为负数,不可开票'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"AccountId\\": 1990699401005016,\\n \\"Message\\": \\"不可开票\\",\\n \\"Amount\\": \\"0.01\\",\\n \\"ErrorCode\\": \\"1001\\",\\n \\"InvoiceIssuer\\": \\"ALIYUN_SERVICE\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\"\\n}","type":"json"}]', 'title' => '发票申请', - ], - 'CreateFundAccountPayRelation' => [ - 'summary' => '创建资金账户的付款关系', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + ], + 'CreateReportDefinition' => [ + 'summary' => '创建账单报告订阅。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -1938,159 +1219,289 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'FundAccountId', + 'name' => 'ReportSourceType', 'in' => 'formData', - 'schema' => [ - 'title' => '资金账户Id', - 'description' => '资金账户Id', - 'type' => 'string', - 'required' => true, - 'example' => '12332112', - ], + 'schema' => ['description' => '订阅来源 OSS/MC/MSC_EMAIL', 'type' => 'string', 'required' => false, 'example' => 'OSS'], ], [ - 'name' => 'EcIdAccountIds', + 'name' => 'ReportType', 'in' => 'query', - 'style' => 'json', + 'schema' => ['title' => '账单存储类型,类型来源参考API:ListReportTypesForReportDefinition', 'description' => '订阅类型。取值类型:'."\n" + .'- consumeDetailBillV2:消费明细(仅OSS/MC订阅支持)。'."\n" + .'- splitDetailBillV2:分拆明细(仅OSS/MC订阅支持)。'."\n" + .'- costDetailBillV2:成本明细(仅OSS/MC订阅支持)。'."\n" + .'- monthBillOverview:月账单汇总(仅OSS/MSC_EMAIL订阅支持)。'."\n" + .'- focus:focus账单(仅OSS/MC订阅支持)。', 'type' => 'string', 'required' => true, 'example' => 'consumeDetailBillV2'], + ], + [ + 'name' => 'BeginBillingCycle', + 'in' => 'query', + 'schema' => ['title' => '推送起始账期。订阅成功后,系统会自动推送起始账期到当前时间的数据。月账单PDF订阅时此参数无效,不会对历史数据重新推送。最多可推送最近1年内数据。', 'description' => '推送起始账期。订阅成功后,系统会自动推送起始账期到当前时间的数据。月账单PDF订阅时此参数无效,不会对历史数据重新推送。最多可推送最近1年内数据。', 'type' => 'string', 'required' => false, 'example' => '2025-05'], + ], + [ + 'name' => 'OssBucketOwnerAccountId', + 'in' => 'query', + 'schema' => ['description' => '存储文件的Oss Owner对应的UID。如果是Bid/ReSeller订阅,并需要推送到子账号的OSS上时指定,需要此账号为调用账号子账号,并对此账号授予AliyunConsumeDump2OSSRole权限。 普通用户则无需指定,默认为调用账号。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1234567812345678'], + ], + [ + 'name' => 'OssBucketName', + 'in' => 'query', + 'schema' => ['description' => 'OSS Bucket存储文件名称。', 'type' => 'string', 'required' => false, 'example' => 'sh-bill'], + ], + [ + 'name' => 'OssBucketPath', + 'in' => 'query', + 'schema' => ['description' => 'OSS Bucket存储路径。', 'type' => 'string', 'required' => false, 'example' => 'bill/'], + ], + [ + 'name' => 'McProject', + 'in' => 'formData', + 'schema' => ['description' => 'MC 项目名称。', 'type' => 'string', 'required' => false, 'example' => 'project'], + ], + [ + 'name' => 'McTableName', + 'in' => 'formData', + 'schema' => ['description' => 'MC 订阅表名称。', 'type' => 'string', 'required' => false, 'example' => 'table'], + ], + [ + 'name' => 'Nbid', + 'in' => 'query', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], + ], + [ + 'name' => 'SplitFileOnUserId', + 'in' => 'query', + 'schema' => ['description' => '邮件订阅相关配置,按userId拆分附件', 'type' => 'string', 'required' => false, 'example' => 'true'], + ], + [ + 'name' => 'NotSendOnNoData', + 'in' => 'query', + 'schema' => ['description' => '邮件订阅相关配置,无账单时不发送邮件', 'type' => 'string', 'required' => false, 'example' => 'true'], + ], + [ + 'name' => 'SendWithAttach', + 'in' => 'query', + 'schema' => ['description' => '邮件订阅相关配置,邮件携带账单附件', 'type' => 'string', 'required' => false, 'example' => 'true'], + ], + [ + 'name' => 'IncludeMembers', + 'in' => 'query', + 'schema' => ['description' => '邮件订阅相关配置,账单包含企业多账号成员', 'type' => 'string', 'required' => false, 'example' => 'true'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '企业与账号列表', - 'description' => '企业与账号列表', - 'type' => 'array', - 'items' => [ - 'description' => '企业与账号列表', - 'type' => 'object', - 'properties' => [ - 'AccountIds' => [ - 'title' => '被代付的阿里云账号列表', - 'description' => '被代付的阿里云账号列表', - 'type' => 'array', - 'items' => [ - 'description' => '成员账号ID。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1501603440974415', - ], - 'required' => true, - ], - 'EcId' => [ - 'title' => '企业实体ID', - 'description' => '企业实体ID', - 'type' => 'string', - 'required' => false, - 'example' => '1501603440974415', - ], - ], - 'required' => false, + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '340CAB45-0637-5875-9BE4-EFD5750F6BA5'], + 'ReportTaskId' => ['description' => '账单订阅任务ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '123123'], + 'ReportSourceType' => ['description' => '订阅来源 OSS/MC', 'type' => 'string', 'example' => 'OSS'], + 'ReportSourceName' => ['description' => '订阅来源名称。', 'type' => 'string', 'example' => 'OSS'], + 'ReportType' => ['title' => '账单存储类型', 'description' => '订阅类型。取值类型:'."\n" + .'- consumeDetailBillV2:消费明细(仅OSS/MC订阅支持)。'."\n" + .'- splitDetailBillV2:分拆明细(仅OSS/MC订阅支持)。'."\n" + .'- costDetailBillV2:成本明细(仅OSS/MC订阅支持)。'."\n" + .'- monthBillOverview:月账单汇总(仅OSS/MSC_EMAIL订阅支持)。'."\n" + .'- focus:focus账单(仅OSS/MC订阅支持)。', 'type' => 'string', 'example' => 'consumeDetailBillV2'], + 'BeginBillingCycle' => ['title' => '推送起始账期。订阅成功后,系统会自动推送起始账期到当前时间的数据。月账单PDF订阅时此参数无效,不会对历史数据重新推送。最多可推送最近1年内数据。', 'description' => '推送起始账期。订阅成功后,系统会自动推送起始账期到当前时间的数据。月账单PDF订阅时此参数无效,不会对历史数据重新推送。最多可推送最近1年内数据。', 'type' => 'string', 'example' => '2025-05'], + 'SubscribeCreateTime' => ['description' => '订阅创建时间。', 'type' => 'string', 'example' => '2025-05-21 10:36:31'], + 'OssBucketOwnerAccountId' => ['description' => '存储文件的Oss Owner对应的UID。如果是Bid/ReSeller订阅,并需要推送到子账号的OSS上时指定,需要此账号为调用账号子账号,并对此账号授予AliyunConsumeDump2OSSRole权限。 普通用户则无需指定,默认为调用账号。', 'type' => 'integer', 'format' => 'int64', 'example' => '1234567812345678'], + 'OssBucketName' => ['description' => 'OSS Bucket存储文件名称。', 'type' => 'string', 'example' => 'sh-bill'], + 'OssBucketPath' => ['description' => 'OSS Bucket存储路径。', 'type' => 'string', 'example' => 'bill/'], ], - 'required' => true, ], ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'TASK_EXIST', 'errorMessage' => 'task has already exist.', 'description' => '该表已存在,不可重复订阅'], + ['errorCode' => 'InvalidBucket', 'errorMessage' => 'The bucket is invalid or the bucket does not belong to you.', 'description' => ''], + ['errorCode' => 'InvalidHistoricalNbid', 'errorMessage' => 'Historical field does not support subscription bill.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"340CAB45-0637-5875-9BE4-EFD5750F6BA5\\",\\n \\"ReportTaskId\\": 123123,\\n \\"ReportSourceType\\": \\"OSS\\",\\n \\"ReportSourceName\\": \\"OSS\\",\\n \\"ReportType\\": \\"consumeDetailBillV2\\",\\n \\"BeginBillingCycle\\": \\"2025-05\\",\\n \\"SubscribeCreateTime\\": \\"2025-05-21 10:36:31\\",\\n \\"OssBucketOwnerAccountId\\": 1234567812345678,\\n \\"OssBucketName\\": \\"sh-bill\\",\\n \\"OssBucketPath\\": \\"bill/\\"\\n}","type":"json"}]', + 'title' => '创建报告订阅', + 'description' => '在调用该接口时,请注意:'."\n" + ."\n" + .'- 用户一次订阅一个类型的账单文件。'."\n" + ."\n" + .'- 除月账单PDF外,订阅后次日开始,每日推送本月至今包含全量明细数据的账单文件,每月4号前推送上月整账期的全量账单文件。'."\n" + .'- 月账单PDF每月4号前推送上月账单文件。'."\n" + ."\n" + .'- 按天生成的账单文件可能存在时延,延迟生成的账单会在生成次日推送,也可能会包含上一日之前延迟到上一日生成的账单。建议每个月初拉取上个月全量文件。'."\n" + ."\n" + .'> 请按文档流程说明申请权限[账单订阅](https://help.aliyun.com/zh/user-center/user-guide/billing-subscription?spm=5176.21213303.J_v8LsmxMG6alneH-O7TCPa.1.3ef82f3d5ZIf08&scm=20140722.S_help@@%E6%96%87%E6%A1%A3@@2861820._.ID_help@@%E6%96%87%E6%A1%A3@@2861820-RL_%E8%B4%A6%E5%8D%95%E8%AE%A2%E9%98%85-LOC_2024SPHelpResult-OR_ser-PAR1_2150419517478292121114501eaee8-V_4-RE_new5-P0_0-P1_0)'."\n" + ."\n" + .'- 本订阅与费用与成本-账单订阅 为同一功能,订阅互通。'."\n" + ."\n" + .'- 订阅至Bucket下的目录时,请注意符合目录命名规范:'."\n" + ."\n" + .' - 不允许使用表情符,请使用符合要求的 UTF-8 字符。'."\n" + .' - / 用于分割路径,可快速创建子目录,但不要以 / 或 \\ 开头,不要出现连续的 /。'."\n" + .' - 不允许出现名为 .. 的子目录。'."\n" + .' - 总长度控制在 1~254 个字符。'."\n" + ."\n" + .'- 文件名:'."\n" + .' - 例如:**consumeDetailBillV2**(计费项账单明细)'."\n" + .' '."\n" + .' - 每日推送文件名格式:`{账号 UID}_{售卖站点编号}_{账单类型}_{YYYYMM|YYYYMMDD}`,例如:`169**_2688801000001_consumeDetailBillV2_20190312`。'."\n" + .' '."\n" + .' - 下月初完整文件名格式:`{账号 UID}_{售卖站点编号}_{账单类型}_{YYYYMM|YYYYMM}`,例如:`169**_2688801000001_consumeDetailBillV2_201903`。'."\n" + ."\n" + .'- 月账单 PDF 类型的文件为.pdf 格式,其余文件类型为 .csv 文件,当数据量较大时,系统会自动将一次导出的账单拆分为多个文件,并合并压缩成一个或多个 zip 文件,zip 文件名格式相同。', + 'changeSet' => [ + ['createdAt' => '2025-08-22T06:39:14.000Z', 'description' => '请求参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'bss:ModifyOssSub', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'DeleteBudget' => [ + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'BudgetName', + 'in' => 'formData', + 'schema' => ['title' => '预算名称', 'description' => '预算名称', 'type' => 'string', 'required' => true, 'example' => 'department1'], + ], [ 'name' => 'Nbid', 'in' => 'query', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '7EA6C02D-06D0-4213-9C3B-E67910F7D1EB'], + 'BudgetName' => ['title' => '预算名称', 'description' => '预算名称', 'type' => 'string', 'example' => 'department1'], + ], ], ], ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '删除预算', + 'summary' => '删除预算', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7EA6C02D-06D0-4213-9C3B-E67910F7D1EB\\",\\n \\"BudgetName\\": \\"department1\\"\\n}","type":"json"}]', + ], + 'DeleteCostCenter' => [ + 'summary' => '删除财务单元', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OwnerAccountId', + 'in' => 'query', + 'schema' => ['title' => '财务单元的属主用户', 'description' => '财务单元的归属用户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1314839403940987'], + ], + [ + 'name' => 'CostCenterId', + 'in' => 'query', + 'schema' => ['title' => '财务单元ID', 'description' => '财务单元ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '485938'], + ], + [ + 'name' => 'Nbid', + 'in' => 'query', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], + ], + ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiListResult<CreateBillingAccountPayRelationResponse>', - 'description' => 'BssApiListResult<CreateBillingAccountPayRelationResponse>', + 'title' => 'BssApiPlainResult<CostCenterOperateDto>', + 'description' => 'BssApiPlainResult<CostCenterOperateDto>', 'type' => 'object', 'properties' => [ - 'Data' => [ - 'title' => '数据列表', - 'description' => '数据列表', - 'type' => 'array', - 'items' => [ - 'description' => '返回数据', - 'type' => 'object', - 'properties' => [ - 'AccountId' => [ - 'title' => '使用账户付款的用户AccountId', - 'description' => '使用账户付款的用户AccountId', - 'type' => 'string', - 'example' => '1501603440974415', - ], - 'FundAccountId' => [ - 'title' => '账户Id', - 'description' => '账户Id', - 'type' => 'string', - 'example' => '12332112', - ], - 'ResultMessage' => [ - 'title' => '结果信息', - 'description' => '结果信息', - 'type' => 'string', - 'example' => 'Successful', - ], - 'ResultCode' => [ - 'title' => '结果编码', - 'description' => '结果编码', - 'type' => 'string', - 'example' => 'Success', - ], - 'AccountName' => [ - 'title' => '使用账户付款的用户名称', - 'description' => '使用账户付款的用户名称', - 'type' => 'string', - 'example' => 'test@test.aliyunid.com'."\n", - ], - ], - ], - ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '6000EE23-274B-4E07-A697-FF2E999', - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'C1BD134E-D914-6AE0-1901-AEB2A99FA205'], + 'OwnerAccountId' => ['title' => '财务单元的属主用户', 'description' => '财务单元的归属用户ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1314839403940987'], + 'CostCenterId' => ['title' => '财务单元ID', 'description' => '财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '485938'], + 'IsSuccess' => ['title' => '是否成功', 'description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidBillingAccount', - 'errorMessage' => 'The caller does not have permission for the specified billing account.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'You are not authorized to perform this action.', + ['errorCode' => 'CostCenter.DeleteWithShareRule', 'errorMessage' => 'This financial unit involves splitting expense rules. Please adjust relevant rules before deleting the financial unit.', 'description' => ''], + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified request contains invalid parameters.', 'description' => ''], + ['errorCode' => 'CostCenter.MasterAndSubHasNoRelation', 'errorMessage' => 'Your account has no valid account relation yet.', 'description' => ''], + ['errorCode' => 'CostCenter.UnitNotExist', 'errorMessage' => 'The financial unit does not exist or is invalid.', 'description' => ''], + ['errorCode' => 'CostCenter.DeleteWithSubUnitOrResource', 'errorMessage' => 'Financial units with sub-units, allocated resources, or auto-allocation rules cannot be deleted.', 'description' => ''], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"C1BD134E-D914-6AE0-1901-AEB2A99FA205\\",\\n \\"OwnerAccountId\\": 1314839403940987,\\n \\"CostCenterId\\": 485938,\\n \\"IsSuccess\\": true\\n}","type":"json"}]', + 'title' => '删除财务单元', + 'description' => '本OpenAPI灰度中,仅对部分白名单用户开放,调用过多时不排除出现响应超时等性能问题。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'bss:ModifyCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"AccountId\\": \\"1501603440974415\\",\\n \\"FundAccountId\\": \\"12332112\\",\\n \\"ResultMessage\\": \\"Successful\\",\\n \\"ResultCode\\": \\"Success\\",\\n \\"AccountName\\": \\"test@test.aliyunid.com\\\\n\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999\\"\\n}","type":"json"}]', - 'title' => '创建资金账户的付款关系', ], - 'SetFundAccountLowAvailableAmountAlarm' => [ - 'summary' => '设置资金账户低额预警', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteCostCenterRule' => [ + 'summary' => '删除财务单元自动分配规则', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -2098,212 +1509,263 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'ThresholdAmount', + 'name' => 'CostCenterId', 'in' => 'formData', - 'schema' => [ - 'title' => '低额预警阈值', - 'description' => '低额预警阈值', - 'type' => 'string', - 'required' => true, - 'example' => '100', - ], + 'schema' => ['title' => '财务单元ID', 'description' => '财务单元ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '637127'], ], [ - 'name' => 'FundAccountId', - 'in' => 'formData', + 'name' => 'FilterExpression', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'title' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', - 'description' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '规则表达式', + 'description' => '规则表达式'."\n" + .'**删除操作时,该字段不需要录入**', + 'type' => 'object', + 'properties' => [ + 'ExpressionType' => [ + 'description' => '操作类型', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => ['DIMENSION' => '叶子结点过滤类型(code非标签使用)', 'TAG' => '叶子结点过滤类型(code=标签使用)', 'NARY' => '子条件关系(非叶子条件时使用)'], + 'example' => 'NARY', + ], + 'OperatorType' => ['description' => '关系表达式', 'type' => 'string', 'required' => false, 'example' => 'AND'], + 'Operands' => [ + 'description' => '条件表达式', + 'type' => 'array', + 'items' => ['description' => '条件表达式 '."\n" + .'**整体结构见示例(可以多层嵌套),下面的字段只是字段说明**', 'type' => 'any', 'required' => false, 'example' => '{'."\n" + .' '."\n" + .' "Operands": ['."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "TAG-xxx",'."\n" + .' "Values": ['."\n" + .' "xxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "TAG"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "INSTANCE_ID",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "LIKE"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "INSTANCE_NICK",'."\n" + .' "Values": ['."\n" + .' "111"'."\n" + .' ],'."\n" + .' "SelectType": "LIKE"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "RESOURCE_GROUP",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "ARTICLE",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "PRODUCT",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "OWNER",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' }'."\n" + .' ]'."\n" + .' }'], + 'required' => false, + ], + 'Operand' => ['description' => '筛选条件(不再使用)', 'type' => 'any', 'required' => false, 'example' => '无'], + 'FilterValues' => [ + 'description' => '子表达式过滤条件', + 'type' => 'object', + 'properties' => [ + 'Code' => [ + 'description' => '条件过滤KEY', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => ['OWNER' => '账号', 'ARTICLE' => '产品明细', 'RESOURCE_GROUP' => '资源组', 'xxx(用户自定义标签key)' => '业务标签,基于用户实际配置值', 'PRODUCT' => '产品', 'INSTANCE_NICK' => '实例名称', 'INSTANCE_ID' => '出账粒度'], + 'example' => 'TAG-test-xxx-key'."\n", + ], + 'CodeName' => ['description' => '条件过滤KEY名称', 'type' => 'string', 'required' => false, 'example' => '无'], + 'Values' => [ + 'description' => '条件过滤值', + 'type' => 'array', + 'items' => ['description' => '条件过滤值 INSTANCE_NICK、INSTANCE_NICK时只能录入一个', 'type' => 'string', 'required' => false, 'example' => '["TAG-test-xxx"]'."\n"], + 'required' => false, + ], + 'SelectType' => [ + 'description' => 'code和value关联关系', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => ['LIKE' => 'Code时其他情况下使用', 'IN' => 'Code是INSTANCE_NICK、INSTANCE_NICK时使用'], + 'example' => 'IN', + ], + ], + 'required' => false, + ], + ], 'required' => false, - 'example' => '12321213', ], ], + [ + 'name' => 'Nbid', + 'in' => 'query', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], + ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPlainResult<Boolean>', - 'description' => 'BssApiPlainResult<Boolean>', + 'title' => 'BssApiPlainResult<Long>', + 'description' => 'BssApiPlainResult<Long>', 'type' => 'object', 'properties' => [ - 'Data' => [ - 'description' => '返回数据。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '08108BF5-1AA3-518E-9986-95A3616E8DA9', - ], + 'Data' => ['description' => '财务单元分配规则id', 'type' => 'integer', 'format' => 'int64', 'example' => '37404'], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'UUID'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'RequestTimeout', - 'errorMessage' => 'Request timed out. Please try again later.', - ], - [ - 'errorCode' => 'NoFundAccountPermission', - 'errorMessage' => 'The caller does not have permission for the specified fund account.', + ['errorCode' => 'CostCenter.MasterAndSubHasNoRelation', 'errorMessage' => 'Your account has no valid account relation yet.', 'description' => ''], + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified request contains invalid parameters.', 'description' => ''], + ['errorCode' => 'CostCenter.UnitNotExist', 'errorMessage' => 'The financial unit does not exist or is invalid.', 'description' => ''], + ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 37404,\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"UUID\\"\\n}","type":"json"}]', + 'title' => '删除财务单元自动分配规则', + 'description' => '本OpenAPI灰度中,仅对部分白名单用户开放,调用过多时不排除出现响应超时等性能问题。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'bss:ModifyCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"08108BF5-1AA3-518E-9986-95A3616E8DA9\\"\\n}","type":"json"}]', - 'title' => '设置资金账户低额预警', ], - 'GetFundAccountCanWithdrawAmount' => [ - 'summary' => '查询资金账户可提现金额', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteReportDefinition' => [ + 'summary' => '删除账单报告导出订阅。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'tenant', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ - 'name' => 'FundAccountId', - 'in' => 'formData', - 'schema' => [ - 'title' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', - 'description' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123212232', - ], + 'name' => 'ReportTaskId', + 'in' => 'query', + 'schema' => ['description' => '账单订阅任务ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123123'], + ], + [ + 'name' => 'Nbid', + 'in' => 'query', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPlainResult<WithdrawInfoDTO>', - 'description' => 'BssApiPlainResult<WithdrawInfoDTO>', + 'title' => '', + 'description' => '', 'type' => 'object', 'properties' => [ - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'DF58589C-A06C-4224-8615-7797E6474FA3', - ], - 'CashAmount' => [ - 'title' => '现金余额', - 'description' => '现金余额', - 'type' => 'string', - 'example' => '1000', - ], - 'CanWithdrawAmount' => [ - 'title' => '可提现金额 = 现金余额 - 转账账本金额 - (欠票金额 + 历史月未结清金额 + 当前月未结清金额 - 转账账本金额) - 按量付费业务预留金额', - 'description' => '可提现金额 = 现金余额 - 转账账本金额 - (欠票金额 + 历史月未结清金额 + 当前月未结清金额 - 转账账本金额) - 按量付费业务预留金额', - 'type' => 'string', - 'example' => '500', - ], - 'CanOriginalWithdrawAmount' => [ - 'title' => '可原路提现金额', - 'description' => '可原路提现金额', - 'type' => 'string', - 'example' => '400', - ], - 'CannotOriginalWithdrawAmount' => [ - 'title' => '不可原路提现金额', - 'description' => '不可原路提现金额', - 'type' => 'string', - 'example' => '100', - ], - 'PayAsYouGoReversedAmount' => [ - 'title' => '按量业务预留金额', - 'description' => '按量业务预留金额', - 'type' => 'string', - 'example' => '100', - ], - 'TransferAmount' => [ - 'title' => '转账金额', - 'description' => '转账金额', - 'type' => 'string', - 'example' => '0', - ], - 'CreditMemoAmount' => [ - 'title' => '欠票金额', - 'description' => '欠票金额', - 'type' => 'string', - 'example' => '100', - ], - 'CurrentMonthUnclearedAmount' => [ - 'title' => '当前月未结清金额', - 'description' => '当前月未结清金额', - 'type' => 'string', - 'example' => '200', - ], - 'HistoryMonthUnclearedAmount' => [ - 'title' => '历史月未结清金额', - 'description' => '历史月未结清金额', - 'type' => 'string', - 'example' => '100', - ], + 'Data' => ['description' => '删除订阅是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F'."\n"], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'NoFundAccountPermission', - 'errorMessage' => 'The caller does not have permission for the specified fund account.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'You are not authorized to perform this action.', + ['errorCode' => 'InvalidHistoricalNbid', 'errorMessage' => 'Historical field does not support subscription bill.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\\\n\\"\\n}","type":"json"}]', + 'title' => '删除报告订阅', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'bss:ModifyOssSub', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"DF58589C-A06C-4224-8615-7797E6474FA3\\",\\n \\"CashAmount\\": \\"1000\\",\\n \\"CanWithdrawAmount\\": \\"500\\",\\n \\"CanOriginalWithdrawAmount\\": \\"400\\",\\n \\"CannotOriginalWithdrawAmount\\": \\"100\\",\\n \\"PayAsYouGoReversedAmount\\": \\"100\\",\\n \\"TransferAmount\\": \\"0\\",\\n \\"CreditMemoAmount\\": \\"100\\",\\n \\"CurrentMonthUnclearedAmount\\": \\"200\\",\\n \\"HistoryMonthUnclearedAmount\\": \\"100\\"\\n}","type":"json"}]', - 'title' => '查询资金账户可提现金额', ], - 'GetFundAccountAvailableAmount' => [ - 'summary' => '查询资金账户可用金', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DescribeBudget' => [ + 'summary' => '查询单个Budget', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -2311,251 +1773,129 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'], 'parameters' => [ [ - 'name' => 'FundAccountId', + 'name' => 'BudgetName', 'in' => 'formData', - 'schema' => [ - 'title' => '账户Id,不传时默认使用当前账号拥有(owner)的账户id。', - 'description' => '账户Id,不传时默认使用当前账号拥有(owner)的账户id。', - 'type' => 'string', - 'required' => false, - 'example' => '12332112', - ], + 'schema' => ['title' => '预算名称', 'description' => '预算名称', 'type' => 'string', 'required' => true, 'example' => 'department1'], + ], + [ + 'name' => 'Nbid', + 'in' => 'query', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPlainResult<BillingAccountAvailableAmountResponse>', - 'description' => 'BssApiPlainResult<BillingAccountAvailableAmountResponse>', + 'title' => '', + 'description' => '', 'type' => 'object', 'properties' => [ - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => 'F96A2D13-7509-5DF9-A60E-E7E3A3CB68E8', - ], - 'FundAccountId' => [ - 'title' => '账户Id', - 'description' => '账户Id', - 'type' => 'string', - 'example' => '12332112', - ], - 'FundAccountOwnerAccountId' => [ - 'title' => '账户归属人的账号accountId', - 'description' => '账户归属人的账号accountId', - 'type' => 'string', - 'example' => '1344312434', - ], - 'FundAccountStatus' => [ - 'title' => '账户状态', - 'description' => '账户状态', - 'type' => 'string', - 'example' => 'valid', - ], - 'FundAccountType' => [ - 'title' => '资金账户类型'."\n" - .'DIRECT_USER-阿里云直客账户;'."\n" - .' RESELLER_QUOTA-生态账户', - 'description' => '资金账户类型'."\n" - .'DIRECT_USER-阿里云直客账户;'."\n" - .' RESELLER_QUOTA-生态账户', - 'type' => 'string', - 'example' => 'REDIRECT_USER', - ], - 'AvailableAmount' => [ - 'title' => '可用额度', - 'description' => '可用额度', - 'type' => 'string', - 'example' => '100', - ], - 'CashAmount' => [ - 'title' => '现金余额', - 'description' => '现金余额', - 'type' => 'string', - 'example' => '50', - ], - 'NegativeBillAmount' => [ - 'title' => '负账单金额', - 'description' => '负账单金额', - 'type' => 'string', - 'example' => '0', - ], - 'CreditAmount' => [ - 'title' => '信控配额', - 'description' => '信控配额', - 'type' => 'string', - 'example' => '100', - ], - 'AvailableCreditAmount' => [ - 'title' => '信控余额', - 'description' => '信控余额', - 'type' => 'string', - 'example' => '50', - ], - 'CreditRefundAmount' => [ - 'title' => '信控退款余额', - 'description' => '信控退款余额', - 'type' => 'string', - 'example' => '0', - ], - 'UnclearedAmount' => [ - 'title' => '未结清金额 (当前月未结清 + 历史月未结清)', - 'description' => '未结清金额 (当前月未结清 + 历史月未结清)', - 'type' => 'string', - 'example' => '50', - ], - 'CurrentMonthUnclearedAmount' => [ - 'title' => '当月未结清金额', - 'description' => '当月未结清金额', - 'type' => 'string', - 'example' => '20', - ], - 'HistoryMonthUnclearedAmount' => [ - 'title' => '历史月未结清金额', - 'description' => '历史月未结清金额', - 'type' => 'string', - 'example' => '30', - ], - 'BankAcceptanceAmount' => [ - 'title' => '银承汇票额度', - 'description' => '银承汇票额度', - 'type' => 'string', - 'example' => '0', + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求id', 'type' => 'string', 'example' => 'A1B2C3D4-E5F6-7890-ABCD-EF1234567890'], + 'BudgetName' => ['title' => '预算名称', 'description' => '预算名称', 'type' => 'string', 'example' => 'department1'], + 'BudgetType' => ['title' => '预算类型', 'description' => '预算类型', 'type' => 'string', 'example' => 'CONSUME'], + 'Metric' => ['title' => '预算指标', 'description' => '预算指标', 'type' => 'string', 'example' => 'REQUIRE_AMOUNT'], + 'CycleType' => ['title' => '周期类型', 'description' => '周期类型', 'type' => 'string', 'example' => 'MONTHLY'], + 'CycleStartPeriod' => ['title' => '起始周期', 'description' => '起始周期', 'type' => 'string', 'example' => '2025-10'], + 'CycleEndPeriod' => ['title' => '结束周期', 'description' => '结束周期', 'type' => 'string', 'example' => '2026-12'], + 'QuotaType' => ['title' => '额度类型', 'description' => '额度类型', 'type' => 'string', 'example' => 'FIXED'], + 'Quota' => ['title' => '固定额度值', 'description' => '固定额度值', 'type' => 'string', 'example' => '1000'], + 'CycleQuota' => [ + 'title' => '每周期指定额度', + 'description' => '每周期指定额度', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'CyclePeriod' => ['title' => '周期', 'description' => '周期', 'type' => 'string', 'example' => '202601'], + 'Quota' => ['title' => '额度', 'description' => '额度', 'type' => 'string', 'example' => '100'], + ], + 'description' => '', + ], ], - 'ExtendLedgerList' => [ - 'title' => '扩展的账本列表', - 'description' => '扩展的账本列表', + 'QueryFilter' => [ + 'title' => '过滤条件', + 'description' => '过滤条件', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Currency' => [ - 'title' => '账本金额币种,比如:CNY/USD等', - 'description' => '账本金额币种,比如:CNY/USD等', - 'type' => 'string', - 'example' => 'CNY', - ], - 'LedgerName' => [ - 'title' => '账本名称', - 'description' => '账本名称', - 'type' => 'string', - 'example' => '应付对冲账本', - ], - 'OriginalAmount' => [ - 'title' => '账本余额', - 'description' => '账本余额', - 'type' => 'string', - 'example' => '50', + 'Code' => ['title' => '参数code', 'description' => '参数code', 'type' => 'string', 'example' => 'RESOURCE_OWNER_ACCOUNT'], + 'SelectType' => ['title' => '选择模式', 'description' => '选择模式', 'type' => 'string', 'example' => 'IN'], + 'Values' => [ + 'title' => '过滤值列表', + 'description' => '过滤值列表', + 'type' => 'array', + 'items' => ['description' => '维度对应值', 'type' => 'string', 'example' => '5772131917493334'], ], ], + 'description' => '', ], ], - 'QuotaAmount' => [ - 'title' => '生态终端客户配额', - 'description' => '生态终端客户配额', - 'type' => 'string', - 'example' => '20', - ], - 'QuotaConsumedAmount' => [ - 'title' => '生态终端客户已消费额度', - 'description' => '生态终端客户已消费额度', - 'type' => 'string', - 'example' => '10', - ], - 'Currency' => [ - 'title' => '币种', - 'description' => '币种', - 'type' => 'string', - 'example' => 'CNY', + 'EcIdAccountIdsFilter' => [ + 'title' => '企业多账号过滤条件', + 'description' => '企业多账号过滤条件', + 'type' => 'object', + 'properties' => [ + 'EcId' => ['description' => '企业实体ID', 'type' => 'string', 'example' => 'E2024112210463400001'], + 'AccountIds' => [ + 'description' => '成员账号ID', + 'type' => 'array', + 'items' => ['description' => '成员账号ID', 'type' => 'integer', 'format' => 'int64', 'example' => '5772131917494444'], + ], + ], ], - 'OriginalCashAmountList' => [ - 'title' => '原始现金账本列表(国际站用户可能存在多个币种的现金账本)', - 'description' => '原始现金账本列表(国际站用户可能存在多个币种的现金账本)', + 'Comment' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'example' => 'comment'], + 'WarnConfs' => [ + 'title' => '预警配置', + 'description' => '预警配置', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Amount' => [ - 'title' => '金额', - 'description' => '金额', - 'type' => 'string', - 'example' => '10', + 'Name' => ['title' => '预警名称(用户自定义,可选,不传时后端自动生成)', 'description' => '预警名称(用户自定义,可选,不传时后端自动生成)', 'type' => 'string', 'example' => 'Alter-1'], + 'Sequence' => ['title' => '排序序号(仅返回时存在,按预警ID从小到大编号,从1开始)', 'description' => '排序序号(仅返回时存在,按预警ID从小到大编号,从1开始)', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'WarnTarget' => ['title' => '预警对象', 'description' => '预警对象', 'type' => 'string', 'example' => 'ACTUAL'], + 'ThresholdType' => ['title' => '阈值类型', 'description' => '阈值类型', 'type' => 'string', 'example' => 'FIXED'], + 'ThresholdValue' => ['title' => '阈值', 'description' => '阈值', 'type' => 'string', 'example' => '1000'], + 'MscContacts' => [ + 'title' => '消息中心联系人列表', + 'description' => '消息中心联系人列表', + 'type' => 'array', + 'items' => ['description' => '联系人id', 'type' => 'string', 'example' => '112100'], ], - 'Currency' => [ - 'title' => '币种', - 'description' => '币种', - 'type' => 'string', - 'example' => 'USD', + 'MscChannels' => [ + 'title' => '消息中心通知渠道列表', + 'description' => '消息中心通知渠道列表', + 'type' => 'array', + 'items' => ['description' => '通道列表', 'type' => 'string', 'example' => 'EMAIL'], ], + 'EventBridge' => ['title' => '开启EventBridge', 'description' => '开启EventBridge', 'type' => 'boolean'], + 'Comment' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'example' => 'comment'], ], + 'description' => '', ], ], - 'CreditUser' => [ - 'title' => '是否开通信控', - 'description' => '是否开通信控', - 'type' => 'boolean', - 'default' => 'false', - ], ], ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'RequestTimeout', - 'errorMessage' => 'Request timed out. Please try again later.', - ], - [ - 'errorCode' => 'AccountNoQueryPricePermission', - 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice.', - ], - [ - 'errorCode' => 'SubAccountNoQueryPricePermission', - 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Contact the main account to go to the RAM console for authorization. The Action to be authorized is bss:QueryPrice.', - ], - [ - 'errorCode' => 'NoFundAccountPermission', - 'errorMessage' => 'The caller does not have permission for the specified fund account.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'You are not authorized to perform this action.', - ], - [ - 'errorCode' => 'InnerAccountNoQueryPricePermission', - 'errorMessage' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account. More questions please refer to the document.', - ], - [ - 'errorCode' => 'InnerSubAccountNoQueryPricePermission', - 'errorMessage' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account.', - ], - ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询单个预算详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"F96A2D13-7509-5DF9-A60E-E7E3A3CB68E8\\",\\n \\"FundAccountId\\": \\"12332112\\",\\n \\"FundAccountOwnerAccountId\\": \\"1344312434\\",\\n \\"FundAccountStatus\\": \\"valid\\",\\n \\"FundAccountType\\": \\"REDIRECT_USER\\",\\n \\"AvailableAmount\\": \\"100\\",\\n \\"CashAmount\\": \\"50\\",\\n \\"NegativeBillAmount\\": \\"0\\",\\n \\"CreditAmount\\": \\"100\\",\\n \\"AvailableCreditAmount\\": \\"50\\",\\n \\"CreditRefundAmount\\": \\"0\\",\\n \\"UnclearedAmount\\": \\"50\\",\\n \\"CurrentMonthUnclearedAmount\\": \\"20\\",\\n \\"HistoryMonthUnclearedAmount\\": \\"30\\",\\n \\"BankAcceptanceAmount\\": \\"0\\",\\n \\"ExtendLedgerList\\": [\\n {\\n \\"Currency\\": \\"CNY\\",\\n \\"LedgerName\\": \\"应付对冲账本\\",\\n \\"OriginalAmount\\": \\"50\\"\\n }\\n ],\\n \\"QuotaAmount\\": \\"20\\",\\n \\"QuotaConsumedAmount\\": \\"10\\",\\n \\"Currency\\": \\"CNY\\",\\n \\"OriginalCashAmountList\\": [\\n {\\n \\"Amount\\": \\"10\\",\\n \\"Currency\\": \\"USD\\"\\n }\\n ],\\n \\"CreditUser\\": true\\n}","type":"json"}]', - 'title' => '查询资金账户可用金', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"A1B2C3D4-E5F6-7890-ABCD-EF1234567890\\",\\n \\"BudgetName\\": \\"department1\\",\\n \\"BudgetType\\": \\"CONSUME\\",\\n \\"Metric\\": \\"REQUIRE_AMOUNT\\",\\n \\"CycleType\\": \\"MONTHLY\\",\\n \\"CycleStartPeriod\\": \\"2025-10\\",\\n \\"CycleEndPeriod\\": \\"2026-12\\",\\n \\"QuotaType\\": \\"FIXED\\",\\n \\"Quota\\": \\"1000\\",\\n \\"CycleQuota\\": [\\n {\\n \\"CyclePeriod\\": \\"202601\\",\\n \\"Quota\\": \\"100\\"\\n }\\n ],\\n \\"QueryFilter\\": [\\n {\\n \\"Code\\": \\"RESOURCE_OWNER_ACCOUNT\\",\\n \\"SelectType\\": \\"IN\\",\\n \\"Values\\": [\\n \\"5772131917493334\\"\\n ]\\n }\\n ],\\n \\"EcIdAccountIdsFilter\\": {\\n \\"EcId\\": \\"E2024112210463400001\\",\\n \\"AccountIds\\": [\\n 5772131917494444\\n ]\\n },\\n \\"Comment\\": \\"comment\\",\\n \\"WarnConfs\\": [\\n {\\n \\"Name\\": \\"Alter-1\\",\\n \\"Sequence\\": 1,\\n \\"WarnTarget\\": \\"ACTUAL\\",\\n \\"ThresholdType\\": \\"FIXED\\",\\n \\"ThresholdValue\\": \\"1000\\",\\n \\"MscContacts\\": [\\n \\"112100\\"\\n ],\\n \\"MscChannels\\": [\\n \\"EMAIL\\"\\n ],\\n \\"EventBridge\\": true,\\n \\"Comment\\": \\"comment\\"\\n }\\n ]\\n}","type":"json"}]', ], - 'GetFundAccountLowAvailableAmountAlarm' => [ - 'summary' => '查询资金账户低额预警', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DescribeBudgets' => [ + 'summary' => '查询预算列表', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -2563,78 +1903,162 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'], 'parameters' => [ [ - 'name' => 'FundAccountId', + 'name' => 'PageNo', 'in' => 'formData', - 'schema' => [ - 'title' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', - 'description' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '12332112', - ], + 'schema' => ['title' => '页号', 'description' => '页号', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => ['title' => '每页数量', 'description' => '每页数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], + ], + [ + 'name' => 'BudgetName', + 'in' => 'formData', + 'schema' => ['title' => '预算名称(模糊查询)', 'description' => '预算名称(模糊查询)', 'type' => 'string', 'required' => false, 'example' => 'department1'], + ], + [ + 'name' => 'BudgetType', + 'in' => 'formData', + 'schema' => ['title' => '预算类型', 'description' => '预算类型', 'type' => 'string', 'required' => false, 'example' => 'CONSUME'], + ], + [ + 'name' => 'ExpireStatus', + 'in' => 'formData', + 'schema' => ['title' => '过期状态', 'description' => '过期状态', 'type' => 'string', 'required' => false, 'example' => 'NOT_EXPIRED'], + ], + [ + 'name' => 'Nbid', + 'in' => 'query', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2688801000001'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPlainResult<BalanceAlarmDTO>', - 'description' => 'BssApiPlainResult<BalanceAlarmDTO>', + 'title' => '', + 'description' => '', 'type' => 'object', 'properties' => [ - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求 ID', - 'type' => 'string', - 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4', - ], - 'ThresholdAmount' => [ - 'title' => '预警阈值', - 'description' => '预警阈值', - 'type' => 'string', - 'example' => '100', - ], - 'AlarmEnabled' => [ - 'title' => '是否开启预警', - 'description' => '是否开启预警', - 'type' => 'boolean', - 'default' => 'false', + 'CurrentPage' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'PageSize' => ['title' => '每页大小', 'description' => '每页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Data' => [ + 'title' => '数据列表', + 'description' => '数据列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'BudgetName' => ['title' => '预算名称', 'description' => '预算名称', 'type' => 'string', 'example' => 'department1-test'], + 'BudgetType' => ['title' => '预算类型', 'description' => '预算类型', 'type' => 'string', 'example' => 'CONSUME'], + 'Metric' => ['title' => '预算指标', 'description' => '预算指标', 'type' => 'string', 'example' => 'REQUIRE_AMOUNT'], + 'CycleStartPeriod' => ['title' => '起始周期', 'description' => '起始周期', 'type' => 'string', 'example' => '2025-10'], + 'CycleEndPeriod' => ['title' => '结束周期', 'description' => '结束周期', 'type' => 'string', 'example' => '2026-12'], + 'CycleType' => ['title' => '周期类型', 'description' => '周期类型', 'type' => 'string', 'example' => 'MONTHLY'], + 'ExpireStatus' => ['title' => '过期状态', 'description' => '过期状态', 'type' => 'string', 'example' => 'NOT_EXPIRED'], + 'QueryFilter' => [ + 'title' => '过滤条件', + 'description' => '过滤条件', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Code' => ['title' => '参数code', 'description' => '参数code', 'type' => 'string', 'example' => 'RESOURCE_OWNER_ACCOUNT'], + 'SelectType' => ['title' => '选择模式', 'description' => '选择模式', 'type' => 'string', 'example' => 'IN'], + 'Values' => [ + 'title' => '过滤值列表', + 'description' => '过滤值列表', + 'type' => 'array', + 'items' => ['description' => '维度值列表', 'type' => 'string', 'example' => '5772131917493334'], + ], + ], + 'description' => '', + ], + ], + 'EcIdAccountIdsFilter' => [ + 'title' => '企业多账号过滤条件', + 'description' => '企业多账号过滤条件', + 'type' => 'object', + 'properties' => [ + 'EcId' => ['description' => '企业实体ID', 'type' => 'string', 'example' => 'E2024112210463400001'], + 'AccountIds' => [ + 'description' => '成员账号ID。', + 'type' => 'array', + 'items' => ['description' => '成员账号ID', 'type' => 'integer', 'format' => 'int64', 'example' => '5772131917494444'], + ], + ], + ], + 'QuotaType' => ['title' => '额度类型', 'description' => '额度类型', 'type' => 'string', 'example' => 'FIXED'], + 'Quota' => ['title' => '固定额度值', 'description' => '固定额度值', 'type' => 'string', 'example' => '10000'], + 'CycleQuota' => [ + 'title' => '每周期指定额度', + 'description' => '每周期指定额度', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'CyclePeriod' => ['title' => '周期', 'description' => '周期', 'type' => 'string', 'example' => '202601'], + 'Quota' => ['title' => '额度', 'description' => '额度', 'type' => 'string', 'example' => '100'], + ], + 'description' => '', + ], + ], + 'WarnConfs' => [ + 'title' => '预警配置', + 'description' => '预警配置', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '预警名称(用户自定义,可选,不传时后端自动生成)', 'description' => '预警名称(用户自定义,可选,不传时后端自动生成)', 'type' => 'string', 'example' => 'Alert-1'], + 'Sequence' => ['title' => '排序序号(仅返回时存在,按预警ID从小到大编号,从1开始)', 'description' => '排序序号(仅返回时存在,按预警ID从小到大编号,从1开始)', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'WarnTarget' => ['title' => '预警对象', 'description' => '预警对象', 'type' => 'string', 'example' => 'ACTUAL'], + 'ThresholdType' => ['title' => '阈值类型', 'description' => '阈值类型', 'type' => 'string', 'example' => 'FIXED'], + 'ThresholdValue' => ['title' => '阈值', 'description' => '阈值', 'type' => 'string', 'example' => '100'], + 'MscContacts' => [ + 'title' => '消息中心联系人列表', + 'description' => '消息中心联系人列表', + 'type' => 'array', + 'items' => ['description' => '联系人', 'type' => 'string', 'example' => '12210'], + ], + 'MscChannels' => [ + 'title' => '消息中心通知渠道列表', + 'description' => '消息中心通知渠道列表', + 'type' => 'array', + 'items' => ['description' => '消息通道', 'type' => 'string', 'example' => 'EMAIL'], + ], + 'EventBridge' => ['title' => '开启EventBridge', 'description' => '开启EventBridge', 'type' => 'boolean'], + 'Comment' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'example' => 'comment1'], + ], + 'description' => '', + ], + ], + 'Comment' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'example' => 'budget-1'], + ], + 'description' => '', + ], ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'DB2A9097-289C-11CE-AA74-235FCFD39204'], ], ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'NoFundAccountPermission', - 'errorMessage' => 'The caller does not have permission for the specified fund account.', - ], - ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询预算列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\",\\n \\"ThresholdAmount\\": \\"100\\",\\n \\"AlarmEnabled\\": true\\n}","type":"json"}]', - 'title' => '查询资金账户低额预警', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 1,\\n \\"Data\\": [\\n {\\n \\"BudgetName\\": \\"department1-test\\",\\n \\"BudgetType\\": \\"CONSUME\\",\\n \\"Metric\\": \\"REQUIRE_AMOUNT\\",\\n \\"CycleStartPeriod\\": \\"2025-10\\",\\n \\"CycleEndPeriod\\": \\"2026-12\\",\\n \\"CycleType\\": \\"MONTHLY\\",\\n \\"ExpireStatus\\": \\"NOT_EXPIRED\\",\\n \\"QueryFilter\\": [\\n {\\n \\"Code\\": \\"RESOURCE_OWNER_ACCOUNT\\",\\n \\"SelectType\\": \\"IN\\",\\n \\"Values\\": [\\n \\"5772131917493334\\"\\n ]\\n }\\n ],\\n \\"EcIdAccountIdsFilter\\": {\\n \\"EcId\\": \\"E2024112210463400001\\",\\n \\"AccountIds\\": [\\n 5772131917494444\\n ]\\n },\\n \\"QuotaType\\": \\"FIXED\\",\\n \\"Quota\\": \\"10000\\",\\n \\"CycleQuota\\": [\\n {\\n \\"CyclePeriod\\": \\"202601\\",\\n \\"Quota\\": \\"100\\"\\n }\\n ],\\n \\"WarnConfs\\": [\\n {\\n \\"Name\\": \\"Alert-1\\",\\n \\"Sequence\\": 1,\\n \\"WarnTarget\\": \\"ACTUAL\\",\\n \\"ThresholdType\\": \\"FIXED\\",\\n \\"ThresholdValue\\": \\"100\\",\\n \\"MscContacts\\": [\\n \\"12210\\"\\n ],\\n \\"MscChannels\\": [\\n \\"EMAIL\\"\\n ],\\n \\"EventBridge\\": true,\\n \\"Comment\\": \\"comment1\\"\\n }\\n ],\\n \\"Comment\\": \\"budget-1\\"\\n }\\n ],\\n \\"RequestId\\": \\"DB2A9097-289C-11CE-AA74-235FCFD39204\\"\\n}","type":"json"}]', ], - 'ListFundAccount' => [ - 'summary' => '查询资金账户列表', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DescribeCoupon' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -2642,53 +2066,129 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'QueryOnlyManage', - 'in' => 'formData', - 'schema' => [ - 'title' => '只查询管理的账户列表,默认false', - 'description' => '只查询管理的账户列表,默认false', - 'type' => 'boolean', - 'required' => false, - 'default' => 'false', - ], + 'name' => 'EffectiveStartTime', + 'in' => 'query', + 'schema' => ['title' => '生效开始时间', 'description' => '生效开始时间', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1684750028000'], ], [ - 'name' => 'QueryOnlyInUse', - 'in' => 'formData', + 'name' => 'EffectiveEndTime', + 'in' => 'query', + 'schema' => ['title' => '生效结束时间', 'description' => '生效结束时间', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1708423156000'], + ], + [ + 'name' => 'ExpireStartDate', + 'in' => 'query', + 'schema' => ['title' => '失效开始时间', 'description' => '失效开始时间', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1684750028000'], + ], + [ + 'name' => 'ExpireEndDate', + 'in' => 'query', + 'schema' => ['title' => '失效结束时间', 'description' => '失效结束时间', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1708423156000'], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => ['title' => '状态', 'description' => '状态', 'type' => 'string', 'required' => false, 'example' => 'AVAILABLE'], + ], + [ + 'name' => 'CouponType', + 'in' => 'query', + 'schema' => ['title' => '优惠券类型', 'description' => '优惠券类型', 'type' => 'string', 'required' => false, 'example' => 'CERTAIN'], + ], + [ + 'name' => 'Nbid', + 'in' => 'query', + 'schema' => ['title' => '一级场信息', 'description' => '一级场信息', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], + ], + [ + 'name' => 'CouponId', + 'in' => 'query', + 'schema' => ['title' => '优惠券id', 'description' => '优惠券id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '351430260343'], + ], + [ + 'name' => 'CouponNo', + 'in' => 'query', + 'schema' => ['title' => '券编码', 'description' => '券编码', 'type' => 'string', 'required' => false, 'example' => '554863270150'], + ], + [ + 'name' => 'CurrentPage', + 'in' => 'query', + 'schema' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['title' => '每页大小', 'description' => '每页大小', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '20'], + ], + [ + 'name' => 'EcIdAccountIds', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'title' => '只查询在用的账户列表,默认为false', - 'description' => '只查询在用的账户列表,默认为false', - 'type' => 'boolean', + 'title' => '企业与账号列表,为空表示查询当前账号自身', + 'description' => '企业与账号列表,为空表示查询当前账号自身', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'EcId' => ['title' => '企业实体ID', 'description' => '企业实体ID', 'type' => 'string', 'required' => false, 'example' => '1501603440974415'], + 'AccountIds' => [ + 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'type' => 'array', + 'items' => ['description' => '成员账号ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1501603440974415'], + 'required' => false, + ], + ], + 'required' => false, + 'description' => '', + ], 'required' => false, - 'default' => 'false', ], ], [ - 'name' => 'Nbid', + 'name' => 'MaxResults', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32'], + ], + [ + 'name' => 'NextToken', 'in' => 'query', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'CouponTemplateIdList', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2084210001', + 'type' => 'array', + 'items' => ['type' => 'integer', 'format' => 'int64'], ], ], + [ + 'name' => 'ProductCode', + 'in' => 'query', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'IncludeShare', + 'in' => 'query', + 'schema' => ['type' => 'boolean'], + ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiListResult<BillingAccount>', - 'description' => 'BssApiListResult<BillingAccount>', + 'title' => 'BssApiPageResult<CouponVO>', + 'description' => 'BssApiPageResult<CouponVO>', 'type' => 'object', 'properties' => [ + 'CurrentPage' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'PageSize' => ['title' => '每页大小', 'description' => '每页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], 'Data' => [ 'title' => '数据列表', 'description' => '数据列表', @@ -2696,211 +2196,210 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Site' => [ - 'title' => '站点', - 'description' => '站点', - 'type' => 'string', - 'example' => '26842', - ], - 'FundAccountOwnerAccountId' => [ - 'title' => '账户归属人的账号accountId', - 'description' => '账户归属人的账号accountId', - 'type' => 'string', - 'example' => '132123211', - ], - 'FundAccountType' => [ - 'title' => '账户类型'."\n" - .'DIRECT_USER-阿里云直客账户; '."\n" - .'RESELLER_QUOTA-生态账户', - 'description' => '账户类型'."\n" - .'DIRECT_USER-阿里云直客账户; '."\n" - .'RESELLER_QUOTA-生态账户', - 'type' => 'string', - 'example' => 'DIRECT_USER', - ], - 'FundAccountId' => [ - 'title' => '账户Id', - 'description' => '账户Id', - 'type' => 'string', - 'example' => '1022231', - ], - 'FundAccountName' => [ - 'title' => '账户名称', - 'description' => '账户名称', - 'type' => 'string', - 'example' => '云某的账户', + 'CouponId' => ['title' => '优惠券id', 'description' => '优惠券ID', 'type' => 'integer', 'format' => 'int64', 'example' => '59243658'], + 'CouponNo' => ['title' => '券编码', 'description' => '券编码', 'type' => 'string', 'example' => '731074910070'], + 'CouponType' => ['title' => '优惠券类型', 'description' => '优惠券类型', 'type' => 'string', 'example' => 'CERTAIN'], + 'CouponTypeName' => ['title' => '优惠券类型名称', 'description' => '优惠券类型名称', 'type' => 'string', 'example' => '满减券'], + 'Amount' => ['title' => '面值', 'description' => '面值', 'type' => 'string', 'example' => '9929.750000'], + 'RemainAmount' => ['title' => '剩余金额', 'description' => '剩余金额', 'type' => 'string', 'example' => '100.00'], + 'ItemNames' => [ + 'title' => '产品code列表', + 'description' => '产品code列表', + 'type' => 'array', + 'items' => ['description' => '适用商品名称', 'type' => 'string', 'example' => '全产品适用'], ], - 'Permissions' => [ - 'title' => '用户拥有的账户权限集合'."\n" - .'using - 使用;'."\n" - .'manage - 管理;'."\n" - .'owner - 拥有;', - 'description' => '用户拥有的账户权限集合'."\n" - .'using - 使用;'."\n" - .'manage - 管理;'."\n" - .'owner - 拥有;', + 'UniversalType' => ['title' => '优惠券适用范围', 'description' => '优惠券适用范围', 'type' => 'string', 'example' => 'UNIVERSAL'], + 'YhOrderTypes' => [ + 'title' => '优惠券适用订单类型列表', + 'description' => '优惠券适用订单类型列表', + 'type' => 'array', + 'items' => ['description' => '适用订单类型', 'type' => 'string', 'example' => '新购'], + ], + 'Status' => ['title' => '状态', 'description' => '状态', 'type' => 'string', 'example' => 'Available'], + 'GmtCreate' => ['description' => '发券时间', 'type' => 'string', 'example' => '2021-03-02T15:12Z'."\n"], + 'StartTime' => ['title' => '开始时间', 'description' => '开始时间', 'type' => 'string', 'example' => '2021-03-02T15:12Z'], + 'EndTime' => ['title' => '结束时间', 'description' => '结束时间', 'type' => 'string', 'example' => '2021-03-06T15:12Z'], + 'Site' => ['title' => '站点', 'description' => '站点', 'type' => 'string', 'example' => 'CHINA'], + 'SiteName' => ['title' => '站点名称', 'description' => '站点名称', 'type' => 'string', 'example' => '官网自营'], + 'Remark' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'example' => '新买28号'], + 'MoneyLimit' => ['title' => '金额限制', 'description' => '金额限制', 'type' => 'string', 'example' => '无订单金额限制'], + 'Currency' => ['title' => '币种', 'description' => '币种', 'type' => 'string', 'example' => 'CNY'], + 'SuitAccount' => ['title' => '适用帐号', 'description' => '适用账号', 'type' => 'string', 'example' => '1902671110151254'], + 'OrderTimeRule' => ['title' => '订单时长限制规则', 'description' => '订单时长限制规则', 'type' => 'string', 'example' => '预付费规则:购买订单时长大于3600s才能使用'], + 'ShareUidList' => [ + 'title' => '共享帐号列表', + 'description' => '共享账号列表', 'type' => 'array', 'items' => [ - 'description' => '权限点', - 'type' => 'string', - 'example' => 'owner', + 'type' => 'object', + 'properties' => [ + 'Uid' => ['title' => '阿里云uid', 'description' => '阿里云uid', 'type' => 'string', 'example' => '1902671110151254'], + 'UserNick' => ['title' => '阿里云帐号', 'description' => '阿里云账号', 'type' => 'string', 'example' => '阿里云计算有限公司'], + ], + 'description' => '', ], ], - 'Nbid' => [ - 'title' => '一级售卖场', - 'description' => '一级售卖场', - 'type' => 'string', - 'example' => '2684210001', - ], - 'FundAccountAdminAccountName' => [ - 'title' => '账户对应的MA用户名称', - 'description' => '账户对应的MA用户名称', - 'type' => 'string', - 'example' => '云某的账户', - ], - 'CreateDate' => [ - 'title' => '账户创建时间', - 'description' => '账户创建时间', - 'type' => 'string', - 'example' => '2024-12-30 12:00:00', - ], - 'FundAccountAdminAccountId' => [ - 'title' => '账户对应的MA用户accountId', - 'description' => '账户对应的MA用户accountId', - 'type' => 'string', - 'example' => '1232121', - ], - 'FundAccountStatus' => [ - 'title' => '账户状态'."\n" - .'VALID-有效;'."\n" - .'FROZEN-冻结; '."\n" - .'CLOSED-注销', - 'description' => '账户状态'."\n" - .'VALID-有效;'."\n" - .'FROZEN-冻结; '."\n" - .'CLOSED-注销', - 'type' => 'string', - 'example' => 'VALID', - ], + 'SuitItemType' => ['title' => '适用产品类型:all 全产品通用 white 指定产品适用 black 指定产品不适用', 'description' => '适用产品类型:all 全产品通用 white 指定产品适用 black 指定产品不适用', 'type' => 'string', 'example' => 'all'], + 'ShowSetDeductTagButton' => ['description' => '是否展示标签抵扣按钮', 'type' => 'boolean', 'example' => 'true'], + 'CertainAmount' => ['type' => 'string', 'description' => ''], + 'FirstBuy' => ['title' => '是否有首购限制', 'description' => '是否有首购限制', 'type' => 'boolean'], ], + 'description' => '', ], ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'C880B065-A781-4F19-B6DD-3E0E3B715C64'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'RequestTimeout', - 'errorMessage' => 'Request timed out. Please try again later.', - ], - [ - 'errorCode' => 'AccountNotExist', - 'errorMessage' => 'Account does not exist.', + ['errorCode' => 'AccountNoQueryPricePermission', 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice.', 'description' => '由于您没有折扣查询权限,无法访问该页面。请联系主账号前往费用中心授权,需要授权的权限点为 queryprice'], + ['errorCode' => 'SubAccountNoQueryPricePermission', 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Contact the main account to go to the RAM console for authorization. The Action to be authorized is bss:QueryPrice.', 'description' => '由于您没有折扣查询权限,无法访问该页面。请联系主账号前往RAM控制台授权,需要授权的Action为 bss:QueryPrice'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询优惠券列表', + 'summary' => '查询优惠券列表', + 'changeSet' => [ + ['createdAt' => '2025-08-14T06:14:53.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2025-04-24T07:53:40.000Z', 'description' => '响应参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'bss:DescribeCoupon', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"Site\\": \\"26842\\",\\n \\"FundAccountOwnerAccountId\\": \\"132123211\\",\\n \\"FundAccountType\\": \\"DIRECT_USER\\",\\n \\"FundAccountId\\": \\"1022231\\",\\n \\"FundAccountName\\": \\"云某的账户\\",\\n \\"Permissions\\": [\\n \\"owner\\"\\n ],\\n \\"Nbid\\": \\"2684210001\\",\\n \\"FundAccountAdminAccountName\\": \\"云某的账户\\",\\n \\"CreateDate\\": \\"2024-12-30 12:00:00\\",\\n \\"FundAccountAdminAccountId\\": \\"1232121\\",\\n \\"FundAccountStatus\\": \\"VALID\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\"\\n}","type":"json"}]', - 'title' => '查询资金账户列表', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 2,\\n \\"Data\\": [\\n {\\n \\"CouponId\\": 59243658,\\n \\"CouponNo\\": \\"731074910070\\",\\n \\"CouponType\\": \\"CERTAIN\\",\\n \\"CouponTypeName\\": \\"满减券\\",\\n \\"Amount\\": \\"9929.750000\\",\\n \\"RemainAmount\\": \\"100.00\\",\\n \\"ItemNames\\": [\\n \\"全产品适用\\"\\n ],\\n \\"UniversalType\\": \\"UNIVERSAL\\",\\n \\"YhOrderTypes\\": [\\n \\"新购\\"\\n ],\\n \\"Status\\": \\"Available\\",\\n \\"GmtCreate\\": \\"2021-03-02T15:12Z\\\\n\\",\\n \\"StartTime\\": \\"2021-03-02T15:12Z\\",\\n \\"EndTime\\": \\"2021-03-06T15:12Z\\",\\n \\"Site\\": \\"CHINA\\",\\n \\"SiteName\\": \\"官网自营\\",\\n \\"Remark\\": \\"新买28号\\",\\n \\"MoneyLimit\\": \\"无订单金额限制\\",\\n \\"Currency\\": \\"CNY\\",\\n \\"SuitAccount\\": \\"1902671110151254\\",\\n \\"OrderTimeRule\\": \\"预付费规则:购买订单时长大于3600s才能使用\\",\\n \\"ShareUidList\\": [\\n {\\n \\"Uid\\": \\"1902671110151254\\",\\n \\"UserNick\\": \\"阿里云计算有限公司\\"\\n }\\n ],\\n \\"SuitItemType\\": \\"all\\",\\n \\"ShowSetDeductTagButton\\": true,\\n \\"CertainAmount\\": \\"\\",\\n \\"FirstBuy\\": true\\n }\\n ],\\n \\"RequestId\\": \\"C880B065-A781-4F19-B6DD-3E0E3B715C64\\"\\n}","type":"json"}]', ], - 'CancelFundAccountLowAvailableAmountAlarm' => [ - 'summary' => '取消资金账户低额预警', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DescribeCouponItemList' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'FundAccountId', - 'in' => 'formData', + 'name' => 'CouponId', + 'in' => 'query', + 'schema' => ['title' => '优惠券id', 'description' => '优惠券id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '59104570'], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => ['title' => '商品名称(支持模糊匹配)', 'description' => '商品名称(支持模糊匹配)', 'type' => 'string', 'required' => false, 'example' => '云服务器ECS'], + ], + [ + 'name' => 'CurrentPage', + 'in' => 'query', + 'schema' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['title' => '每页大小', 'description' => '每页大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + ], + [ + 'name' => 'EcIdAccountIds', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'title' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', - 'description' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '企业与账号列表,为空表示查询当前账号自身', + 'description' => '企业与账号列表,为空表示查询当前账号自身', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'EcId' => ['title' => '企业实体ID', 'description' => '企业实体ID', 'type' => 'string', 'required' => true, 'example' => '1004064243473974'], + 'AccountIds' => [ + 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'type' => 'array', + 'items' => ['description' => '成员账号ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1004064243473974'], + 'required' => false, + ], + ], + 'required' => false, + 'description' => '', + ], 'required' => false, - 'example' => '123321123', ], ], + [ + 'name' => 'Nbid', + 'in' => 'query', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], + ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPlainResult<Boolean>', - 'description' => 'BssApiPlainResult<Boolean>', + 'title' => 'BssApiPageResult<ItemNameVO>', + 'description' => 'BssApiPageResult<ItemNameVO>', 'type' => 'object', 'properties' => [ + 'CurrentPage' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'PageSize' => ['title' => '每页大小', 'description' => '每页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '5'], 'Data' => [ - 'description' => '是否成功', - 'type' => 'boolean', - 'example' => 'true', - 'default' => 'true', - ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => 'DFC1F7F9-3BA9-BA4D-2F2E653', + 'title' => '数据列表', + 'description' => '数据列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Code' => ['title' => '商品code', 'description' => '商品code', 'type' => 'string', 'example' => 'vm'], + 'Name' => ['title' => '商品名称', 'description' => '商品名称', 'type' => 'string', 'example' => '云服务器ECS'], + ], + 'description' => '', + ], ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'EAE08A27-386C-579E-966D-8853EC3C5D0E'], ], ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'RequestTimeout', - 'errorMessage' => 'Request timed out. Please try again later.', - ], - [ - 'errorCode' => 'NoFundAccountPermission', - 'errorMessage' => 'The caller does not have permission for the specified fund account.', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询优惠券可用商品列表', + 'summary' => '查询优惠券可用商品列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeCouponItemList', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"DFC1F7F9-3BA9-BA4D-2F2E653\\"\\n}","type":"json"}]', - 'title' => '取消资金账户低额预警', - 'description' => '取消资金账户低额预警', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 5,\\n \\"Data\\": [\\n {\\n \\"Code\\": \\"vm\\",\\n \\"Name\\": \\"云服务器ECS\\"\\n }\\n ],\\n \\"RequestId\\": \\"EAE08A27-386C-579E-966D-8853EC3C5D0E\\"\\n}","type":"json"}]', ], - 'GetFundAccountCanAllocateCreditAmount' => [ - 'summary' => '查询资金账户可分配信控额度', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DescribeDeductLogs' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -2908,138 +2407,253 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'FundAccountId', + 'name' => 'Group', 'in' => 'formData', 'schema' => [ - 'title' => '资金账户id,不设置时默认使用当前账号拥有(owner)的账户', - 'description' => '资金账户id,不设置时默认使用当前账号拥有(owner)的账户', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '查询的资源维度,可选 ecsRi、cu、polardb、fr、oss_rc、oss_arc,', + 'description' => '查询的资源维度。', + 'type' => 'string', 'required' => false, - 'example' => '1233231', + 'enumValueTitles' => ['oss_arc' => 'OSS 无地域属性预留空间', 'cu' => '存储容量单位包', 'ecsRi' => '预留实例券', 'oss_rc' => 'OSS 预留空间', 'fr' => '资源包', 'polardb' => 'PolarDB 计算包'], + 'example' => 'oss_rc', ], ], + [ + 'name' => 'BillingStartTime', + 'in' => 'formData', + 'schema' => ['title' => '计费开始时间', 'description' => '计费开始时间。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1647446400000'], + ], + [ + 'name' => 'BillingEndTime', + 'in' => 'formData', + 'schema' => ['title' => '计费结束时间', 'description' => '计费结束时间。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1679068799999'], + ], + [ + 'name' => 'InstanceId', + 'in' => 'formData', + 'schema' => ['title' => '实例名称', 'description' => '实例名称。', 'type' => 'string', 'required' => false, 'example' => 'OSSBAG-cn******'], + ], + [ + 'name' => 'PageNum', + 'in' => 'formData', + 'schema' => ['title' => '页码', 'description' => '当前页码。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'default' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => ['title' => '页大小', 'description' => '每页大小。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'default' => '50'], + ], + [ + 'name' => 'BillingCommodityCode', + 'in' => 'formData', + 'schema' => ['title' => '抵扣商品code', 'description' => '抵扣商品编码。', 'type' => 'string', 'required' => false, 'example' => 'snapshot'], + ], + [ + 'name' => 'CommodityCode', + 'in' => 'formData', + 'schema' => ['title' => '商品code', 'description' => '商品编码。', 'type' => 'string', 'required' => false, 'example' => 'ossbag'], + ], + [ + 'name' => 'RelationAccountIds', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '抵扣账户uid', + 'description' => '抵扣账号列表。', + 'type' => 'array', + 'items' => ['description' => '抵扣账号ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '[]'], + 'required' => false, + ], + ], + [ + 'name' => 'EcIdAccountIds', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '企业与账号列表,为空表示查询当前账号自身', + 'description' => '企业与账号列表,为空表示查询当前账号自身', + 'type' => 'array', + 'items' => [ + 'description' => '企业与账号列表,为空表示查询当前账号自身', + 'type' => 'object', + 'properties' => [ + 'EcId' => ['title' => '企业实体ID', 'description' => '企业实体ID', 'type' => 'string', 'required' => true, 'example' => '1004064243473974'], + 'AccountIds' => [ + 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'type' => 'array', + 'items' => ['description' => '成员账号 ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1990699401005016'], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + [ + 'name' => 'Nbid', + 'in' => 'query', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充。', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], + ], + [ + 'name' => 'BillInstanceId', + 'in' => 'query', + 'schema' => ['description' => '抵扣计费的实例id', 'type' => 'string', 'required' => false, 'example' => 'ecs-******'], + ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPlainResult<UserCreditLimitResponse>', - 'description' => 'BssApiPlainResult<UserCreditLimitResponse>', + 'title' => 'BssApiPageResult<InstanceDeductResponse>', + 'description' => 'BssApiPageResult<InstanceDeductResponse>', 'type' => 'object', 'properties' => [ - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'CC706AAC-75A6-55B5-9AB7-7D171C6C7655', - ], - 'Ecid' => [ - 'title' => '企业实体id', - 'description' => '企业实体id', - 'type' => 'string', - 'example' => '2032123221', - ], - 'EcidCreditAmount' => [ - 'title' => '企业信控配额', - 'description' => '企业信控配额', - 'type' => 'string', - 'example' => '1000', - ], - 'EcidAllocatedCreditAmount' => [ - 'title' => '企业已分配信控额度', - 'description' => '企业已分配信控额度', - 'type' => 'string', - 'example' => '300', - ], - 'MaxCanAllocateCreditAmount' => [ - 'title' => '当前账户最大可分配信控额度', - 'description' => '当前账户最大可分配信控额度', - 'type' => 'string', - 'example' => '1500', - ], - 'MinCanAllocateCreditAmount' => [ - 'title' => '当前账户最小可分配信控额度', - 'description' => '当前账户最小可分配信控额度', - 'type' => 'string', - 'example' => '200', - ], - 'Site' => [ - 'title' => '站点', - 'description' => '站点', - 'type' => 'string', - 'example' => '26842', - ], - 'Nbid' => [ - 'title' => '一级售卖场', - 'description' => '一级售卖场', - 'type' => 'string', - 'example' => '2684210001', - ], - 'FundAccountId' => [ - 'title' => '账户Id', - 'description' => '账户Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12332112', - ], - 'FundAccountOwnerAccountId' => [ - 'title' => '账户归属人的阿里云accountId', - 'description' => '账户归属人的阿里云accountId', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123433121', - ], - 'FundAccountName' => [ - 'title' => '账户名称', - 'description' => '账户名称', - 'type' => 'string', - 'example' => '云某的名称', - ], - 'FundAccountEcid' => [ - 'title' => '账户ecid', - 'description' => '账户ecid', - 'type' => 'string', - 'example' => '202321232', + 'CurrentPage' => ['title' => '当前页码', 'description' => '当前页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'PageSize' => ['title' => '每页大小', 'description' => '每页大小。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '8'], + 'Data' => [ + 'title' => '数据列表', + 'description' => '数据列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'AccountId' => ['title' => '用户id', 'description' => '账号ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1929817951466001'], + 'InstanceId' => ['title' => '实例名称', 'description' => '实例名称。', 'type' => 'string', 'example' => 'OSSBAG-cn-****s'], + 'CapacityType' => [ + 'title' => '容量类型', + 'description' => '容量类型。', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => '属性编码。', 'type' => 'string', 'example' => 'absolute'], + 'Name' => ['description' => '属性名称。', 'type' => 'string', 'example' => '总量恒定型'], + ], + ], + 'CapacityTypeCode' => ['title' => '容量类型code', 'description' => '容量类型code', 'type' => 'string', 'example' => 'absolute'], + 'CapacityTypeName' => ['title' => '容量类型名', 'description' => '容量类型名', 'type' => 'string', 'example' => '总量恒定型'], + 'CycleType' => [ + 'title' => '承诺周期', + 'description' => '承诺周期', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => '承诺周期 code', 'type' => 'string', 'example' => 'hour'], + 'Name' => ['description' => '承诺周期名', 'type' => 'string', 'example' => '小时'], + ], + ], + 'CycleTypeCode' => ['title' => '承诺周期code', 'description' => '承诺周期code', 'type' => 'string', 'example' => 'hour'], + 'CycleTypeName' => ['title' => '承诺周期名', 'description' => '承诺周期名', 'type' => 'string', 'example' => '小时'], + 'CapacityBeforeDeductViewValue' => ['title' => '抵扣前量显示值', 'description' => '抵扣前量显示值。', 'type' => 'string', 'example' => '40.000000'], + 'CapacityBeforeDeductViewUnit' => ['title' => '抵扣前量显示单位', 'description' => '抵扣前量显示单位。', 'type' => 'string', 'example' => 'GB'], + 'CapacityDeductedViewValue' => ['title' => '抵扣量显示值', 'description' => '抵扣量显示值。', 'type' => 'string', 'example' => '16.103515'], + 'CapacityDeductedViewUnit' => ['title' => '抵扣量显示单位', 'description' => '抵扣量显示单位。', 'type' => 'string', 'example' => 'GB'], + 'CapacityAfterDeductViewValue' => ['title' => '抵扣后量显示值', 'description' => '抵扣后量显示值。', 'type' => 'string', 'example' => '23.896484'], + 'CapacityAfterDeductViewUnit' => ['title' => '抵扣后量显示单位', 'description' => '抵扣后量显示单位。', 'type' => 'string', 'example' => 'GB'], + 'DeductTime' => ['title' => '抵扣时间', 'description' => '抵扣时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1679039572000'], + 'Commodity' => [ + 'title' => '商品', + 'description' => '商品。', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => '属性编码。', 'type' => 'string', 'example' => 'ossbag'], + 'Name' => ['description' => '属性名称。', 'type' => 'string', 'example' => '对象存储OSS资源包(包月)'], + ], + ], + 'CommodityCode' => ['title' => '商品code', 'description' => '商品code', 'type' => 'string', 'example' => 'ossbag'], + 'CommodityName' => ['title' => '商品名', 'description' => '商品名', 'type' => 'string', 'example' => '对象存储OSS资源包(包月)'], + 'Product' => [ + 'title' => '产品', + 'description' => '产品', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => '属性编码。', 'type' => 'string', 'example' => 'oss'], + 'Name' => ['description' => '属性名称。', 'type' => 'string', 'example' => '对象存储'], + ], + ], + 'ProductCode' => ['title' => '产品code', 'description' => '产品code', 'type' => 'string', 'example' => 'oss'], + 'ProductName' => ['title' => '产品名', 'description' => '产品名', 'type' => 'string', 'example' => '对象存储'], + 'AccountName' => ['title' => '账号名', 'description' => '账号名。', 'type' => 'string', 'example' => 'icloudtest'], + 'RelationAccountId' => ['title' => '抵扣账号uid', 'description' => '抵扣账号ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1990699401005016'], + 'RelationAccountName' => ['title' => '抵扣账号名', 'description' => '抵扣账号名。', 'type' => 'string', 'example' => 'icloudtest'], + 'BillingCommodity' => [ + 'title' => '抵扣商品', + 'description' => '抵扣商品。', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => '属性编码。', 'type' => 'string', 'example' => 'snapshot'], + 'Name' => ['description' => '属性名称。', 'type' => 'string', 'example' => '云服务器ECS-快照'], + ], + ], + 'BillingCommodityCode' => ['title' => '抵扣商品code', 'description' => '抵扣商品code', 'type' => 'string', 'example' => 'snapshot'], + 'BillingCommodityName' => ['title' => '抵扣商品名', 'description' => '抵扣商品名', 'type' => 'string', 'example' => '云服务器ECS-快照'], + 'BillingInstanceId' => ['title' => '抵扣实例', 'description' => '抵扣实例。', 'type' => 'string', 'example' => 'cn-beijing'], + 'BillingStartTime' => ['title' => '生效时间', 'description' => '生效时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1679032800000'], + 'BillingEndTime' => ['title' => '失效时间', 'description' => '失效时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1679036400000'], + 'MeasureBeforeDeductViewValue' => ['title' => '计量抵扣前量显示值', 'description' => '计量抵扣前量显示值。', 'type' => 'string', 'example' => '16.103515'], + 'MeasureBeforeDeductViewUnit' => ['title' => '计量抵扣前量显示单位', 'description' => '计量抵扣前量显示单位。', 'type' => 'string', 'example' => 'GB'], + 'MeasureAfterDeductViewValue' => ['title' => '计量抵扣后量显示值', 'description' => '计量抵扣后量显示值。', 'type' => 'string', 'example' => '0'], + 'MeasureAfterDeductViewUnit' => ['title' => '计量抵扣后量显示单位', 'description' => '计量抵扣后量显示单位。', 'type' => 'string', 'example' => 'Byte'], + 'MeasureDeductedViewValue' => ['title' => '计量抵扣量显示值', 'description' => '计量抵扣量显示值。', 'type' => 'string', 'example' => '16.103515'], + 'MeasureDeductedViewUnit' => ['title' => '计量抵扣量显示单位', 'description' => '计量抵扣量显示单位。', 'type' => 'string', 'example' => 'GB'], + 'Template' => [ + 'title' => '模板名称', + 'description' => '模板。', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => '属性编码。', 'type' => 'string', 'example' => 'FPT_ossbag********'], + 'Name' => ['description' => '属性名称。', 'type' => 'string', 'example' => '标准存储包'], + ], + ], + 'TemplateCode' => ['title' => '模板code', 'description' => '模板code', 'type' => 'string', 'example' => 'FPT_ossbag********'], + 'TemplateName' => ['title' => '模板名', 'description' => '模板名', 'type' => 'string', 'example' => '标准存储包'."\n"], + 'Factor' => ['title' => '抵扣因子', 'description' => '抵扣因子。', 'type' => 'string', 'example' => '1'], + 'BillingPriceField' => [ + 'title' => '抵扣计费项', + 'description' => '抵扣计费项。', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => '属性编码。', 'type' => 'string', 'example' => 'Storage'], + 'Name' => ['description' => '属性名称。', 'type' => 'string', 'example' => '零折使用容量'], + ], + ], + 'BillingPriceFieldCode' => ['title' => '抵扣计费项code', 'description' => '抵扣计费项code', 'type' => 'string', 'example' => 'Storage'], + 'BillingPriceFieldName' => ['title' => '抵扣计费项名', 'description' => '抵扣计费项名', 'type' => 'string', 'example' => '零折使用容量'], + 'InstanceBelongAccountId' => ['title' => '实例归属账号id', 'description' => '实例归属账号ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1990699401005016'], + 'InstanceBelongAccountName' => ['title' => '实例归属账号名', 'description' => '实例归属账号名。', 'type' => 'string', 'example' => 'icloudtest'], + ], + ], ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'DF58589C-A06C-4224-8615-7797E6474FA3'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'RequestTimeout', - 'errorMessage' => 'Request timed out. Please try again later.', - ], - [ - 'errorCode' => 'NoFundAccountPermission', - 'errorMessage' => 'The caller does not have permission for the specified fund account.', - ], + ['errorCode' => 'NotAuthorized', 'errorMessage' => 'You are not authorized to call the API operation. Please check whether RAM user has the permission or check whether ownerId and callerId have been given the appropriate permission.', 'description' => ''], + ['errorCode' => 'MissingParameter', 'errorMessage' => 'The specified request lacks essential parameters.', 'description' => ''], + ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"CC706AAC-75A6-55B5-9AB7-7D171C6C7655\\",\\n \\"Ecid\\": \\"2032123221\\",\\n \\"EcidCreditAmount\\": \\"1000\\",\\n \\"EcidAllocatedCreditAmount\\": \\"300\\",\\n \\"MaxCanAllocateCreditAmount\\": \\"1500\\",\\n \\"MinCanAllocateCreditAmount\\": \\"200\\",\\n \\"Site\\": \\"26842\\",\\n \\"Nbid\\": \\"2684210001\\",\\n \\"FundAccountId\\": 12332112,\\n \\"FundAccountOwnerAccountId\\": 123433121,\\n \\"FundAccountName\\": \\"云某的名称\\",\\n \\"FundAccountEcid\\": \\"202321232\\"\\n}","type":"json"}]', - 'title' => '查询资金账户可分配信控额度', - ], - 'ListFundAccountPayRelation' => [ - 'summary' => '查询账户的付款关系', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询资源包抵扣记录', + 'summary' => '查询资源包抵扣记录', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 8,\\n \\"Data\\": [\\n {\\n \\"AccountId\\": 1929817951466001,\\n \\"InstanceId\\": \\"OSSBAG-cn-****s\\",\\n \\"CapacityType\\": {\\n \\"Code\\": \\"absolute\\",\\n \\"Name\\": \\"总量恒定型\\"\\n },\\n \\"CapacityTypeCode\\": \\"absolute\\",\\n \\"CapacityTypeName\\": \\"总量恒定型\\",\\n \\"CycleType\\": {\\n \\"Code\\": \\"hour\\",\\n \\"Name\\": \\"小时\\"\\n },\\n \\"CycleTypeCode\\": \\"hour\\",\\n \\"CycleTypeName\\": \\"小时\\",\\n \\"CapacityBeforeDeductViewValue\\": \\"40.000000\\",\\n \\"CapacityBeforeDeductViewUnit\\": \\"GB\\",\\n \\"CapacityDeductedViewValue\\": \\"16.103515\\",\\n \\"CapacityDeductedViewUnit\\": \\"GB\\",\\n \\"CapacityAfterDeductViewValue\\": \\"23.896484\\",\\n \\"CapacityAfterDeductViewUnit\\": \\"GB\\",\\n \\"DeductTime\\": 1679039572000,\\n \\"Commodity\\": {\\n \\"Code\\": \\"ossbag\\",\\n \\"Name\\": \\"对象存储OSS资源包(包月)\\"\\n },\\n \\"CommodityCode\\": \\"ossbag\\",\\n \\"CommodityName\\": \\"对象存储OSS资源包(包月)\\",\\n \\"Product\\": {\\n \\"Code\\": \\"oss\\",\\n \\"Name\\": \\"对象存储\\"\\n },\\n \\"ProductCode\\": \\"oss\\",\\n \\"ProductName\\": \\"对象存储\\",\\n \\"AccountName\\": \\"icloudtest\\",\\n \\"RelationAccountId\\": 1990699401005016,\\n \\"RelationAccountName\\": \\"icloudtest\\",\\n \\"BillingCommodity\\": {\\n \\"Code\\": \\"snapshot\\",\\n \\"Name\\": \\"云服务器ECS-快照\\"\\n },\\n \\"BillingCommodityCode\\": \\"snapshot\\",\\n \\"BillingCommodityName\\": \\"云服务器ECS-快照\\",\\n \\"BillingInstanceId\\": \\"cn-beijing\\",\\n \\"BillingStartTime\\": 1679032800000,\\n \\"BillingEndTime\\": 1679036400000,\\n \\"MeasureBeforeDeductViewValue\\": \\"16.103515\\",\\n \\"MeasureBeforeDeductViewUnit\\": \\"GB\\",\\n \\"MeasureAfterDeductViewValue\\": \\"0\\",\\n \\"MeasureAfterDeductViewUnit\\": \\"Byte\\",\\n \\"MeasureDeductedViewValue\\": \\"16.103515\\",\\n \\"MeasureDeductedViewUnit\\": \\"GB\\",\\n \\"Template\\": {\\n \\"Code\\": \\"FPT_ossbag********\\",\\n \\"Name\\": \\"标准存储包\\"\\n },\\n \\"TemplateCode\\": \\"FPT_ossbag********\\",\\n \\"TemplateName\\": \\"标准存储包\\\\n\\",\\n \\"Factor\\": \\"1\\",\\n \\"BillingPriceField\\": {\\n \\"Code\\": \\"Storage\\",\\n \\"Name\\": \\"零折使用容量\\"\\n },\\n \\"BillingPriceFieldCode\\": \\"Storage\\",\\n \\"BillingPriceFieldName\\": \\"零折使用容量\\",\\n \\"InstanceBelongAccountId\\": 1990699401005016,\\n \\"InstanceBelongAccountName\\": \\"icloudtest\\"\\n }\\n ],\\n \\"RequestId\\": \\"DF58589C-A06C-4224-8615-7797E6474FA3\\"\\n}","type":"json"}]', + ], + 'DescribeFrInstances' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -3047,260 +2661,492 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'FundAccountId', + 'name' => 'Group', 'in' => 'formData', 'schema' => [ - 'title' => '资金账户Id', - 'description' => '资金账户Id', + 'title' => '查询的资源维度,可选 ecsRi、cu、polardb、fr、oss_rc、oss_arc,', + 'description' => '查询的资源维度。', 'type' => 'string', - 'required' => true, - 'example' => '12323123', + 'required' => false, + 'enumValueTitles' => ['oss_arc' => 'OSS 无地域属性预留空间', 'ecsRi' => '预留实例券', 'cu' => '存储容量单位包', 'oss_rc' => 'OSS 预留空间', 'fr' => '资源包', 'polardb' => 'PolarDB 计算包'], + 'example' => 'cu', ], ], [ 'name' => 'Status', 'in' => 'formData', 'schema' => [ - 'title' => '关系状态'."\n" - .'valid - 有效'."\n" - .'expired - 无效', - 'description' => '关系状态'."\n" - .'valid - 有效'."\n" - .'expired - 无效', + 'title' => '资源状态', + 'description' => '资源状态。', 'type' => 'string', 'required' => false, + 'enumValueTitles' => ['valid' => '有效', 'invalid' => '无效', 'exhaust' => '用尽'], 'example' => 'valid', ], ], [ - 'name' => 'CurrentPage', - 'in' => 'query', + 'name' => 'PageNum', + 'in' => 'formData', + 'schema' => ['title' => '页码', 'description' => '当前页码。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'default' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => ['title' => '页大小', 'description' => '每页大小。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'default' => '50'], + ], + [ + 'name' => 'StartTime', + 'in' => 'formData', + 'schema' => ['title' => '开始时间', 'description' => '开始时间。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1678939035000'], + ], + [ + 'name' => 'EndTime', + 'in' => 'formData', + 'schema' => ['title' => '结束时间', 'description' => '结束时间。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1710604800000'], + ], + [ + 'name' => 'InstanceId', + 'in' => 'formData', + 'schema' => ['title' => '实例名称,同instanceName', 'description' => '实例名称。', 'type' => 'string', 'required' => false, 'example' => 'alb_cubag*******'], + ], + [ + 'name' => 'ProductCode', + 'in' => 'formData', + 'schema' => ['title' => '产品code', 'description' => '产品编码。', 'type' => 'string', 'required' => false, 'example' => 'slb'], + ], + [ + 'name' => 'CommodityCode', + 'in' => 'formData', + 'schema' => ['title' => '商品code', 'description' => '商品编码。', 'type' => 'string', 'required' => false, 'example' => 'slb_albcubag_dp_cn'], + ], + [ + 'name' => 'TemplateCode', + 'in' => 'formData', + 'schema' => ['title' => '模板code', 'description' => '模板编码。', 'type' => 'string', 'required' => false, 'example' => 'slb_albcubag*******'], + ], + [ + 'name' => 'Spec', + 'in' => 'formData', + 'schema' => ['title' => '规格', 'description' => '规格。', 'type' => 'string', 'required' => false, 'example' => '*'], + ], + [ + 'name' => 'CapacityType', + 'in' => 'formData', 'schema' => [ - 'title' => '当前页码', - 'description' => '当前页码', - 'type' => 'integer', - 'format' => 'int32', + 'title' => '容量类型', + 'description' => '容量类型。', + 'type' => 'string', 'required' => false, - 'example' => '1', - 'default' => '1', + 'enumValueTitles' => ['periodMonthlyShift' => '动态月周期', 'deadlineAcc' => '总量递减型', 'absolute' => '总量恒定型', 'periodMonthlyAcc' => '自然月周期'], + 'example' => 'deadlineAcc', ], ], [ - 'name' => 'PageSize', - 'in' => 'query', + 'name' => 'CycleType', + 'in' => 'formData', + 'schema' => ['description' => '周期类型', 'type' => 'string', 'required' => false, 'example' => 'dynamicMonth'], + ], + [ + 'name' => 'SortField', + 'in' => 'formData', 'schema' => [ - 'title' => '每页大小', - 'description' => '每页大小', - 'type' => 'integer', - 'format' => 'int32', + 'title' => '排序字段 (startTime: 开始时间, endTime: 结束时间)', + 'description' => '排序字段。', + 'type' => 'string', 'required' => false, - 'example' => '20', - 'default' => '20', + 'enumValueTitles' => ['startTime' => '开始时间', 'endTime' => '结束时间'], + 'example' => 'startTime', ], ], [ - 'name' => 'Nbid', - 'in' => 'query', + 'name' => 'SortRule', + 'in' => 'formData', 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', + 'title' => '排序规则 (asc, desc)', + 'description' => '排序规则。', 'type' => 'string', 'required' => false, - 'example' => '2684201000001', + 'enumValueTitles' => ['asc' => '递增', 'desc' => '递减'], + 'example' => 'asc', ], ], + [ + 'name' => 'EcIdAccountIds', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '企业与账号列表,为空表示查询当前账号自身', + 'description' => '企业与账号列表,为空表示查询当前账号自身', + 'type' => 'array', + 'items' => [ + 'description' => '企业与账号列表,为空表示查询当前账号自身', + 'type' => 'object', + 'properties' => [ + 'EcId' => ['title' => '企业实体ID', 'description' => '企业实体ID', 'type' => 'string', 'required' => true, 'example' => '1004064243473974'], + 'AccountIds' => [ + 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'type' => 'array', + 'items' => ['description' => '成员账号ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1990699401005016'], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + [ + 'name' => 'Nbid', + 'in' => 'query', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充。', 'type' => 'string', 'required' => false, 'example' => '2684202000018'], + ], + [ + 'name' => 'InstanceTag', + 'in' => 'query', + 'schema' => ['description' => '资源包实例标签值。', 'type' => 'string', 'required' => false, 'example' => 'FR-***'], + ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPageResult<BillingAccountPayRelation>', - 'description' => 'BssApiPageResult<BillingAccountPayRelation>', + 'title' => 'BssApiPageResult<InstanceOverviewResponse>', + 'description' => 'BssApiPageResult<InstanceOverviewResponse>', 'type' => 'object', 'properties' => [ - 'CurrentPage' => [ - 'title' => '当前页码', - 'description' => '当前页码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - 'default' => '1', - ], - 'PageSize' => [ - 'title' => '每页大小', - 'description' => '每页大小', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - 'default' => '20', - ], - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '50', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4'], + 'CurrentPage' => ['title' => '当前页码', 'description' => '当前页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'PageSize' => ['title' => '每页大小', 'description' => '每页大小。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], 'Data' => [ 'title' => '数据列表', - 'description' => '数据列表', + 'description' => '数据列表。', 'type' => 'array', 'items' => [ + 'description' => '返回数据。', 'type' => 'object', 'properties' => [ - 'FundAccountId' => [ - 'title' => '账户Id', - 'description' => '账户Id', - 'type' => 'string', - 'example' => '123231213', - ], - 'FundAccountOwnerAccountId' => [ - 'title' => '账户归属人的阿里云accountId', - 'description' => '账户归属人的阿里云accountId', - 'type' => 'string', - 'example' => '312328912', - ], - 'AccountId' => [ - 'title' => '付款关系关联的用户accountId,即使用该账户付款的账号', - 'description' => '付款关系关联的用户accountId,即使用该账户付款的账号', - 'type' => 'string', - 'example' => '32812132121', - ], - 'AccountName' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => '云某的名称', - ], - 'EffectiveTime' => [ - 'title' => '付款关系生效时间', - 'description' => '付款关系生效时间', - 'type' => 'string', - 'example' => '2024-12-01 12:00:10', + 'AccountId' => ['title' => '用户id', 'description' => '账号ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1990699401005016'], + 'Product' => [ + 'title' => '产品', + 'description' => '产品。', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => '属性编码。', 'type' => 'string', 'example' => 'slb'], + 'Name' => ['description' => '属性名称。', 'type' => 'string', 'example' => '负载均衡'], + ], ], - 'IneffectiveTime' => [ - 'title' => '付款关系失效时间', - 'description' => '付款关系失效时间', - 'type' => 'string', - 'example' => '2025-01-01 12:12:12', + 'ProductName' => ['title' => '产品名', 'description' => '产品名', 'type' => 'string', 'example' => '性能测试'], + 'ProductCode' => ['title' => '产品code', 'description' => '产品code', 'type' => 'string', 'example' => 'pts'], + 'Commodity' => [ + 'title' => '商品', + 'description' => '商品。', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => '属性编码。', 'type' => 'string', 'example' => 'slb_albcubag_dp_cn'], + 'Name' => ['description' => '属性名称。', 'type' => 'string', 'example' => 'ALB资源包'], + ], ], + 'CommodityCode' => ['title' => '商品code', 'description' => '商品code', 'type' => 'string', 'example' => 'pts'], + 'CommodityName' => ['title' => '商品名', 'description' => '商品名', 'type' => 'string', 'example' => '性能测试'], + 'InstanceId' => ['title' => '实例名称', 'description' => '实例名称。', 'type' => 'string', 'example' => 'alb_cubag*******'], + 'Spec' => ['title' => '规格', 'description' => '规格。', 'type' => 'string', 'example' => '*'], 'Status' => [ - 'title' => '关系状态'."\n" - .'valid - 有效;'."\n" - .'expired - 无效', - 'description' => '关系状态'."\n" - .'valid - 有效;'."\n" - .'expired - 无效', - 'type' => 'string', - 'example' => 'valid', - ], - 'RelationType' => [ - 'title' => '关系类型,收款关系/付款关系', - 'description' => '关系类型,收款关系/付款关系', - 'type' => 'string', - 'example' => 'PAYMENT', - ], - 'OperatorType' => [ - 'title' => '授权操作人类型'."\n" - .'aliyun_pk - 用户;'."\n" - .'system - 阿里云系统;', - 'description' => '授权操作人类型'."\n" - .'aliyun_pk - 用户;'."\n" - .'system - 阿里云系统;', - 'type' => 'string', - 'example' => 'aliyun_pk', - ], - 'OperatorNo' => [ - 'title' => '授权操作人'."\n" - .'操作人类型为aliyun_pk时,operatorNo为阿里云accountId', - 'description' => '授权操作人'."\n" - .'操作人类型为aliyun_pk时,operatorNo为阿里云accountId', - 'type' => 'string', - 'example' => '1232343423', + 'title' => '资源状态', + 'description' => '资源状态。', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => '属性编码。', 'type' => 'string', 'example' => 'valid'], + 'Name' => ['description' => '属性名称。', 'type' => 'string', 'example' => '有效'], + ], ], - 'OperatorName' => [ - 'title' => '操作人名称'."\n" - .'操作人类型为aliyun_pk时, 操作人名称为阿里云昵称'."\n" - .'操作人类型为system时, 操作人名称为"阿里云小二"', - 'description' => '操作人名称'."\n" - .'操作人类型为aliyun_pk时, 操作人名称为阿里云昵称'."\n" - .'操作人类型为system时, 操作人名称为"阿里云小二"', - 'type' => 'string', - 'example' => '云某的名称', + 'StatusCode' => ['title' => '资源状态code', 'description' => '资源状态code', 'type' => 'string', 'example' => 'valid'], + 'StatusName' => ['title' => '资源状态名', 'description' => '资源状态名', 'type' => 'string', 'example' => '有效'], + 'CapacityType' => [ + 'title' => '容量类型', + 'description' => '容量类型。', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => '属性编码。', 'type' => 'string', 'example' => 'deadlineAcc'], + 'Name' => ['description' => '属性名称。', 'type' => 'string', 'example' => '总量递减型'], + ], ], - 'Site' => [ - 'title' => '站点', - 'description' => '站点', - 'type' => 'string', - 'example' => '26842', + 'CapacityTypeCode' => ['title' => '容量类型code', 'description' => '容量类型code', 'type' => 'string', 'example' => 'deadlineAcc'], + 'CapacitiyTypeName' => ['title' => '容量类型名', 'description' => '容量类型名', 'type' => 'string', 'example' => '总量递减型'], + 'CycleType' => [ + 'title' => '承诺周期', + 'description' => '承诺周期', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => '承诺周期 Code。', 'type' => 'string', 'example' => 'hour'], + 'Name' => ['description' => '承诺周期名。', 'type' => 'string', 'example' => '小时'], + ], ], - 'Nbid' => [ - 'title' => '一级售卖场', - 'description' => '一级售卖场', - 'type' => 'string', - 'example' => '2684210001', + 'CycleTypeCode' => ['description' => '承诺周期 Code', 'type' => 'string', 'example' => 'hour'], + 'CycleTypeName' => ['title' => '承诺周期名', 'description' => '承诺周期名', 'type' => 'string', 'example' => '小时'], + 'InitCapacityViewValue' => ['title' => '初始容量显示值', 'description' => '初始容量显示值。', 'type' => 'string', 'example' => '1000.000000'], + 'InitCapacityViewUnit' => ['title' => '初始容量显示单位', 'description' => '初始容量显示单位。', 'type' => 'string', 'example' => 'CU'], + 'CurrCapacityViewValue' => ['title' => '当前容量显示值', 'description' => '当前容量显示值。', 'type' => 'string', 'example' => '1000.000000'], + 'CurrCapacityViewUnit' => ['title' => '当前容量显示单位', 'description' => '当前容量显示单位。', 'type' => 'string', 'example' => 'CU'], + 'PeriodCapacityViewValue' => ['title' => '周期容量显示值', 'description' => '周期容量显示值。', 'type' => 'string', 'example' => '1000.000000'], + 'PeriodCapacityViewUnit' => ['title' => '周期容量显示单位', 'description' => '周期容量显示单位。', 'type' => 'string', 'example' => 'CU'], + 'PeriodTime' => ['title' => '周期时间', 'description' => '周期时间。', 'type' => 'string', 'example' => 'hour'], + 'PurchaseTime' => ['title' => '购买时间', 'description' => '购买时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1678939036000'], + 'StartTime' => ['title' => '生效时间', 'description' => '生效时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1678939035000'], + 'EndTime' => ['title' => '失效时间', 'description' => '失效时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1710604800000'], + 'Region' => ['title' => '地域', 'description' => '地域。', 'type' => 'string', 'example' => '*'], + 'Template' => [ + 'title' => '模板', + 'description' => '模板。', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => '属性编码。', 'type' => 'string', 'example' => 'alb_cubag*******'], + 'Name' => ['description' => '属性名称。', 'type' => 'string', 'example' => '中国内地区域'], + ], ], - 'Ecid' => [ - 'title' => '付款关系关联的用户的企业实体id', - 'description' => '付款关系关联的用户的企业实体id', - 'type' => 'string', - 'example' => '213231232', + 'TemplateCode' => ['title' => '模板code', 'description' => '模板code', 'type' => 'string', 'example' => 'FPT_armsappbag_deadlineAcc_bj'], + 'TemplateName' => ['title' => '模板名', 'description' => '模板名', 'type' => 'string', 'example' => 'new_test'], + 'AccountName' => ['title' => '账号名', 'description' => '账号名。', 'type' => 'string', 'example' => 'icloudtest'], + 'EnableRenew' => ['title' => '能否续费', 'description' => '能否续费。', 'type' => 'boolean', 'example' => 'false'], + 'EnableUpgrade' => ['title' => '能否升级', 'description' => '能否升级。', 'type' => 'boolean', 'example' => 'false'], + 'EnableExchange' => ['title' => '能否换购', 'description' => '能否换购。', 'type' => 'boolean', 'example' => 'false'], + 'ExchangeCommodityCode' => ['title' => '换购商品code', 'description' => '换购商品编码。', 'type' => 'string', 'example' => 'null'], + 'RegionName' => ['description' => '地域名称', 'type' => 'string', 'example' => 'cn-qingdao'], + 'DeductRegions' => [ + 'description' => '可抵扣地域列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => ['description' => '可抵扣地域。', 'type' => 'string', 'example' => '北京'], + 'Code' => ['description' => '可抵扣地域 Code。', 'type' => 'string', 'example' => 'cn-beijing'], + ], + 'description' => '', + ], ], + 'InitCapacityBaseValue' => ['description' => '初始容量基准值。', 'type' => 'string', 'example' => '1000.000000'], + 'InitCapacityBaseUnit' => ['description' => '初始容量基准单位。', 'type' => 'string', 'example' => 'CU'], + 'CurrCapacityBaseValue' => ['description' => '当前容量基准值。', 'type' => 'string', 'example' => '1000.000000'], + 'CurrCapacityBaseUnit' => ['description' => '当前容量基准单位。', 'type' => 'string', 'example' => 'CU'], + 'periodCapacityBaseValue' => ['description' => '周期容量基准值。', 'type' => 'string', 'example' => '1000.000000'], + 'periodCapacityBaseUnit' => ['description' => '周期容量基准单位。', 'type' => 'string', 'example' => 'CU'], ], ], ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'MissingParameter', 'errorMessage' => 'The specified request lacks essential parameters.', 'description' => ''], + ['errorCode' => 'NotAuthorized', 'errorMessage' => 'You are not authorized to call the API operation. Please check whether RAM user has the permission or check whether ownerId and callerId have been given the appropriate permission.', 'description' => ''], + ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询资源包实例', + 'summary' => '查询资源包实例', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\",\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 1,\\n \\"Data\\": [\\n {\\n \\"AccountId\\": 1990699401005016,\\n \\"Product\\": {\\n \\"Code\\": \\"slb\\",\\n \\"Name\\": \\"负载均衡\\"\\n },\\n \\"ProductName\\": \\"性能测试\\",\\n \\"ProductCode\\": \\"pts\\",\\n \\"Commodity\\": {\\n \\"Code\\": \\"slb_albcubag_dp_cn\\",\\n \\"Name\\": \\"ALB资源包\\"\\n },\\n \\"CommodityCode\\": \\"pts\\",\\n \\"CommodityName\\": \\"性能测试\\",\\n \\"InstanceId\\": \\"alb_cubag*******\\",\\n \\"Spec\\": \\"*\\",\\n \\"Status\\": {\\n \\"Code\\": \\"valid\\",\\n \\"Name\\": \\"有效\\"\\n },\\n \\"StatusCode\\": \\"valid\\",\\n \\"StatusName\\": \\"有效\\",\\n \\"CapacityType\\": {\\n \\"Code\\": \\"deadlineAcc\\",\\n \\"Name\\": \\"总量递减型\\"\\n },\\n \\"CapacityTypeCode\\": \\"deadlineAcc\\",\\n \\"CapacitiyTypeName\\": \\"总量递减型\\",\\n \\"CycleType\\": {\\n \\"Code\\": \\"hour\\",\\n \\"Name\\": \\"小时\\"\\n },\\n \\"CycleTypeCode\\": \\"hour\\",\\n \\"CycleTypeName\\": \\"小时\\",\\n \\"InitCapacityViewValue\\": \\"1000.000000\\",\\n \\"InitCapacityViewUnit\\": \\"CU\\",\\n \\"CurrCapacityViewValue\\": \\"1000.000000\\",\\n \\"CurrCapacityViewUnit\\": \\"CU\\",\\n \\"PeriodCapacityViewValue\\": \\"1000.000000\\",\\n \\"PeriodCapacityViewUnit\\": \\"CU\\",\\n \\"PeriodTime\\": \\"hour\\",\\n \\"PurchaseTime\\": 1678939036000,\\n \\"StartTime\\": 1678939035000,\\n \\"EndTime\\": 1710604800000,\\n \\"Region\\": \\"*\\",\\n \\"Template\\": {\\n \\"Code\\": \\"alb_cubag*******\\",\\n \\"Name\\": \\"中国内地区域\\"\\n },\\n \\"TemplateCode\\": \\"FPT_armsappbag_deadlineAcc_bj\\",\\n \\"TemplateName\\": \\"new_test\\",\\n \\"AccountName\\": \\"icloudtest\\",\\n \\"EnableRenew\\": false,\\n \\"EnableUpgrade\\": false,\\n \\"EnableExchange\\": false,\\n \\"ExchangeCommodityCode\\": \\"null\\",\\n \\"RegionName\\": \\"cn-qingdao\\",\\n \\"DeductRegions\\": [\\n {\\n \\"Name\\": \\"北京\\",\\n \\"Code\\": \\"cn-beijing\\"\\n }\\n ],\\n \\"InitCapacityBaseValue\\": \\"1000.000000\\",\\n \\"InitCapacityBaseUnit\\": \\"CU\\",\\n \\"CurrCapacityBaseValue\\": \\"1000.000000\\",\\n \\"CurrCapacityBaseUnit\\": \\"CU\\",\\n \\"periodCapacityBaseValue\\": \\"1000.000000\\",\\n \\"periodCapacityBaseUnit\\": \\"CU\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetFundAccountAvailableAmount' => [ + 'summary' => '查询资金账户可用金', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'FundAccountId', + 'in' => 'formData', + 'schema' => ['title' => '账户Id,不传时默认使用当前账号拥有(owner)的账户id。', 'description' => '账户Id,不传时默认使用当前账号拥有(owner)的账户id。', 'type' => 'string', 'required' => false, 'example' => '12332112'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'BssApiPlainResult<BillingAccountAvailableAmountResponse>', + 'description' => 'BssApiPlainResult<BillingAccountAvailableAmountResponse>', + 'type' => 'object', + 'properties' => [ + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求id', 'type' => 'string', 'example' => 'F96A2D13-7509-5DF9-A60E-E7E3A3CB68E8'], + 'FundAccountId' => ['title' => '账户Id', 'description' => '账户Id', 'type' => 'string', 'example' => '12332112'], + 'FundAccountOwnerAccountId' => ['title' => '账户归属人的账号accountId', 'description' => '账户归属人的账号accountId', 'type' => 'string', 'example' => '1344312434'], + 'FundAccountStatus' => ['title' => '账户状态', 'description' => '账户状态', 'type' => 'string', 'example' => 'valid'], + 'FundAccountType' => ['title' => '资金账户类型'."\n" + .'DIRECT_USER-阿里云直客账户;'."\n" + .' RESELLER_QUOTA-生态账户', 'description' => '资金账户类型'."\n" + .'DIRECT_USER-阿里云直客账户;'."\n" + .' RESELLER_QUOTA-生态账户', 'type' => 'string', 'example' => 'REDIRECT_USER'], + 'AvailableAmount' => ['title' => '可用额度', 'description' => '可用额度', 'type' => 'string', 'example' => '100'], + 'CashAmount' => ['title' => '现金余额', 'description' => '现金余额', 'type' => 'string', 'example' => '50'], + 'NegativeBillAmount' => ['title' => '负账单金额', 'description' => '负账单金额', 'type' => 'string', 'example' => '0'], + 'CreditAmount' => ['title' => '信控配额', 'description' => '信控配额', 'type' => 'string', 'example' => '100'], + 'AvailableCreditAmount' => ['title' => '信控余额', 'description' => '信控余额', 'type' => 'string', 'example' => '50'], + 'CreditRefundAmount' => ['title' => '信控退款余额', 'description' => '信控退款余额', 'type' => 'string', 'example' => '0'], + 'UnclearedAmount' => ['title' => '未结清金额 (当前月未结清 + 历史月未结清)', 'description' => '未结清金额 (当前月未结清 + 历史月未结清)', 'type' => 'string', 'example' => '50'], + 'CurrentMonthUnclearedAmount' => ['title' => '当月未结清金额', 'description' => '当月未结清金额', 'type' => 'string', 'example' => '20'], + 'HistoryMonthUnclearedAmount' => ['title' => '历史月未结清金额', 'description' => '历史月未结清金额', 'type' => 'string', 'example' => '30'], + 'BankAcceptanceAmount' => ['title' => '银承汇票额度', 'description' => '银承汇票额度', 'type' => 'string', 'example' => '0'], + 'ExtendLedgerList' => [ + 'title' => '扩展的账本列表', + 'description' => '扩展的账本列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Currency' => ['title' => '账本金额币种,比如:CNY/USD等', 'description' => '账本金额币种,比如:CNY/USD等', 'type' => 'string', 'example' => 'CNY'], + 'LedgerName' => ['title' => '账本名称', 'description' => '账本名称', 'type' => 'string', 'example' => '应付对冲账本'], + 'OriginalAmount' => ['title' => '账本余额', 'description' => '账本余额', 'type' => 'string', 'example' => '50'], + ], + 'description' => '', + ], ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F', + 'QuotaAmount' => ['title' => '生态终端客户配额', 'description' => '生态终端客户配额', 'type' => 'string', 'example' => '20'], + 'QuotaConsumedAmount' => ['title' => '生态终端客户已消费额度', 'description' => '生态终端客户已消费额度', 'type' => 'string', 'example' => '10'], + 'Currency' => ['title' => '币种', 'description' => '币种', 'type' => 'string', 'example' => 'CNY'], + 'OriginalCashAmountList' => [ + 'title' => '原始现金账本列表(国际站用户可能存在多个币种的现金账本)', + 'description' => '原始现金账本列表(国际站用户可能存在多个币种的现金账本)', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Amount' => ['title' => '金额', 'description' => '金额', 'type' => 'string', 'example' => '10'], + 'Currency' => ['title' => '币种', 'description' => '币种', 'type' => 'string', 'example' => 'USD'], + ], + 'description' => '', + ], ], + 'CreditUser' => ['title' => '是否开通信控', 'description' => '是否开通信控', 'type' => 'boolean', 'default' => 'false'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'RequestTimeout', - 'errorMessage' => 'Request timed out. Please try again later.', - ], - [ - 'errorCode' => 'NoFundAccountPermission', - 'errorMessage' => 'The caller does not have permission for the specified fund account.', + ['errorCode' => 'RequestTimeout', 'errorMessage' => 'Request timed out. Please try again later.', 'description' => '请求超时,请稍后再试'], + ['errorCode' => 'AccountNoQueryPricePermission', 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice.', 'description' => '由于您没有折扣查询权限,无法访问该页面。请联系主账号前往费用中心授权,需要授权的权限点为 queryprice'], + ['errorCode' => 'SubAccountNoQueryPricePermission', 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Contact the main account to go to the RAM console for authorization. The Action to be authorized is bss:QueryPrice.', 'description' => '由于您没有折扣查询权限,无法访问该页面。请联系主账号前往RAM控制台授权,需要授权的Action为 bss:QueryPrice'], + ['errorCode' => 'NoFundAccountPermission', 'errorMessage' => 'The caller does not have permission for the specified fund account.', 'description' => '当前登录账号没有权限操作指定账户。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this action.', 'description' => '您无权执行此操作。'], + ['errorCode' => 'InnerAccountNoQueryPricePermission', 'errorMessage' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account. More questions please refer to the document.', 'description' => '因数据安全及合规要求,对集团上云账号金额信息权限管控,由此带来的不便敬请谅解。您可以通过HCRM/云间平台查看,详见:https://aliyuque.antfin.com/yunfei.xyf/kr0b8h/yvdm6izaeulmq8g2。'], + ['errorCode' => 'InnerSubAccountNoQueryPricePermission', 'errorMessage' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account.', 'description' => '因数据安全及合规要求,对集团上云账号金额信息权限管控,由此带来的不便敬请谅解。您可以通过HCRM/云间平台查看,详见:https://aliyuque.antfin.com/yunfei.xyf/kr0b8h/yvdm6izaeulmq8g2。'], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"F96A2D13-7509-5DF9-A60E-E7E3A3CB68E8\\",\\n \\"FundAccountId\\": \\"12332112\\",\\n \\"FundAccountOwnerAccountId\\": \\"1344312434\\",\\n \\"FundAccountStatus\\": \\"valid\\",\\n \\"FundAccountType\\": \\"REDIRECT_USER\\",\\n \\"AvailableAmount\\": \\"100\\",\\n \\"CashAmount\\": \\"50\\",\\n \\"NegativeBillAmount\\": \\"0\\",\\n \\"CreditAmount\\": \\"100\\",\\n \\"AvailableCreditAmount\\": \\"50\\",\\n \\"CreditRefundAmount\\": \\"0\\",\\n \\"UnclearedAmount\\": \\"50\\",\\n \\"CurrentMonthUnclearedAmount\\": \\"20\\",\\n \\"HistoryMonthUnclearedAmount\\": \\"30\\",\\n \\"BankAcceptanceAmount\\": \\"0\\",\\n \\"ExtendLedgerList\\": [\\n {\\n \\"Currency\\": \\"CNY\\",\\n \\"LedgerName\\": \\"应付对冲账本\\",\\n \\"OriginalAmount\\": \\"50\\"\\n }\\n ],\\n \\"QuotaAmount\\": \\"20\\",\\n \\"QuotaConsumedAmount\\": \\"10\\",\\n \\"Currency\\": \\"CNY\\",\\n \\"OriginalCashAmountList\\": [\\n {\\n \\"Amount\\": \\"10\\",\\n \\"Currency\\": \\"USD\\"\\n }\\n ],\\n \\"CreditUser\\": true\\n}","type":"json"}]', + 'title' => '查询资金账户可用金', + 'changeSet' => [ + ['createdAt' => '2025-06-18T03:29:27.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2025-05-09T08:54:13.000Z', 'description' => '错误码发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeBillingAccount', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], - [ - 'errorCode' => 'AccountNotExist', - 'errorMessage' => 'Account does not exist.', + ], + ], + ], + 'GetFundAccountCanAllocateCreditAmount' => [ + 'summary' => '查询资金账户可分配信控额度', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'FundAccountId', + 'in' => 'formData', + 'schema' => ['title' => '资金账户id,不设置时默认使用当前账号拥有(owner)的账户', 'description' => '资金账户id,不设置时默认使用当前账号拥有(owner)的账户', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1233231'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'BssApiPlainResult<UserCreditLimitResponse>', + 'description' => 'BssApiPlainResult<UserCreditLimitResponse>', + 'type' => 'object', + 'properties' => [ + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'CC706AAC-75A6-55B5-9AB7-7D171C6C7655'], + 'Ecid' => ['title' => '企业实体id', 'description' => '企业实体id', 'type' => 'string', 'example' => '2032123221'], + 'EcidCreditAmount' => ['title' => '企业信控配额', 'description' => '企业信控配额', 'type' => 'string', 'example' => '1000'], + 'EcidAllocatedCreditAmount' => ['title' => '企业已分配信控额度', 'description' => '企业已分配信控额度', 'type' => 'string', 'example' => '300'], + 'MaxCanAllocateCreditAmount' => ['title' => '当前账户最大可分配信控额度', 'description' => '当前账户最大可分配信控额度', 'type' => 'string', 'example' => '1500'], + 'MinCanAllocateCreditAmount' => ['title' => '当前账户最小可分配信控额度', 'description' => '当前账户最小可分配信控额度', 'type' => 'string', 'example' => '200'], + 'Site' => ['title' => '站点', 'description' => '站点', 'type' => 'string', 'example' => '26842'], + 'Nbid' => ['title' => '一级售卖场', 'description' => '一级售卖场', 'type' => 'string', 'example' => '2684210001'], + 'FundAccountId' => ['title' => '账户Id', 'description' => '账户Id', 'type' => 'integer', 'format' => 'int64', 'example' => '12332112'], + 'FundAccountOwnerAccountId' => ['title' => '账户归属人的阿里云accountId', 'description' => '账户归属人的阿里云accountId', 'type' => 'integer', 'format' => 'int64', 'example' => '123433121'], + 'FundAccountName' => ['title' => '账户名称', 'description' => '账户名称', 'type' => 'string', 'example' => '云某的名称'], + 'FundAccountEcid' => ['title' => '账户ecid', 'description' => '账户ecid', 'type' => 'string', 'example' => '202321232'], + ], ], - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => 'The specified request contains invalid parameters.', + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'RequestTimeout', 'errorMessage' => 'Request timed out. Please try again later.', 'description' => '请求超时,请稍后再试'], + ['errorCode' => 'NoFundAccountPermission', 'errorMessage' => 'The caller does not have permission for the specified fund account.', 'description' => '当前登录账号没有权限操作指定账户。'], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"CC706AAC-75A6-55B5-9AB7-7D171C6C7655\\",\\n \\"Ecid\\": \\"2032123221\\",\\n \\"EcidCreditAmount\\": \\"1000\\",\\n \\"EcidAllocatedCreditAmount\\": \\"300\\",\\n \\"MaxCanAllocateCreditAmount\\": \\"1500\\",\\n \\"MinCanAllocateCreditAmount\\": \\"200\\",\\n \\"Site\\": \\"26842\\",\\n \\"Nbid\\": \\"2684210001\\",\\n \\"FundAccountId\\": 12332112,\\n \\"FundAccountOwnerAccountId\\": 123433121,\\n \\"FundAccountName\\": \\"云某的名称\\",\\n \\"FundAccountEcid\\": \\"202321232\\"\\n}","type":"json"}]', + 'title' => '查询资金账户可分配信控额度', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'efc:ModifyCredit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 50,\\n \\"Data\\": [\\n {\\n \\"FundAccountId\\": \\"123231213\\",\\n \\"FundAccountOwnerAccountId\\": \\"312328912\\",\\n \\"AccountId\\": \\"32812132121\\",\\n \\"AccountName\\": \\"云某的名称\\",\\n \\"EffectiveTime\\": \\"2024-12-01 12:00:10\\",\\n \\"IneffectiveTime\\": \\"2025-01-01 12:12:12\\",\\n \\"Status\\": \\"valid\\",\\n \\"RelationType\\": \\"PAYMENT\\",\\n \\"OperatorType\\": \\"aliyun_pk\\",\\n \\"OperatorNo\\": \\"1232343423\\",\\n \\"OperatorName\\": \\"云某的名称\\",\\n \\"Site\\": \\"26842\\",\\n \\"Nbid\\": \\"2684210001\\",\\n \\"Ecid\\": \\"213231232\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\"\\n}","type":"json"}]', - 'title' => '查询账户的付款关系', ], 'GetFundAccountCanRecycleAmount' => [ 'summary' => '查询资金账户可回收金额', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -3308,33 +3154,17 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'RecycleFromFundAccountId', 'in' => 'formData', - 'schema' => [ - 'title' => '回收源账户ID (出款方账户id),不传时默认使用当前账号拥有(owner)的账户id。', - 'description' => '回收源账户ID (出款方账户id),不传时默认使用当前账号拥有(owner)的账户id。', - 'type' => 'string', - 'required' => false, - 'example' => '122321223', - ], + 'schema' => ['title' => '回收源账户ID (出款方账户id),不传时默认使用当前账号拥有(owner)的账户id。', 'description' => '回收源账户ID (出款方账户id),不传时默认使用当前账号拥有(owner)的账户id。', 'type' => 'string', 'required' => false, 'example' => '122321223'], ], [ 'name' => 'Currency', 'in' => 'formData', - 'schema' => [ - 'title' => '币种', - 'description' => '币种', - 'type' => 'string', - 'required' => true, - 'example' => 'CNY', - ], + 'schema' => ['title' => '币种', 'description' => '币种', 'type' => 'string', 'required' => true, 'example' => 'CNY'], ], ], 'responses' => [ @@ -3344,35 +3174,11 @@ 'description' => 'BssApiPlainResult<RecycleBillingAccountQueryResult>', 'type' => 'object', 'properties' => [ - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4', - ], - 'RecycleFromFundAccountId' => [ - 'title' => '回收源账户ID', - 'description' => '回收源账户ID', - 'type' => 'string', - 'example' => '1232122132', - ], - 'TransferAmount' => [ - 'title' => '转账账本余额', - 'description' => '转账账本余额', - 'type' => 'string', - 'example' => '200', - ], - 'AvailableAmount' => [ - 'title' => '被回收账户的可用金', - 'description' => '被回收账户的可用金', - 'type' => 'string', - 'example' => '300', - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4'], + 'RecycleFromFundAccountId' => ['title' => '回收源账户ID', 'description' => '回收源账户ID', 'type' => 'string', 'example' => '1232122132'], + 'TransferAmount' => ['title' => '转账账本余额', 'description' => '转账账本余额', 'type' => 'string', 'example' => '200'], + 'AvailableAmount' => ['title' => '被回收账户的可用金', 'description' => '被回收账户的可用金', 'type' => 'string', 'example' => '300'], 'RecycleToFundAccountList' => [ 'title' => '可回收到的账户列表', 'description' => '可回收到的账户列表', @@ -3380,229 +3186,250 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'FundAccountOwnerAccountId' => [ - 'title' => '可回收到的账户归属的accountId', - 'description' => '可回收到的账户归属的accountId', - 'type' => 'string', - 'example' => '183221321', - ], - 'MaxRecyclableAmount' => [ - 'title' => '最大可回收金额', - 'description' => '最大可回收金额', - 'type' => 'string', - 'example' => '120', - ], - 'FundAccountId' => [ - 'title' => '可回收到的账户ID', - 'description' => '可回收到的账户ID', - 'type' => 'string', - 'example' => '122323121', - ], - 'FundAccountName' => [ - 'title' => '可回收到的账户名称', - 'description' => '可回收到的账户名称', - 'type' => 'string', - 'example' => '云某的账户', - ], - 'OriginalTransferRemainAmount' => [ - 'title' => '可原路回收的转账金额', - 'description' => '可原路回收的转账金额', - 'type' => 'string', - 'example' => '120', - ], + 'FundAccountOwnerAccountId' => ['title' => '可回收到的账户归属的accountId', 'description' => '可回收到的账户归属的accountId', 'type' => 'string', 'example' => '183221321'], + 'MaxRecyclableAmount' => ['title' => '最大可回收金额', 'description' => '最大可回收金额', 'type' => 'string', 'example' => '120'], + 'FundAccountId' => ['title' => '可回收到的账户ID', 'description' => '可回收到的账户ID', 'type' => 'string', 'example' => '122323121'], + 'FundAccountName' => ['title' => '可回收到的账户名称', 'description' => '可回收到的账户名称', 'type' => 'string', 'example' => '云某的账户'], + 'OriginalTransferRemainAmount' => ['title' => '可原路回收的转账金额', 'description' => '可原路回收的转账金额', 'type' => 'string', 'example' => '120'], ], + 'description' => '', ], ], - 'Currency' => [ - 'title' => '币种', - 'description' => '币种', - 'type' => 'string', - 'example' => 'CNY', - ], + 'Currency' => ['title' => '币种', 'description' => '币种', 'type' => 'string', 'example' => 'CNY'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'RequestTimeout', - 'errorMessage' => 'Request timed out. Please try again later.', - ], - [ - 'errorCode' => 'NoFundAccountPermission', - 'errorMessage' => 'The caller does not have permission for the specified fund account.', - ], + ['errorCode' => 'RequestTimeout', 'errorMessage' => 'Request timed out. Please try again later.', 'description' => '请求超时,请稍后再试'], + ['errorCode' => 'NoFundAccountPermission', 'errorMessage' => 'The caller does not have permission for the specified fund account.', 'description' => '当前登录账号没有权限操作指定账户。'], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\",\\n \\"RecycleFromFundAccountId\\": \\"1232122132\\",\\n \\"TransferAmount\\": \\"200\\",\\n \\"AvailableAmount\\": \\"300\\",\\n \\"RecycleToFundAccountList\\": [\\n {\\n \\"FundAccountOwnerAccountId\\": \\"183221321\\",\\n \\"MaxRecyclableAmount\\": \\"120\\",\\n \\"FundAccountId\\": \\"122323121\\",\\n \\"FundAccountName\\": \\"云某的账户\\",\\n \\"OriginalTransferRemainAmount\\": \\"120\\"\\n }\\n ],\\n \\"Currency\\": \\"CNY\\"\\n}","type":"json"}]', 'title' => '查询资金账户可回收金额', - ], - 'CreateFundAccountTransfer' => [ - 'summary' => '创建账户划拨/回收', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeBillingAccount', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetFundAccountCanTransferAmount' => [ + 'summary' => '查询资金账户的可转出金额', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'FromFundAccountId', + 'name' => 'FundAccountId', 'in' => 'formData', - 'schema' => [ - 'title' => '转出账户id (出款方账户id)', - 'description' => '转出账户id (出款方账户id)', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '123212323', - ], + 'schema' => ['title' => '转账源账户ID,不传时默认使用当前账号拥有(owner)的账户id。', 'description' => '转账源账户ID,不传时默认使用当前账号拥有(owner)的账户id。', 'type' => 'string', 'required' => false, 'example' => '123212'], ], [ - 'name' => 'ToFundAccountId', + 'name' => 'Currency', 'in' => 'formData', + 'schema' => ['title' => '币种', 'description' => '币种', 'type' => 'string', 'required' => true, 'example' => 'CNY'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '转入账户id (收款方账户id)', - 'description' => '转入账户id (收款方账户id)', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11112231', + 'title' => 'BssApiPlainResult<TransferBillingAccount>', + 'description' => 'BssApiPlainResult<TransferBillingAccount>', + 'type' => 'object', + 'properties' => [ + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4'], + 'MaxTransferableAmount' => ['title' => '可转账金额', 'description' => '可转账金额', 'type' => 'string', 'example' => '100'], + 'CashAmount' => ['title' => '现金账本余额', 'description' => '现金账本余额', 'type' => 'string', 'example' => '500'], + 'TransferAmount' => ['title' => '转账账本余额', 'description' => '转账账本余额', 'type' => 'string', 'example' => '100'], + 'AvailableAmount' => ['title' => '可用金', 'description' => '可用金', 'type' => 'string', 'example' => '100'], + 'Currency' => ['title' => '币种', 'description' => '币种', 'type' => 'string', 'example' => 'CNY'], + 'Site' => ['title' => '站点', 'description' => '站点', 'type' => 'string', 'example' => '26842'], + 'Nbid' => ['title' => '一级售卖场', 'description' => '一级售卖场', 'type' => 'string', 'example' => '2684210001'], + 'FundAccountId' => ['title' => '账户Id', 'description' => '账户Id', 'type' => 'integer', 'format' => 'int64', 'example' => '12332112'], + 'FundAccountOwnerAccountId' => ['title' => '账户归属人的阿里云accountId', 'description' => '账户归属人的阿里云accountId', 'type' => 'integer', 'format' => 'int64', 'example' => '154738212323'], + 'FundAccountName' => ['title' => '账户名称', 'description' => '账户名称', 'type' => 'string', 'example' => '云某的账户'], + 'FundAccountEcid' => ['title' => '账户归属的企业实体id', 'description' => '账户归属的企业实体id', 'type' => 'string', 'example' => '2032121324'], + ], ], ], - [ - 'name' => 'Amount', - 'in' => 'formData', - 'schema' => [ - 'title' => '转账金额', - 'description' => '转账金额', - 'type' => 'string', - 'required' => true, - 'example' => '100', + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'RequestTimeout', 'errorMessage' => 'Request timed out. Please try again later.', 'description' => '请求超时,请稍后再试'], + ['errorCode' => 'NoFundAccountPermission', 'errorMessage' => 'The caller does not have permission for the specified fund account.', 'description' => '当前登录账号没有权限操作指定账户。'], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\",\\n \\"MaxTransferableAmount\\": \\"100\\",\\n \\"CashAmount\\": \\"500\\",\\n \\"TransferAmount\\": \\"100\\",\\n \\"AvailableAmount\\": \\"100\\",\\n \\"Currency\\": \\"CNY\\",\\n \\"Site\\": \\"26842\\",\\n \\"Nbid\\": \\"2684210001\\",\\n \\"FundAccountId\\": 12332112,\\n \\"FundAccountOwnerAccountId\\": 154738212323,\\n \\"FundAccountName\\": \\"云某的账户\\",\\n \\"FundAccountEcid\\": \\"2032121324\\"\\n}","type":"json"}]', + 'title' => '查询资金账户的可转出金额', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeBillingAccount', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + ], + 'GetFundAccountCanWithdrawAmount' => [ + 'summary' => '查询资金账户可提现金额', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'Currency', - 'in' => 'formData', - 'schema' => [ - 'title' => '币种', - 'description' => '币种', - 'type' => 'string', - 'required' => true, - 'example' => 'CNY', - ], + 'AK' => [], ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ [ - 'name' => 'FinanceType', + 'name' => 'FundAccountId', 'in' => 'formData', + 'schema' => ['title' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', 'description' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123212232'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '资产类型(当前仅支持现金)'."\n" - .'cash-现金;', - 'description' => '资产类型(当前仅支持现金)'."\n" - .'cash-现金;', - 'type' => 'string', - 'required' => true, - 'example' => 'cash', + 'title' => 'BssApiPlainResult<WithdrawInfoDTO>', + 'description' => 'BssApiPlainResult<WithdrawInfoDTO>', + 'type' => 'object', + 'properties' => [ + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'DF58589C-A06C-4224-8615-7797E6474FA3'], + 'CashAmount' => ['title' => '现金余额', 'description' => '现金余额', 'type' => 'string', 'example' => '1000'], + 'CanWithdrawAmount' => ['title' => '可提现金额 = 现金余额 - 转账账本金额 - (欠票金额 + 历史月未结清金额 + 当前月未结清金额 - 转账账本金额) - 按量付费业务预留金额', 'description' => '可提现金额 = 现金余额 - 转账账本金额 - (欠票金额 + 历史月未结清金额 + 当前月未结清金额 - 转账账本金额) - 按量付费业务预留金额', 'type' => 'string', 'example' => '500'], + 'CanOriginalWithdrawAmount' => ['title' => '可原路提现金额', 'description' => '可原路提现金额', 'type' => 'string', 'example' => '400'], + 'CannotOriginalWithdrawAmount' => ['title' => '不可原路提现金额', 'description' => '不可原路提现金额', 'type' => 'string', 'example' => '100'], + 'PayAsYouGoReversedAmount' => ['title' => '按量业务预留金额', 'description' => '按量业务预留金额', 'type' => 'string', 'example' => '100'], + 'TransferAmount' => ['title' => '转账金额', 'description' => '转账金额', 'type' => 'string', 'example' => '0'], + 'CreditMemoAmount' => ['title' => '欠票金额', 'description' => '欠票金额', 'type' => 'string', 'example' => '100'], + 'CurrentMonthUnclearedAmount' => ['title' => '当前月未结清金额', 'description' => '当前月未结清金额', 'type' => 'string', 'example' => '200'], + 'HistoryMonthUnclearedAmount' => ['title' => '历史月未结清金额', 'description' => '历史月未结清金额', 'type' => 'string', 'example' => '100'], + ], ], ], - [ - 'name' => 'TransferType', - 'in' => 'formData', - 'schema' => [ - 'title' => '转账类型'."\n" - .'grant-划拨;'."\n" - .'recycle;回收', - 'description' => '转账类型'."\n" - .'grant-划拨;'."\n" - .'recycle;回收', - 'type' => 'string', - 'required' => true, - 'example' => 'grant', - 'enum' => [ - 'grant', - 'recycle', + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'NoFundAccountPermission', 'errorMessage' => 'The caller does not have permission for the specified fund account.', 'description' => '当前登录账号没有权限操作指定账户。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this action.', 'description' => '您无权执行此操作。'], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"DF58589C-A06C-4224-8615-7797E6474FA3\\",\\n \\"CashAmount\\": \\"1000\\",\\n \\"CanWithdrawAmount\\": \\"500\\",\\n \\"CanOriginalWithdrawAmount\\": \\"400\\",\\n \\"CannotOriginalWithdrawAmount\\": \\"100\\",\\n \\"PayAsYouGoReversedAmount\\": \\"100\\",\\n \\"TransferAmount\\": \\"0\\",\\n \\"CreditMemoAmount\\": \\"100\\",\\n \\"CurrentMonthUnclearedAmount\\": \\"200\\",\\n \\"HistoryMonthUnclearedAmount\\": \\"100\\"\\n}","type":"json"}]', + 'title' => '查询资金账户可提现金额', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeAccount', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], + ], + ], + 'GetFundAccountLowAvailableAmountAlarm' => [ + 'summary' => '查询资金账户低额预警', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'Remark', + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'FundAccountId', 'in' => 'formData', - 'schema' => [ - 'title' => '备注', - 'description' => '备注', - 'type' => 'string', - 'required' => true, - 'example' => '转账的备注', - ], + 'schema' => ['title' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', 'description' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '12332112'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPlainResult<Void>', - 'description' => 'BssApiPlainResult<Void>', + 'title' => 'BssApiPlainResult<BalanceAlarmDTO>', + 'description' => 'BssApiPlainResult<BalanceAlarmDTO>', 'type' => 'object', 'properties' => [ - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '1BB79-5B23-3EA-BB4F-352F93E'."\n" - ."\n", - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4'], + 'ThresholdAmount' => ['title' => '预警阈值', 'description' => '预警阈值', 'type' => 'string', 'example' => '100'], + 'AlarmEnabled' => ['title' => '是否开启预警', 'description' => '是否开启预警', 'type' => 'boolean', 'default' => 'false'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'RequestTimeout', - 'errorMessage' => 'Request timed out. Please try again later.', - ], - [ - 'errorCode' => 'NoFundAccountPermission', - 'errorMessage' => 'The caller does not have permission for the specified fund account.', - ], - [ - 'errorCode' => 'AccountNotExist', - 'errorMessage' => 'Account does not exist.', - ], - [ - 'errorCode' => 'AvailableTransferAmountNotEnough', - 'errorMessage' => 'The available amount for granting or recycling is insufficient.', + ['errorCode' => 'NoFundAccountPermission', 'errorMessage' => 'The caller does not have permission for the specified fund account.', 'description' => '当前登录账号没有权限操作指定账户。'], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\",\\n \\"ThresholdAmount\\": \\"100\\",\\n \\"AlarmEnabled\\": true\\n}","type":"json"}]', + 'title' => '查询资金账户低额预警', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeAlarm', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"1BB79-5B23-3EA-BB4F-352F93E\\\\n\\\\n\\"\\n}","type":"json"}]', - 'title' => '创建账户划拨/回收', ], 'GetFundAccountTransactionDetails' => [ 'summary' => '查询资金账户收支明细', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -3610,81 +3437,37 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'FundAccountId', 'in' => 'formData', - 'schema' => [ - 'title' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', - 'description' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123221232', - ], + 'schema' => ['title' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', 'description' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123221232'], ], [ 'name' => 'TransactionNumber', 'in' => 'formData', - 'schema' => [ - 'title' => '流水号', - 'description' => '流水号', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '543231231', - ], + 'schema' => ['title' => '流水号', 'description' => '流水号', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '543231231'], ], [ 'name' => 'BillNumber', 'in' => 'formData', - 'schema' => [ - 'title' => '交易单号', - 'description' => '交易单号', - 'type' => 'string', - 'required' => false, - 'example' => '2023212312321', - ], + 'schema' => ['title' => '交易单号', 'description' => '交易单号', 'type' => 'string', 'required' => false, 'example' => '2023212312321'], ], [ 'name' => 'ChannelTransactionNumber', 'in' => 'formData', - 'schema' => [ - 'title' => '交易渠道流水号', - 'description' => '交易渠道流水号', - 'type' => 'string', - 'required' => false, - 'example' => '20250312334312322', - ], + 'schema' => ['title' => '交易渠道流水号', 'description' => '交易渠道流水号', 'type' => 'string', 'required' => false, 'example' => '20250312334312322'], ], [ 'name' => 'StartTime', 'in' => 'formData', - 'schema' => [ - 'title' => '查询开始时间戳(毫秒)', - 'description' => '查询开始时间戳(毫秒)', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1735664461000', - ], + 'schema' => ['title' => '查询开始时间戳(毫秒)', 'description' => '查询开始时间戳(毫秒)', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1735664461000'], ], [ 'name' => 'EndTime', 'in' => 'formData', - 'schema' => [ - 'title' => '查询结束时间戳(毫秒)', - 'description' => '查询结束时间戳(毫秒)', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1735664561000', - ], + 'schema' => ['title' => '查询结束时间戳(毫秒)', 'description' => '查询结束时间戳(毫秒)', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1735664561000'], ], [ 'name' => 'TransactionDirection', @@ -3695,50 +3478,41 @@ 'type' => 'string', 'required' => false, 'example' => 'IN', - 'enum' => [ - 'IN', - 'OUT', - ], + 'enum' => ['IN', 'OUT'], ], ], [ 'name' => 'TransactionType', 'in' => 'formData', - 'schema' => [ - 'title' => '交易类型。 传入以下交易类型,查询返回对应类型结果,不存在时结果为空。不传默认返回所有类型。'."\n" - ."\n" - .'充值:CHARGE。'."\n" - ."\n" - .'提现:WITHDRAW。'."\n" - ."\n" - .'退款:REFUND。'."\n" - ."\n" - .'消费:PAY。'."\n" - ."\n" - .'转账:TRANSFER。'."\n" - ."\n" - .'调账:ADJUST。'."\n" - ."\n" - .'订单失效退款: PAY_FAILED。', - 'description' => '交易类型。 传入以下交易类型,查询返回对应类型结果,不存在时结果为空。不传默认返回所有类型。'."\n" - ."\n" - .'充值:CHARGE。'."\n" - ."\n" - .'提现:WITHDRAW。'."\n" - ."\n" - .'退款:REFUND。'."\n" - ."\n" - .'消费:PAY。'."\n" - ."\n" - .'转账:TRANSFER。'."\n" - ."\n" - .'调账:ADJUST。'."\n" - ."\n" - .'订单失效退款: PAY_FAILED。', - 'type' => 'string', - 'required' => false, - 'example' => 'CHARGE', - ], + 'schema' => ['title' => '交易类型。 传入以下交易类型,查询返回对应类型结果,不存在时结果为空。不传默认返回所有类型。'."\n" + ."\n" + .'充值:CHARGE。'."\n" + ."\n" + .'提现:WITHDRAW。'."\n" + ."\n" + .'退款:REFUND。'."\n" + ."\n" + .'消费:PAY。'."\n" + ."\n" + .'转账:TRANSFER。'."\n" + ."\n" + .'调账:ADJUST。'."\n" + ."\n" + .'订单失效退款: PAY_FAILED。', 'description' => '交易类型。 传入以下交易类型,查询返回对应类型结果,不存在时结果为空。不传默认返回所有类型。'."\n" + ."\n" + .'充值:CHARGE。'."\n" + ."\n" + .'提现:WITHDRAW。'."\n" + ."\n" + .'退款:REFUND。'."\n" + ."\n" + .'消费:PAY。'."\n" + ."\n" + .'转账:TRANSFER。'."\n" + ."\n" + .'调账:ADJUST。'."\n" + ."\n" + .'订单失效退款: PAY_FAILED。', 'type' => 'string', 'required' => false, 'example' => 'CHARGE'], ], [ 'name' => 'TransactionTypeList', @@ -3748,12 +3522,7 @@ 'title' => '交易类型列表,支持多个参数查询', 'description' => '交易类型列表,支持多个参数查询', 'type' => 'array', - 'items' => [ - 'description' => '交易类型', - 'type' => 'string', - 'required' => false, - 'example' => 'CHARGE', - ], + 'items' => ['description' => '交易类型', 'type' => 'string', 'required' => false, 'example' => 'CHARGE'], 'required' => false, ], ], @@ -3799,41 +3568,19 @@ .'AYPAL:PAYPAL 。(国际站才有)'."\n" ."\n\n", 'type' => 'array', - 'items' => [ - 'description' => '资金类型', - 'type' => 'string', - 'required' => false, - 'example' => 'ACCT_CASH', - ], + 'items' => ['description' => '资金类型', 'type' => 'string', 'required' => false, 'example' => 'ACCT_CASH'], 'required' => false, ], ], [ 'name' => 'CurrentPage', 'in' => 'query', - 'schema' => [ - 'title' => '当前页码', - 'description' => '当前页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - 'default' => '1', - ], + 'schema' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'default' => '1'], ], [ 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'title' => '每页大小(最大200)', - 'description' => '每页大小(最大200)', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '200', - 'example' => '20', - 'default' => '20', - ], + 'schema' => ['title' => '每页大小(最大200)', 'description' => '每页大小(最大200)', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '200', 'example' => '20', 'default' => '20'], ], ], 'responses' => [ @@ -3843,29 +3590,9 @@ 'description' => 'BssApiPageResult<FundFlowResponse>', 'type' => 'object', 'properties' => [ - 'CurrentPage' => [ - 'title' => '当前页码', - 'description' => '当前页码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - 'default' => '1', - ], - 'PageSize' => [ - 'title' => '每页大小', - 'description' => '每页大小', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - 'default' => '20', - ], - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '30', - ], + 'CurrentPage' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'default' => '1'], + 'PageSize' => ['title' => '每页大小', 'description' => '每页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'default' => '20'], + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '30'], 'Data' => [ 'title' => '数据列表', 'description' => '数据列表', @@ -3873,496 +3600,363 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Site' => [ - 'title' => '站点', - 'description' => '站点', - 'type' => 'string', - 'example' => '26842', - ], - 'TransactionType' => [ - 'title' => '交易类型。 传入以下交易类型,查询返回对应类型结果,不存在时结果为空。不传默认返回所有类型。'."\n" - ."\n" - .'充值:CHARGE。'."\n" - ."\n" - .'提现:WITHDRAW。'."\n" - ."\n" - .'退款:REFUND。'."\n" - ."\n" - .'消费:PAY。'."\n" - ."\n" - .'转账:TRANSFER。'."\n" - ."\n" - .'调账:ADJUST。'."\n" - ."\n" - .'订单失效退款: PAY_FAILED。'."\n", - 'description' => '交易类型。 传入以下交易类型,查询返回对应类型结果,不存在时结果为空。不传默认返回所有类型。'."\n" - ."\n" - .'充值:CHARGE。'."\n" - ."\n" - .'提现:WITHDRAW。'."\n" - ."\n" - .'退款:REFUND。'."\n" - ."\n" - .'消费:PAY。'."\n" - ."\n" - .'转账:TRANSFER。'."\n" - ."\n" - .'调账:ADJUST。'."\n" - ."\n" - .'订单失效退款: PAY_FAILED。'."\n", - 'type' => 'string', - 'example' => 'CHARGE', - ], - 'ChannelTransactionNumber' => [ - 'title' => '外部交易流水号', - 'description' => '外部交易流水号', - 'type' => 'string', - 'example' => '20244389232', - ], - 'TransactionNumber' => [ - 'title' => '流水号', - 'description' => '流水号', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '5423121', - ], - 'FundAccountId' => [ - 'title' => '账户Id', - 'description' => '账户Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1232121', - ], - 'Nbid' => [ - 'title' => '一级售卖场', - 'description' => '一级售卖场', - 'type' => 'string', - 'example' => '2684210001', - ], - 'TransactionAccount' => [ - 'title' => '对应交易账号,比如支付宝充值账号或转账对端账号。', - 'description' => '对应交易账号,比如支付宝充值账号或转账对端账号。', - 'type' => 'string', - 'example' => '186****3975', - ], - 'BillNumber' => [ - 'title' => '订单号或者账单号', - 'description' => '订单号或者账单号', - 'type' => 'string', - 'example' => '2323203243', - ], - 'Remark' => [ - 'title' => '备注', - 'description' => '备注', - 'type' => 'string', - 'example' => '订单备注', - ], - 'TransactionDirection' => [ - 'title' => '交易方向 in/out(收入/支出)', - 'description' => '交易方向 in/out(收入/支出)', - 'type' => 'string', - 'example' => 'IN', - ], - 'FundType' => [ - 'title' => '资金形式', - 'description' => '资金形式', - 'type' => 'string', - 'example' => 'ACCT_BOOK', - ], - 'Currency' => [ - 'title' => '交易金额币种', - 'description' => '交易金额币种', - 'type' => 'string', - 'example' => 'USD', - ], - 'TransactionChannel' => [ - 'title' => '交易渠道,传入时按交易渠道查询,不传时默认查所有。'."\n" - ."\n" - .'用户余额:ACCT_CASH。'."\n" - ."\n" - .'支付宝:ALIPAY。'."\n" - ."\n" - .'支付宝支付通:ALIPAY_ZHIFUTONG。'."\n" - ."\n" - .'对公汇款:OFFLINE_REMIT。'."\n" - ."\n" - .'信控额度退款:REFUND。'."\n" - ."\n" - .'网银:UNION_PAY_BANK。'."\n" - ."\n" - .'信用卡:CREDIT_CARD。(国际站才有)'."\n" - ."\n" - .'AYPAL:PAYPAL 。(国际站才有)'."\n" - ."\n\n", - 'description' => '交易渠道,传入时按交易渠道查询,不传时默认查所有。'."\n" - ."\n" - .'用户余额:ACCT_CASH。'."\n" - ."\n" - .'支付宝:ALIPAY。'."\n" - ."\n" - .'支付宝支付通:ALIPAY_ZHIFUTONG。'."\n" - ."\n" - .'对公汇款:OFFLINE_REMIT。'."\n" - ."\n" - .'信控额度退款:REFUND。'."\n" - ."\n" - .'网银:UNION_PAY_BANK。'."\n" - ."\n" - .'信用卡:CREDIT_CARD。(国际站才有)'."\n" - ."\n" - .'AYPAL:PAYPAL 。(国际站才有)'."\n" - ."\n\n", - 'type' => 'string', - 'example' => 'ALIPAY', - ], - 'FundAccountName' => [ - 'title' => '账户名称', - 'description' => '账户名称', - 'type' => 'string', - 'example' => '云某的名称', - ], - 'TransactionAmount' => [ - 'title' => '交易金额', - 'description' => '交易金额', - 'type' => 'string', - 'example' => '10', - ], - 'TransactionTime' => [ - 'title' => '交易时间格式化字符串', - 'description' => '交易时间格式化字符串', - 'type' => 'string', - 'example' => '2024-12-01 12:00:00', - ], - 'FundAccountEcid' => [ - 'title' => '企业实体id', - 'description' => '企业实体id', - 'type' => 'string', - 'example' => '23473943', - ], - 'FundAccountOwnerAccountId' => [ - 'title' => '账户归属人的阿里云accountId', - 'description' => '账户归属人的阿里云accountId', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '32343231', - ], - 'Balance' => [ - 'title' => '操作后余额', - 'description' => '操作后余额', - 'type' => 'string', - 'example' => '5', - ], + 'Site' => ['title' => '站点', 'description' => '站点', 'type' => 'string', 'example' => '26842'], + 'TransactionType' => ['title' => '交易类型。 传入以下交易类型,查询返回对应类型结果,不存在时结果为空。不传默认返回所有类型。'."\n" + ."\n" + .'充值:CHARGE。'."\n" + ."\n" + .'提现:WITHDRAW。'."\n" + ."\n" + .'退款:REFUND。'."\n" + ."\n" + .'消费:PAY。'."\n" + ."\n" + .'转账:TRANSFER。'."\n" + ."\n" + .'调账:ADJUST。'."\n" + ."\n" + .'订单失效退款: PAY_FAILED。'."\n", 'description' => '交易类型。 传入以下交易类型,查询返回对应类型结果,不存在时结果为空。不传默认返回所有类型。'."\n" + ."\n" + .'充值:CHARGE。'."\n" + ."\n" + .'提现:WITHDRAW。'."\n" + ."\n" + .'退款:REFUND。'."\n" + ."\n" + .'消费:PAY。'."\n" + ."\n" + .'转账:TRANSFER。'."\n" + ."\n" + .'调账:ADJUST。'."\n" + ."\n" + .'订单失效退款: PAY_FAILED。'."\n", 'type' => 'string', 'example' => 'CHARGE'], + 'ChannelTransactionNumber' => ['title' => '外部交易流水号', 'description' => '外部交易流水号', 'type' => 'string', 'example' => '20244389232'], + 'TransactionNumber' => ['title' => '流水号', 'description' => '流水号', 'type' => 'integer', 'format' => 'int64', 'example' => '5423121'], + 'FundAccountId' => ['title' => '账户Id', 'description' => '账户Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1232121'], + 'Nbid' => ['title' => '一级售卖场', 'description' => '一级售卖场', 'type' => 'string', 'example' => '2684210001'], + 'TransactionAccount' => ['title' => '对应交易账号,比如支付宝充值账号或转账对端账号。', 'description' => '对应交易账号,比如支付宝充值账号或转账对端账号。', 'type' => 'string', 'example' => '186****3975'], + 'BillNumber' => ['title' => '订单号或者账单号', 'description' => '订单号或者账单号', 'type' => 'string', 'example' => '2323203243'], + 'Remark' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'example' => '订单备注'], + 'TransactionDirection' => ['title' => '交易方向 in/out(收入/支出)', 'description' => '交易方向 in/out(收入/支出)', 'type' => 'string', 'example' => 'IN'], + 'FundType' => ['title' => '资金形式', 'description' => '资金形式', 'type' => 'string', 'example' => 'ACCT_BOOK'], + 'Currency' => ['title' => '交易金额币种', 'description' => '交易金额币种', 'type' => 'string', 'example' => 'USD'], + 'TransactionChannel' => ['title' => '交易渠道,传入时按交易渠道查询,不传时默认查所有。'."\n" + ."\n" + .'用户余额:ACCT_CASH。'."\n" + ."\n" + .'支付宝:ALIPAY。'."\n" + ."\n" + .'支付宝支付通:ALIPAY_ZHIFUTONG。'."\n" + ."\n" + .'对公汇款:OFFLINE_REMIT。'."\n" + ."\n" + .'信控额度退款:REFUND。'."\n" + ."\n" + .'网银:UNION_PAY_BANK。'."\n" + ."\n" + .'信用卡:CREDIT_CARD。(国际站才有)'."\n" + ."\n" + .'AYPAL:PAYPAL 。(国际站才有)'."\n" + ."\n\n", 'description' => '交易渠道,传入时按交易渠道查询,不传时默认查所有。'."\n" + ."\n" + .'用户余额:ACCT_CASH。'."\n" + ."\n" + .'支付宝:ALIPAY。'."\n" + ."\n" + .'支付宝支付通:ALIPAY_ZHIFUTONG。'."\n" + ."\n" + .'对公汇款:OFFLINE_REMIT。'."\n" + ."\n" + .'信控额度退款:REFUND。'."\n" + ."\n" + .'网银:UNION_PAY_BANK。'."\n" + ."\n" + .'信用卡:CREDIT_CARD。(国际站才有)'."\n" + ."\n" + .'AYPAL:PAYPAL 。(国际站才有)'."\n" + ."\n\n", 'type' => 'string', 'example' => 'ALIPAY'], + 'FundAccountName' => ['title' => '账户名称', 'description' => '账户名称', 'type' => 'string', 'example' => '云某的名称'], + 'TransactionAmount' => ['title' => '交易金额', 'description' => '交易金额', 'type' => 'string', 'example' => '10'], + 'TransactionTime' => ['title' => '交易时间格式化字符串', 'description' => '交易时间格式化字符串', 'type' => 'string', 'example' => '2024-12-01 12:00:00'], + 'FundAccountEcid' => ['title' => '企业实体id', 'description' => '企业实体id', 'type' => 'string', 'example' => '23473943'], + 'FundAccountOwnerAccountId' => ['title' => '账户归属人的阿里云accountId', 'description' => '账户归属人的阿里云accountId', 'type' => 'integer', 'format' => 'int64', 'example' => '32343231'], + 'Balance' => ['title' => '操作后余额', 'description' => '操作后余额', 'type' => 'string', 'example' => '5'], ], + 'description' => '', ], ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F', - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'MaxOffsetLimit', - 'errorMessage' => 'Exceeded maximum page turning limit.', - ], - [ - 'errorCode' => 'RequestTimeout', - 'errorMessage' => 'Request timed out. Please try again later.', - ], - [ - 'errorCode' => 'NoFundAccountPermission', - 'errorMessage' => 'The caller does not have permission for the specified fund account.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'You are not authorized to perform this action.', - ], + ['errorCode' => 'MaxOffsetLimit', 'errorMessage' => 'Exceeded maximum page turning limit.', 'description' => '超过最大翻页限制,请导出后查看'], + ['errorCode' => 'RequestTimeout', 'errorMessage' => 'Request timed out. Please try again later.', 'description' => '请求超时,请稍后再试'], + ['errorCode' => 'NoFundAccountPermission', 'errorMessage' => 'The caller does not have permission for the specified fund account.', 'description' => '当前登录账号没有权限操作指定账户。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this action.', 'description' => '您无权执行此操作。'], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 30,\\n \\"Data\\": [\\n {\\n \\"Site\\": \\"26842\\",\\n \\"TransactionType\\": \\"CHARGE\\",\\n \\"ChannelTransactionNumber\\": \\"20244389232\\",\\n \\"TransactionNumber\\": 5423121,\\n \\"FundAccountId\\": 1232121,\\n \\"Nbid\\": \\"2684210001\\",\\n \\"TransactionAccount\\": \\"186****3975\\",\\n \\"BillNumber\\": \\"2323203243\\",\\n \\"Remark\\": \\"订单备注\\",\\n \\"TransactionDirection\\": \\"IN\\",\\n \\"FundType\\": \\"ACCT_BOOK\\",\\n \\"Currency\\": \\"USD\\",\\n \\"TransactionChannel\\": \\"ALIPAY\\",\\n \\"FundAccountName\\": \\"云某的名称\\",\\n \\"TransactionAmount\\": \\"10\\",\\n \\"TransactionTime\\": \\"2024-12-01 12:00:00\\",\\n \\"FundAccountEcid\\": \\"23473943\\",\\n \\"FundAccountOwnerAccountId\\": 32343231,\\n \\"Balance\\": \\"5\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"D6E068C3-25BC-455A-85FE-45F0B22ECB1F\\"\\n}","type":"json"}]', 'title' => '查询资金账户收支明细', - ], - 'SetFundAccountCreditAmount' => [ - 'summary' => '设置资金账户的信控限额', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeFund', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetOrderDetail' => [ + 'summary' => '查询用户或分销客户某个订单详情信息。', + 'methods' => ['post', 'get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'], 'parameters' => [ [ - 'name' => 'FundAccountId', - 'in' => 'formData', - 'schema' => [ - 'title' => '资金账户id, 不设置时默认使用当前账号拥有(owner)的账户', - 'description' => '资金账户id, 不设置时默认使用当前账号拥有(owner)的账户', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1232312', - ], - ], - [ - 'name' => 'CreditAmount', - 'in' => 'formData', - 'schema' => [ - 'title' => '授信额度', - 'description' => '授信额度', - 'type' => 'string', - 'required' => true, - 'example' => '500', - ], + 'name' => 'OrderId', + 'in' => 'query', + 'schema' => ['description' => '订单号。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '233501558440169'], ], [ - 'name' => 'Currency', - 'in' => 'formData', - 'schema' => [ - 'title' => '信控额度币种。目前国内仅支持CNY,国际仅支持USD', - 'description' => '信控额度币种。目前国内仅支持CNY,国际仅支持USD', - 'type' => 'string', - 'required' => true, - 'example' => 'CNY', - ], + 'name' => 'MemberUid', + 'in' => 'query', + 'schema' => ['description' => '当前账户管理的企业多账号成员UID。如不涉及该场景,请留空。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1715322405372273'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPlainResult<Void>', - 'description' => 'BssApiPlainResult<Void>', 'type' => 'object', 'properties' => [ - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F'."\n", + 'Code' => ['description' => '状态码。', 'type' => 'string', 'example' => 'Success'], + 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'Successful!'], + 'RequestId' => ['description' => '请求id。', 'type' => 'string', 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F'], + 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HostName' => ['description' => '主机名。', 'type' => 'string', 'example' => 'test'], + 'PageNum' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'PageSize' => ['description' => '每页条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'TotalCount' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '400'], + 'OrderList' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'Order' => [ + 'description' => '订单列表', + 'type' => 'array', + 'items' => [ + 'description' => '订单详情', + 'type' => 'object', + 'properties' => [ + 'Operator' => ['description' => '订单操作RAM用户对应ID,如无则留空。', 'type' => 'string', 'example' => '322315'], + 'AfterTaxAmount' => ['description' => '税后金额。', 'type' => 'string', 'example' => '0'], + 'Config' => ['description' => '主产品的配置。', 'type' => 'string', 'example' => 'DBInstanceClass:[DBInstanceClass:rds.mysql.s1.small;EngineVersion:8.0;Region:cn-qingdao;]DBFlowType:[Region:cn-qingdao;]'], + 'SubOrderId' => ['description' => '子订单号。', 'type' => 'string', 'example' => '234343'], + 'PaymentTime' => ['description' => '订单支付时间。', 'type' => 'string', 'example' => '2017-06-08T09:41:30Z'], + 'Tax' => ['description' => '税费。', 'type' => 'string', 'example' => '0'], + 'PaymentCurrency' => ['description' => '支付币种。 CNY:人民币。 USD:美元。 JPY:日元', 'type' => 'string', 'example' => 'CNY'], + 'UsageEndTime' => ['description' => '服务结束时间。', 'type' => 'string', 'example' => '2117-06-08T16:00:00Z'], + 'SubscriptionType' => ['title' => '', 'description' => '订阅类型。取值:'."\n" + .'- Subscription:预付费。'."\n" + .'- PayAsYouGo:后付费。', 'type' => 'string', 'example' => 'Subscription'], + 'PretaxGrossAmount' => ['description' => '原始金额。', 'type' => 'string', 'example' => '0'], + 'OrderType' => ['description' => '订单类型,取值范围'."\n" + .'- New 新购'."\n" + .'- Renew 续费'."\n" + .'- Upgrade 升级'."\n" + .'- TempUpgrade 短时升级'."\n" + .'- Downgrade 降级'."\n" + .'- Refund 退款'."\n" + .'- Convert 付费类型转换'."\n" + .'- ResizeDisk 调整磁盘大小'."\n" + .'- CompensatoryRenew 补偿续费'."\n" + .'- IncreaseUpgrade 带宽升级'."\n" + .'- Exchange 换购'."\n" + .'- ChangeOperatingSystem 更换操作系统', 'type' => 'string', 'example' => 'new'], + 'Currency' => ['description' => '币种,取值:'."\n" + .'- CNY。'."\n" + .'- USD。'."\n" + .'- JPY。', 'type' => 'string', 'example' => 'CNY'], + 'CommodityCode' => ['description' => '商品Code。', 'type' => 'string', 'example' => 'rds'], + 'UsageStartTime' => ['description' => '服务开始时间。', 'type' => 'string', 'example' => '2017-06-08T16:00:00Z'], + 'OriginalConfig' => ['description' => '未经标准化的模块信息。', 'type' => 'string', 'example' => 'DBInstanceClass:[DBInstanceClass:rds.mysql.s1.small;EngineVersion:8.0;Region:cn-qingdao;]DBFlowType:[Region:cn-qingdao;]'], + 'InstanceIds' => ['description' => '实例id列表。', 'type' => 'string', 'example' => '["rm-bp1a2vsr018313t6o"]'], + 'PaymentStatus' => ['description' => '支付状态。非退款订单,取值范围:'."\n" + .'- Unpaid:未支付。'."\n" + .'- Paid:已支付。'."\n" + .'- Cancelled:已作废。', 'type' => 'string', 'example' => 'paid'], + 'ExtendInfos' => [ + 'description' => '订单扩展信息', + 'type' => 'object', + 'additionalProperties' => ['type' => 'string', 'description' => '订单扩展信息'."\n" + .'- IsAutoRenew=true 表示自动续费订单,非自动续费订单不返回该参数;'."\n" + .'- CouponNo 为优惠券编号;'."\n" + .'- DeductedByCoupons 为优惠券抵扣金额,单位为元;'."\n" + .'- DiscountAmount 为优惠金额,单位为元。', 'example' => '{"IsAutoRenew":"true","DiscountAmount":"100.98","DeductedByCoupons":"98.88","CouponNo":"319170900877"}'], + ], + 'ProductCode' => ['description' => '产品代码。', 'type' => 'string', 'example' => 'rds'], + 'CreateTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2017-06-08T09:41:30Z'], + 'ProductType' => ['description' => '产品类型。', 'type' => 'string', 'example' => 'rds'], + 'Quantity' => ['description' => '数量。', 'type' => 'string', 'example' => '3'], + 'RelatedOrderId' => ['description' => '关联订单ID。', 'type' => 'string', 'example' => '241559391310332'], + 'OrderId' => ['description' => '订单号', 'type' => 'string', 'example' => '241559391310333'], + 'BillModuleConfig' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'billModuleConfig' => [ + 'description' => '计费配置信息', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'BillModuleProperties' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'billModuleProperties' => [ + 'description' => '配置下的值', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Value' => ['description' => '配置的属性值', 'type' => 'string', 'example' => 'cloud_ssd'], + 'AttrApiCode' => ['description' => '配置的属性 code', 'type' => 'string', 'example' => 'cloud_ssd'], + 'ModuleApiCode' => ['description' => '配置apicode', 'type' => 'string', 'example' => 'cloud_ssd'], + ], + 'description' => '', + ], + ], + ], + 'description' => '', + ], + 'ApiCode' => ['description' => 'apiCode', 'type' => 'string', 'example' => 'datadisk'], + 'Code' => ['description' => '配置 code', 'type' => 'string', 'example' => 'datadisk'], + 'Name' => ['description' => '配件名', 'type' => 'string', 'example' => '数据盘'], + ], + 'description' => '', + ], + ], + ], + 'description' => '', + ], + 'OriginalModuleConfig' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'originalModuleConfig' => [ + 'description' => '具体配置信息', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ModuleProperties' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'moduleProperties' => [ + 'description' => '配置的属性列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Value' => ['description' => '配置属性值', 'type' => 'string', 'example' => 'cloud_efficiency'], + 'Code' => ['description' => '配置属性 code', 'type' => 'string', 'example' => 'cloud_efficiency'], + 'Name' => ['description' => '配置属性名称', 'type' => 'string', 'example' => '高效云盘'], + ], + 'description' => '', + ], + ], + ], + 'description' => '', + ], + 'Code' => ['description' => '配置code', 'type' => 'string', 'example' => 'systemdisk'], + 'Name' => ['description' => '配置名称', 'type' => 'string', 'example' => '系统盘'], + ], + 'description' => '', + ], + ], + ], + 'description' => '', + ], + 'OrderSubType' => ['description' => '子订单类型:'."\n" + .'- productsuborder:产品子订单类型。'."\n" + .'- refundsuborder:退款子订单类型', 'type' => 'string', 'example' => 'productsuborder'], + 'PretaxAmount' => ['description' => '订单应付金额。', 'type' => 'string', 'example' => '0'], + 'Region' => ['description' => '地域', 'type' => 'string', 'example' => 'cn-hangzhou'], + 'PretaxAmountLocal' => ['description' => '本币金额。', 'type' => 'string', 'example' => '0'], + ], + ], + ], + ], + 'description' => '', + ], + ], ], ], + 'description' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => 'The specified request contains invalid parameters.', - ], - [ - 'errorCode' => 'RequestTimeout', - 'errorMessage' => 'Request timed out. Please try again later.', - ], - [ - 'errorCode' => 'NoFundAccountPermission', - 'errorMessage' => 'The caller does not have permission for the specified fund account.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'You are not authorized to perform this action.', - ], - [ - 'errorCode' => 'ExistApprovingProcess', - 'errorMessage' => 'There is a credit control setting process in the approval process, please contact the business manager.', - ], - [ - 'errorCode' => 'ExistUnconfirmedContract', - 'errorMessage' => 'The account you operate has a credit contract to be confirmed. Please confirm the contract first.', - ], - [ - 'errorCode' => 'NotSupportAllocateCredit', - 'errorMessage' => 'Self-service credit limit allocation is currently unavailable. Please contact your service manager for assistance.', - ], + ['errorCode' => 'InvalidOwner', 'errorMessage' => 'The specified owner doesn\'t belong to caller.', 'description' => '用户身份错误'], ], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\\\n\\"\\n}","type":"json"}]', - 'title' => '设置资金账户的信控限额', - ], - 'GetFundAccountCanTransferAmount' => [ - 'summary' => '查询资金账户的可转出金额', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], - 'parameters' => [ [ - 'name' => 'FundAccountId', - 'in' => 'formData', - 'schema' => [ - 'title' => '转账源账户ID,不传时默认使用当前账号拥有(owner)的账户id。', - 'description' => '转账源账户ID,不传时默认使用当前账号拥有(owner)的账户id。', - 'type' => 'string', - 'required' => false, - 'example' => '123212', - ], + ['errorCode' => 'InvalidCaller', 'errorMessage' => 'The caller\'s primary account is invalid or does not have permission to query enterprise member account information.', 'description' => '调用者主账号无效 或者 无权限查询企业成员账号信息。'], ], - [ - 'name' => 'Currency', - 'in' => 'formData', - 'schema' => [ - 'title' => '币种', - 'description' => '币种', - 'type' => 'string', - 'required' => true, - 'example' => 'CNY', - ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'BssApiPlainResult<TransferBillingAccount>', - 'description' => 'BssApiPlainResult<TransferBillingAccount>', - 'type' => 'object', - 'properties' => [ - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4', - ], - 'MaxTransferableAmount' => [ - 'title' => '可转账金额', - 'description' => '可转账金额', - 'type' => 'string', - 'example' => '100', - ], - 'CashAmount' => [ - 'title' => '现金账本余额', - 'description' => '现金账本余额', - 'type' => 'string', - 'example' => '500', - ], - 'TransferAmount' => [ - 'title' => '转账账本余额', - 'description' => '转账账本余额', - 'type' => 'string', - 'example' => '100', - ], - 'AvailableAmount' => [ - 'title' => '可用金', - 'description' => '可用金', - 'type' => 'string', - 'example' => '100', - ], - 'Currency' => [ - 'title' => '币种', - 'description' => '币种', - 'type' => 'string', - 'example' => 'CNY', - ], - 'Site' => [ - 'title' => '站点', - 'description' => '站点', - 'type' => 'string', - 'example' => '26842', - ], - 'Nbid' => [ - 'title' => '一级售卖场', - 'description' => '一级售卖场', - 'type' => 'string', - 'example' => '2684210001', - ], - 'FundAccountId' => [ - 'title' => '账户Id', - 'description' => '账户Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12332112', - ], - 'FundAccountOwnerAccountId' => [ - 'title' => '账户归属人的阿里云accountId', - 'description' => '账户归属人的阿里云accountId', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '154738212323', - ], - 'FundAccountName' => [ - 'title' => '账户名称', - 'description' => '账户名称', - 'type' => 'string', - 'example' => '云某的账户', - ], - 'FundAccountEcid' => [ - 'title' => '账户归属的企业实体id', - 'description' => '账户归属的企业实体id', - 'type' => 'string', - 'example' => '2032121324', - ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"Successful!\\",\\n \\"RequestId\\": \\"D6E068C3-25BC-455A-85FE-45F0B22ECB1F\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"HostName\\": \\"test\\",\\n \\"PageNum\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 400,\\n \\"OrderList\\": {\\n \\"Order\\": [\\n {\\n \\"Operator\\": \\"322315\\",\\n \\"AfterTaxAmount\\": \\"0\\",\\n \\"Config\\": \\"DBInstanceClass:[DBInstanceClass:rds.mysql.s1.small;EngineVersion:8.0;Region:cn-qingdao;]DBFlowType:[Region:cn-qingdao;]\\",\\n \\"SubOrderId\\": \\"234343\\",\\n \\"PaymentTime\\": \\"2017-06-08T09:41:30Z\\",\\n \\"Tax\\": \\"0\\",\\n \\"PaymentCurrency\\": \\"CNY\\",\\n \\"UsageEndTime\\": \\"2117-06-08T16:00:00Z\\",\\n \\"SubscriptionType\\": \\"Subscription\\",\\n \\"PretaxGrossAmount\\": \\"0\\",\\n \\"OrderType\\": \\"new\\",\\n \\"Currency\\": \\"CNY\\",\\n \\"CommodityCode\\": \\"rds\\",\\n \\"UsageStartTime\\": \\"2017-06-08T16:00:00Z\\",\\n \\"OriginalConfig\\": \\"DBInstanceClass:[DBInstanceClass:rds.mysql.s1.small;EngineVersion:8.0;Region:cn-qingdao;]DBFlowType:[Region:cn-qingdao;]\\",\\n \\"InstanceIds\\": \\"[\\\\\\"rm-bp1a2vsr018313t6o\\\\\\"]\\",\\n \\"PaymentStatus\\": \\"paid\\",\\n \\"ExtendInfos\\": {\\n \\"key\\": \\"{\\\\\\"IsAutoRenew\\\\\\":\\\\\\"true\\\\\\",\\\\\\"DiscountAmount\\\\\\":\\\\\\"100.98\\\\\\",\\\\\\"DeductedByCoupons\\\\\\":\\\\\\"98.88\\\\\\",\\\\\\"CouponNo\\\\\\":\\\\\\"319170900877\\\\\\"}\\"\\n },\\n \\"ProductCode\\": \\"rds\\",\\n \\"CreateTime\\": \\"2017-06-08T09:41:30Z\\",\\n \\"ProductType\\": \\"rds\\",\\n \\"Quantity\\": \\"3\\",\\n \\"RelatedOrderId\\": \\"241559391310332\\",\\n \\"OrderId\\": \\"241559391310333\\",\\n \\"BillModuleConfig\\": {\\n \\"billModuleConfig\\": [\\n {\\n \\"BillModuleProperties\\": {\\n \\"billModuleProperties\\": [\\n {\\n \\"Value\\": \\"cloud_ssd\\",\\n \\"AttrApiCode\\": \\"cloud_ssd\\",\\n \\"ModuleApiCode\\": \\"cloud_ssd\\"\\n }\\n ]\\n },\\n \\"ApiCode\\": \\"datadisk\\",\\n \\"Code\\": \\"datadisk\\",\\n \\"Name\\": \\"数据盘\\"\\n }\\n ]\\n },\\n \\"OriginalModuleConfig\\": {\\n \\"originalModuleConfig\\": [\\n {\\n \\"ModuleProperties\\": {\\n \\"moduleProperties\\": [\\n {\\n \\"Value\\": \\"cloud_efficiency\\",\\n \\"Code\\": \\"cloud_efficiency\\",\\n \\"Name\\": \\"高效云盘\\"\\n }\\n ]\\n },\\n \\"Code\\": \\"systemdisk\\",\\n \\"Name\\": \\"系统盘\\"\\n }\\n ]\\n },\\n \\"OrderSubType\\": \\"productsuborder\\",\\n \\"PretaxAmount\\": \\"0\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"PretaxAmountLocal\\": \\"0\\"\\n }\\n ]\\n }\\n }\\n}","type":"json"}]', + 'title' => '订单详情查询服务', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeOrderDetail', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'RequestTimeout', - 'errorMessage' => 'Request timed out. Please try again later.', - ], - [ - 'errorCode' => 'NoFundAccountPermission', - 'errorMessage' => 'The caller does not have permission for the specified fund account.', - ], - ], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\",\\n \\"MaxTransferableAmount\\": \\"100\\",\\n \\"CashAmount\\": \\"500\\",\\n \\"TransferAmount\\": \\"100\\",\\n \\"AvailableAmount\\": \\"100\\",\\n \\"Currency\\": \\"CNY\\",\\n \\"Site\\": \\"26842\\",\\n \\"Nbid\\": \\"2684210001\\",\\n \\"FundAccountId\\": 12332112,\\n \\"FundAccountOwnerAccountId\\": 154738212323,\\n \\"FundAccountName\\": \\"云某的账户\\",\\n \\"FundAccountEcid\\": \\"2032121324\\"\\n}","type":"json"}]', - 'title' => '查询资金账户的可转出金额', ], - 'DescribeCoupon' => [ - 'summary' => '查询优惠券列表', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'GetOrders' => [ + 'summary' => '查询用户或者分销客户订单列表情况。默认查询当前时间最近1小时范围内订单,如需查询更长时间范围的订单数据,请设CreateTimeStart和CreateTimeEnd参数。', + 'methods' => ['post', 'get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -4370,206 +3964,222 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'EffectiveStartTime', + 'name' => 'CreateTimeEnd', 'in' => 'query', - 'schema' => [ - 'title' => '生效开始时间', - 'description' => '生效开始时间', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1684750028000', - ], + 'schema' => ['description' => '创建时间段止(缺省查询当前时间最近1小时内订单),格式:YYYY-MM-ddTHH:mm:ssZ,时区: UTC', 'type' => 'string', 'required' => false, 'example' => '2016-05-23T12:00:00Z'], ], [ - 'name' => 'EffectiveEndTime', + 'name' => 'PageNum', 'in' => 'query', - 'schema' => [ - 'title' => '生效结束时间', - 'description' => '生效结束时间', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1708423156000', - ], + 'schema' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], ], [ - 'name' => 'ExpireStartDate', + 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'title' => '失效开始时间', - 'description' => '失效开始时间', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1684750028000', - ], + 'schema' => ['description' => '每页条数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], [ - 'name' => 'ExpireEndDate', + 'name' => 'ProductCode', 'in' => 'query', - 'schema' => [ - 'title' => '失效结束时间', - 'description' => '失效结束时间', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1708423156000', - ], + 'schema' => ['description' => '产品代码。', 'type' => 'string', 'required' => false, 'example' => 'rds'], ], [ - 'name' => 'Status', + 'name' => 'ProductType', 'in' => 'query', - 'schema' => [ - 'title' => '状态', - 'description' => '状态', - 'type' => 'string', - 'required' => false, - 'example' => 'AVAILABLE', - ], + 'schema' => ['description' => '产品类型。', 'type' => 'string', 'required' => false, 'example' => 'rds'], ], [ - 'name' => 'CouponType', + 'name' => 'SubscriptionType', 'in' => 'query', - 'schema' => [ - 'title' => '优惠券类型', - 'description' => '优惠券类型', - 'type' => 'string', - 'required' => false, - 'example' => 'CERTAIN', - ], + 'schema' => ['description' => '订阅类型。取值:'."\n" + .'- Subscription:预付费。'."\n" + .'- PayAsYouGo:后付费。', 'type' => 'string', 'required' => false, 'example' => 'Subscription'], ], [ - 'name' => 'Nbid', + 'name' => 'OrderType', 'in' => 'query', - 'schema' => [ - 'title' => '一级场信息', - 'description' => '一级场信息', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', - ], + 'schema' => ['description' => '订单类型,取值范围'."\n" + .'- New 新购'."\n" + .'- Renew 续费'."\n" + .'- Upgrade 升级'."\n" + .'- TempUpgrade 短时升级'."\n" + .'- Downgrade 降级'."\n" + .'- Refund 退款'."\n" + .'- Convert 付费类型转换'."\n" + .'- ResizeDisk 调整磁盘大小'."\n" + .'- CompensatoryRenew 补偿续费'."\n" + .'- IncreaseUpgrade 带宽升级'."\n" + .'- Exchange 换购'."\n" + .'- ChangeOperatingSystem 更换操作系统', 'type' => 'string', 'required' => false, 'example' => 'New'], ], [ - 'name' => 'CouponId', + 'name' => 'PaymentStatus', 'in' => 'query', - 'schema' => [ - 'title' => '优惠券id', - 'description' => '优惠券id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '351430260343', - ], + 'schema' => ['description' => '支付状态。非退款订单,取值范围:'."\n" + .'- Unpaid:未支付。'."\n" + .'- Paid:已支付。'."\n" + .'- Cancelled:已作废。'."\n" + ."\n" + .'> 对于退款订单可置NULL。', 'type' => 'string', 'required' => false, 'example' => 'Paid'], ], [ - 'name' => 'CouponNo', + 'name' => 'CreateTimeStart', 'in' => 'query', - 'schema' => [ - 'title' => '券编码', - 'description' => '券编码', - 'type' => 'string', - 'required' => false, - 'example' => '554863270150', - ], + 'schema' => ['description' => '创建时间段起(缺省查询当前时间最近1小时内订单),格式:YYYY-MM-ddTHH:mm:ssZ,时区: UTC', 'type' => 'string', 'required' => false, 'example' => '2016-05-23T13:00:00Z'], ], [ - 'name' => 'CurrentPage', + 'name' => 'MemberUid', 'in' => 'query', + 'schema' => ['description' => '企业多账号中成员账号UID。无此场景,不用填写。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1779628988149763'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '当前页码', - 'description' => '当前页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => '状态码。', 'type' => 'string', 'example' => 'Success'], + 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'Successful!'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4'], + 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HostName' => ['description' => '主机名。', 'type' => 'string', 'example' => 'test'], + 'PageNum' => ['description' => '分页数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'PageSize' => ['description' => '每页条数。建议每页最大20条,条数过多会导致超时。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'TotalCount' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'OrderList' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'Order' => [ + 'description' => '订单列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'AfterTaxAmount' => ['description' => '税后金额。', 'type' => 'string', 'example' => '66'], + 'ProductCode' => ['description' => '主产品代码。', 'type' => 'string', 'example' => 'rds'], + 'CreateTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2017-06-08T09:41:30Z'], + 'ProductType' => ['description' => '主产品类型。', 'type' => 'string', 'example' => 'rds'], + 'RelatedOrderId' => ['description' => '关联订单ID。', 'type' => 'string', 'example' => '234535345345342'], + 'PaymentCurrency' => ['description' => '支付币种。 CNY:人民币。 USD:美元。 JPY:日元', 'type' => 'string', 'example' => 'CNY'], + 'PaymentTime' => ['description' => '支付时间。', 'type' => 'string', 'example' => '2017-06-08T09:41:30Z'], + 'Tax' => ['description' => '税。仅在国际站点使用', 'type' => 'string', 'example' => '1'], + 'OrderId' => ['description' => '订单号', 'type' => 'string', 'example' => '237258627070169'], + 'SubscriptionType' => ['description' => '订阅类型,'."\n" + .'Subscription:预付费。'."\n" + .'PayAsYouGo:按量付费。', 'type' => 'string', 'example' => 'Subscription'], + 'PretaxGrossAmount' => ['description' => '原始金额。', 'type' => 'string', 'example' => '0'], + 'OrderType' => ['description' => '订单类型,取值范围'."\n" + .'- New 新购'."\n" + .'- Renew 续费'."\n" + .'- Upgrade 升级'."\n" + .'- TempUpgrade 短时升级'."\n" + .'- Downgrade 降级'."\n" + .'- Refund 退款'."\n" + .'- Convert 付费类型转换'."\n" + .'- ResizeDisk 调整磁盘大小'."\n" + .'- CompensatoryRenew 补偿续费'."\n" + .'- IncreaseUpgrade 带宽升级'."\n" + .'- Exchange 换购'."\n" + .'- ChangeOperatingSystem 更换操作系统', 'type' => 'string', 'example' => 'New'], + 'PretaxAmount' => ['description' => '订单应付金额。', 'type' => 'string', 'example' => '0'], + 'Currency' => ['description' => '币种', 'type' => 'string', 'example' => 'CNY'], + 'CommodityCode' => ['description' => '商品Code。', 'type' => 'string', 'example' => 'rds'], + 'PaymentStatus' => ['description' => '支付状态。非退款订单,取值范围:'."\n" + .'- Unpaid:未支付。'."\n" + .'- Paid:已支付。'."\n" + .'- Cancelled:已作废。'."\n" + ."\n" + .'> 对于退款订单可置NULL。', 'type' => 'string', 'example' => 'Paid'], + 'PretaxAmountLocal' => ['description' => '本币金额。', 'type' => 'string', 'example' => '0'], + ], + 'description' => '', + ], + ], + ], + 'description' => '', + ], + ], + ], + ], + 'description' => '', ], ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidOwner', 'errorMessage' => 'The specified owner doesn\'t belong to caller.', 'description' => '用户身份错误'], + ], [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'title' => '每页大小', - 'description' => '每页大小', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '20', + ['errorCode' => 'InvalidCaller', 'errorMessage' => 'The caller\'s primary account is invalid or does not have permission to query enterprise member account information.', 'description' => '调用者主账号无效 或者 无权限查询企业成员账号信息。'], + ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"Successful!\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"HostName\\": \\"test\\",\\n \\"PageNum\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 1,\\n \\"OrderList\\": {\\n \\"Order\\": [\\n {\\n \\"AfterTaxAmount\\": \\"66\\",\\n \\"ProductCode\\": \\"rds\\",\\n \\"CreateTime\\": \\"2017-06-08T09:41:30Z\\",\\n \\"ProductType\\": \\"rds\\",\\n \\"RelatedOrderId\\": \\"234535345345342\\",\\n \\"PaymentCurrency\\": \\"CNY\\",\\n \\"PaymentTime\\": \\"2017-06-08T09:41:30Z\\",\\n \\"Tax\\": \\"1\\",\\n \\"OrderId\\": \\"237258627070169\\",\\n \\"SubscriptionType\\": \\"Subscription\\",\\n \\"PretaxGrossAmount\\": \\"0\\",\\n \\"OrderType\\": \\"New\\",\\n \\"PretaxAmount\\": \\"0\\",\\n \\"Currency\\": \\"CNY\\",\\n \\"CommodityCode\\": \\"rds\\",\\n \\"PaymentStatus\\": \\"Paid\\",\\n \\"PretaxAmountLocal\\": \\"0\\"\\n }\\n ]\\n }\\n }\\n}","type":"json"}]', + 'title' => '订单列表查询服务', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bssapi:QueryOrders', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + ], + 'ListFundAccount' => [ + 'summary' => '查询资金账户列表', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'EcIdAccountIds', + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'QueryOnlyManage', + 'in' => 'formData', + 'schema' => ['title' => '只查询管理的账户列表,默认false', 'description' => '只查询管理的账户列表,默认false', 'type' => 'boolean', 'required' => false, 'default' => 'false'], + ], + [ + 'name' => 'QueryOnlyInUse', + 'in' => 'formData', + 'schema' => ['title' => '只查询在用的账户列表,默认为false', 'description' => '只查询在用的账户列表,默认为false', 'type' => 'boolean', 'required' => false, 'default' => 'false'], + ], + [ + 'name' => 'Nbid', 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'title' => '企业与账号列表,为空表示查询当前账号自身', - 'description' => '企业与账号列表,为空表示查询当前账号自身', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'EcId' => [ - 'title' => '企业实体ID', - 'description' => '企业实体ID', - 'type' => 'string', - 'required' => true, - 'example' => '1501603440974415', - ], - 'AccountIds' => [ - 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', - 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', - 'type' => 'array', - 'items' => [ - 'description' => '成员账号ID。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1501603440974415', - ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'required' => false, - ], + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2084210001'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPageResult<CouponVO>', - 'description' => 'BssApiPageResult<CouponVO>', + 'title' => 'BssApiListResult<BillingAccount>', + 'description' => 'BssApiListResult<BillingAccount>', 'type' => 'object', 'properties' => [ - 'CurrentPage' => [ - 'title' => '当前页码', - 'description' => '当前页码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '每页大小', - 'description' => '每页大小', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], 'Data' => [ 'title' => '数据列表', 'description' => '数据列表', @@ -4577,213 +4187,78 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'CouponId' => [ - 'title' => '优惠券id', - 'description' => '优惠券ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '59243658', - ], - 'CouponNo' => [ - 'title' => '券编码', - 'description' => '券编码', - 'type' => 'string', - 'example' => '731074910070', - ], - 'CouponType' => [ - 'title' => '优惠券类型', - 'description' => '优惠券类型', - 'type' => 'string', - 'example' => 'CERTAIN', - ], - 'CouponTypeName' => [ - 'title' => '优惠券类型名称', - 'description' => '优惠券类型名称', - 'type' => 'string', - 'example' => '满减券', - ], - 'Amount' => [ - 'title' => '面值', - 'description' => '面值', - 'type' => 'string', - 'example' => '9929.750000', - ], - 'RemainAmount' => [ - 'title' => '剩余金额', - 'description' => '剩余金额', - 'type' => 'string', - 'example' => '100.00', - ], - 'ItemNames' => [ - 'title' => '产品code列表', - 'description' => '产品code列表', - 'type' => 'array', - 'items' => [ - 'description' => '适用商品名称', - 'type' => 'string', - 'example' => '全产品适用', - ], - ], - 'UniversalType' => [ - 'title' => '优惠券适用范围', - 'description' => '优惠券适用范围', - 'type' => 'string', - 'example' => 'UNIVERSAL', - ], - 'YhOrderTypes' => [ - 'title' => '优惠券适用订单类型列表', - 'description' => '优惠券适用订单类型列表', - 'type' => 'array', - 'items' => [ - 'description' => '适用订单类型', - 'type' => 'string', - 'example' => '新购', - ], - ], - 'Status' => [ - 'title' => '状态', - 'description' => '状态', - 'type' => 'string', - 'example' => 'Available', - ], - 'GmtCreate' => [ - 'description' => '发券时间', - 'type' => 'string', - 'example' => '2021-03-02T15:12Z'."\n", - ], - 'StartTime' => [ - 'title' => '开始时间', - 'description' => '开始时间', - 'type' => 'string', - 'example' => '2021-03-02T15:12Z', - ], - 'EndTime' => [ - 'title' => '结束时间', - 'description' => '结束时间', - 'type' => 'string', - 'example' => '2021-03-06T15:12Z', - ], - 'Site' => [ - 'title' => '站点', - 'description' => '站点', - 'type' => 'string', - 'example' => 'CHINA', - ], - 'SiteName' => [ - 'title' => '站点名称', - 'description' => '站点名称', - 'type' => 'string', - 'example' => '官网自营', - ], - 'Remark' => [ - 'title' => '备注', - 'description' => '备注', - 'type' => 'string', - 'example' => '新买28号', - ], - 'MoneyLimit' => [ - 'title' => '金额限制', - 'description' => '金额限制', - 'type' => 'string', - 'example' => '无订单金额限制', - ], - 'Currency' => [ - 'title' => '币种', - 'description' => '币种', - 'type' => 'string', - 'example' => 'CNY', - ], - 'SuitAccount' => [ - 'title' => '适用帐号', - 'description' => '适用账号', - 'type' => 'string', - 'example' => '1902671110151254', - ], - 'OrderTimeRule' => [ - 'title' => '订单时长限制规则', - 'description' => '订单时长限制规则', - 'type' => 'string', - 'example' => '预付费规则:购买订单时长大于3600s才能使用', - ], - 'ShareUidList' => [ - 'title' => '共享帐号列表', - 'description' => '共享账号列表', + 'Site' => ['title' => '站点', 'description' => '站点', 'type' => 'string', 'example' => '26842'], + 'FundAccountOwnerAccountId' => ['title' => '账户归属人的账号accountId', 'description' => '账户归属人的账号accountId', 'type' => 'string', 'example' => '132123211'], + 'FundAccountType' => ['title' => '账户类型'."\n" + .'DIRECT_USER-阿里云直客账户; '."\n" + .'RESELLER_QUOTA-生态账户', 'description' => '账户类型'."\n" + .'DIRECT_USER-阿里云直客账户; '."\n" + .'RESELLER_QUOTA-生态账户', 'type' => 'string', 'example' => 'DIRECT_USER'], + 'FundAccountId' => ['title' => '账户Id', 'description' => '账户Id', 'type' => 'string', 'example' => '1022231'], + 'FundAccountName' => ['title' => '账户名称', 'description' => '账户名称', 'type' => 'string', 'example' => '云某的账户'], + 'Permissions' => [ + 'title' => '用户拥有的账户权限集合'."\n" + .'using - 使用;'."\n" + .'manage - 管理;'."\n" + .'owner - 拥有;', + 'description' => '用户拥有的账户权限集合'."\n" + .'using - 使用;'."\n" + .'manage - 管理;'."\n" + .'owner - 拥有;', 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Uid' => [ - 'title' => '阿里云uid', - 'description' => '阿里云uid', - 'type' => 'string', - 'example' => '1902671110151254', - ], - 'UserNick' => [ - 'title' => '阿里云帐号', - 'description' => '阿里云账号', - 'type' => 'string', - 'example' => '阿里云计算有限公司', - ], - ], - ], - ], - 'SuitItemType' => [ - 'title' => '适用产品类型:all 全产品通用 white 指定产品适用 black 指定产品不适用', - 'description' => '适用产品类型:all 全产品通用 white 指定产品适用 black 指定产品不适用', - 'type' => 'string', - 'example' => 'all', - ], - 'ShowSetDeductTagButton' => [ - 'description' => '是否展示标签抵扣按钮', - 'type' => 'boolean', - 'example' => 'true', - ], - 'CertainAmount' => [ - 'type' => 'string', - ], - 'FirstBuy' => [ - 'title' => '是否有首购限制', - 'description' => '是否有首购限制', - 'type' => 'boolean', - ], + 'items' => ['description' => '权限点', 'type' => 'string', 'example' => 'owner'], + ], + 'Nbid' => ['title' => '一级售卖场', 'description' => '一级售卖场', 'type' => 'string', 'example' => '2684210001'], + 'FundAccountAdminAccountName' => ['title' => '账户对应的MA用户名称', 'description' => '账户对应的MA用户名称', 'type' => 'string', 'example' => '云某的账户'], + 'CreateDate' => ['title' => '账户创建时间', 'description' => '账户创建时间', 'type' => 'string', 'example' => '2024-12-30 12:00:00'], + 'FundAccountAdminAccountId' => ['title' => '账户对应的MA用户accountId', 'description' => '账户对应的MA用户accountId', 'type' => 'string', 'example' => '1232121'], + 'FundAccountStatus' => ['title' => '账户状态'."\n" + .'VALID-有效;'."\n" + .'FROZEN-冻结; '."\n" + .'CLOSED-注销', 'description' => '账户状态'."\n" + .'VALID-有效;'."\n" + .'FROZEN-冻结; '."\n" + .'CLOSED-注销', 'type' => 'string', 'example' => 'VALID'], ], + 'description' => '', ], ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'C880B065-A781-4F19-B6DD-3E0E3B715C64', - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'AccountNoQueryPricePermission', - 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice.', - ], - [ - 'errorCode' => 'SubAccountNoQueryPricePermission', - 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Contact the main account to go to the RAM console for authorization. The Action to be authorized is bss:QueryPrice.', - ], + ['errorCode' => 'RequestTimeout', 'errorMessage' => 'Request timed out. Please try again later.', 'description' => '请求超时,请稍后再试'], + ['errorCode' => 'AccountNotExist', 'errorMessage' => 'Account does not exist.', 'description' => '账号不存在'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"Site\\": \\"26842\\",\\n \\"FundAccountOwnerAccountId\\": \\"132123211\\",\\n \\"FundAccountType\\": \\"DIRECT_USER\\",\\n \\"FundAccountId\\": \\"1022231\\",\\n \\"FundAccountName\\": \\"云某的账户\\",\\n \\"Permissions\\": [\\n \\"owner\\"\\n ],\\n \\"Nbid\\": \\"2684210001\\",\\n \\"FundAccountAdminAccountName\\": \\"云某的账户\\",\\n \\"CreateDate\\": \\"2024-12-30 12:00:00\\",\\n \\"FundAccountAdminAccountId\\": \\"1232121\\",\\n \\"FundAccountStatus\\": \\"VALID\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\"\\n}","type":"json"}]', + 'title' => '查询资金账户列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'bss:DescribeBillingAccount', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 2,\\n \\"Data\\": [\\n {\\n \\"CouponId\\": 59243658,\\n \\"CouponNo\\": \\"731074910070\\",\\n \\"CouponType\\": \\"CERTAIN\\",\\n \\"CouponTypeName\\": \\"满减券\\",\\n \\"Amount\\": \\"9929.750000\\",\\n \\"RemainAmount\\": \\"100.00\\",\\n \\"ItemNames\\": [\\n \\"全产品适用\\"\\n ],\\n \\"UniversalType\\": \\"UNIVERSAL\\",\\n \\"YhOrderTypes\\": [\\n \\"新购\\"\\n ],\\n \\"Status\\": \\"Available\\",\\n \\"GmtCreate\\": \\"2021-03-02T15:12Z\\\\n\\",\\n \\"StartTime\\": \\"2021-03-02T15:12Z\\",\\n \\"EndTime\\": \\"2021-03-06T15:12Z\\",\\n \\"Site\\": \\"CHINA\\",\\n \\"SiteName\\": \\"官网自营\\",\\n \\"Remark\\": \\"新买28号\\",\\n \\"MoneyLimit\\": \\"无订单金额限制\\",\\n \\"Currency\\": \\"CNY\\",\\n \\"SuitAccount\\": \\"1902671110151254\\",\\n \\"OrderTimeRule\\": \\"预付费规则:购买订单时长大于3600s才能使用\\",\\n \\"ShareUidList\\": [\\n {\\n \\"Uid\\": \\"1902671110151254\\",\\n \\"UserNick\\": \\"阿里云计算有限公司\\"\\n }\\n ],\\n \\"SuitItemType\\": \\"all\\",\\n \\"ShowSetDeductTagButton\\": true,\\n \\"CertainAmount\\": \\"\\",\\n \\"FirstBuy\\": true\\n }\\n ],\\n \\"RequestId\\": \\"C880B065-A781-4F19-B6DD-3E0E3B715C64\\"\\n}","type":"json"}]', - 'title' => '查询优惠券列表', ], - 'DescribeCouponItemList' => [ - 'summary' => '查询优惠券可用商品列表', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'ListFundAccountPayRelation' => [ + 'summary' => '查询账户的付款关系', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -4791,136 +4266,48 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'CouponId', - 'in' => 'query', - 'schema' => [ - 'title' => '优惠券id', - 'description' => '优惠券id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '59104570', - ], + 'name' => 'FundAccountId', + 'in' => 'formData', + 'schema' => ['title' => '资金账户Id', 'description' => '资金账户Id', 'type' => 'string', 'required' => true, 'example' => '12323123'], ], [ - 'name' => 'Name', - 'in' => 'query', - 'schema' => [ - 'title' => '商品名称(支持模糊匹配)', - 'description' => '商品名称(支持模糊匹配)', - 'type' => 'string', - 'required' => false, - 'example' => '云服务器ECS', - ], + 'name' => 'Status', + 'in' => 'formData', + 'schema' => ['title' => '关系状态'."\n" + .'valid - 有效'."\n" + .'expired - 无效', 'description' => '关系状态'."\n" + .'valid - 有效'."\n" + .'expired - 无效', 'type' => 'string', 'required' => false, 'example' => 'valid'], ], [ 'name' => 'CurrentPage', 'in' => 'query', - 'schema' => [ - 'title' => '当前页码', - 'description' => '当前页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'default' => '1'], ], [ 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'title' => '每页大小', - 'description' => '每页大小', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], - ], - [ - 'name' => 'EcIdAccountIds', - 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'title' => '企业与账号列表,为空表示查询当前账号自身', - 'description' => '企业与账号列表,为空表示查询当前账号自身', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'EcId' => [ - 'title' => '企业实体ID', - 'description' => '企业实体ID', - 'type' => 'string', - 'required' => true, - 'example' => '1004064243473974', - ], - 'AccountIds' => [ - 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', - 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', - 'type' => 'array', - 'items' => [ - 'description' => '成员账号ID。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1004064243473974', - ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'required' => false, - ], + 'schema' => ['title' => '每页大小', 'description' => '每页大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'default' => '20'], ], [ 'name' => 'Nbid', 'in' => 'query', - 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', - ], + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPageResult<ItemNameVO>', - 'description' => 'BssApiPageResult<ItemNameVO>', + 'title' => 'BssApiPageResult<BillingAccountPayRelation>', + 'description' => 'BssApiPageResult<BillingAccountPayRelation>', 'type' => 'object', 'properties' => [ - 'CurrentPage' => [ - 'title' => '当前页码', - 'description' => '当前页码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '每页大小', - 'description' => '每页大小', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], + 'CurrentPage' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'default' => '1'], + 'PageSize' => ['title' => '每页大小', 'description' => '每页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'default' => '20'], + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '50'], 'Data' => [ 'title' => '数据列表', 'description' => '数据列表', @@ -4928,325 +4315,378 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'title' => '商品code', - 'description' => '商品code', - 'type' => 'string', - 'example' => 'vm', - ], - 'Name' => [ - 'title' => '商品名称', - 'description' => '商品名称', - 'type' => 'string', - 'example' => '云服务器ECS', - ], + 'FundAccountId' => ['title' => '账户Id', 'description' => '账户Id', 'type' => 'string', 'example' => '123231213'], + 'FundAccountOwnerAccountId' => ['title' => '账户归属人的阿里云accountId', 'description' => '账户归属人的阿里云accountId', 'type' => 'string', 'example' => '312328912'], + 'AccountId' => ['title' => '付款关系关联的用户accountId,即使用该账户付款的账号', 'description' => '付款关系关联的用户accountId,即使用该账户付款的账号', 'type' => 'string', 'example' => '32812132121'], + 'AccountName' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => '云某的名称'], + 'EffectiveTime' => ['title' => '付款关系生效时间', 'description' => '付款关系生效时间', 'type' => 'string', 'example' => '2024-12-01 12:00:10'], + 'IneffectiveTime' => ['title' => '付款关系失效时间', 'description' => '付款关系失效时间', 'type' => 'string', 'example' => '2025-01-01 12:12:12'], + 'Status' => ['title' => '关系状态'."\n" + .'valid - 有效;'."\n" + .'expired - 无效', 'description' => '关系状态'."\n" + .'valid - 有效;'."\n" + .'expired - 无效', 'type' => 'string', 'example' => 'valid'], + 'RelationType' => ['title' => '关系类型,收款关系/付款关系', 'description' => '关系类型,收款关系/付款关系', 'type' => 'string', 'example' => 'PAYMENT'], + 'OperatorType' => ['title' => '授权操作人类型'."\n" + .'aliyun_pk - 用户;'."\n" + .'system - 阿里云系统;', 'description' => '授权操作人类型'."\n" + .'aliyun_pk - 用户;'."\n" + .'system - 阿里云系统;', 'type' => 'string', 'example' => 'aliyun_pk'], + 'OperatorNo' => ['title' => '授权操作人'."\n" + .'操作人类型为aliyun_pk时,operatorNo为阿里云accountId', 'description' => '授权操作人'."\n" + .'操作人类型为aliyun_pk时,operatorNo为阿里云accountId', 'type' => 'string', 'example' => '1232343423'], + 'OperatorName' => ['title' => '操作人名称'."\n" + .'操作人类型为aliyun_pk时, 操作人名称为阿里云昵称'."\n" + .'操作人类型为system时, 操作人名称为"阿里云小二"', 'description' => '操作人名称'."\n" + .'操作人类型为aliyun_pk时, 操作人名称为阿里云昵称'."\n" + .'操作人类型为system时, 操作人名称为"阿里云小二"', 'type' => 'string', 'example' => '云某的名称'], + 'Site' => ['title' => '站点', 'description' => '站点', 'type' => 'string', 'example' => '26842'], + 'Nbid' => ['title' => '一级售卖场', 'description' => '一级售卖场', 'type' => 'string', 'example' => '2684210001'], + 'Ecid' => ['title' => '付款关系关联的用户的企业实体id', 'description' => '付款关系关联的用户的企业实体id', 'type' => 'string', 'example' => '213231232'], ], + 'description' => '', ], ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'EAE08A27-386C-579E-966D-8853EC3C5D0E', - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 5,\\n \\"Data\\": [\\n {\\n \\"Code\\": \\"vm\\",\\n \\"Name\\": \\"云服务器ECS\\"\\n }\\n ],\\n \\"RequestId\\": \\"EAE08A27-386C-579E-966D-8853EC3C5D0E\\"\\n}","type":"json"}]', - 'title' => '查询优惠券可用商品列表', - ], - 'CreateReportDefinition' => [ - 'summary' => '创建账单报告订阅。', - 'methods' => [ - 'post', + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'RequestTimeout', 'errorMessage' => 'Request timed out. Please try again later.', 'description' => '请求超时,请稍后再试'], + ['errorCode' => 'NoFundAccountPermission', 'errorMessage' => 'The caller does not have permission for the specified fund account.', 'description' => '当前登录账号没有权限操作指定账户。'], + ['errorCode' => 'AccountNotExist', 'errorMessage' => 'Account does not exist.', 'description' => '账号不存在'], + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified request contains invalid parameters.', 'description' => ''], + ], ], - 'schemes' => [ - 'https', + 'title' => '查询账户的付款关系', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 50,\\n \\"Data\\": [\\n {\\n \\"FundAccountId\\": \\"123231213\\",\\n \\"FundAccountOwnerAccountId\\": \\"312328912\\",\\n \\"AccountId\\": \\"32812132121\\",\\n \\"AccountName\\": \\"云某的名称\\",\\n \\"EffectiveTime\\": \\"2024-12-01 12:00:10\\",\\n \\"IneffectiveTime\\": \\"2025-01-01 12:12:12\\",\\n \\"Status\\": \\"valid\\",\\n \\"RelationType\\": \\"PAYMENT\\",\\n \\"OperatorType\\": \\"aliyun_pk\\",\\n \\"OperatorNo\\": \\"1232343423\\",\\n \\"OperatorName\\": \\"云某的名称\\",\\n \\"Site\\": \\"26842\\",\\n \\"Nbid\\": \\"2684210001\\",\\n \\"Ecid\\": \\"213231232\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\"\\n}","type":"json"}]', + ], + 'ListInvoiceCandidate' => [ + 'summary' => '查询开票对象数据,可根据该数据进行开票', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'ReportSourceType', - 'in' => 'formData', + 'name' => 'Status', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'description' => '订阅来源 OSS/MC', - 'type' => 'string', + 'title' => '状态', + 'description' => '开票对象状态列表', + 'type' => 'array', + 'items' => [ + 'description' => '开票对象状态', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'enumValueTitles' => ['已开票', '未开票(可开票)', '部分开票', '开票处理中,被锁定'], + 'example' => '1', + 'enum' => ['0', '1', '2', '3'], + ], 'required' => false, - 'example' => 'OSS', + 'enumValueTitles' => [], + 'enum' => ['0', '1', '2', '3'], ], ], [ - 'name' => 'ReportType', + 'name' => 'Types', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'title' => '账单存储类型,类型来源参考API:ListReportTypesForReportDefinition', - 'description' => '订阅类型。取值类型:'."\n" - .'- BillingItemDetailForBillingPeriod:计费项消费明细。'."\n" - .'- InstanceDetailForBillingPeriod:实例消费明细。'."\n" - .'- BillingItemDetailMonthly:计费项消费账期汇总。', - 'type' => 'string', - 'required' => true, - 'example' => 'BillingItemDetailForBillingPeriod', + 'title' => '类型', + 'description' => '开票对象类型列表', + 'type' => 'array', + 'items' => [ + 'description' => '开票对象类型', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'enumValueTitles' => [1 => '订单', '账单', '合同', '调账账单', '退款订单', 7 => '调账订单', '佣金账单'], + 'example' => '1', + 'enum' => ['1', '2', '3', '4', '5', '6', '7', '8'], + ], + 'required' => false, + 'enumValueTitles' => [], + 'enum' => ['1', '2', '3', '4', '5', '6', '7', '8'], ], ], [ - 'name' => 'BeginBillingCycle', + 'name' => 'BusinessIds', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'title' => '推送起始账期。订阅成功后,系统会自动推送起始账期到当前时间的数据。月账单PDF订阅时此参数无效,不会对历史数据重新推送。最多可推送最近1年内数据。', - 'description' => '推送起始账期。订阅成功后,系统会自动推送起始账期到当前时间的数据。月账单PDF订阅时此参数无效,不会对历史数据重新推送。最多可推送最近1年内数据。', - 'type' => 'string', + 'title' => '业务单据号', + 'description' => '业务单据号列表', + 'type' => 'array', + 'items' => ['description' => '业务单据号。如订单号等。', 'type' => 'string', 'required' => false, 'example' => '202506'], 'required' => false, - 'example' => '2025-05', ], ], [ - 'name' => 'OssBucketOwnerAccountId', + 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'description' => '存储文件的Oss Owner对应的UID。如果是Bid/ReSeller订阅,并需要推送到子账号的OSS上时指定,需要此账号为调用账号子账号,并对此账号授予AliyunConsumeDump2OSSRole权限。 普通用户则无需指定,默认为调用账号。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1234567812345678', - ], + 'schema' => ['title' => '开始时间', 'description' => '开始时间。格式:yyyy-mm-dd hh:mm:ss。', 'type' => 'string', 'required' => false, 'example' => '2025-06-01 00:00:00', 'pattern' => '^\\d{4}(-\\d{2}){2}\\s+\\d{2}(:\\d{2}){2}$'], ], [ - 'name' => 'OssBucketName', + 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'description' => 'OSS Bucket存储文件名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'sh-bill', - ], + 'schema' => ['title' => '结束时间', 'description' => '结束时间。格式:yyyy-mm-dd hh:mm:ss。', 'type' => 'string', 'required' => false, 'example' => '2025-07-01 00:00:00', 'pattern' => '^\\d{4}(-\\d{2}){2}\\s+\\d{2}(:\\d{2}){2}$'], ], [ - 'name' => 'OssBucketPath', + 'name' => 'BillingCycles', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'description' => 'OSS Bucket存储路径。', - 'type' => 'string', + 'title' => '账期', + 'description' => '账期列表', + 'type' => 'array', + 'items' => ['description' => '账期', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '202506'], 'required' => false, - 'example' => 'bill/', ], ], [ - 'name' => 'McProject', - 'in' => 'formData', + 'name' => 'InvoiceIssuers', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'description' => 'MC 项目名称。', - 'type' => 'string', + 'title' => '开票主体', + 'description' => '开票主体列表', + 'type' => 'array', + 'items' => ['description' => '开票主体', 'type' => 'string', 'required' => false, 'example' => 'ALIYUN_SERVICE', 'pattern' => '^[0-9a-zA-Z_-]+$'], 'required' => false, - 'example' => 'project', + 'pattern' => '^[0-9a-zA-Z_-]+$', ], ], [ - 'name' => 'McTableName', - 'in' => 'formData', - 'schema' => [ - 'description' => 'MC 订阅表名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'table', - ], + 'name' => 'CurrentPage', + 'in' => 'query', + 'schema' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '1', 'default' => '1'], ], [ - 'name' => 'Nbid', + 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', - ], + 'schema' => ['title' => '每页大小', 'description' => '每页大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'default' => '20'], ], [ - 'name' => 'SplitFileOnUserId', + 'name' => 'EcIdAccountIds', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'title' => '企业与账号列表,为空表示查询当前账号自身', + 'description' => '企业与账号列表,为空表示查询当前账号自身', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'AccountIds' => [ + 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'type' => 'array', + 'items' => ['description' => '成员账号ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1990699401005016'], + 'required' => false, + 'maxItems' => 100, + ], + 'EcId' => ['title' => '企业实体ID', 'description' => '企业实体ID', 'type' => 'string', 'required' => false, 'example' => '12345'], + ], + 'required' => false, + 'description' => '', + ], 'required' => false, ], ], [ - 'name' => 'NotSendOnNoData', + 'name' => 'Nbid', 'in' => 'query', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'type' => 'string', - 'required' => false, + 'title' => 'BssApiPageResult<BssOpenInvoiceEvaluateDTO>', + 'description' => 'BssApiPageResult<BssOpenInvoiceEvaluateDTO>', + 'type' => 'object', + 'properties' => [ + 'CurrentPage' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'PageSize' => ['title' => '每页大小', 'description' => '每页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'Data' => [ + 'title' => '数据列表', + 'description' => '数据列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Status' => ['title' => '开票对象状态', 'description' => '开票对象状态', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'BillingCycle' => ['title' => '账期', 'description' => '账期', 'type' => 'integer', 'format' => 'int32', 'example' => '202506'], + 'AccountId' => ['title' => '账号ID', 'description' => '账号ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1990699401005016'], + 'AcceptedOffsetAmount' => ['title' => '接受冲抵金额', 'description' => '接受冲抵金额', 'type' => 'string', 'example' => '0.01'], + 'ProductName' => ['title' => '产品名称', 'description' => '产品名称', 'type' => 'string', 'example' => '性能测试'], + 'ProductCode' => ['title' => '产品Code', 'description' => '产品Code', 'type' => 'string', 'example' => 'pts'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-91 00:00:00'], + 'TotalAmount' => ['title' => '总金额', 'description' => '总金额', 'type' => 'string', 'example' => '0.01'], + 'ResourceOwnerAccountName' => ['title' => '资源归属账号名称', 'description' => '资源归属账号名称', 'type' => 'string', 'example' => '测试账号'], + 'InvoiceIssuer' => ['title' => '开票主体', 'description' => '开票主体', 'type' => 'string', 'example' => 'ALIYUN_SERVICE'], + 'InvoiceableAmount' => ['title' => '可开票金额', 'description' => '可开票金额', 'type' => 'string', 'example' => '0.01'], + 'OffsetAmount' => ['title' => '冲抵金额', 'description' => '冲抵金额', 'type' => 'string', 'example' => '0'], + 'Type' => ['title' => '开票对象类型', 'description' => '开票对象类型', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ResourceOwnerAccountId' => ['title' => '资源归属账号ID', 'description' => '资源归属账号ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1990699401005016'], + 'CommodityCode' => ['title' => '商品Code', 'description' => '商品Code', 'type' => 'string', 'example' => 'pts'], + 'Id' => ['title' => '开票对象id', 'description' => '开票对象id', 'type' => 'string', 'example' => '12345'], + 'BusinessTime' => ['title' => '业务发生时间', 'description' => '业务发生时间', 'type' => 'string', 'example' => '2025-06-01 00:00:00'."\n"], + 'InvoicedAmount' => ['title' => '已开票金额', 'description' => '已开票金额', 'type' => 'string', 'example' => '0'], + 'BusinessId' => ['title' => '业务单据号', 'description' => '业务单据号', 'type' => 'string', 'example' => '202506'], + 'CommodityName' => ['title' => '商品名称', 'description' => '商品名称', 'type' => 'string', 'example' => '性能测试'], + 'AccountName' => ['title' => '账号名称', 'description' => '账号名称', 'type' => 'string', 'example' => '测试账号'], + ], + 'description' => '', + ], + ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4'], + ], ], ], - [ - 'name' => 'SendWithAttach', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'AccountNoQueryPricePermission', 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice.', 'description' => '由于您没有折扣查询权限,无法访问该页面。请联系主账号前往费用中心授权,需要授权的权限点为 queryprice'], + ['errorCode' => 'InnerAccountNoQueryPricePermission', 'errorMessage' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account. More questions please refer to the document.', 'description' => '因数据安全及合规要求,对集团上云账号金额信息权限管控,由此带来的不便敬请谅解。您可以通过HCRM/云间平台查看,详见:https://aliyuque.antfin.com/yunfei.xyf/kr0b8h/yvdm6izaeulmq8g2。'], + ['errorCode' => 'InnerSubAccountNoQueryPricePermission', 'errorMessage' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account.', 'description' => '因数据安全及合规要求,对集团上云账号金额信息权限管控,由此带来的不便敬请谅解。您可以通过HCRM/云间平台查看,详见:https://aliyuque.antfin.com/yunfei.xyf/kr0b8h/yvdm6izaeulmq8g2。'], + ['errorCode' => 'SubAccountNoQueryPricePermission', 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Contact the main account to go to the RAM console for authorization. The Action to be authorized is bss:QueryPrice.', 'description' => '由于您没有折扣查询权限,无法访问该页面。请联系主账号前往RAM控制台授权,需要授权的Action为 bss:QueryPrice'], + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified request contains invalid parameters.', 'description' => ''], + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this action.', 'description' => '您无权执行此操作。'], + ['errorCode' => 'InvoiceCandidateSearchTimeInvalid', 'errorMessage' => 'Invoicing Candidate query time is illegal.', 'description' => '开票对象查询时间不合法'], + ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 100,\\n \\"Data\\": [\\n {\\n \\"Status\\": 1,\\n \\"BillingCycle\\": 202506,\\n \\"AccountId\\": 1990699401005016,\\n \\"AcceptedOffsetAmount\\": \\"0.01\\",\\n \\"ProductName\\": \\"性能测试\\",\\n \\"ProductCode\\": \\"pts\\",\\n \\"CreateTime\\": \\"2025-06-91 00:00:00\\",\\n \\"TotalAmount\\": \\"0.01\\",\\n \\"ResourceOwnerAccountName\\": \\"测试账号\\",\\n \\"InvoiceIssuer\\": \\"ALIYUN_SERVICE\\",\\n \\"InvoiceableAmount\\": \\"0.01\\",\\n \\"OffsetAmount\\": \\"0\\",\\n \\"Type\\": 1,\\n \\"ResourceOwnerAccountId\\": 1990699401005016,\\n \\"CommodityCode\\": \\"pts\\",\\n \\"Id\\": \\"12345\\",\\n \\"BusinessTime\\": \\"2025-06-01 00:00:00\\\\n\\",\\n \\"InvoicedAmount\\": \\"0\\",\\n \\"BusinessId\\": \\"202506\\",\\n \\"CommodityName\\": \\"性能测试\\",\\n \\"AccountName\\": \\"测试账号\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\"\\n}","type":"json"}]', + 'title' => '开票对象查询服务', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'bss:DescribeQueryInvoice', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + ], + 'ListInvoiceTitle' => [ + 'summary' => '查询可用的发票抬头列表', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'IncludeMembers', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'AK' => [], + ], + [ + 'APP' => [], ], ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '', - 'description' => '', + 'title' => 'BssApiListResult<BssInvoiceTitleDTO>', + 'description' => 'BssApiListResult<BssInvoiceTitleDTO>', 'type' => 'object', 'properties' => [ - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '340CAB45-0637-5875-9BE4-EFD5750F6BA5', - ], - 'ReportTaskId' => [ - 'description' => '账单订阅任务ID。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123123', - ], - 'ReportSourceType' => [ - 'description' => '订阅来源 OSS/MC', - 'type' => 'string', - 'example' => 'OSS', - ], - 'ReportSourceName' => [ - 'description' => '订阅来源名称。', - 'type' => 'string', - 'example' => 'OSS', - ], - 'ReportType' => [ - 'title' => '账单存储类型', - 'description' => '订阅类型。取值类型:'."\n" - .'- BillingItemDetailForBillingPeriod:计费项消费明细。'."\n" - .'- InstanceDetailForBillingPeriod:实例消费明细。'."\n" - .'- BillingItemDetailMonthly:计费项消费账期汇总。', - 'type' => 'string', - 'example' => 'BillingItemDetailForBillingPeriod', - ], - 'BeginBillingCycle' => [ - 'title' => '推送起始账期。订阅成功后,系统会自动推送起始账期到当前时间的数据。月账单PDF订阅时此参数无效,不会对历史数据重新推送。最多可推送最近1年内数据。', - 'description' => '推送起始账期。订阅成功后,系统会自动推送起始账期到当前时间的数据。月账单PDF订阅时此参数无效,不会对历史数据重新推送。最多可推送最近1年内数据。', - 'type' => 'string', - 'example' => '2025-05', - ], - 'SubscribeCreateTime' => [ - 'description' => '订阅创建时间。', - 'type' => 'string', - 'example' => '2025-05-21 10:36:31', - ], - 'OssBucketOwnerAccountId' => [ - 'description' => '存储文件的Oss Owner对应的UID。如果是Bid/ReSeller订阅,并需要推送到子账号的OSS上时指定,需要此账号为调用账号子账号,并对此账号授予AliyunConsumeDump2OSSRole权限。 普通用户则无需指定,默认为调用账号。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1234567812345678', - ], - 'OssBucketName' => [ - 'description' => 'OSS Bucket存储文件名称。', - 'type' => 'string', - 'example' => 'sh-bill', - ], - 'OssBucketPath' => [ - 'description' => 'OSS Bucket存储路径。', - 'type' => 'string', - 'example' => 'bill/', + 'Data' => [ + 'title' => '数据列表', + 'description' => '抬头列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'UnifiedSocialCreditCode' => ['title' => '统一社会信用代码', 'description' => '统一社会信用代码。15、17、18、20位字符。', 'type' => 'string', 'example' => '111111111111111'], + 'AccountId' => ['title' => '用户ID', 'description' => '账号ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1990699401005016'], + 'RegisteredAddress' => ['title' => '注册场所地址', 'description' => '注册场所地址', 'type' => 'string', 'example' => '北京市朝阳区'], + 'CreateTime' => ['title' => '创建时间', 'description' => '发票抬头创建时间', 'type' => 'string', 'example' => '2025-06-01 00:00:00'], + 'InvoiceTitle' => ['title' => '发票抬头', 'description' => '发票抬头', 'type' => 'string', 'example' => 'xx公司'], + 'Id' => ['title' => '发票抬头id', 'description' => '发票抬头ID', 'type' => 'string', 'example' => '123456'], + 'BankAccountNumber' => ['title' => '基本开户账号', 'description' => '基本开户账号', 'type' => 'string', 'example' => '1234567890'], + 'RegisteredLandline' => ['title' => '注册固定电话', 'description' => '注册固定电话', 'type' => 'string', 'example' => '010-12345678'], + 'AccountBankName' => ['title' => '开户银行名称', 'description' => '开户银行名称', 'type' => 'string', 'example' => '招商银行'], + ], + 'description' => '', + ], ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'TASK_EXIST', - 'errorMessage' => 'task has already exist.', - ], - [ - 'errorCode' => 'InvalidBucket', - 'errorMessage' => 'The bucket is invalid or the bucket does not belong to you.', - ], - [ - 'errorCode' => 'InvalidHistoricalNbid', - 'errorMessage' => 'Historical field does not support subscription bill.', + ['errorCode' => 'AccountNoQueryPricePermission', 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice.', 'description' => '由于您没有折扣查询权限,无法访问该页面。请联系主账号前往费用中心授权,需要授权的权限点为 queryprice'], + ['errorCode' => 'InnerAccountNoQueryPricePermission', 'errorMessage' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account. More questions please refer to the document.', 'description' => '因数据安全及合规要求,对集团上云账号金额信息权限管控,由此带来的不便敬请谅解。您可以通过HCRM/云间平台查看,详见:https://aliyuque.antfin.com/yunfei.xyf/kr0b8h/yvdm6izaeulmq8g2。'], + ['errorCode' => 'InnerSubAccountNoQueryPricePermission', 'errorMessage' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account.', 'description' => '因数据安全及合规要求,对集团上云账号金额信息权限管控,由此带来的不便敬请谅解。您可以通过HCRM/云间平台查看,详见:https://aliyuque.antfin.com/yunfei.xyf/kr0b8h/yvdm6izaeulmq8g2。'], + ['errorCode' => 'SubAccountNoQueryPricePermission', 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Contact the main account to go to the RAM console for authorization. The Action to be authorized is bss:QueryPrice.', 'description' => '由于您没有折扣查询权限,无法访问该页面。请联系主账号前往RAM控制台授权,需要授权的Action为 bss:QueryPrice'], + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified request contains invalid parameters.', 'description' => ''], + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this action.', 'description' => '您无权执行此操作。'], + ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"UnifiedSocialCreditCode\\": \\"111111111111111\\",\\n \\"AccountId\\": 1990699401005016,\\n \\"RegisteredAddress\\": \\"北京市朝阳区\\",\\n \\"CreateTime\\": \\"2025-06-01 00:00:00\\",\\n \\"InvoiceTitle\\": \\"xx公司\\",\\n \\"Id\\": \\"123456\\",\\n \\"BankAccountNumber\\": \\"1234567890\\",\\n \\"RegisteredLandline\\": \\"010-12345678\\",\\n \\"AccountBankName\\": \\"招商银行\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\"\\n}","type":"json"}]', + 'title' => '发票抬头查询服务', + 'requestParamsDescription' => '无需传入参数,接口会直接查询当前登录UID可用的发票抬头列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'bss:DescribeQueryInvoice', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"\\",\\n \\"RequestId\\": \\"340CAB45-0637-5875-9BE4-EFD5750F6BA5\\",\\n \\"ReportTaskId\\": 123123,\\n \\"ReportSourceType\\": \\"OSS\\",\\n \\"ReportSourceName\\": \\"OSS\\",\\n \\"ReportType\\": \\"BillingItemDetailForBillingPeriod\\",\\n \\"BeginBillingCycle\\": \\"2025-05\\",\\n \\"SubscribeCreateTime\\": \\"2025-05-21 10:36:31\\",\\n \\"OssBucketOwnerAccountId\\": 1234567812345678,\\n \\"OssBucketName\\": \\"sh-bill\\",\\n \\"OssBucketPath\\": \\"bill/\\"\\n}","type":"json"}]', - 'title' => '创建报告订阅', - 'description' => '在调用该接口时,请注意:'."\n" - ."\n" - .'- 用户一次订阅一个类型的账单文件。'."\n" - ."\n" - .'- 订阅后次日开始每日推送上一日生成的账单文件,每月4号推送上月整账期的全量账单文件。月账单PDF每月4号推送上月账单文件。'."\n" - ."\n" - .'- 按天生成的账单文件可能存在时延,延迟生成的账单会在生成次日推送,也可能会包含上一日之前延迟到上一日生成的账单。建议每个月初拉取上个月全量文件。'."\n" - ."\n" - .'> 请按文档流程说明申请权限[账单订阅](https://help.aliyun.com/zh/user-center/user-guide/billing-subscription?spm=5176.21213303.J_v8LsmxMG6alneH-O7TCPa.1.3ef82f3d5ZIf08&scm=20140722.S_help@@%E6%96%87%E6%A1%A3@@2861820._.ID_help@@%E6%96%87%E6%A1%A3@@2861820-RL_%E8%B4%A6%E5%8D%95%E8%AE%A2%E9%98%85-LOC_2024SPHelpResult-OR_ser-PAR1_2150419517478292121114501eaee8-V_4-RE_new5-P0_0-P1_0)'."\n" - ."\n" - .'- 本订阅与费用中心首页的“账单数据存储”为同一功能,订阅互通。'."\n" - ."\n" - .'- 订阅至Bucket下的目录时,请注意符合目录命名规范:'."\n" - ."\n" - .' - 不允许使用表情符,请使用符合要求的 UTF-8 字符。'."\n" - .' - / 用于分割路径,可快速创建子目录,但不要以 / 或 \\ 开头,不要出现连续的 /。'."\n" - .' - 不允许出现名为 .. 的子目录。'."\n" - .' - 总长度控制在 1~254 个字符。'."\n" - ."\n\n" - .'- 文件名:'."\n" - ."\n" - .' - **BillingItemDetailForBillingPeriod**(计费项账单明细)'."\n" - .' '."\n" - .' - 每日推送文件名格式:`UID_BillingItemDetail_YYYYMMDD`,例如:`169**_BillingItemDetail_20190310`。'."\n" - .' '."\n" - .' - 下月初完整文件名格式:`UID_BillingItemDetail_YYYYMM`,例如:`169**_BillingItemDetail_201903`。'."\n" - .' '."\n" - .' - **InstanceDetailForBillingPeriod**(实例账单明细)'."\n" - .' '."\n" - .' - 每日推送文件名格式:`UID_InstanceDetail_YYYYMMDD`,例如:`169**_InstanceDetail_20190310`。'."\n" - .' '."\n" - .' - 下月初完整文件名格式:`UID_InstanceDetail_YYYYMM`,例如:`169**_InstanceDetail_201903`。'."\n" - ."\n" - .' - **InstanceDetailMonthly**(实例账单账期汇总)'."\n" - .' '."\n" - .' - 每日推送文件名格式:`UID_InstanceDetailMonthly_YYYYMM`,例如:`169**_InstanceDetailMonthly_201903`。此文件每日更新月初至当日的全量数据,直至次月4号。'."\n" - ."\n" - .'- 文件类型为csv文件。但如果账单数据行数超过一定阈值,会自动拆分成多个csv文件,并合并压缩成一个zip文件,zip文件名格式相同。', ], 'ListReportDefinitions' => [ 'summary' => '查看已订阅的报告列表', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -5254,23 +4694,12 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'publicInformation', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ 'name' => 'Nbid', 'in' => 'query', - 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', - ], + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], ], ], 'responses' => [ @@ -5287,177 +4716,156 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'ReportTaskId' => [ - 'description' => '账单订阅任务ID。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123321', - ], - 'ReportSourceType' => [ - 'description' => '订阅来源 OSS/MC', - 'type' => 'string', - 'example' => 'OSS', - ], - 'ReportSourceName' => [ - 'description' => '订阅来源名称。', - 'type' => 'string', - 'example' => 'OSS', - ], - 'ReportType' => [ - 'title' => '账单存储类型', - 'description' => '订阅类型。取值类型:'."\n" - .'- BillingItemDetailForBillingPeriod:计费项消费明细。'."\n" - .'- InstanceDetailForBillingPeriod:实例消费明细。'."\n" - .'- BillingItemDetailMonthly:计费项消费账期汇总。', - 'type' => 'string', - 'example' => 'BillingItemDetailForBillingPeriod', - ], - 'BeginBillingCycle' => [ - 'title' => '推送起始账期。订阅成功后,系统会自动推送起始账期到当前时间的数据。月账单PDF订阅时此参数无效,不会对历史数据重新推送。最多可推送最近1年内数据。', - 'description' => '推送起始账期。订阅成功后,系统会自动推送起始账期到当前时间的数据。月账单PDF订阅时此参数无效,不会对历史数据重新推送。最多可推送最近1年内数据。', - 'type' => 'string', - 'example' => '2025-05', - ], - 'SubscribeCreateTime' => [ - 'description' => '订阅创建时间。', - 'type' => 'string', - 'example' => '2025-05-21 10:36:31', - ], - 'OssBucketOwnerAccountId' => [ - 'description' => '存储文件的Oss Owner对应的UID。如果是Bid/ReSeller订阅,并需要推送到子账号的OSS上时指定,需要此账号为调用账号子账号,并对此账号授予AliyunConsumeDump2OSSRole权限。 普通用户则无需指定,默认为调用账号。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1234567812345678', - ], - 'OssBucketName' => [ - 'description' => 'OSS Bucket存储文件名称。', - 'type' => 'string', - 'example' => 'oss-bill', - ], - 'OssBucketPath' => [ - 'description' => 'OSS Bucket存储路径。', - 'type' => 'string', - 'example' => 'bill/', - ], + 'ReportTaskId' => ['description' => '账单订阅任务ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '123321'], + 'ReportSourceType' => ['description' => '订阅来源 OSS/MC', 'type' => 'string', 'example' => 'OSS'], + 'ReportSourceName' => ['description' => '订阅来源名称。', 'type' => 'string', 'example' => 'OSS'], + 'ReportType' => ['title' => '账单存储类型', 'description' => '订阅类型。取值类型:'."\n" + .'- BillingItemDetailForBillingPeriod:计费项消费明细。'."\n" + .'- InstanceDetailForBillingPeriod:实例消费明细。'."\n" + .'- BillingItemDetailMonthly:计费项消费账期汇总。', 'type' => 'string', 'example' => 'BillingItemDetailForBillingPeriod'], + 'BeginBillingCycle' => ['title' => '推送起始账期。订阅成功后,系统会自动推送起始账期到当前时间的数据。月账单PDF订阅时此参数无效,不会对历史数据重新推送。最多可推送最近1年内数据。', 'description' => '推送起始账期。订阅成功后,系统会自动推送起始账期到当前时间的数据。月账单PDF订阅时此参数无效,不会对历史数据重新推送。最多可推送最近1年内数据。', 'type' => 'string', 'example' => '2025-05'], + 'SubscribeCreateTime' => ['description' => '订阅创建时间。', 'type' => 'string', 'example' => '2025-05-21 10:36:31'], + 'OssBucketOwnerAccountId' => ['description' => '存储文件的Oss Owner对应的UID。如果是Bid/ReSeller订阅,并需要推送到子账号的OSS上时指定,需要此账号为调用账号子账号,并对此账号授予AliyunConsumeDump2OSSRole权限。 普通用户则无需指定,默认为调用账号。', 'type' => 'integer', 'format' => 'int64', 'example' => '1234567812345678'], + 'OssBucketName' => ['description' => 'OSS Bucket存储文件名称。', 'type' => 'string', 'example' => 'oss-bill'], + 'OssBucketPath' => ['description' => 'OSS Bucket存储路径。', 'type' => 'string', 'example' => 'bill/'], ], + 'description' => '', ], ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F', - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidHistoricalNbid', - 'errorMessage' => 'Historical field does not support subscription bill.', - ], + ['errorCode' => 'InvalidHistoricalNbid', 'errorMessage' => 'Historical field does not support subscription bill.', 'description' => ''], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ReportDefinitions\\": [\\n {\\n \\"ReportTaskId\\": 123321,\\n \\"ReportSourceType\\": \\"OSS\\",\\n \\"ReportSourceName\\": \\"OSS\\",\\n \\"ReportType\\": \\"BillingItemDetailForBillingPeriod\\",\\n \\"BeginBillingCycle\\": \\"2025-05\\",\\n \\"SubscribeCreateTime\\": \\"2025-05-21 10:36:31\\",\\n \\"OssBucketOwnerAccountId\\": 1234567812345678,\\n \\"OssBucketName\\": \\"oss-bill\\",\\n \\"OssBucketPath\\": \\"bill/\\"\\n }\\n ],\\n \\"Metadata\\": \\"\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\"\\n}","type":"json"}]', 'title' => '查看订阅报告', - ], - 'DeleteReportDefinition' => [ - 'summary' => '删除账单报告导出订阅。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'bss:DescribeOss', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'ModifyCostCenter' => [ + 'summary' => '修改财务单元', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'publicInformation', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true], 'parameters' => [ [ - 'name' => 'ReportTaskId', + 'name' => 'CostCenterEntityList', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'description' => '账单订阅任务ID。', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '财务单元实体列表', + 'description' => '财务单元实体列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'CostCenterName' => ['title' => '财务单元的新名字(同一个账号必须唯一)', 'description' => '财务单元的新名字(同一个账号必须唯一)', 'type' => 'string', 'required' => true, 'example' => '资源组'], + 'OwnerAccountId' => ['title' => '财务单元的属主用户', 'description' => '财务单元的归属用户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1314839403940987'], + 'CostCenterId' => ['title' => '财务单元ID', 'description' => '财务单元ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '485938'], + ], + 'required' => false, + 'description' => '', + ], 'required' => true, - 'example' => '123123', ], ], [ 'name' => 'Nbid', 'in' => 'query', - 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', - ], + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '', - 'description' => '', + 'title' => 'BssApiListResult<CostCenterOperateDto>', + 'description' => 'BssApiListResult<CostCenterOperateDto>', 'type' => 'object', 'properties' => [ - 'Data' => [ - 'description' => '删除订阅是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F'."\n", + 'CostCenterOperateDto' => [ + 'title' => '数据列表', + 'description' => '数据列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'IsSuccess' => ['title' => '是否成功', 'description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], + 'OwnerAccountId' => ['title' => '财务单元的属主用户', 'description' => '财务单元的归属用户ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1314839403940987'], + 'CostCenterId' => ['title' => '财务单元ID', 'description' => '财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '485938'], + ], + 'description' => '', + ], ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidHistoricalNbid', - 'errorMessage' => 'Historical field does not support subscription bill.', + ['errorCode' => 'MissingParameter', 'errorMessage' => 'The specified request lacks essential parameters.', 'description' => ''], + ['errorCode' => 'CostCenter.MasterAndSubHasNoRelation', 'errorMessage' => 'Your account has no valid account relation yet.', 'description' => ''], + ['errorCode' => 'CostCenter.UnitNotBelongToUser', 'errorMessage' => 'Cost unit is not belong to this user.', 'description' => ''], + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified request contains invalid parameters.', 'description' => ''], + ['errorCode' => 'CostCenter.UnitNameLengthExceed', 'errorMessage' => 'The length of the financial unit name exceeds the maximum limit.', 'description' => ''], + ['errorCode' => 'CostCenter.UnitNameExist', 'errorMessage' => 'The financial unit name already exists.', 'description' => ''], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CostCenterOperateDto\\": [\\n {\\n \\"IsSuccess\\": true,\\n \\"OwnerAccountId\\": 1314839403940987,\\n \\"CostCenterId\\": 485938\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\"\\n}","type":"json"}]', + 'title' => '修改财务单元', + 'description' => '修改一个或多个财务单元', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'bss:ModifyCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\\\n\\"\\n}","type":"json"}]', - 'title' => '删除报告订阅', ], - 'SaveCostCenterShareRule' => [ - 'summary' => '修改财务单元分摊规则,包括对分摊规则的创建、修改、删除', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ModifyCostCenterRule' => [ + 'summary' => '修改财务单元规则', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -5465,189 +4873,150 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OwnerAccountId', - 'in' => 'query', - 'schema' => [ - 'description' => '财务单元的归属用户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1977800748053695', - ], + 'in' => 'formData', + 'schema' => ['title' => '财务单元的属主用户', 'description' => '财务单元的属主用户(废弃)', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1234567812345678'], ], [ - 'name' => 'CreateShareRuleList', - 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'description' => '创建分摊规则信息列表', - 'type' => 'array', - 'items' => [ - 'description' => '对象信息', - 'type' => 'object', - 'properties' => [ - 'ToCostCenterList' => [ - 'description' => '目标财务单元列表', - 'type' => 'array', - 'items' => [ - 'description' => '目标财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '583055', - ], - 'required' => false, - 'maxItems' => 100, - ], - 'FromCostCenterList' => [ - 'description' => '源财务单元列表', - 'type' => 'array', - 'items' => [ - 'description' => '源财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '583053', - ], - 'required' => false, - 'maxItems' => 100, - ], - 'ShareRatioList' => [ - 'description' => '分摊比例列表', - 'type' => 'array', - 'items' => [ - 'description' => '分摊比例', - 'type' => 'number', - 'format' => 'double', - 'required' => false, - 'example' => '0.5', - ], - 'required' => false, - 'maxItems' => 100, - ], - 'ShareRuleName' => [ - 'description' => '分摊规则名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'ShareType' => [ - 'description' => '分摊规则类型', - 'type' => 'string', - 'required' => true, - 'enumValueTitles' => [ - 'AVERAGE' => '按平均拆分', - 'CUSTOM' => '自定义拆分比例', - 'RATIO' => '按比例拆分', - ], - 'example' => 'RATIO', - ], - ], - 'required' => false, - ], - 'required' => false, - ], + 'name' => 'CostCenterId', + 'in' => 'formData', + 'schema' => ['title' => '财务单元ID', 'description' => '财务单元ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '485938'], ], [ - 'name' => 'ModifyShareRuleList', + 'name' => 'FilterExpression', 'in' => 'query', 'style' => 'json', 'schema' => [ - 'description' => '修改分摊规则列表', - 'type' => 'array', - 'items' => [ - 'description' => '对象信息', - 'type' => 'object', - 'properties' => [ - 'ShareRuleId' => [ - 'description' => '分摊规则ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1828', - ], - 'ToCostCenterList' => [ - 'description' => '目标财务单元列表', - 'type' => 'array', - 'items' => [ - 'description' => '目标财务单元ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '规则表达式', + 'description' => '规则表达式', + 'type' => 'object', + 'properties' => [ + 'ExpressionType' => [ + 'description' => '操作类型', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => ['DIMENSION' => '叶子结点过滤类型(code非标签使用)', 'TAG' => '叶子结点过滤类型(code是标签时使用)', 'NARY' => '子条件关系(非叶子条件时使用)'], + 'example' => 'NARY', + ], + 'OperatorType' => [ + 'description' => '关系表达式', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => ['OR' => 'OR', 'AND' => 'AND'], + 'example' => 'AND', + ], + 'Operands' => [ + 'description' => '条件表达式', + 'type' => 'array', + 'items' => ['description' => '条件表达式 **整体结构见示例(可以多层嵌套),下面的字段只是字段说明**', 'type' => 'any', 'required' => false, 'example' => '{'."\n" + .' '."\n" + .' "Operands": ['."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "TAG-xxx",'."\n" + .' "Values": ['."\n" + .' "xxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "TAG"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "INSTANCE_ID",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "LIKE"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "INSTANCE_NICK",'."\n" + .' "Values": ['."\n" + .' "111"'."\n" + .' ],'."\n" + .' "SelectType": "LIKE"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "RESOURCE_GROUP",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "ARTICLE",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "PRODUCT",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "OWNER",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' }'."\n" + .' ]'."\n" + .' }'], + 'required' => false, + ], + 'Operand' => ['description' => '筛选条件(废弃)', 'type' => 'any', 'required' => false, 'example' => '无'], + 'FilterValues' => [ + 'description' => '子条件过滤', + 'type' => 'object', + 'properties' => [ + 'Code' => [ + 'description' => '条件过滤KEY', + 'type' => 'string', 'required' => false, - 'example' => '583056', + 'enumValueTitles' => ['OWNER' => '账号', 'ARTICLE' => '产品明细', 'RESOURCE_GROUP' => '资源组', 'xxx(用户自定义标签key)' => '业务标签,基于用户实际配置值', 'PRODUCT' => '产品', 'INSTANCE_NICK' => '实例名称', 'INSTANCE_ID' => '实例ID(出账粒度)'], + 'example' => 'TAG-test-xxx-key', ], - 'required' => false, - 'maxItems' => 100, - ], - 'FromCostCenterList' => [ - 'description' => '源财务单元列表', - 'type' => 'array', - 'items' => [ - 'description' => '源财务单元ID', - 'type' => 'integer', - 'format' => 'int64', + 'CodeName' => ['description' => '条件过滤KEY名称(废弃)', 'type' => 'string', 'required' => false, 'example' => '无'], + 'Values' => [ + 'description' => '条件过滤值列表', + 'type' => 'array', + 'items' => ['description' => '条件过滤值 INSTANCE_NICK、INSTANCE_NICK时只能录入一个', 'type' => 'string', 'required' => false, 'example' => '["TAG-test-xxx"]'."\n"], 'required' => false, - 'example' => '583052', ], - 'required' => false, - 'maxItems' => 100, - ], - 'ShareRatioList' => [ - 'description' => '分摊比例列表', - 'type' => 'array', - 'items' => [ - 'description' => '分摊比例', - 'type' => 'number', - 'format' => 'double', + 'SelectType' => [ + 'description' => 'code和value关联关系', + 'type' => 'string', 'required' => false, - 'example' => '0.2', + 'enumValueTitles' => ['LIKE' => 'Code时其他情况下使用', 'IN' => 'Code是INSTANCE_NICK、INSTANCE_NICK时使用'], + 'example' => 'IN', ], - 'required' => false, - 'maxItems' => 100, - ], - 'ShareRuleName' => [ - 'description' => '分摊规则名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'ShareType' => [ - 'description' => '分摊规则类型', - 'type' => 'string', - 'required' => true, - 'enumValueTitles' => [ - 'AVERAGE' => '按平均拆分', - 'CUSTOM' => '自定义拆分比例', - 'RATIO' => '按比例拆分', - ], - 'example' => 'CUSTOM', ], + 'required' => false, ], - 'required' => false, - ], - 'required' => false, - ], - ], - [ - 'name' => 'RemoveShareRuleList', - 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'description' => '删除分摊规则列表', - 'type' => 'array', - 'items' => [ - 'description' => '分摊规则ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1827', ], 'required' => false, ], @@ -5655,64 +5024,55 @@ [ 'name' => 'Nbid', 'in' => 'query', - 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', - ], + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPlainResult<CostCenterShareRuleSaveDto>', - 'description' => 'BssApiPlainResult<CostCenterShareRuleSaveDto>', + 'title' => 'BssApiPlainResult<Long>', + 'description' => 'BssApiPlainResult<Long>', 'type' => 'object', 'properties' => [ - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4', - ], - 'Success' => [ - 'description' => '是否成功', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Data' => ['description' => '财务单元分配规则id', 'type' => 'integer', 'format' => 'int64', 'example' => '5632'], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'CostCenter.MasterAndSubHasNoRelation', - 'errorMessage' => 'Your account has no valid account relation yet.', - ], + ['errorCode' => 'CostCenter.MasterAndSubHasNoRelation', 'errorMessage' => 'Your account has no valid account relation yet.', 'description' => ''], + ['errorCode' => 'CostCenter.RuleExpressionIllegal', 'errorMessage' => 'The auto-allocation rule configuration is invalid.', 'description' => ''], + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified request contains invalid parameters.', 'description' => ''], + ['errorCode' => 'CostCenter.UnitNotExist', 'errorMessage' => 'The financial unit does not exist or is invalid.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 5632,\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\"\\n}","type":"json"}]', + 'title' => '修改财务单元自动分配规则', + 'description' => '修改一个或多个财务单元', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'bss:ModifyCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '修改财务单元分摊规则', ], - 'QueryCostCenterShareRule' => [ - 'summary' => '查询财务单元分摊规则', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'QueryCostByCostCenter' => [ + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -5720,410 +5080,165 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ - 'name' => 'OwnerAccountId', + 'name' => 'BillingMonth', 'in' => 'query', - 'schema' => [ - 'description' => '财务单元的归属用户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1529600453335198', - ], + 'schema' => ['title' => '开始月份(格式:YYYYMM)', 'description' => '账期月份(格式:YYYYMM)', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '202506'], ], [ - 'name' => 'NextToken', + 'name' => 'GroupByCostCenterLevel', 'in' => 'query', - 'schema' => [ - 'title' => '下一个查询开始Token,NextToken为空说明没有下一个', - 'description' => '预留字段', - 'type' => 'string', - 'required' => false, - 'example' => 'AAAAAV3MpHK1AP0pfERHZN5pu6nYCisJwqt18pP5E9yb47iu', - ], + 'schema' => ['title' => '是否按财务单元层级展示', 'description' => '是否按财务单元层级汇总展示', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ - 'name' => 'MaxResults', + 'name' => 'OwnerAccountId', 'in' => 'query', - 'schema' => [ - 'title' => '单次查询的最大记录数', - 'description' => '预留字段', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], + 'schema' => ['title' => '用户id', 'description' => '资源归属的账号ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1374729705039203'], ], [ - 'name' => 'EcIdAccountIds', + 'name' => 'Metrics', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'title' => '企业与账号列表,为空表示查询当前账号自身', - 'description' => '企业与账号列表,为空表示查询当前账号自身', - 'type' => 'array', - 'items' => [ - 'description' => '列表信息', - 'type' => 'object', - 'properties' => [ - 'EcId' => [ - 'title' => '企业实体ID', - 'description' => '企业实体ID', - 'type' => 'string', - 'required' => true, - 'example' => '1004064243473974', - ], - 'AccountIds' => [ - 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', - 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', - 'type' => 'array', - 'items' => [ - 'description' => '成员账号ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1501603440974415', - ], - 'required' => false, - 'maxItems' => 100, - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 100, - ], + 'schema' => ['title' => 'REQUIRE_AMOUNT/AMOUNT_AFTER_DISCOUNT/COST_AMOUNT/COST_AMOUNT_COUPON_DEDUCTION_AMOUNT_INCLUDED)', 'description' => '成本类型', 'type' => 'string', 'required' => true, 'example' => 'REQUIRE_AMOUNT'], ], [ - 'name' => 'Nbid', + 'name' => 'DisplayZeroAmountBills', 'in' => 'query', - 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', - ], + 'schema' => ['title' => '是否展示应付金额为0的账单', 'description' => '是否展示应付金额为0的数据行', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiTokenResult<CostCenterShareRuleDto>', - 'description' => 'BssApiTokenResult<CostCenterShareRuleDto>', + 'title' => '', + 'description' => '', 'type' => 'object', 'properties' => [ - 'NextToken' => [ - 'title' => '下一个查询开始Token,NextToken为空说明没有下一个', - 'description' => '预留字段', - 'type' => 'string', - 'example' => 'eyJwYWdlTnVtIjoyLCJwYWdlU2l6ZSI6NH0=', - ], - 'MaxResults' => [ - 'title' => '单次查询的最大记录数', - 'description' => '预留字段', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'Data' => [ - 'title' => '数据列表', - 'description' => '返回数据列表', + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F'], + 'TotalAmount' => ['title' => '所有成本中心的 totalAllocatedAmount 总和', 'description' => '所有成本中心的 totalAllocatedAmount 总和', 'type' => 'string', 'example' => '130296.64'], + 'ConsumeAmountList' => [ + 'title' => '成本中心消费金额明细列表', + 'description' => '成本中心消费金额明细列表', 'type' => 'array', 'items' => [ - 'description' => '对象信息', 'type' => 'object', 'properties' => [ - 'OwnerAccountId' => [ - 'description' => '财务单元的归属用户ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1529600453335198', - ], - 'ShareRuleId' => [ - 'description' => '分摊规则ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1826', - ], - 'ShareRuleName' => [ - 'description' => '分摊规则名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ShareRuleType' => [ - 'description' => '分摊规则类型', - 'type' => 'string', - 'enumValueTitles' => [ - 'AVERAGE' => '按平均拆分', - 'CUSTOM' => '自定义拆分比例', - 'RATIO' => '按比例拆分', - ], - 'example' => 'AVERAGE', - ], - 'FromCostCenterShareRuleDetails' => [ - 'description' => '源财务单元规则信息', - 'type' => 'array', - 'items' => [ - 'description' => '对象信息', - 'type' => 'object', - 'properties' => [ - 'OwnerAccountId' => [ - 'description' => '财务单元的归属用户ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1529600453335198', - ], - 'RootCostCenterId' => [ - 'description' => '根财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '583050', - ], - 'CostCenterId' => [ - 'description' => '财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '637127', - ], - 'ParentCostCenterId' => [ - 'description' => '父财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '637537', - ], - 'PrevCostCenterId' => [ - 'description' => '前序财务单元 ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '583059', - ], - 'CostCenterCode' => [ - 'description' => '财务单元CODE', - 'type' => 'string', - 'example' => '970354711219#', - ], - 'CostCenterName' => [ - 'description' => '财务单元名称', - 'type' => 'string', - 'example' => '成本计划', - ], - 'GmtCreate' => [ - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-07-16 13:49:59', - ], - 'GmtModified' => [ - 'title' => '', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-07-16 13:49:59', - ], - ], - ], - ], - 'ToCostCenterShareRuleDetails' => [ - 'description' => '目标财务单元规则信息', - 'type' => 'array', - 'items' => [ - 'description' => '对象信息', - 'type' => 'object', - 'properties' => [ - 'OwnerAccountId' => [ - 'description' => '财务单元的归属用户ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1529600453335198', - ], - 'RootCostCenterId' => [ - 'description' => '根财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '583050', - ], - 'CostCenterId' => [ - 'description' => '财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '637127', - ], - 'ParentCostCenterId' => [ - 'description' => '父财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '637537', - ], - 'PrevCostCenterId' => [ - 'description' => '前序财务单元 ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '583055', - ], - 'CostCenterCode' => [ - 'description' => '财务单元CODE', - 'type' => 'string', - 'example' => '970354711215#', - ], - 'CostCenterName' => [ - 'description' => '财务单元名称', - 'type' => 'string', - 'example' => '成本分摊', - ], - 'ShareRatio' => [ - 'description' => '分摊比例', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.2', - ], - 'GmtCreate' => [ - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-07-16 13:49:59', - ], - 'GmtModified' => [ - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-07-16 13:49:59', - ], - ], - ], - ], - 'GmtModified' => [ - 'title' => '最近修改时间', - 'description' => '最近修改时间', - 'type' => 'string', - 'example' => '2026-01-01 00:00:00', - ], + 'CostCenterId' => ['title' => '财务单元ID', 'description' => '财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '530658'], + 'CostCenterName' => ['title' => '财务单元名称', 'description' => '财务单元名称', 'type' => 'string', 'example' => '项目组A'], + 'CostCenterCode' => ['title' => '财务单元编码', 'description' => '财务单元编码', 'type' => 'string', 'example' => '15945703968#'], + 'ParentCostCenterId' => ['description' => '父级财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '637537'], + 'PreCostCenterId' => ['description' => '前序财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '6375371'], + 'OwnerAccountId' => ['title' => '用户ID', 'description' => '资源归属的账号ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1857464601594004'], + 'OwnerAccountName' => ['title' => '用户名', 'description' => '资源归属的账号名称', 'type' => 'string', 'example' => '研发团队测试账号'], + 'Level' => ['title' => '层级', 'description' => '层级', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'TotalAllocatedAmount' => ['title' => '应付金额', 'description' => '总和(成本类型金额与公摊金额之和)', 'type' => 'string', 'example' => '100'], + 'DirectAmount' => ['title' => '已分配应付金额', 'description' => '成本类型金额', 'type' => 'string', 'example' => '80'], + 'AllocatedAmount' => ['title' => '公摊金额', 'description' => '公摊金额', 'type' => 'string', 'example' => '20'], + 'TotalAllocatedAmountPercent' => ['title' => '应付金额占比百分比', 'description' => '成本类型金额占比', 'type' => 'string', 'example' => '0.01'], ], + 'description' => '', ], ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F', - ], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'CostCenter.MasterAndSubHasNoRelation', - 'errorMessage' => 'Your account has no valid account relation yet.', - ], - [ - 'errorCode' => 'CostCenter.ResourceAuthFailed', - 'errorMessage' => 'The instance does not belong to the current user.', - ], + ['errorCode' => 'AccountNoQueryPricePermission', 'errorMessage' => 'This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice.', 'description' => '由于您没有折扣查询权限,无法访问该页面。请联系主账号前往费用中心授权,需要授权的权限点为 queryprice'], + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified request contains invalid parameters.', 'description' => ''], + ['errorCode' => 'MissingParameter', 'errorMessage' => 'The specified request lacks essential parameters.', 'description' => ''], + ['errorCode' => 'CostCenter.UnitNotBelongToUser', 'errorMessage' => 'Cost unit is not belong to this user.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'title' => '查询财务单元费用概览结果', + 'summary' => '查询财务单元费用概览', + 'description' => '查询财务单元指定账期费用概览结果', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"eyJwYWdlTnVtIjoyLCJwYWdlU2l6ZSI6NH0=\\",\\n \\"MaxResults\\": 20,\\n \\"TotalCount\\": 20,\\n \\"Data\\": [\\n {\\n \\"OwnerAccountId\\": 1529600453335198,\\n \\"ShareRuleId\\": 1826,\\n \\"ShareRuleName\\": \\"test\\",\\n \\"ShareRuleType\\": \\"AVERAGE\\",\\n \\"FromCostCenterShareRuleDetails\\": [\\n {\\n \\"OwnerAccountId\\": 1529600453335198,\\n \\"RootCostCenterId\\": 583050,\\n \\"CostCenterId\\": 637127,\\n \\"ParentCostCenterId\\": 637537,\\n \\"PrevCostCenterId\\": 583059,\\n \\"CostCenterCode\\": \\"970354711219#\\",\\n \\"CostCenterName\\": \\"成本计划\\",\\n \\"GmtCreate\\": \\"2025-07-16 13:49:59\\",\\n \\"GmtModified\\": \\"2025-07-16 13:49:59\\"\\n }\\n ],\\n \\"ToCostCenterShareRuleDetails\\": [\\n {\\n \\"OwnerAccountId\\": 1529600453335198,\\n \\"RootCostCenterId\\": 583050,\\n \\"CostCenterId\\": 637127,\\n \\"ParentCostCenterId\\": 637537,\\n \\"PrevCostCenterId\\": 583055,\\n \\"CostCenterCode\\": \\"970354711215#\\",\\n \\"CostCenterName\\": \\"成本分摊\\",\\n \\"ShareRatio\\": 0.2,\\n \\"GmtCreate\\": \\"2025-07-16 13:49:59\\",\\n \\"GmtModified\\": \\"2025-07-16 13:49:59\\"\\n }\\n ],\\n \\"GmtModified\\": \\"2026-01-01 00:00:00\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\"\\n}","type":"json"}]', - 'title' => '查询财务单元分摊规则', - 'description' => '用于查询用户财务单元的分摊规则', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\",\\n \\"TotalAmount\\": \\"130296.64\\",\\n \\"ConsumeAmountList\\": [\\n {\\n \\"CostCenterId\\": 530658,\\n \\"CostCenterName\\": \\"项目组A\\",\\n \\"CostCenterCode\\": \\"15945703968#\\",\\n \\"ParentCostCenterId\\": 637537,\\n \\"PreCostCenterId\\": 6375371,\\n \\"OwnerAccountId\\": 1857464601594004,\\n \\"OwnerAccountName\\": \\"研发团队测试账号\\",\\n \\"Level\\": 1,\\n \\"TotalAllocatedAmount\\": \\"100\\",\\n \\"DirectAmount\\": \\"80\\",\\n \\"AllocatedAmount\\": \\"20\\",\\n \\"TotalAllocatedAmountPercent\\": \\"0.01\\"\\n }\\n ]\\n}","type":"json"}]', ], - 'CreateCostCenter' => [ - 'summary' => '创建财务单元', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'QueryCostCenter' => [ + 'summary' => '查询财务单元', + 'methods' => ['post', 'get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'CostCenterEntityList', + 'name' => 'OwnerAccountId', + 'in' => 'query', + 'schema' => ['title' => '财务单元的属主用户', 'description' => '财务单元的归属用户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1314839403940987'], + ], + [ + 'name' => 'ParentCostCenterId', + 'in' => 'query', + 'schema' => ['title' => '父财务单元 ID,-1 表示财务单元根。', 'description' => '父财务单元 ID,-1 表示财务单元根。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '-1'], + ], + [ + 'name' => 'CurrentPage', + 'in' => 'query', + 'schema' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['title' => '每页大小', 'description' => '每页大小', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '20'], + ], + [ + 'name' => 'EcIdAccountIds', 'in' => 'query', 'style' => 'json', 'schema' => [ - 'title' => '财务单元实体列表', - 'description' => '财务单元实体列表', + 'title' => '企业与账号列表,为空表示查询当前账号自身', + 'description' => '企业与账号列表,为空表示查询当前账号自身', 'type' => 'array', 'items' => [ + 'description' => '企业与账号列表,为空表示查询当前账号自身', 'type' => 'object', 'properties' => [ - 'CostCenterName' => [ - 'title' => '财务单元名称(同一个账号必须唯一)', - 'description' => '财务单元名称(同一个账号必须唯一)', - 'type' => 'string', - 'required' => true, - 'example' => '资源组', - ], - 'OwnerAccountId' => [ - 'title' => '新财务单元的属主用户 ID', - 'description' => '新财务单元的归属用户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1314839403940987', - ], - 'ParentCostCenterId' => [ - 'title' => '父财务单元 ID,-1 表示财务单元根。', - 'description' => '父财务单元 ID,-1 表示财务单元根。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '-1', + 'EcId' => ['title' => '企业实体ID', 'description' => '企业实体ID', 'type' => 'string', 'required' => true, 'example' => '1004064243473974'], + 'AccountIds' => [ + 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'type' => 'array', + 'items' => ['description' => '成员账号ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1501603440974415'], + 'required' => false, + 'maxItems' => 100, ], ], 'required' => false, ], - 'required' => true, + 'required' => false, ], ], [ 'name' => 'Nbid', 'in' => 'query', - 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2084210001', - ], + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiListResult<CostCenterCreateDto>', + 'title' => '', 'description' => 'BssApiPageResult<CostCenterDto>', 'type' => 'object', 'properties' => [ + 'CurrentPage' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'PageSize' => ['title' => '每页大小', 'description' => '每页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '30'], 'CostCenterDtoList' => [ 'title' => '数据列表', 'description' => '数据列表', @@ -6131,398 +5246,447 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'CostCenterName' => [ - 'title' => '财务单元名字(同一个账号必须唯一)', - 'description' => '财务单元名字(同一个账号必须唯一)', - 'type' => 'string', - 'example' => '资源组', - ], - 'OwnerAccountId' => [ - 'title' => '财务单元的属主用户', - 'description' => '财务单元的归属用户ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1314839403940987', - ], - 'CostCenterId' => [ - 'title' => '财务单元ID', - 'description' => '财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '485938', - ], - 'ParentCostCenterId' => [ - 'title' => '父级财务单元ID', - 'description' => '父级财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '-1', - ], + 'OwnerAccountId' => ['title' => '财务单元的属主用户', 'description' => '财务单元的归属用户ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1314839403940987'], + 'ParentCostCenterId' => ['title' => '父级财务单元ID', 'description' => '父级财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '-1'], + 'CostCenterId' => ['title' => '财务单元ID', 'description' => '财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '485938'], + 'CostCenterName' => ['title' => '财务单元名字(同一个账号必须唯一)', 'description' => '财务单元名字(同一个账号必须唯一)', 'type' => 'string', 'example' => '资源组'], + 'PrevCostCenterId' => ['title' => '前序财务单元 ID', 'description' => '前序财务单元 ID', 'type' => 'integer', 'format' => 'int64', 'example' => '485996'], + 'CostCenterCode' => ['title' => '财务单元CODE', 'description' => '财务单元CODE', 'type' => 'string', 'example' => '15945703968#'], + 'Level' => ['title' => '财务单元节点级数', 'description' => '财务单元节点级数', 'type' => 'integer', 'format' => 'int32', 'example' => 'loose'], + 'Priority' => ['title' => '财务单元优先级', 'type' => 'integer', 'format' => 'int32'], ], + 'description' => '', ], ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'C1BD134E-D914-6AE0-1901-AEB2A99FA205', - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => 'Id of the request', 'type' => 'string', 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'CostCenter.MasterAndSubHasNoRelation', - 'errorMessage' => 'Your account has no valid account relation yet.', - ], - [ - 'errorCode' => 'CostCenter.UnitNameLengthExceed', - 'errorMessage' => 'The length of the financial unit name exceeds the maximum limit.', - ], - [ - 'errorCode' => 'CostCenter.UnitNotBelongToUser', - 'errorMessage' => 'Cost unit is not belong to this user.', - ], - [ - 'errorCode' => 'CostCenter.UnitNameExist', - 'errorMessage' => 'The financial unit name already exists.', - ], - [ - 'errorCode' => 'CostCenter.UnitNumberExceed', - 'errorMessage' => 'The maximum number of financial units has been exceeded.', - ], - [ - 'errorCode' => 'CostCenter.UnitNotExist', - 'errorMessage' => 'The financial unit does not exist or is invalid.', - ], - [ - 'errorCode' => 'CostCenter.UnitLevelExceed', - 'errorMessage' => 'The depth of the financial unit exceeds the maximum hierarchy level.', - ], - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => 'The specified request contains invalid parameters.', - ], - [ - 'errorCode' => 'MissingParameter', - 'errorMessage' => 'The specified request lacks essential parameters.', - ], + ['errorCode' => 'CostCenter.MasterAndSubHasNoRelation', 'errorMessage' => 'Your account has no valid account relation yet.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询财务单元', + 'description' => '查询父财务单元及其子财务单元', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CostCenterDtoList\\": [\\n {\\n \\"CostCenterName\\": \\"资源组\\",\\n \\"OwnerAccountId\\": 1314839403940987,\\n \\"CostCenterId\\": 485938,\\n \\"ParentCostCenterId\\": -1\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"C1BD134E-D914-6AE0-1901-AEB2A99FA205\\"\\n}","type":"json"}]', - 'title' => '创建财务单元', - 'description' => '创建一个或多个财务单元。', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 30,\\n \\"CostCenterDtoList\\": [\\n {\\n \\"OwnerAccountId\\": 1314839403940987,\\n \\"ParentCostCenterId\\": -1,\\n \\"CostCenterId\\": 485938,\\n \\"CostCenterName\\": \\"资源组\\",\\n \\"PrevCostCenterId\\": 485996,\\n \\"CostCenterCode\\": \\"15945703968#\\",\\n \\"Level\\": 0,\\n \\"Priority\\": 0\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\"\\n}","type":"json"}]', ], - 'ModifyCostCenter' => [ - 'summary' => '修改财务单元', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'QueryCostCenterResource' => [ + 'path' => '', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - 'autoTest' => true, - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'CostCenterEntityList', + 'name' => 'OwnerAccountId', + 'in' => 'formData', + 'schema' => ['description' => '财务单元的属主用户ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1234567812345678'], + ], + [ + 'name' => 'CostCenterId', + 'in' => 'formData', + 'schema' => ['description' => '财务单元的ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123456'], + ], + [ + 'name' => 'NextToken', 'in' => 'query', - 'style' => 'json', + 'allowEmptyValue' => true, + 'schema' => ['title' => '下一个查询开始Token,NextToken为空说明没有下一个', 'description' => '下一个查询开始Token,NextToken为空说明没有下一个', 'type' => 'string', 'required' => false, 'example' => 'CAESEgoQCg4KCmd'], + ], + [ + 'name' => 'MaxResults', + 'in' => 'query', + 'allowEmptyValue' => true, + 'schema' => ['title' => '单次查询的最大记录数', 'description' => '单次查询的最大记录数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '200'], + ], + [ + 'name' => 'EcIdAccountIds', + 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'title' => '财务单元实体列表', - 'description' => '财务单元实体列表', + 'title' => '企业与账号列表,为空表示查询当前账号自身', + 'description' => '企业与账号列表,为空表示查询当前账号自身', 'type' => 'array', 'items' => [ + 'description' => '企业与账号列表', 'type' => 'object', 'properties' => [ - 'CostCenterName' => [ - 'title' => '财务单元的新名字(同一个账号必须唯一)', - 'description' => '财务单元的新名字(同一个账号必须唯一)', - 'type' => 'string', - 'required' => true, - 'example' => '资源组', - ], - 'OwnerAccountId' => [ - 'title' => '财务单元的属主用户', - 'description' => '财务单元的归属用户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1314839403940987', - ], - 'CostCenterId' => [ - 'title' => '财务单元ID', - 'description' => '财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '485938', + 'EcId' => ['title' => '企业实体ID', 'description' => '企业实体ID', 'type' => 'string', 'required' => true, 'example' => '1501603440974415'], + 'AccountIds' => [ + 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'type' => 'array', + 'items' => ['description' => '成员账号ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1501603440974415'], + 'required' => false, + 'maxItems' => 100, ], ], 'required' => false, ], - 'required' => true, + 'required' => false, + 'maxItems' => 100, ], ], [ 'name' => 'Nbid', 'in' => 'query', - 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', - ], + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiListResult<CostCenterOperateDto>', - 'description' => 'BssApiListResult<CostCenterOperateDto>', + 'title' => '', + 'description' => 'BssApiTokenResult<CostCenterResourceDto>', 'type' => 'object', 'properties' => [ - 'CostCenterOperateDto' => [ + 'NextToken' => ['title' => '下一个查询开始Token,NextToken为空说明没有下一个', 'description' => '下一个查询开始Token,NextToken为空说明没有下一个', 'type' => 'string', 'required' => true, 'example' => 'eyJwYWdlTnVtIjoyLCJwYWdlU2l6ZSI6MTB9'], + 'MaxResults' => ['title' => '单次查询的最大记录数', 'description' => '单次查询的最大记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '2000'], + 'CostCenterResourceDtoList' => [ 'title' => '数据列表', 'description' => '数据列表', 'type' => 'array', 'items' => [ + 'description' => '明细数据', 'type' => 'object', 'properties' => [ - 'IsSuccess' => [ - 'title' => '是否成功', - 'description' => '是否成功', - 'type' => 'boolean', - 'example' => 'True', - ], - 'OwnerAccountId' => [ - 'title' => '财务单元的属主用户', - 'description' => '财务单元的归属用户ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1314839403940987', - ], - 'CostCenterId' => [ - 'title' => '财务单元ID', - 'description' => '财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '485938', - ], + 'OwnerAccountId' => ['description' => '财务单元归属客户ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1234567812345678'], + 'OwnerAccountName' => ['description' => '财务单元归属客户名称', 'type' => 'string', 'example' => '客户A'], + 'ResourceUserId' => ['description' => '资源的属主用户ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1234567812345678'], + 'ResourceUserName' => ['description' => '资源的属主用户名称', 'type' => 'string', 'example' => 'test@test.aliyun.com'."\n"], + 'RootCostCenterId' => ['description' => '根财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '-1'], + 'CostCenterId' => ['description' => '财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '123456'], + 'ParentCostCenterId' => ['description' => '父财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '123456'], + 'CostCenterCode' => ['description' => '财务单元code', 'type' => 'string', 'example' => 'code'], + 'CostCenterName' => ['description' => '财务单元名称', 'type' => 'string', 'example' => 'test'], + 'CostCenterCreateTime' => ['description' => '财务单元创建时间', 'type' => 'string', 'example' => '2025-05-18 12:12:25'], + 'CostCenterUpdateTime' => ['description' => '财务单元最后更新时间', 'type' => 'string', 'example' => '2025-05-18 16:12:25'], + 'ResourceUpdateTime' => ['description' => '财务单元最后更新时间(预留字段,当前不可用)', 'type' => 'string', 'example' => '2025-05-18 16:12:25'."\n"], + 'PipCode' => ['description' => '产品Code,与费用中心账单产品Code一致。', 'type' => 'string', 'example' => 'rds'], + 'PipName' => ['description' => '产品名称', 'type' => 'string', 'example' => '云数据库'], + 'CommodityCode' => ['description' => '资源的商品code', 'type' => 'string', 'example' => 'otsbag'], + 'CommodityName' => ['description' => '资源的商品名', 'type' => 'string', 'example' => '云数据库'], + 'ApportionItemCode' => ['description' => '资源分拆code', 'type' => 'string', 'example' => 'test'], + 'ApportionItemName' => ['description' => '资源分拆名', 'type' => 'string', 'example' => 'test'], + 'ResourceId' => ['description' => '资源ID', 'type' => 'string', 'example' => 'OSSBAG-cn-v0h1s4hma018'."\n"], + 'InstanceId' => ['description' => '出账粒度ID', 'type' => 'string', 'example' => 'cn-hangzhou;standard'], + 'ResourceType' => ['description' => '资源类型', 'type' => 'string', 'example' => 'FPT_ossbag_absolute_Storage_bj'], + 'ResourceTag' => ['description' => '资源的Tag标签', 'type' => 'string', 'example' => 'tag'], + 'ResourceNick' => ['description' => '资源的自定义昵称。', 'type' => 'string', 'example' => 'testResource'], + 'ResourceGroup' => ['description' => '资源所属的资源组', 'type' => 'string', 'example' => '默认资源组'."\n"], + 'ResourceSource' => ['description' => '资源来源。取值:'."\n" + .'- AUTO_ALLOCATE:自动分配。'."\n" + .'- MANUAL_ALLOCATE:手动分配。', 'type' => 'string', 'example' => 'MANUAL_ALLOCATE'], + 'RegionNo' => ['type' => 'string', 'example' => 'cn-shanghai'], + 'RegionName' => ['type' => 'string', 'example' => '上海'], + 'RecentBillingMonth' => ['type' => 'integer', 'format' => 'int64', 'example' => '202509'], + 'FinanceUnitRuleVersion' => ['type' => 'integer', 'format' => 'int64', 'example' => '3'], + 'StartBillingMonth' => ['type' => 'integer', 'format' => 'int64', 'example' => '202509'], + 'ApplicablePeriodNum' => ['type' => 'integer', 'format' => 'int64', 'example' => '3'], + 'AddStrategy' => ['type' => 'string', 'example' => 'AUTO_ALLOCATE'], + 'AddStrategyName' => ['type' => 'string', 'example' => '自动分配'], + 'MasterCommodityCode' => ['type' => 'string', 'example' => 'ecs'], + 'MasterInstanceId' => ['type' => 'string', 'example' => 'i-xxxxx'], ], + 'title' => '', ], ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4', - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'MissingParameter', - 'errorMessage' => 'The specified request lacks essential parameters.', - ], - [ - 'errorCode' => 'CostCenter.MasterAndSubHasNoRelation', - 'errorMessage' => 'Your account has no valid account relation yet.', - ], - [ - 'errorCode' => 'CostCenter.UnitNotBelongToUser', - 'errorMessage' => 'Cost unit is not belong to this user.', - ], - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => 'The specified request contains invalid parameters.', - ], - [ - 'errorCode' => 'CostCenter.UnitNameLengthExceed', - 'errorMessage' => 'The length of the financial unit name exceeds the maximum limit.', - ], - [ - 'errorCode' => 'CostCenter.UnitNameExist', - 'errorMessage' => 'The financial unit name already exists.', - ], + ['errorCode' => 'CostCenter.MasterAndSubHasNoRelation', 'errorMessage' => 'Your account has no valid account relation yet.', 'description' => ''], + ['errorCode' => 'CostCenter.ResourceAuthFailed', 'errorMessage' => 'The instance does not belong to the current user.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询财务单元的资源', + 'summary' => '查询用户的财务单元所属的资源实例列表。当 CostCenterId 为 0,表示查未分配的主子资源实例。', + 'changeSet' => [ + ['createdAt' => '2025-07-22T05:47:39.000Z', 'description' => '响应参数发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CostCenterOperateDto\\": [\\n {\\n \\"IsSuccess\\": true,\\n \\"OwnerAccountId\\": 1314839403940987,\\n \\"CostCenterId\\": 485938\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\"\\n}","type":"json"}]', - 'title' => '修改财务单元', - 'description' => '修改一个或多个财务单元', - ], - 'DeleteCostCenter' => [ - 'summary' => '删除财务单元', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'bss:DescribeCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"eyJwYWdlTnVtIjoyLCJwYWdlU2l6ZSI6MTB9\\",\\n \\"MaxResults\\": 200,\\n \\"TotalCount\\": 2000,\\n \\"CostCenterResourceDtoList\\": [\\n {\\n \\"OwnerAccountId\\": 1234567812345678,\\n \\"OwnerAccountName\\": \\"客户A\\",\\n \\"ResourceUserId\\": 1234567812345678,\\n \\"ResourceUserName\\": \\"test@test.aliyun.com\\\\n\\",\\n \\"RootCostCenterId\\": -1,\\n \\"CostCenterId\\": 123456,\\n \\"ParentCostCenterId\\": 123456,\\n \\"CostCenterCode\\": \\"code\\",\\n \\"CostCenterName\\": \\"test\\",\\n \\"CostCenterCreateTime\\": \\"2025-05-18 12:12:25\\",\\n \\"CostCenterUpdateTime\\": \\"2025-05-18 16:12:25\\",\\n \\"ResourceUpdateTime\\": \\"2025-05-18 16:12:25\\\\n\\",\\n \\"PipCode\\": \\"rds\\",\\n \\"PipName\\": \\"云数据库\\",\\n \\"CommodityCode\\": \\"otsbag\\",\\n \\"CommodityName\\": \\"云数据库\\",\\n \\"ApportionItemCode\\": \\"test\\",\\n \\"ApportionItemName\\": \\"test\\",\\n \\"ResourceId\\": \\"OSSBAG-cn-v0h1s4hma018\\\\n\\",\\n \\"InstanceId\\": \\"cn-hangzhou;standard\\",\\n \\"ResourceType\\": \\"FPT_ossbag_absolute_Storage_bj\\",\\n \\"ResourceTag\\": \\"tag\\",\\n \\"ResourceNick\\": \\"testResource\\",\\n \\"ResourceGroup\\": \\"默认资源组\\\\n\\",\\n \\"ResourceSource\\": \\"MANUAL_ALLOCATE\\",\\n \\"RegionNo\\": \\"cn-shanghai\\",\\n \\"RegionName\\": \\"上海\\",\\n \\"RecentBillingMonth\\": 202509,\\n \\"FinanceUnitRuleVersion\\": 3,\\n \\"StartBillingMonth\\": 202509,\\n \\"ApplicablePeriodNum\\": 3,\\n \\"AddStrategy\\": \\"AUTO_ALLOCATE\\",\\n \\"AddStrategyName\\": \\"自动分配\\",\\n \\"MasterCommodityCode\\": \\"ecs\\",\\n \\"MasterInstanceId\\": \\"i-xxxxx\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\"\\n}","type":"json"}]', + ], + 'QueryCostCenterRule' => [ + 'summary' => '查询财务单元规则', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'], 'parameters' => [ [ - 'name' => 'OwnerAccountId', - 'in' => 'query', - 'schema' => [ - 'title' => '财务单元的属主用户', - 'description' => '财务单元的归属用户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1314839403940987', - ], + 'name' => 'CostCenterId', + 'in' => 'formData', + 'schema' => ['description' => '财务单元的ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '597745'], ], [ - 'name' => 'CostCenterId', + 'name' => 'EcIdAccountIds', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'title' => '财务单元ID', - 'description' => '财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '485938', + 'title' => '企业与账号列表,为空表示查询当前账号自身', + 'description' => '企业与账号列表,为空表示查询当前账号自身', + 'type' => 'array', + 'items' => [ + 'description' => '企业与账号列表,为空表示查询当前账号自身', + 'type' => 'object', + 'properties' => [ + 'AccountIds' => [ + 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'type' => 'array', + 'items' => ['description' => '成员账号ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1990699401005016'], + 'required' => false, + 'maxItems' => 100, + ], + 'EcId' => ['title' => '企业实体ID', 'description' => '企业实体ID', 'type' => 'string', 'required' => true, 'example' => '1004064243473974'], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 100, ], ], [ 'name' => 'Nbid', 'in' => 'query', - 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', - ], + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPlainResult<CostCenterOperateDto>', - 'description' => 'BssApiPlainResult<CostCenterOperateDto>', + 'title' => 'BssApiPlainResult<CostCenterRuleDto>', + 'description' => 'BssApiPlainResult<CostCenterRuleDto>', 'type' => 'object', 'properties' => [ - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'C1BD134E-D914-6AE0-1901-AEB2A99FA205', - ], - 'OwnerAccountId' => [ - 'title' => '财务单元的属主用户', - 'description' => '财务单元的归属用户ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1314839403940987', - ], - 'CostCenterId' => [ - 'title' => '财务单元ID', - 'description' => '财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '485938', - ], - 'IsSuccess' => [ - 'title' => '是否成功', - 'description' => '是否成功', - 'type' => 'boolean', - 'example' => 'True', + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => 'Id of the request', 'type' => 'string', 'example' => 'UUID'], + 'OwnerAccountId' => ['title' => '财务单元的属主用户', 'description' => '财务单元的属主用户', 'type' => 'integer', 'format' => 'int64', 'example' => '1977800748053695'], + 'RootCostCenterId' => ['title' => '根财务单元ID', 'description' => '根财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'CostCenterId' => ['title' => '财务单元ID', 'description' => '财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '597745'], + 'Id' => ['description' => '财务单元自动分配规则id', 'type' => 'integer', 'format' => 'int64', 'example' => '32048'], + 'FilterExpression' => [ + 'description' => '规则表达式', + 'type' => 'object', + 'properties' => [ + 'ExpressionType' => [ + 'description' => '操作类型', + 'type' => 'string', + 'enumValueTitles' => ['DIMENSION' => '叶子结点过滤类型(code非标签使用)', 'TAG' => '叶子结点过滤类型(code是标签时使用)', 'NARY' => '子条件关系(非叶子条件时使用)'], + 'example' => 'NARY', + ], + 'OperatorType' => [ + 'description' => '关系表达式', + 'type' => 'string', + 'enumValueTitles' => ['OR' => 'OR', 'AND' => 'AND'], + 'example' => 'AND', + ], + 'Operands' => [ + 'description' => '条件表达式', + 'type' => 'array', + 'items' => ['description' => '条件表达式 整体结构见示例(可以多层嵌套),下面的字段只是字段说明', 'type' => 'any', 'example' => '{'."\n" + .' '."\n" + .' "Operands": ['."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "TAG-xxx",'."\n" + .' "Values": ['."\n" + .' "xxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "TAG"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "INSTANCE_ID",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "LIKE"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "INSTANCE_NICK",'."\n" + .' "Values": ['."\n" + .' "111"'."\n" + .' ],'."\n" + .' "SelectType": "LIKE"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "RESOURCE_GROUP",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "ARTICLE",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "PRODUCT",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' },'."\n" + .' {'."\n" + .' "FilterValues": {'."\n" + .' "Code": "OWNER",'."\n" + .' "Values": ['."\n" + .' "xxxxx"'."\n" + .' ],'."\n" + .' "SelectType": "IN"'."\n" + .' },'."\n" + .' "ExpressionType": "DIMENSION"'."\n" + .' }'."\n" + .' ]'."\n" + .' }'], + ], + 'Operand' => ['description' => '筛选条件(废弃)', 'type' => 'any', 'example' => '无'], + 'FilterValues' => [ + 'description' => '子条件过滤', + 'type' => 'object', + 'properties' => [ + 'Code' => [ + 'description' => '条件过滤KEY', + 'type' => 'string', + 'enumValueTitles' => ['OWNER' => '账号', 'ARTICLE' => '产品明细', 'RESOURCE_GROUP' => '资源组', 'xxx(用户自定义标签key)' => '业务标签,基于用户实际配置值', 'PRODUCT' => '产品', 'INSTANCE_NICK' => '实例名称', 'INSTANCE_ID' => '实例ID(出账粒度)'], + 'example' => 'TAG-test-xxx-key'."\n", + ], + 'CodeName' => ['description' => '条件过滤KEY名称(废弃)', 'type' => 'string', 'example' => '无'], + 'Values' => [ + 'description' => '模块Code对应属性值类型。取值:'."\n" + .'- single_float:单一取值类型。'."\n" + .'- range_float:范围取值类型。', + 'type' => 'array', + 'items' => ['description' => '条件过滤值 INSTANCE_NICK、INSTANCE_NICK时只能录入一个', 'type' => 'string', 'example' => '["TAG-test-xxx"]'."\n"], + ], + 'SelectType' => [ + 'description' => 'code和value关联关系', + 'type' => 'string', + 'enumValueTitles' => ['LIKE' => 'Code时其他情况下使用', 'IN' => 'Code是INSTANCE_NICK、INSTANCE_NICK时使用'], + 'example' => 'IN', + ], + ], + ], + ], ], + 'Status' => ['description' => '状态:'."\n" + .'on:有效'."\n" + .'off 失效', 'type' => 'string', 'example' => 'on'], + 'IsDeleted' => ['description' => '删除状态:'."\n" + .'* **0**:激活'."\n" + .'* **1**:失效', 'type' => 'integer', 'format' => 'int32', 'example' => 'false'], + 'GmtCreate' => ['description' => '创建时间', 'type' => 'string', 'example' => 'Tue Nov 12 14:49:43 CST 2024'], + 'GmtModified' => ['description' => '修改时间', 'type' => 'string', 'example' => 'Wed Oct 16 10:15:37 CST 2024'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'CostCenter.DeleteWithShareRule', - 'errorMessage' => 'This financial unit involves splitting expense rules. Please adjust relevant rules before deleting the financial unit.', - ], - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => 'The specified request contains invalid parameters.', - ], - [ - 'errorCode' => 'CostCenter.MasterAndSubHasNoRelation', - 'errorMessage' => 'Your account has no valid account relation yet.', - ], - [ - 'errorCode' => 'CostCenter.UnitNotExist', - 'errorMessage' => 'The financial unit does not exist or is invalid.', - ], - [ - 'errorCode' => 'CostCenter.DeleteWithSubUnitOrResource', - 'errorMessage' => 'Financial units with sub-units, allocated resources, or auto-allocation rules cannot be deleted.', - ], + ['errorCode' => 'CostCenter.MasterAndSubHasNoRelation', 'errorMessage' => 'Your account has no valid account relation yet.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"UUID\\",\\n \\"OwnerAccountId\\": 1977800748053695,\\n \\"RootCostCenterId\\": 0,\\n \\"CostCenterId\\": 597745,\\n \\"Id\\": 32048,\\n \\"FilterExpression\\": {\\n \\"ExpressionType\\": \\"NARY\\",\\n \\"OperatorType\\": \\"AND\\",\\n \\"Operands\\": [\\n \\"{\\\\n \\\\n \\\\\\"Operands\\\\\\": [\\\\n {\\\\n \\\\\\"FilterValues\\\\\\": {\\\\n \\\\\\"Code\\\\\\": \\\\\\"TAG-xxx\\\\\\",\\\\n \\\\\\"Values\\\\\\": [\\\\n \\\\\\"xxxx\\\\\\"\\\\n ],\\\\n \\\\\\"SelectType\\\\\\": \\\\\\"IN\\\\\\"\\\\n },\\\\n \\\\\\"ExpressionType\\\\\\": \\\\\\"TAG\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"FilterValues\\\\\\": {\\\\n \\\\\\"Code\\\\\\": \\\\\\"INSTANCE_ID\\\\\\",\\\\n \\\\\\"Values\\\\\\": [\\\\n \\\\\\"xxxxx\\\\\\"\\\\n ],\\\\n \\\\\\"SelectType\\\\\\": \\\\\\"LIKE\\\\\\"\\\\n },\\\\n \\\\\\"ExpressionType\\\\\\": \\\\\\"DIMENSION\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"FilterValues\\\\\\": {\\\\n \\\\\\"Code\\\\\\": \\\\\\"INSTANCE_NICK\\\\\\",\\\\n \\\\\\"Values\\\\\\": [\\\\n \\\\\\"111\\\\\\"\\\\n ],\\\\n \\\\\\"SelectType\\\\\\": \\\\\\"LIKE\\\\\\"\\\\n },\\\\n \\\\\\"ExpressionType\\\\\\": \\\\\\"DIMENSION\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"FilterValues\\\\\\": {\\\\n \\\\\\"Code\\\\\\": \\\\\\"RESOURCE_GROUP\\\\\\",\\\\n \\\\\\"Values\\\\\\": [\\\\n \\\\\\"xxxxx\\\\\\"\\\\n ],\\\\n \\\\\\"SelectType\\\\\\": \\\\\\"IN\\\\\\"\\\\n },\\\\n \\\\\\"ExpressionType\\\\\\": \\\\\\"DIMENSION\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"FilterValues\\\\\\": {\\\\n \\\\\\"Code\\\\\\": \\\\\\"ARTICLE\\\\\\",\\\\n \\\\\\"Values\\\\\\": [\\\\n \\\\\\"xxxxx\\\\\\"\\\\n ],\\\\n \\\\\\"SelectType\\\\\\": \\\\\\"IN\\\\\\"\\\\n },\\\\n \\\\\\"ExpressionType\\\\\\": \\\\\\"DIMENSION\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"FilterValues\\\\\\": {\\\\n \\\\\\"Code\\\\\\": \\\\\\"PRODUCT\\\\\\",\\\\n \\\\\\"Values\\\\\\": [\\\\n \\\\\\"xxxxx\\\\\\"\\\\n ],\\\\n \\\\\\"SelectType\\\\\\": \\\\\\"IN\\\\\\"\\\\n },\\\\n \\\\\\"ExpressionType\\\\\\": \\\\\\"DIMENSION\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"FilterValues\\\\\\": {\\\\n \\\\\\"Code\\\\\\": \\\\\\"OWNER\\\\\\",\\\\n \\\\\\"Values\\\\\\": [\\\\n \\\\\\"xxxxx\\\\\\"\\\\n ],\\\\n \\\\\\"SelectType\\\\\\": \\\\\\"IN\\\\\\"\\\\n },\\\\n \\\\\\"ExpressionType\\\\\\": \\\\\\"DIMENSION\\\\\\"\\\\n }\\\\n ]\\\\n }\\"\\n ],\\n \\"Operand\\": \\"无\\",\\n \\"FilterValues\\": {\\n \\"Code\\": \\"TAG-test-xxx-key\\\\n\\",\\n \\"CodeName\\": \\"无\\",\\n \\"Values\\": [\\n \\"[\\\\\\"TAG-test-xxx\\\\\\"]\\\\n\\"\\n ],\\n \\"SelectType\\": \\"IN\\"\\n }\\n },\\n \\"Status\\": \\"on\\",\\n \\"IsDeleted\\": 0,\\n \\"GmtCreate\\": \\"Tue Nov 12 14:49:43 CST 2024\\",\\n \\"GmtModified\\": \\"Wed Oct 16 10:15:37 CST 2024\\"\\n}","type":"json"}]', + 'title' => '查询财务单元自动分配规则', + 'description' => '查询父财务单元及其子财务单元', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"C1BD134E-D914-6AE0-1901-AEB2A99FA205\\",\\n \\"OwnerAccountId\\": 1314839403940987,\\n \\"CostCenterId\\": 485938,\\n \\"IsSuccess\\": true\\n}","type":"json"}]', - 'title' => '删除财务单元', - 'description' => '本OpenAPI灰度中,仅对部分白名单用户开放,调用过多时不排除出现响应超时等性能问题。', ], - 'QueryCostCenter' => [ - 'summary' => '查询财务单元', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'https', - ], + 'QueryCostCenterShareRule' => [ + 'summary' => '查询财务单元分摊规则', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -6530,235 +5694,165 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OwnerAccountId', 'in' => 'query', - 'schema' => [ - 'title' => '财务单元的属主用户', - 'description' => '财务单元的归属用户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1314839403940987', - ], - ], - [ - 'name' => 'ParentCostCenterId', - 'in' => 'query', - 'schema' => [ - 'title' => '父财务单元 ID,-1 表示财务单元根。', - 'description' => '父财务单元 ID,-1 表示财务单元根。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '-1', - ], + 'schema' => ['description' => '财务单元的归属用户ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1529600453335198'], ], [ - 'name' => 'CurrentPage', + 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'title' => '当前页码', - 'description' => '当前页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], + 'schema' => ['title' => '下一个查询开始Token,NextToken为空说明没有下一个', 'description' => '预留字段', 'type' => 'string', 'required' => false, 'example' => 'AAAAAV3MpHK1AP0pfERHZN5pu6nYCisJwqt18pP5E9yb47iu'], ], [ - 'name' => 'PageSize', + 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'title' => '每页大小', - 'description' => '每页大小', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '20', - ], + 'schema' => ['title' => '单次查询的最大记录数', 'description' => '预留字段', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], [ 'name' => 'EcIdAccountIds', 'in' => 'query', - 'style' => 'json', + 'style' => 'repeatList', 'schema' => [ 'title' => '企业与账号列表,为空表示查询当前账号自身', 'description' => '企业与账号列表,为空表示查询当前账号自身', 'type' => 'array', 'items' => [ - 'description' => '企业与账号列表,为空表示查询当前账号自身', + 'description' => '列表信息', 'type' => 'object', 'properties' => [ + 'EcId' => ['title' => '企业实体ID', 'description' => '企业实体ID', 'type' => 'string', 'required' => true, 'example' => '1004064243473974'], 'AccountIds' => [ 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', 'type' => 'array', - 'items' => [ - 'description' => '成员账号ID。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1501603440974415', - ], + 'items' => ['description' => '成员账号ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1501603440974415'], 'required' => false, 'maxItems' => 100, ], - 'EcId' => [ - 'title' => '企业实体ID', - 'description' => '企业实体ID', - 'type' => 'string', - 'required' => true, - 'example' => '1004064243473974', - ], ], 'required' => false, ], 'required' => false, + 'maxItems' => 100, ], ], [ 'name' => 'Nbid', 'in' => 'query', - 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', - ], + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPageResult<CostCenterDto>', - 'description' => 'BssApiPageResult<CostCenterDto>', + 'title' => 'BssApiTokenResult<CostCenterShareRuleDto>', + 'description' => 'BssApiTokenResult<CostCenterShareRuleDto>', 'type' => 'object', 'properties' => [ - 'CurrentPage' => [ - 'title' => '当前页码', - 'description' => '当前页码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '每页大小', - 'description' => '每页大小', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '30', - ], - 'CostCenterDtoList' => [ + 'NextToken' => ['title' => '下一个查询开始Token,NextToken为空说明没有下一个', 'description' => '预留字段', 'type' => 'string', 'example' => 'eyJwYWdlTnVtIjoyLCJwYWdlU2l6ZSI6NH0='], + 'MaxResults' => ['title' => '单次查询的最大记录数', 'description' => '预留字段', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'Data' => [ 'title' => '数据列表', - 'description' => '数据列表', + 'description' => '返回数据列表', 'type' => 'array', 'items' => [ + 'description' => '对象信息', 'type' => 'object', 'properties' => [ - 'PrevCostCenterId' => [ - 'title' => '前序财务单元 ID', - 'description' => '前序财务单元 ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '485996', - ], - 'CostCenterName' => [ - 'title' => '财务单元名字(同一个账号必须唯一)', - 'description' => '财务单元名字(同一个账号必须唯一)', - 'type' => 'string', - 'example' => '资源组', - ], - 'CostCenterCode' => [ - 'title' => '财务单元CODE', - 'description' => '财务单元CODE', + 'OwnerAccountId' => ['description' => '财务单元的归属用户ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1529600453335198'], + 'ShareRuleId' => ['description' => '分摊规则ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1826'], + 'ShareRuleName' => ['description' => '分摊规则名称', 'type' => 'string', 'example' => 'test'], + 'ShareRuleType' => [ + 'description' => '分摊规则类型', 'type' => 'string', - 'example' => '15945703968#', - ], - 'Level' => [ - 'title' => '财务单元节点级数', - 'description' => '财务单元节点级数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => 'loose', - ], - 'OwnerAccountId' => [ - 'title' => '财务单元的属主用户', - 'description' => '财务单元的归属用户ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1314839403940987', + 'enumValueTitles' => ['AVERAGE' => '按平均拆分', 'CUSTOM' => '自定义拆分比例', 'RATIO' => '按比例拆分'], + 'example' => 'AVERAGE', ], - 'CostCenterId' => [ - 'title' => '财务单元ID', - 'description' => '财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '485938', + 'FromCostCenterShareRuleDetails' => [ + 'description' => '源财务单元规则信息', + 'type' => 'array', + 'items' => [ + 'description' => '对象信息', + 'type' => 'object', + 'properties' => [ + 'OwnerAccountId' => ['description' => '财务单元的归属用户ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1529600453335198'], + 'RootCostCenterId' => ['description' => '根财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '583050'], + 'CostCenterId' => ['description' => '财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '637127'], + 'ParentCostCenterId' => ['description' => '父财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '637537'], + 'PrevCostCenterId' => ['description' => '前序财务单元 ID', 'type' => 'integer', 'format' => 'int64', 'example' => '583059'], + 'CostCenterCode' => ['description' => '财务单元CODE', 'type' => 'string', 'example' => '970354711219#'], + 'CostCenterName' => ['description' => '财务单元名称', 'type' => 'string', 'example' => '成本计划'], + 'GmtCreate' => ['description' => '创建时间', 'type' => 'string', 'example' => '2025-07-16 13:49:59'], + 'GmtModified' => ['description' => '修改时间', 'type' => 'string', 'example' => '2025-07-16 13:49:59', 'title' => ''], + ], + ], ], - 'ParentCostCenterId' => [ - 'title' => '父级财务单元ID', - 'description' => '父级财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '-1', + 'ToCostCenterShareRuleDetails' => [ + 'description' => '目标财务单元规则信息', + 'type' => 'array', + 'items' => [ + 'description' => '对象信息', + 'type' => 'object', + 'properties' => [ + 'OwnerAccountId' => ['description' => '财务单元的归属用户ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1529600453335198'], + 'RootCostCenterId' => ['description' => '根财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '583050'], + 'CostCenterId' => ['description' => '财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '637127'], + 'ParentCostCenterId' => ['description' => '父财务单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '637537'], + 'PrevCostCenterId' => ['description' => '前序财务单元 ID', 'type' => 'integer', 'format' => 'int64', 'example' => '583055'], + 'CostCenterCode' => ['description' => '财务单元CODE', 'type' => 'string', 'example' => '970354711215#'], + 'CostCenterName' => ['description' => '财务单元名称', 'type' => 'string', 'example' => '成本分摊'], + 'ShareRatio' => ['description' => '分摊比例', 'type' => 'number', 'format' => 'double', 'example' => '0.2'], + 'GmtCreate' => ['description' => '创建时间', 'type' => 'string', 'example' => '2025-07-16 13:49:59'], + 'GmtModified' => ['description' => '修改时间', 'type' => 'string', 'example' => '2025-07-16 13:49:59'], + ], + ], ], + 'GmtModified' => ['title' => '最近修改时间', 'type' => 'string', 'example' => '2026-01-01 00:00:00'], ], ], ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F', - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求id', 'type' => 'string', 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'CostCenter.MasterAndSubHasNoRelation', - 'errorMessage' => 'Your account has no valid account relation yet.', - ], + ['errorCode' => 'CostCenter.MasterAndSubHasNoRelation', 'errorMessage' => 'Your account has no valid account relation yet.', 'description' => ''], + ['errorCode' => 'CostCenter.ResourceAuthFailed', 'errorMessage' => 'The instance does not belong to the current user.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询财务单元分摊规则', + 'description' => '用于查询用户财务单元的分摊规则', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'bss:DescribeCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 30,\\n \\"CostCenterDtoList\\": [\\n {\\n \\"PrevCostCenterId\\": 485996,\\n \\"CostCenterName\\": \\"资源组\\",\\n \\"CostCenterCode\\": \\"15945703968#\\",\\n \\"Level\\": 0,\\n \\"OwnerAccountId\\": 1314839403940987,\\n \\"CostCenterId\\": 485938,\\n \\"ParentCostCenterId\\": -1\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\"\\n}","type":"json"}]', - 'title' => '查询财务单元', - 'description' => '查询父财务单元及其子财务单元', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"eyJwYWdlTnVtIjoyLCJwYWdlU2l6ZSI6NH0=\\",\\n \\"MaxResults\\": 20,\\n \\"TotalCount\\": 20,\\n \\"Data\\": [\\n {\\n \\"OwnerAccountId\\": 1529600453335198,\\n \\"ShareRuleId\\": 1826,\\n \\"ShareRuleName\\": \\"test\\",\\n \\"ShareRuleType\\": \\"AVERAGE\\",\\n \\"FromCostCenterShareRuleDetails\\": [\\n {\\n \\"OwnerAccountId\\": 1529600453335198,\\n \\"RootCostCenterId\\": 583050,\\n \\"CostCenterId\\": 637127,\\n \\"ParentCostCenterId\\": 637537,\\n \\"PrevCostCenterId\\": 583059,\\n \\"CostCenterCode\\": \\"970354711219#\\",\\n \\"CostCenterName\\": \\"成本计划\\",\\n \\"GmtCreate\\": \\"2025-07-16 13:49:59\\",\\n \\"GmtModified\\": \\"2025-07-16 13:49:59\\"\\n }\\n ],\\n \\"ToCostCenterShareRuleDetails\\": [\\n {\\n \\"OwnerAccountId\\": 1529600453335198,\\n \\"RootCostCenterId\\": 583050,\\n \\"CostCenterId\\": 637127,\\n \\"ParentCostCenterId\\": 637537,\\n \\"PrevCostCenterId\\": 583055,\\n \\"CostCenterCode\\": \\"970354711215#\\",\\n \\"CostCenterName\\": \\"成本分摊\\",\\n \\"ShareRatio\\": 0.2,\\n \\"GmtCreate\\": \\"2025-07-16 13:49:59\\",\\n \\"GmtModified\\": \\"2025-07-16 13:49:59\\"\\n }\\n ],\\n \\"GmtModified\\": \\"2026-01-01 00:00:00\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\"\\n}","type":"json"}]', ], - 'QueryCostCenterResource' => [ - 'summary' => '查询用户的财务单元所属的资源实例列表。当 CostCenterId 为 0,表示查未分配的主子资源实例。', - 'path' => '', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'QueryMonthlySlaList' => [ + 'summary' => '查询用户SLA赔付列表情况。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -6766,62 +5860,74 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'OwnerAccountId', + 'name' => 'Months', 'in' => 'formData', + 'style' => 'repeatList', 'schema' => [ - 'title' => '账号ID', - 'description' => '财务单元的属主用户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '可选,月份列表,格式 yyyyMM,月份须在上两个月范围内', + 'description' => '可选,月份列表,格式 yyyyMM', + 'type' => 'array', + 'items' => ['description' => '月份,格式yyyyMM,仅支持近两月', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '202603'], 'required' => false, - 'example' => '1234567812345678', + 'example' => '[202602,202603]', + 'maxItems' => 100, ], ], [ - 'name' => 'CostCenterId', + 'name' => 'ProductCodes', 'in' => 'formData', + 'style' => 'repeatList', 'schema' => [ - 'title' => '成本中心ID', - 'description' => '财务单元的ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '可选,产品 Code 过滤', + 'description' => '可选,产品 Code 过滤', + 'type' => 'array', + 'items' => ['description' => '云产品Code', 'type' => 'string', 'required' => false, 'example' => 'oss'], 'required' => false, - 'example' => '123456', + 'example' => '["ecs","oss"]', + 'maxItems' => 100, ], ], [ - 'name' => 'NextToken', - 'in' => 'query', - 'allowEmptyValue' => true, + 'name' => 'InstanceIds', + 'in' => 'formData', + 'style' => 'repeatList', 'schema' => [ - 'title' => '下一个查询开始Token,NextToken为空说明没有下一个', - 'description' => '下一个查询开始Token,NextToken为空说明没有下一个', - 'type' => 'string', + 'title' => '可选,实例 ID 过滤', + 'description' => '可选,实例 ID 过滤', + 'type' => 'array', + 'items' => ['description' => '实例ID。多个ID用英文逗号分隔,最大不超过100个。', 'type' => 'string', 'required' => false, 'example' => 'rm-xxxxxxxxxxxx'], 'required' => false, - 'example' => 'CAESEgoQCg4KCmd', + 'example' => '["instance_1","instance_2"]', + 'maxItems' => 100, ], ], [ - 'name' => 'MaxResults', - 'in' => 'query', - 'allowEmptyValue' => true, + 'name' => 'PayStatuses', + 'in' => 'formData', + 'style' => 'repeatList', 'schema' => [ - 'title' => '单次查询的最大记录数', - 'description' => '单次查询的最大记录数', - 'type' => 'integer', - 'format' => 'int32', + 'title' => '可选,赔付状态过滤,可选值 0/1', + 'description' => '可选,赔付状态过滤,可选值 0/1', + 'type' => 'array', + 'items' => ['description' => '赔付状态,0-未赔付,1-已赔付', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], 'required' => false, - 'example' => '200', + 'maxItems' => 100, ], ], [ + 'name' => 'CurrentPage', + 'in' => 'query', + 'schema' => ['title' => '当前页码', 'description' => '当前页码,默认为首页', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['title' => '每页大小', 'description' => '每页大小,默认为10', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], + ], + [ 'name' => 'EcIdAccountIds', 'in' => 'query', 'style' => 'repeatList', @@ -6830,29 +5936,15 @@ 'description' => '企业与账号列表,为空表示查询当前账号自身', 'type' => 'array', 'items' => [ - 'title' => '账号信息', - 'description' => '企业与账号列表', + 'description' => '企业与账号列表,为空表示查询当前账号自身', 'type' => 'object', 'properties' => [ - 'EcId' => [ - 'title' => '企业实体ID', - 'description' => '企业实体ID', - 'type' => 'string', - 'required' => true, - 'example' => '1501603440974415', - ], + 'EcId' => ['title' => '企业实体ID', 'description' => '企业实体ID', 'type' => 'string', 'required' => false, 'example' => '1501603440974415'], 'AccountIds' => [ 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', 'type' => 'array', - 'items' => [ - 'title' => '账号id', - 'description' => '成员账号ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1501603440974415', - ], + 'items' => ['description' => '成员账号ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1501603440974415'], 'required' => false, 'maxItems' => 100, ], @@ -6866,304 +5958,66 @@ [ 'name' => 'Nbid', 'in' => 'query', - 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', - ], + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '', - 'description' => 'BssApiTokenResult<CostCenterResourceDto>', + 'title' => 'BssApiPageResult<MonthlySlaInfoDTO>', + 'description' => 'BssApiPageResult<MonthlySlaInfoDTO>', 'type' => 'object', 'properties' => [ - 'NextToken' => [ - 'title' => '下一个查询开始Token,NextToken为空说明没有下一个', - 'description' => '下一个查询开始Token,NextToken为空说明没有下一个', - 'type' => 'string', - 'required' => true, - 'example' => 'eyJwYWdlTnVtIjoyLCJwYWdlU2l6ZSI6MTB9', - ], - 'MaxResults' => [ - 'title' => '单次查询的最大记录数', - 'description' => '单次查询的最大记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'CostCenterResourceDtoList' => [ + 'CurrentPage' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'PageSize' => ['title' => '每页大小', 'description' => '每页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '5'], + 'Data' => [ 'title' => '数据列表', 'description' => '数据列表', 'type' => 'array', 'items' => [ - 'title' => '', - 'description' => '明细数据', + 'description' => '消息体。'."\n", 'type' => 'object', 'properties' => [ - 'OwnerAccountId' => [ - 'title' => '资源归属账号id', - 'description' => '财务单元归属客户ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1234567812345678', - ], - 'OwnerAccountName' => [ - 'title' => '资源归属账号名称', - 'description' => '财务单元归属客户名称', - 'type' => 'string', - 'example' => '客户A', - ], - 'ResourceUserId' => [ - 'title' => '分配资源账号id', - 'description' => '资源的属主用户ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1234567812345678', - ], - 'ResourceUserName' => [ - 'title' => '分配资源账号名称', - 'description' => '资源的属主用户名称', - 'type' => 'string', - 'example' => 'test@test.aliyun.com'."\n", - ], - 'RootCostCenterId' => [ - 'title' => '财务单元根节点id', - 'description' => '根财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '-1', - ], - 'CostCenterId' => [ - 'title' => '财务单元id', - 'description' => '财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123456', - ], - 'ParentCostCenterId' => [ - 'title' => '财务单元上级节点id', - 'description' => '父财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123456', - ], - 'CostCenterCode' => [ - 'title' => '财务单元code', - 'description' => '财务单元code', - 'type' => 'string', - 'example' => 'code', - ], - 'CostCenterName' => [ - 'title' => '财务单元名称', - 'description' => '财务单元名称', - 'type' => 'string', - 'example' => 'test', - ], - 'CostCenterCreateTime' => [ - 'title' => '财务单元创建时间', - 'description' => '财务单元创建时间', - 'type' => 'string', - 'example' => '2025-05-18 12:12:25', - ], - 'CostCenterUpdateTime' => [ - 'title' => '财务单元修改时间', - 'description' => '财务单元最后更新时间', - 'type' => 'string', - 'example' => '2025-05-18 16:12:25', - ], - 'ResourceUpdateTime' => [ - 'description' => '财务单元最后更新时间(预留字段,当前不可用)', - 'type' => 'string', - 'example' => '2025-05-18 16:12:25'."\n", - ], - 'PipCode' => [ - 'description' => '产品Code,与费用中心账单产品Code一致。', - 'type' => 'string', - 'example' => 'rds', - ], - 'PipName' => [ - 'description' => '产品名称', - 'type' => 'string', - 'example' => '云数据库', - ], - 'CommodityCode' => [ - 'description' => '资源的商品code', - 'type' => 'string', - 'example' => 'otsbag', - ], - 'CommodityName' => [ - 'description' => '资源的商品名', - 'type' => 'string', - 'example' => '云数据库', - ], - 'ApportionItemCode' => [ - 'description' => '资源分拆code', - 'type' => 'string', - 'example' => 'test', - ], - 'ApportionItemName' => [ - 'description' => '资源分拆名', - 'type' => 'string', - 'example' => 'test', - ], - 'ResourceId' => [ - 'description' => '资源ID', - 'type' => 'string', - 'example' => 'OSSBAG-cn-v0h1s4hma018'."\n", - ], - 'InstanceId' => [ - 'description' => '出账粒度ID', - 'type' => 'string', - 'example' => 'cn-hangzhou;standard', - ], - 'ResourceType' => [ - 'description' => '资源类型', - 'type' => 'string', - 'example' => 'FPT_ossbag_absolute_Storage_bj', - ], - 'ResourceTag' => [ - 'description' => '资源的Tag标签', - 'type' => 'string', - 'example' => 'tag', - ], - 'ResourceNick' => [ - 'description' => '资源的自定义昵称。', - 'type' => 'string', - 'example' => 'testResource', - ], - 'ResourceGroup' => [ - 'description' => '资源所属的资源组', - 'type' => 'string', - 'example' => '默认资源组'."\n", - ], - 'ResourceSource' => [ - 'title' => '资源来源', - 'description' => '资源来源。取值:'."\n" - .'- AUTO_ALLOCATE:自动分配。'."\n" - .'- MANUAL_ALLOCATE:手动分配。', - 'type' => 'string', - 'example' => 'MANUAL_ALLOCATE', - ], - 'RegionNo' => [ - 'title' => '地域', - 'description' => '地域', - 'type' => 'string', - 'example' => 'cn-shanghai', - ], - 'RegionName' => [ - 'title' => '地域名称', - 'description' => '地域名称', - 'type' => 'string', - 'example' => '上海', - ], - 'RecentBillingMonth' => [ - 'title' => '最近出账账期', - 'description' => '最近出账账期', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '202509', - ], - 'FinanceUnitRuleVersion' => [ - 'title' => '规则版本', - 'description' => '规则版本', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3', - ], - 'StartBillingMonth' => [ - 'title' => '规则生效账期', - 'description' => '规则生效账期', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '202509', - ], - 'ApplicablePeriodNum' => [ - 'title' => '刷新账期数量', - 'description' => '刷新账期数量', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3', - ], - 'AddStrategy' => [ - 'title' => '添加策略', - 'description' => '添加策略', - 'type' => 'string', - 'example' => 'AUTO_ALLOCATE', - ], - 'AddStrategyName' => [ - 'title' => '添加策略名称', - 'description' => '添加策略名称', - 'type' => 'string', - 'example' => '自动分配', - ], - 'MasterCommodityCode' => [ - 'title' => '关联商品code', - 'description' => '关联商品code', - 'type' => 'string', - 'example' => 'ecs', - ], - 'MasterInstanceId' => [ - 'title' => '关联实例ID', - 'description' => '关联实例ID', - 'type' => 'string', - 'example' => 'i-xxxxx', - ], + 'Month' => ['title' => '月份,格式 yyyyMM', 'description' => '月份,格式 yyyyMM', 'type' => 'integer', 'format' => 'int32', 'example' => '202603'], + 'DamagedId' => ['title' => '受损记录唯一标识,用于调用 applyCoupon 接口定向申领', 'description' => '受损记录唯一标识,用于定向申领', 'type' => 'string', 'example' => '9b7***9413'], + 'ProductCode' => ['title' => '产品 Code', 'description' => '产品 Code', 'type' => 'string', 'example' => 'oss'], + 'InstanceId' => ['title' => '实例 ID', 'description' => '实例 ID', 'type' => 'string', 'example' => 'OSSBAG-cn-0xl0n****003'], + 'AvailableRate' => ['title' => '服务可用性', 'description' => '服务可用性', 'type' => 'number', 'format' => 'double', 'example' => '99.9155'], + 'PayRate' => ['title' => '赔付比例', 'description' => '赔付比例,单位为%', 'type' => 'number', 'format' => 'double', 'example' => '10'], + 'MonthlyServiceCharge' => ['title' => '月度服务费用', 'description' => '月度服务费用', 'type' => 'number', 'format' => 'double', 'example' => '365.00'], + 'ShouldPaySum' => ['title' => '应赔付金额', 'description' => '应赔付金额', 'type' => 'number', 'format' => 'double', 'example' => '36.5'], + 'PayStatus' => ['title' => '赔付状态 0-未赔付 1-已赔付 2-无需赔付', 'description' => '赔付状态 0-未赔付 1-已赔付', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'PayDescription' => ['title' => '赔付说明', 'description' => '赔付说明', 'type' => 'string', 'example' => 'SLA赔付'], ], ], ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F', - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'CostCenter.MasterAndSubHasNoRelation', - 'errorMessage' => 'Your account has no valid account relation yet.', - ], - [ - 'errorCode' => 'CostCenter.ResourceAuthFailed', - 'errorMessage' => 'The instance does not belong to the current user.', - ], + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified request contains invalid parameters.', 'description' => ''], + ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'title' => 'SLA赔付查询', + 'description' => '提供用户SLA赔付详情列表,仅近两月数据', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"eyJwYWdlTnVtIjoyLCJwYWdlU2l6ZSI6MTB9\\",\\n \\"MaxResults\\": 200,\\n \\"TotalCount\\": 2000,\\n \\"CostCenterResourceDtoList\\": [\\n {\\n \\"OwnerAccountId\\": 1234567812345678,\\n \\"OwnerAccountName\\": \\"客户A\\",\\n \\"ResourceUserId\\": 1234567812345678,\\n \\"ResourceUserName\\": \\"test@test.aliyun.com\\\\n\\",\\n \\"RootCostCenterId\\": -1,\\n \\"CostCenterId\\": 123456,\\n \\"ParentCostCenterId\\": 123456,\\n \\"CostCenterCode\\": \\"code\\",\\n \\"CostCenterName\\": \\"test\\",\\n \\"CostCenterCreateTime\\": \\"2025-05-18 12:12:25\\",\\n \\"CostCenterUpdateTime\\": \\"2025-05-18 16:12:25\\",\\n \\"ResourceUpdateTime\\": \\"2025-05-18 16:12:25\\\\n\\",\\n \\"PipCode\\": \\"rds\\",\\n \\"PipName\\": \\"云数据库\\",\\n \\"CommodityCode\\": \\"otsbag\\",\\n \\"CommodityName\\": \\"云数据库\\",\\n \\"ApportionItemCode\\": \\"test\\",\\n \\"ApportionItemName\\": \\"test\\",\\n \\"ResourceId\\": \\"OSSBAG-cn-v0h1s4hma018\\\\n\\",\\n \\"InstanceId\\": \\"cn-hangzhou;standard\\",\\n \\"ResourceType\\": \\"FPT_ossbag_absolute_Storage_bj\\",\\n \\"ResourceTag\\": \\"tag\\",\\n \\"ResourceNick\\": \\"testResource\\",\\n \\"ResourceGroup\\": \\"默认资源组\\\\n\\",\\n \\"ResourceSource\\": \\"MANUAL_ALLOCATE\\",\\n \\"RegionNo\\": \\"cn-shanghai\\",\\n \\"RegionName\\": \\"上海\\",\\n \\"RecentBillingMonth\\": 202509,\\n \\"FinanceUnitRuleVersion\\": 3,\\n \\"StartBillingMonth\\": 202509,\\n \\"ApplicablePeriodNum\\": 3,\\n \\"AddStrategy\\": \\"AUTO_ALLOCATE\\",\\n \\"AddStrategyName\\": \\"自动分配\\",\\n \\"MasterCommodityCode\\": \\"ecs\\",\\n \\"MasterInstanceId\\": \\"i-xxxxx\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\"\\n}","type":"json"}]', - 'title' => '查询财务单元的资源', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 5,\\n \\"Data\\": [\\n {\\n \\"Month\\": 202603,\\n \\"DamagedId\\": \\"9b7***9413\\",\\n \\"ProductCode\\": \\"oss\\",\\n \\"InstanceId\\": \\"OSSBAG-cn-0xl0n****003\\",\\n \\"AvailableRate\\": 99.9155,\\n \\"PayRate\\": 10,\\n \\"MonthlyServiceCharge\\": 365,\\n \\"ShouldPaySum\\": 36.5,\\n \\"PayStatus\\": 1,\\n \\"PayDescription\\": \\"SLA赔付\\"\\n }\\n ],\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\"\\n}","type":"json"}]', ], - 'CreateCostCenterRule' => [ - 'summary' => '创建财务单元自动分配规则', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'SaveCostCenterShareRule' => [ + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -7171,271 +6025,156 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'CostCenterId', - 'in' => 'formData', + 'name' => 'OwnerAccountId', + 'in' => 'query', + 'schema' => ['description' => '财务单元的归属用户ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1977800748053695'], + ], + [ + 'name' => 'CreateShareRuleList', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'title' => '财务单元ID', - 'description' => '财务单元ID', - 'type' => 'integer', - 'format' => 'int64', + 'description' => '创建分摊规则信息列表', + 'type' => 'array', + 'items' => [ + 'description' => '对象信息', + 'type' => 'object', + 'properties' => [ + 'ShareRuleName' => ['description' => '分摊规则名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'ShareType' => [ + 'description' => '分摊规则类型', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => ['AVERAGE' => '按平均拆分', 'CUSTOM' => '自定义拆分比例', 'RATIO' => '按比例拆分'], + 'example' => 'RATIO', + ], + 'FromCostCenterList' => [ + 'description' => '源财务单元列表', + 'type' => 'array', + 'items' => ['description' => '源财务单元ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '583053'], + 'required' => false, + 'maxItems' => 300, + ], + 'ToCostCenterList' => [ + 'description' => '目标财务单元列表', + 'type' => 'array', + 'items' => ['description' => '目标财务单元ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '583055'], + 'required' => false, + 'maxItems' => 300, + ], + 'ShareRatioList' => [ + 'description' => '分摊比例列表', + 'type' => 'array', + 'items' => ['description' => '分摊比例', 'type' => 'number', 'format' => 'double', 'required' => false, 'example' => '0.5'], + 'required' => false, + 'maxItems' => 200, + ], + ], + 'required' => false, + ], 'required' => false, - 'example' => '485938', ], ], [ - 'name' => 'FilterExpression', + 'name' => 'ModifyShareRuleList', 'in' => 'query', 'style' => 'json', 'schema' => [ - 'title' => '规则表达式', - 'description' => '规则表达式', - 'type' => 'object', - 'properties' => [ - 'ExpressionType' => [ - 'description' => '操作类型', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'DIMENSION' => '叶子结点过滤类型(code非标签使用)', - 'TAG' => '叶子结点过滤类型(code是标签时使用)', - 'NARY' => '子条件关系(非叶子条件时使用)', + 'description' => '修改分摊规则列表', + 'type' => 'array', + 'items' => [ + 'description' => '对象信息', + 'type' => 'object', + 'properties' => [ + 'ShareRuleId' => ['description' => '分摊规则ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1828'], + 'ShareRuleName' => ['description' => '分摊规则名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'ShareType' => [ + 'description' => '分摊规则类型', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => ['AVERAGE' => '按平均拆分', 'CUSTOM' => '自定义拆分比例', 'RATIO' => '按比例拆分'], + 'example' => 'CUSTOM', ], - 'example' => 'NARY', - ], - 'OperatorType' => [ - 'description' => '关系表达式', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'OR' => 'OR', - 'AND' => 'AND', + 'FromCostCenterList' => [ + 'description' => '源财务单元列表', + 'type' => 'array', + 'items' => ['description' => '源财务单元ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '583052'], + 'required' => false, + 'maxItems' => 300, ], - 'example' => 'AND', - ], - 'Operands' => [ - 'description' => '条件表达式', - 'type' => 'array', - 'items' => [ - 'description' => '条件表达式'."\n" - .'**整体结构见示例(可以多层嵌套),下面的字段只是字段说明**', - 'type' => 'any', + 'ToCostCenterList' => [ + 'description' => '目标财务单元列表', + 'type' => 'array', + 'items' => ['description' => '目标财务单元ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '583056'], 'required' => false, - 'example' => '{'."\n" - .' '."\n" - .' "Operands": ['."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "TAG-xxx",'."\n" - .' "Values": ['."\n" - .' "xxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "TAG"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "INSTANCE_ID",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "LIKE"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "INSTANCE_NICK",'."\n" - .' "Values": ['."\n" - .' "111"'."\n" - .' ],'."\n" - .' "SelectType": "LIKE"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "RESOURCE_GROUP",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "ARTICLE",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "PRODUCT",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "OWNER",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' }'."\n" - .' ]'."\n" - .' }', + 'maxItems' => 300, ], - 'required' => false, - ], - 'Operand' => [ - 'description' => '筛选条件(废弃)', - 'type' => 'any', - 'required' => false, - 'example' => '无', - ], - 'FilterValues' => [ - 'description' => '子条件过滤', - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'description' => '条件过滤KEY', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'OWNER' => '账号', - 'ARTICLE' => '产品明细', - 'RESOURCE_GROUP' => '资源组', - 'xxx(用户自定义标签key)' => '业务标签,基于用户实际配置值', - 'PRODUCT' => '产品', - 'INSTANCE_NICK' => '实例名称', - 'INSTANCE_ID' => '实例ID(出账粒度)', - ], - 'example' => 'TAG-test-xxx-key', - ], - 'CodeName' => [ - 'description' => '条件过滤KEY名称(废弃)', - 'type' => 'string', - 'required' => false, - 'example' => '无', - ], - 'Values' => [ - 'description' => '条件过滤值列表', - 'type' => 'array', - 'items' => [ - 'description' => '条件过滤值'."\n" - .'INSTANCE_NICK、INSTANCE_NICK时只能录入一个', - 'type' => 'string', - 'required' => false, - 'example' => '["TAG-test-xxx"]'."\n", - ], - 'required' => false, - ], - 'SelectType' => [ - 'description' => 'code和value关联关系', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'LIKE' => 'Code时其他情况下使用', - 'IN' => 'Code是INSTANCE_NICK、INSTANCE_NICK时使用', - ], - 'example' => 'IN', - ], + 'ShareRatioList' => [ + 'description' => '分摊比例列表', + 'type' => 'array', + 'items' => ['description' => '分摊比例', 'type' => 'number', 'format' => 'double', 'required' => false, 'example' => '0.2'], + 'required' => false, + 'maxItems' => 200, ], - 'required' => false, ], + 'required' => false, ], 'required' => false, ], ], [ - 'name' => 'Nbid', + 'name' => 'RemoveShareRuleList', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', + 'description' => '删除分摊规则列表', + 'type' => 'array', + 'items' => ['description' => '分摊规则ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1827'], 'required' => false, - 'example' => '2084210001', ], ], + [ + 'name' => 'Nbid', + 'in' => 'query', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2684201000001'], + ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPlainResult<Long>', - 'description' => 'BssApiPlainResult<Long>', + 'title' => 'BssApiPlainResult<CostCenterShareRuleSaveDto>', + 'description' => 'BssApiPlainResult<CostCenterShareRuleSaveDto>', 'type' => 'object', 'properties' => [ - 'Data' => [ - 'description' => '财务单元分配规则id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1111', - ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F', - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4'], + 'Success' => ['description' => '是否成功', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'CostCenter.MasterAndSubHasNoRelation', - 'errorMessage' => 'Your account has no valid account relation yet.', - ], - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => 'The specified request contains invalid parameters.', - ], - [ - 'errorCode' => 'CostCenter.RuleExpressionIllegal', - 'errorMessage' => 'The auto-allocation rule configuration is invalid.', - ], - [ - 'errorCode' => 'CostCenter.UnitNotExist', - 'errorMessage' => 'The financial unit does not exist or is invalid.', - ], + ['errorCode' => 'CostCenter.MasterAndSubHasNoRelation', 'errorMessage' => 'Your account has no valid account relation yet.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 1111,\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\"\\n}","type":"json"}]', - 'title' => '创建财务单元自动分配规则', - ], - 'ModifyCostCenterRule' => [ - 'summary' => '修改财务单元规则', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '修改财务单元分摊规则', + 'summary' => '修改财务单元分摊规则,包括对分摊规则的创建、修改、删除', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'SetFundAccountCreditAmount' => [ + 'summary' => '设置资金账户的信控限额', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -7443,282 +6182,74 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'OwnerAccountId', + 'name' => 'FundAccountId', 'in' => 'formData', - 'schema' => [ - 'title' => '财务单元的属主用户', - 'description' => '财务单元的属主用户(废弃)', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1234567812345678', - ], + 'schema' => ['title' => '资金账户id, 不设置时默认使用当前账号拥有(owner)的账户', 'description' => '资金账户id, 不设置时默认使用当前账号拥有(owner)的账户', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1232312'], ], [ - 'name' => 'CostCenterId', + 'name' => 'CreditAmount', 'in' => 'formData', - 'schema' => [ - 'title' => '财务单元ID', - 'description' => '财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '485938', - ], - ], - [ - 'name' => 'FilterExpression', - 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'title' => '规则表达式', - 'description' => '规则表达式', - 'type' => 'object', - 'properties' => [ - 'ExpressionType' => [ - 'description' => '操作类型', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'DIMENSION' => '叶子结点过滤类型(code非标签使用)', - 'TAG' => '叶子结点过滤类型(code是标签时使用)', - 'NARY' => '子条件关系(非叶子条件时使用)', - ], - 'example' => 'NARY', - ], - 'OperatorType' => [ - 'description' => '关系表达式', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'OR' => 'OR', - 'AND' => 'AND', - ], - 'example' => 'AND', - ], - 'Operands' => [ - 'description' => '条件表达式', - 'type' => 'array', - 'items' => [ - 'description' => '条件表达式 **整体结构见示例(可以多层嵌套),下面的字段只是字段说明**', - 'type' => 'any', - 'required' => false, - 'example' => '{'."\n" - .' '."\n" - .' "Operands": ['."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "TAG-xxx",'."\n" - .' "Values": ['."\n" - .' "xxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "TAG"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "INSTANCE_ID",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "LIKE"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "INSTANCE_NICK",'."\n" - .' "Values": ['."\n" - .' "111"'."\n" - .' ],'."\n" - .' "SelectType": "LIKE"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "RESOURCE_GROUP",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "ARTICLE",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "PRODUCT",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "OWNER",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' }'."\n" - .' ]'."\n" - .' }', - ], - 'required' => false, - ], - 'Operand' => [ - 'description' => '筛选条件(废弃)', - 'type' => 'any', - 'required' => false, - 'example' => '无', - ], - 'FilterValues' => [ - 'description' => '子条件过滤', - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'description' => '条件过滤KEY', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'OWNER' => '账号', - 'ARTICLE' => '产品明细', - 'RESOURCE_GROUP' => '资源组', - 'xxx(用户自定义标签key)' => '业务标签,基于用户实际配置值', - 'PRODUCT' => '产品', - 'INSTANCE_NICK' => '实例名称', - 'INSTANCE_ID' => '实例ID(出账粒度)', - ], - 'example' => 'TAG-test-xxx-key', - ], - 'CodeName' => [ - 'description' => '条件过滤KEY名称(废弃)', - 'type' => 'string', - 'required' => false, - 'example' => '无', - ], - 'Values' => [ - 'description' => '条件过滤值列表', - 'type' => 'array', - 'items' => [ - 'description' => '条件过滤值 INSTANCE_NICK、INSTANCE_NICK时只能录入一个', - 'type' => 'string', - 'required' => false, - 'example' => '["TAG-test-xxx"]'."\n", - ], - 'required' => false, - ], - 'SelectType' => [ - 'description' => 'code和value关联关系', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'LIKE' => 'Code时其他情况下使用', - 'IN' => 'Code是INSTANCE_NICK、INSTANCE_NICK时使用', - ], - 'example' => 'IN', - ], - ], - 'required' => false, - ], - ], - 'required' => false, - ], + 'schema' => ['title' => '授信额度', 'description' => '授信额度', 'type' => 'string', 'required' => true, 'example' => '500'], ], [ - 'name' => 'Nbid', - 'in' => 'query', - 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', - ], + 'name' => 'Currency', + 'in' => 'formData', + 'schema' => ['title' => '信控额度币种。目前国内仅支持CNY,国际仅支持USD', 'description' => '信控额度币种。目前国内仅支持CNY,国际仅支持USD', 'type' => 'string', 'required' => true, 'example' => 'CNY'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPlainResult<Long>', - 'description' => 'BssApiPlainResult<Long>', + 'title' => 'BssApiPlainResult<Void>', + 'description' => 'BssApiPlainResult<Void>', 'type' => 'object', 'properties' => [ - 'Data' => [ - 'description' => '财务单元分配规则id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '5632', - ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '6000EE23-274B-4E07-A697-FF2E999520A4', - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F'."\n"], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'CostCenter.MasterAndSubHasNoRelation', - 'errorMessage' => 'Your account has no valid account relation yet.', - ], - [ - 'errorCode' => 'CostCenter.RuleExpressionIllegal', - 'errorMessage' => 'The auto-allocation rule configuration is invalid.', - ], - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => 'The specified request contains invalid parameters.', - ], - [ - 'errorCode' => 'CostCenter.UnitNotExist', - 'errorMessage' => 'The financial unit does not exist or is invalid.', - ], + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified request contains invalid parameters.', 'description' => ''], + ['errorCode' => 'RequestTimeout', 'errorMessage' => 'Request timed out. Please try again later.', 'description' => '请求超时,请稍后再试'], + ['errorCode' => 'NoFundAccountPermission', 'errorMessage' => 'The caller does not have permission for the specified fund account.', 'description' => '当前登录账号没有权限操作指定账户。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this action.', 'description' => '您无权执行此操作。'], + ['errorCode' => 'ExistApprovingProcess', 'errorMessage' => 'There is a credit control setting process in the approval process, please contact the business manager.', 'description' => '存在审批中的信控设置流程,请联系商务经理。'], + ['errorCode' => 'ExistUnconfirmedContract', 'errorMessage' => 'The account you operate has a credit contract to be confirmed. Please confirm the contract first.', 'description' => '您操作的账户存在待确认的信控合同,请先确认合同。'."\n"], + ['errorCode' => 'NotSupportAllocateCredit', 'errorMessage' => 'Self-service credit limit allocation is currently unavailable. Please contact your service manager for assistance.', 'description' => '当前不支持自助分配信控额度,请联系您的服务经理修改'], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 5632,\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"6000EE23-274B-4E07-A697-FF2E999520A4\\"\\n}","type":"json"}]', - 'title' => '修改财务单元自动分配规则', - 'description' => '修改一个或多个财务单元', - ], - 'DeleteCostCenterRule' => [ - 'summary' => '删除财务单元自动分配规则', - 'methods' => [ - 'post', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\\\n\\"\\n}","type":"json"}]', + 'title' => '设置资金账户的信控限额', + 'changeSet' => [ + ['createdAt' => '2025-08-16T13:58:45.000Z', 'description' => '错误码发生变更'], ], - 'schemes' => [ - 'https', + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'efc:ModifyCredit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'SetFundAccountLowAvailableAmountAlarm' => [ + 'summary' => '设置资金账户低额预警', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -7726,297 +6257,91 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'CostCenterId', + 'name' => 'ThresholdAmount', 'in' => 'formData', - 'schema' => [ - 'title' => '财务单元ID', - 'description' => '财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '637127', - ], - ], - [ - 'name' => 'FilterExpression', - 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'title' => '规则表达式', - 'description' => '规则表达式'."\n" - .'**删除操作时,该字段不需要录入**', - 'type' => 'object', - 'properties' => [ - 'ExpressionType' => [ - 'description' => '操作类型', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'DIMENSION' => '叶子结点过滤类型(code非标签使用)', - 'TAG' => '叶子结点过滤类型(code=标签使用)', - 'NARY' => '子条件关系(非叶子条件时使用)', - ], - 'example' => 'NARY', - ], - 'OperatorType' => [ - 'description' => '关系表达式', - 'type' => 'string', - 'required' => false, - 'example' => 'AND', - ], - 'Operands' => [ - 'description' => '条件表达式', - 'type' => 'array', - 'items' => [ - 'description' => '条件表达式 '."\n" - .'**整体结构见示例(可以多层嵌套),下面的字段只是字段说明**', - 'type' => 'any', - 'required' => false, - 'example' => '{'."\n" - .' '."\n" - .' "Operands": ['."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "TAG-xxx",'."\n" - .' "Values": ['."\n" - .' "xxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "TAG"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "INSTANCE_ID",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "LIKE"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "INSTANCE_NICK",'."\n" - .' "Values": ['."\n" - .' "111"'."\n" - .' ],'."\n" - .' "SelectType": "LIKE"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "RESOURCE_GROUP",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "ARTICLE",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "PRODUCT",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "OWNER",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' }'."\n" - .' ]'."\n" - .' }', - ], - 'required' => false, - ], - 'Operand' => [ - 'description' => '筛选条件(不再使用)', - 'type' => 'any', - 'required' => false, - 'example' => '无', - ], - 'FilterValues' => [ - 'description' => '子表达式过滤条件', - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'description' => '条件过滤KEY', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'OWNER' => '账号', - 'ARTICLE' => '产品明细', - 'RESOURCE_GROUP' => '资源组', - 'xxx(用户自定义标签key)' => '业务标签,基于用户实际配置值', - 'PRODUCT' => '产品', - 'INSTANCE_NICK' => '实例名称', - 'INSTANCE_ID' => '出账粒度', - ], - 'example' => 'TAG-test-xxx-key'."\n", - ], - 'CodeName' => [ - 'description' => '条件过滤KEY名称', - 'type' => 'string', - 'required' => false, - 'example' => '无', - ], - 'Values' => [ - 'description' => '条件过滤值', - 'type' => 'array', - 'items' => [ - 'description' => '条件过滤值 INSTANCE_NICK、INSTANCE_NICK时只能录入一个', - 'type' => 'string', - 'required' => false, - 'example' => '["TAG-test-xxx"]'."\n", - ], - 'required' => false, - ], - 'SelectType' => [ - 'description' => 'code和value关联关系', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'LIKE' => 'Code时其他情况下使用', - 'IN' => 'Code是INSTANCE_NICK、INSTANCE_NICK时使用', - ], - 'example' => 'IN', - ], - ], - 'required' => false, - ], - ], - 'required' => false, - ], + 'schema' => ['title' => '低额预警阈值', 'description' => '低额预警阈值', 'type' => 'string', 'required' => true, 'example' => '100'], ], [ - 'name' => 'Nbid', - 'in' => 'query', - 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', - ], + 'name' => 'FundAccountId', + 'in' => 'formData', + 'schema' => ['title' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', 'description' => '资金账户id,不传时默认使用当前账号拥有(owner)的账户id。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '12321213'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPlainResult<Long>', - 'description' => 'BssApiPlainResult<Long>', + 'title' => 'BssApiPlainResult<Boolean>', + 'description' => 'BssApiPlainResult<Boolean>', 'type' => 'object', 'properties' => [ - 'Data' => [ - 'description' => '财务单元分配规则id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '37404', - ], - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'UUID', - ], + 'Data' => ['description' => '返回数据。', 'type' => 'boolean', 'example' => 'true'], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '08108BF5-1AA3-518E-9986-95A3616E8DA9'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'CostCenter.MasterAndSubHasNoRelation', - 'errorMessage' => 'Your account has no valid account relation yet.', - ], - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => 'The specified request contains invalid parameters.', - ], - [ - 'errorCode' => 'CostCenter.UnitNotExist', - 'errorMessage' => 'The financial unit does not exist or is invalid.', - ], + ['errorCode' => 'RequestTimeout', 'errorMessage' => 'Request timed out. Please try again later.', 'description' => '请求超时,请稍后再试'], + ['errorCode' => 'NoFundAccountPermission', 'errorMessage' => 'The caller does not have permission for the specified fund account.', 'description' => '当前登录账号没有权限操作指定账户。'], ], - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"08108BF5-1AA3-518E-9986-95A3616E8DA9\\"\\n}","type":"json"}]', + 'title' => '设置资金账户低额预警', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'bss:ModifyAlarm', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 37404,\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"UUID\\"\\n}","type":"json"}]', - 'title' => '删除财务单元自动分配规则', - 'description' => '本OpenAPI灰度中,仅对部分白名单用户开放,调用过多时不排除出现响应超时等性能问题。', ], - 'QueryCostCenterRule' => [ - 'summary' => '查询财务单元规则', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'SubmitSlaCouponApply' => [ + 'summary' => '用户申领近两月优惠券。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'autoTest' => true, - 'tenantRelevance' => 'tenant', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'high', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'CostCenterId', + 'name' => 'DamagedIds', 'in' => 'formData', + 'style' => 'repeatList', 'schema' => [ - 'description' => '财务单元的ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '必填,受损记录 ID', + 'description' => '可选,受损记录 ID', + 'type' => 'array', + 'items' => ['description' => '受损记录ID', 'type' => 'string', 'required' => false, 'example' => '9b7***9413'], 'required' => false, - 'example' => '597745', + 'maxItems' => 100, ], ], [ + 'name' => 'Month', + 'in' => 'formData', + 'schema' => ['title' => '必填,申请月份,格式 yyyyMM', 'description' => '必填,申请月份,格式 yyyyMM', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '202603'], + ], + [ 'name' => 'EcIdAccountIds', 'in' => 'query', 'style' => 'repeatList', @@ -8025,30 +6350,19 @@ 'description' => '企业与账号列表,为空表示查询当前账号自身', 'type' => 'array', 'items' => [ + 'title' => '企业与账号列表,为空表示查询当前账号自身', 'description' => '企业与账号列表,为空表示查询当前账号自身', 'type' => 'object', 'properties' => [ + 'EcId' => ['title' => '企业实体ID', 'description' => '企业实体ID', 'type' => 'string', 'required' => false, 'example' => '1501603440974415'], 'AccountIds' => [ 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', 'type' => 'array', - 'items' => [ - 'description' => '成员账号ID。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1990699401005016', - ], + 'items' => ['title' => '成员账号ID。', 'description' => '成员账号ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1501603440974415'], 'required' => false, 'maxItems' => 100, ], - 'EcId' => [ - 'title' => '企业实体ID', - 'description' => '企业实体ID', - 'type' => 'string', - 'required' => true, - 'example' => '1004064243473974', - ], ], 'required' => false, ], @@ -8059,623 +6373,1195 @@ [ 'name' => 'Nbid', 'in' => 'query', - 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', - 'required' => false, - 'example' => '2684201000001', - ], + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '2084210001'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPlainResult<CostCenterRuleDto>', - 'description' => 'BssApiPlainResult<CostCenterRuleDto>', + 'title' => 'BssApiPlainResult<CouponApplyResult>', + 'description' => 'BssApiPlainResult<CouponApplyResult>', 'type' => 'object', 'properties' => [ - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => 'UUID', - ], - 'OwnerAccountId' => [ - 'title' => '财务单元的属主用户', - 'description' => '财务单元的属主用户', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1977800748053695', - ], - 'RootCostCenterId' => [ - 'title' => '根财务单元ID', - 'description' => '根财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'CostCenterId' => [ - 'title' => '财务单元ID', - 'description' => '财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '597745', - ], - 'Id' => [ - 'description' => '财务单元自动分配规则id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '32048', - ], - 'FilterExpression' => [ - 'description' => '规则表达式', - 'type' => 'object', - 'properties' => [ - 'ExpressionType' => [ - 'description' => '操作类型', - 'type' => 'string', - 'enumValueTitles' => [ - 'DIMENSION' => '叶子结点过滤类型(code非标签使用)', - 'TAG' => '叶子结点过滤类型(code是标签时使用)', - 'NARY' => '子条件关系(非叶子条件时使用)', - ], - 'example' => 'NARY', - ], - 'OperatorType' => [ - 'description' => '关系表达式', - 'type' => 'string', - 'enumValueTitles' => [ - 'OR' => 'OR', - 'AND' => 'AND', - ], - 'example' => 'AND', - ], - 'Operands' => [ - 'description' => '条件表达式', - 'type' => 'array', - 'items' => [ - 'description' => '条件表达式 整体结构见示例(可以多层嵌套),下面的字段只是字段说明', - 'type' => 'any', - 'example' => '{'."\n" - .' '."\n" - .' "Operands": ['."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "TAG-xxx",'."\n" - .' "Values": ['."\n" - .' "xxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "TAG"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "INSTANCE_ID",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "LIKE"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "INSTANCE_NICK",'."\n" - .' "Values": ['."\n" - .' "111"'."\n" - .' ],'."\n" - .' "SelectType": "LIKE"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "RESOURCE_GROUP",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "ARTICLE",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "PRODUCT",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' },'."\n" - .' {'."\n" - .' "FilterValues": {'."\n" - .' "Code": "OWNER",'."\n" - .' "Values": ['."\n" - .' "xxxxx"'."\n" - .' ],'."\n" - .' "SelectType": "IN"'."\n" - .' },'."\n" - .' "ExpressionType": "DIMENSION"'."\n" - .' }'."\n" - .' ]'."\n" - .' }', - ], - ], - 'Operand' => [ - 'description' => '筛选条件(废弃)', - 'type' => 'any', - 'example' => '无', - ], - 'FilterValues' => [ - 'description' => '子条件过滤', - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'description' => '条件过滤KEY', - 'type' => 'string', - 'enumValueTitles' => [ - 'OWNER' => '账号', - 'ARTICLE' => '产品明细', - 'RESOURCE_GROUP' => '资源组', - 'xxx(用户自定义标签key)' => '业务标签,基于用户实际配置值', - 'PRODUCT' => '产品', - 'INSTANCE_NICK' => '实例名称', - 'INSTANCE_ID' => '实例ID(出账粒度)', - ], - 'example' => 'TAG-test-xxx-key'."\n", - ], - 'CodeName' => [ - 'description' => '条件过滤KEY名称(废弃)', - 'type' => 'string', - 'example' => '无', - ], - 'Values' => [ - 'description' => '模块Code对应属性值类型。取值:'."\n" - .'- single_float:单一取值类型。'."\n" - .'- range_float:范围取值类型。', - 'type' => 'array', - 'items' => [ - 'description' => '条件过滤值 INSTANCE_NICK、INSTANCE_NICK时只能录入一个', - 'type' => 'string', - 'example' => '["TAG-test-xxx"]'."\n", - ], - ], - 'SelectType' => [ - 'description' => 'code和value关联关系', - 'type' => 'string', - 'enumValueTitles' => [ - 'LIKE' => 'Code时其他情况下使用', - 'IN' => 'Code是INSTANCE_NICK、INSTANCE_NICK时使用', - ], - 'example' => 'IN', - ], - ], - ], - ], - ], - 'Status' => [ - 'description' => '状态:'."\n" - .'on:有效'."\n" - .'off 失效', - 'type' => 'string', - 'example' => 'on', - ], - 'IsDeleted' => [ - 'description' => '删除状态:'."\n" - .'* **0**:激活'."\n" - .'* **1**:失效', - 'type' => 'integer', - 'format' => 'int32', - 'example' => 'false', - ], - 'GmtCreate' => [ - 'description' => '创建时间', - 'type' => 'string', - 'example' => 'Tue Nov 12 14:49:43 CST 2024', - ], - 'GmtModified' => [ - 'description' => '修改时间', - 'type' => 'string', - 'example' => 'Wed Oct 16 10:15:37 CST 2024', - ], + 'Metadata' => ['title' => '返回结构元数据', 'description' => '返回结构元数据', 'type' => 'any', 'example' => '{}'], + 'RequestId' => ['title' => '请求唯一标识,用于标记一次请求,便于定位问题', 'description' => '请求唯一标识,用于标记一次请求,便于定位问题', 'type' => 'string', 'example' => '79EE7556-0CFD-44EB-9CD6-B3B526E3A85F'], + 'SumCoupon' => ['description' => '总申领金额', 'type' => 'number', 'format' => 'double', 'example' => '6.4'], + 'ValidStartTime' => ['title' => '开始时间', 'description' => '开始时间', 'type' => 'string', 'example' => 'Tue Oct 27 13:15:58 CST 2026'], + 'ValidEndTime' => ['title' => '结束时间', 'description' => '结束时间', 'type' => 'string', 'example' => 'Mon Apr 27 00:00:00 CST 2026'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'CostCenter.MasterAndSubHasNoRelation', - 'errorMessage' => 'Your account has no valid account relation yet.', - ], + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified request contains invalid parameters.', 'description' => ''], + ['errorCode' => 'CouponNotFound', 'errorMessage' => 'No claimable SLA coupons.', 'description' => '无可申领的SLA优惠券'], + ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'title' => 'SLA赔付申领', + 'description' => '1、查询QueryMonthlySlaList,获取可申领月份和记录'."\n" + ."\n" + .'2、按月或按记录申领'."\n" + ."\n" + .'注意:仅可申领近两月赔付,历史赔付已自动发放', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"UUID\\",\\n \\"OwnerAccountId\\": 1977800748053695,\\n \\"RootCostCenterId\\": 0,\\n \\"CostCenterId\\": 597745,\\n \\"Id\\": 32048,\\n \\"FilterExpression\\": {\\n \\"ExpressionType\\": \\"NARY\\",\\n \\"OperatorType\\": \\"AND\\",\\n \\"Operands\\": [\\n \\"{\\\\n \\\\n \\\\\\"Operands\\\\\\": [\\\\n {\\\\n \\\\\\"FilterValues\\\\\\": {\\\\n \\\\\\"Code\\\\\\": \\\\\\"TAG-xxx\\\\\\",\\\\n \\\\\\"Values\\\\\\": [\\\\n \\\\\\"xxxx\\\\\\"\\\\n ],\\\\n \\\\\\"SelectType\\\\\\": \\\\\\"IN\\\\\\"\\\\n },\\\\n \\\\\\"ExpressionType\\\\\\": \\\\\\"TAG\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"FilterValues\\\\\\": {\\\\n \\\\\\"Code\\\\\\": \\\\\\"INSTANCE_ID\\\\\\",\\\\n \\\\\\"Values\\\\\\": [\\\\n \\\\\\"xxxxx\\\\\\"\\\\n ],\\\\n \\\\\\"SelectType\\\\\\": \\\\\\"LIKE\\\\\\"\\\\n },\\\\n \\\\\\"ExpressionType\\\\\\": \\\\\\"DIMENSION\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"FilterValues\\\\\\": {\\\\n \\\\\\"Code\\\\\\": \\\\\\"INSTANCE_NICK\\\\\\",\\\\n \\\\\\"Values\\\\\\": [\\\\n \\\\\\"111\\\\\\"\\\\n ],\\\\n \\\\\\"SelectType\\\\\\": \\\\\\"LIKE\\\\\\"\\\\n },\\\\n \\\\\\"ExpressionType\\\\\\": \\\\\\"DIMENSION\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"FilterValues\\\\\\": {\\\\n \\\\\\"Code\\\\\\": \\\\\\"RESOURCE_GROUP\\\\\\",\\\\n \\\\\\"Values\\\\\\": [\\\\n \\\\\\"xxxxx\\\\\\"\\\\n ],\\\\n \\\\\\"SelectType\\\\\\": \\\\\\"IN\\\\\\"\\\\n },\\\\n \\\\\\"ExpressionType\\\\\\": \\\\\\"DIMENSION\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"FilterValues\\\\\\": {\\\\n \\\\\\"Code\\\\\\": \\\\\\"ARTICLE\\\\\\",\\\\n \\\\\\"Values\\\\\\": [\\\\n \\\\\\"xxxxx\\\\\\"\\\\n ],\\\\n \\\\\\"SelectType\\\\\\": \\\\\\"IN\\\\\\"\\\\n },\\\\n \\\\\\"ExpressionType\\\\\\": \\\\\\"DIMENSION\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"FilterValues\\\\\\": {\\\\n \\\\\\"Code\\\\\\": \\\\\\"PRODUCT\\\\\\",\\\\n \\\\\\"Values\\\\\\": [\\\\n \\\\\\"xxxxx\\\\\\"\\\\n ],\\\\n \\\\\\"SelectType\\\\\\": \\\\\\"IN\\\\\\"\\\\n },\\\\n \\\\\\"ExpressionType\\\\\\": \\\\\\"DIMENSION\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"FilterValues\\\\\\": {\\\\n \\\\\\"Code\\\\\\": \\\\\\"OWNER\\\\\\",\\\\n \\\\\\"Values\\\\\\": [\\\\n \\\\\\"xxxxx\\\\\\"\\\\n ],\\\\n \\\\\\"SelectType\\\\\\": \\\\\\"IN\\\\\\"\\\\n },\\\\n \\\\\\"ExpressionType\\\\\\": \\\\\\"DIMENSION\\\\\\"\\\\n }\\\\n ]\\\\n }\\"\\n ],\\n \\"Operand\\": \\"无\\",\\n \\"FilterValues\\": {\\n \\"Code\\": \\"TAG-test-xxx-key\\\\n\\",\\n \\"CodeName\\": \\"无\\",\\n \\"Values\\": [\\n \\"[\\\\\\"TAG-test-xxx\\\\\\"]\\\\n\\"\\n ],\\n \\"SelectType\\": \\"IN\\"\\n }\\n },\\n \\"Status\\": \\"on\\",\\n \\"IsDeleted\\": 0,\\n \\"GmtCreate\\": \\"Tue Nov 12 14:49:43 CST 2024\\",\\n \\"GmtModified\\": \\"Wed Oct 16 10:15:37 CST 2024\\"\\n}","type":"json"}]', - 'title' => '查询财务单元自动分配规则', - 'description' => '查询父财务单元及其子财务单元', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"79EE7556-0CFD-44EB-9CD6-B3B526E3A85F\\",\\n \\"SumCoupon\\": 6.4,\\n \\"ValidStartTime\\": \\"Tue Oct 27 13:15:58 CST 2026\\",\\n \\"ValidEndTime\\": \\"Mon Apr 27 00:00:00 CST 2026\\"\\n}","type":"json"}]', ], - 'AllocateCostCenterResource' => [ - 'summary' => '资源实例(实例型和分拆型)从源财务单元分配到目标财务单元。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateBudget' => [ + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - 'autoTest' => true, - 'tenantRelevance' => 'tenant', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'], 'parameters' => [ [ - 'name' => 'FromOwnerAccountId', + 'name' => 'OriginalBudgetName', 'in' => 'formData', - 'schema' => [ - 'description' => '源财务单元的属主用户 ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1529600453335198', - ], + 'schema' => ['description' => '原始预算名称', 'type' => 'string', 'required' => true, 'example' => 'OriginalBudgetName'], ], [ - 'name' => 'FromCostCenterId', + 'name' => 'BudgetName', + 'in' => 'formData', + 'schema' => ['title' => '预算名称', 'description' => '预算名称', 'type' => 'string', 'required' => true, 'example' => 'NewBudgetName'], + ], + [ + 'name' => 'BudgetType', + 'in' => 'formData', + 'schema' => ['title' => '预算类型', 'description' => '预算类型', 'type' => 'string', 'required' => true, 'example' => 'CONSUME'], + ], + [ + 'name' => 'Metric', + 'in' => 'formData', + 'schema' => ['title' => '预算指标', 'description' => '预算指标', 'type' => 'string', 'required' => true, 'example' => 'REQUIRE_AMOUNT'], + ], + [ + 'name' => 'CycleType', + 'in' => 'formData', + 'schema' => ['title' => '周期类型', 'description' => '周期类型', 'type' => 'string', 'required' => true, 'example' => 'MONTHLY'], + ], + [ + 'name' => 'CycleStartPeriod', + 'in' => 'formData', + 'schema' => ['title' => '起始周期', 'description' => '起始周期', 'type' => 'string', 'required' => true, 'example' => '2026-01'], + ], + [ + 'name' => 'CycleEndPeriod', + 'in' => 'formData', + 'schema' => ['title' => '结束周期', 'description' => '结束周期', 'type' => 'string', 'required' => true, 'example' => '2026-12'], + ], + [ + 'name' => 'QuotaType', + 'in' => 'formData', + 'schema' => ['title' => '额度类型', 'description' => '额度类型', 'type' => 'string', 'required' => true, 'example' => 'FIXED'], + ], + [ + 'name' => 'Quota', + 'in' => 'formData', + 'schema' => ['title' => '固定额度值,如果是额度的话单位是百分比', 'description' => '固定额度值', 'type' => 'string', 'required' => false, 'example' => '1000'], + ], + [ + 'name' => 'CycleQuota', 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'description' => '源财务单元 ID(必传)。'."\n" - ."\n" - .'- 0 表示未分配财务单元 ID'."\n" - .'- 大于 0 表示已分配的财务单元 ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '每周期指定额度', + 'description' => '每周期指定额度', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'CyclePeriod' => ['title' => '周期', 'description' => '周期', 'type' => 'string', 'required' => false, 'example' => '2026-01'], + 'Quota' => ['title' => '额度', 'description' => '额度', 'type' => 'string', 'required' => false, 'example' => '1000'], + ], + 'required' => false, + 'description' => '', + ], 'required' => false, - 'example' => '637180', ], ], [ - 'name' => 'ToCostCenterId', + 'name' => 'QueryFilter', 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'description' => '目标财务单元 ID,取值:'."\n" - ."\n" - .'- -1 表示已分配资源移除到未分配。'."\n" - .'- 大于 0 表示分配到指定财务单元。', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '过滤条件', + 'description' => '过滤条件', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Code' => ['title' => '参数code', 'description' => '参数code', 'type' => 'string', 'required' => false, 'example' => 'PRODUCT'], + 'SelectType' => ['title' => '选择模式', 'description' => '选择模式', 'type' => 'string', 'required' => false, 'example' => 'IN'], + 'Values' => [ + 'title' => '过滤值列表', + 'description' => '过滤值列表', + 'type' => 'array', + 'items' => ['description' => '过滤值', 'type' => 'string', 'required' => false, 'example' => 'oss'], + 'required' => false, + ], + ], + 'required' => false, + 'description' => '', + ], 'required' => false, - 'example' => '638288', ], ], [ - 'name' => 'ResourceInstanceList', + 'name' => 'Comment', + 'in' => 'formData', + 'schema' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'required' => false, 'example' => 'comment'], + ], + [ + 'name' => 'WarnConfs', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'description' => '资源实例列表。', + 'title' => '预警配置', + 'description' => '预警配置', 'type' => 'array', 'items' => [ - 'description' => '资源实例列表。', 'type' => 'object', 'properties' => [ - 'ResourceUserId' => [ - 'description' => '账单实例的属主用户 ID(必传)。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '273394581313325532', - ], - 'InstanceId' => [ - 'description' => '出账粒度ID(必传)', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou;standard'."\n", - ], - 'ResourceType' => [ - 'description' => '资源类型。', - 'type' => 'string', - 'required' => false, - 'example' => 'SCU', - ], - 'PipCode' => [ - 'description' => '产品Code,与费用中心账单产品Code一致。', - 'type' => 'string', - 'required' => false, - 'example' => 'ecs', - ], - 'ResourceNick' => [ - 'description' => '资源的自定义昵称。', - 'type' => 'string', - 'required' => false, - 'example' => 'ecs-test-1', - ], - 'ApportionCode' => [ - 'description' => '分拆型实例的分拆型,只有分拆型产品实例才需要传这个参数。'."\n" - .'- 目前分拆项产品有八种商品,其商品code分别是oss、dcdn、snapshot、vod、cdn、live、cbwp。'."\n" - .'- 这个分拆项字段一般是通过QueryCostUnitResource获取用户的某一个财务单元(包含未分配)下的所有账单实例(包括分拆型实例会带分拆项)。', - 'type' => 'string', - 'required' => false, - 'example' => 'qwer1-cn-beijing', - ], - 'ResourceTag' => [ - 'description' => '资源的Tag标签', - 'type' => 'string', - 'required' => false, - 'example' => 'tag-test1', - ], - 'RelatedResources' => [ - 'description' => '资源实例相关的资源。', - 'type' => 'string', - 'required' => false, - 'example' => 'related-resource', - ], - 'ApportionName' => [ - 'description' => '资源分拆名。', - 'type' => 'string', - 'required' => false, - 'example' => 'split-item-test1', - ], - 'ResourceId' => [ - 'description' => '资源ID', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou;standard:app', - ], - 'ResourceSource' => [ - 'description' => '资源来源。取值:'."\n" - .'- AUTO_ALLOCATE:自动分配。'."\n" - .'- MANUAL_ALLOCATE:手动分配。', - 'type' => 'string', - 'required' => false, - 'example' => 'AUTO_ALLOCATE', - ], - 'CommodityCode' => [ - 'description' => '账单实例的商品code(必传)。', - 'type' => 'string', - 'required' => false, - 'example' => 'oss', - ], - 'ResourceStatus' => [ - 'description' => '资源状态。', - 'type' => 'string', - 'required' => false, - 'example' => '0', - ], - 'ResourceUserName' => [ - 'description' => '资源归属用户名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'CommodityName' => [ - 'description' => '资源的商品名', - 'type' => 'string', + 'Name' => ['title' => '预警名称(用户自定义,可选,不传时后端自动生成)', 'description' => '预警名称(用户自定义,可选,不传时后端自动生成)', 'type' => 'string', 'required' => false, 'example' => 'warn1'], + 'WarnTarget' => ['title' => '预警对象', 'description' => '预警对象', 'type' => 'string', 'required' => false, 'example' => 'ACTUAL'], + 'ThresholdType' => ['title' => '阈值类型', 'description' => '阈值类型', 'type' => 'string', 'required' => false, 'example' => 'FIXED'], + 'ThresholdValue' => ['title' => '阈值', 'description' => '阈值', 'type' => 'string', 'required' => false, 'example' => '1000'], + 'MscContacts' => [ + 'title' => '消息中心联系人列表', + 'description' => '消息中心联系人列表', + 'type' => 'array', + 'items' => ['description' => '消息中心联系人', 'type' => 'string', 'required' => false, 'example' => '1'], 'required' => false, - 'example' => 'RESOURCE_UDR', ], - 'ResourceGroup' => [ - 'description' => '资源组。', - 'type' => 'string', + 'MscChannels' => [ + 'title' => '消息中心通知渠道列表', + 'description' => '消息中心通知渠道列表', + 'type' => 'array', + 'items' => ['description' => '消息中心通知渠道', 'type' => 'string', 'required' => false, 'example' => 'EMAIL'], 'required' => false, - 'example' => 'xihe_mpp', ], + 'EventBridge' => ['title' => '开启EventBridge', 'description' => '开启EventBridge', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'Comment' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'required' => false, 'example' => 'comment'], ], 'required' => false, + 'description' => '', ], - 'required' => true, + 'required' => false, ], ], [ - 'name' => 'Nbid', + 'name' => 'EcIdAccountIds', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', - 'type' => 'string', + 'title' => '企业与账号列表,为空表示查询当前账号自身', + 'description' => '企业与账号列表,为空表示查询当前账号自身', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'EcId' => ['title' => '企业实体ID', 'description' => '企业实体ID', 'type' => 'string', 'required' => false, 'example' => '1'], + 'AccountIds' => [ + 'title' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'description' => '访问的账号列表,为空代表全选当前实体ID下所有账号', + 'type' => 'array', + 'items' => ['description' => '访问账号', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '5772131917494444'], + 'required' => false, + ], + ], + 'required' => false, + 'description' => '', + ], 'required' => false, - 'example' => '2684201000001', ], ], + [ + 'name' => 'Nbid', + 'in' => 'query', + 'schema' => ['title' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'description' => '一级售卖场ID,如果为空,默认使用当前用户所属的场ID填充', 'type' => 'string', 'required' => false, 'example' => '26842'], + ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'BssApiPlainResult<CostCenterOperateDto>', - 'description' => 'BssApiPlainResult<CostCenterOperateDto>', + 'title' => '', + 'description' => '', 'type' => 'object', 'properties' => [ - 'Metadata' => [ - 'title' => '返回结构元数据', - 'description' => '返回结构元数据', - 'type' => 'any', - 'example' => '{}', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'UUID', - ], - 'OwnerAccountId' => [ - 'title' => '财务单元的属主用户', - 'description' => '财务单元的属主用户', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1529600453335198', - ], - 'CostCenterId' => [ - 'title' => '财务单元ID', - 'description' => '财务单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '640403', - ], - 'IsSuccess' => [ - 'title' => '是否成功', - 'description' => '是否成功', - 'type' => 'boolean', - 'example' => 'true', - ], + 'BudgetName' => ['type' => 'string'], + 'RequestId' => ['description' => '请求id', 'type' => 'string', 'example' => '03A59CD4-6C6B-1A62-B64C-F1F2AF7830F3'], ], ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'CostCenter.MasterAndSubHasNoRelation', - 'errorMessage' => 'Your account has no valid account relation yet.', - ], - [ - 'errorCode' => 'CostCenter.ResourceAuthFailed', - 'errorMessage' => 'The instance does not belong to the current user.', - ], - [ - 'errorCode' => 'CostCenter.ResourceNotExist', - 'errorMessage' => 'The specified instance is not found in our records.', - ], - [ - 'errorCode' => 'CostCenter.AllocateResourceRepeat', - 'errorMessage' => 'The instance has already been assigned a financial unit. Use transfer allocation for adjustment.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '更新预算', + 'summary' => '更新预算', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Metadata\\": \\"{}\\",\\n \\"RequestId\\": \\"UUID\\",\\n \\"OwnerAccountId\\": 1529600453335198,\\n \\"CostCenterId\\": 640403,\\n \\"IsSuccess\\": true\\n}","type":"json"}]', - 'title' => '资源分配到财务单元', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"BudgetName\\": \\"\\",\\n \\"RequestId\\": \\"03A59CD4-6C6B-1A62-B64C-F1F2AF7830F3\\"\\n}","type":"json"}]', ], ], 'endpoints' => [ + ['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'business.ap-southeast-1.aliyuncs.com', 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'ap-northeast-2', 'regionName' => '韩国(首尔)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'business.ap-southeast-1.aliyuncs.com', 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'ap-southeast-3', 'regionName' => '马来西亚(吉隆坡)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'business.ap-southeast-1.aliyuncs.com', 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'business.ap-southeast-1.aliyuncs.com', 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-chengdu', 'regionName' => '西南1(成都)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'business.aliyuncs.com', 'endpoint' => 'business.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-huhehaote', 'regionName' => '华北5(呼和浩特)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'business.aliyuncs.com', 'endpoint' => 'business.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-qingdao', 'regionName' => '华北1(青岛)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'business.aliyuncs.com', 'endpoint' => 'business.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'business.aliyuncs.com', 'endpoint' => 'business.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'business.aliyuncs.com', 'endpoint' => 'business.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'business.aliyuncs.com', 'endpoint' => 'business.aliyuncs.com', 'vpc' => 'business-intl.vpc-proxy.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'business.aliyuncs.com', 'endpoint' => 'business.aliyuncs.com', 'vpc' => 'business-intl.vpc-proxy.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'business.aliyuncs.com', 'endpoint' => 'business.aliyuncs.com', 'vpc' => 'business-vpc.cn-hongkong.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'business.ap-southeast-1.aliyuncs.com', 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', 'vpc' => 'business-intl.vpc-proxy.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'business.aliyuncs.com', 'endpoint' => 'business.aliyuncs.com', 'vpc' => 'business.vpc-proxy.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'business.aliyuncs.com', 'endpoint' => 'business.aliyuncs.com', 'vpc' => 'business-vpc.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'business.ap-southeast-1.aliyuncs.com', 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'business.ap-southeast-1.aliyuncs.com', 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'eu-west-1', 'regionName' => '英国(伦敦)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'business.ap-southeast-1.aliyuncs.com', 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'business.ap-southeast-1.aliyuncs.com', 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'me-east-1', 'regionName' => '阿联酋(迪拜)', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'business.ap-southeast-1.aliyuncs.com', 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'ap-south-1', 'regionName' => '印度(孟买)已关停', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'business.ap-southeast-1.aliyuncs.com', 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-shenzhen-finance-1', 'regionName' => '华南1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'business.aliyuncs.com', 'endpoint' => 'business.aliyuncs.com', 'vpc' => 'business-vpc.cn-shenzhen-finance-1.aliyuncs.com'], + ['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'business.aliyuncs.com', 'endpoint' => 'business.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-hangzhou-finance', 'regionName' => '华东1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'business.aliyuncs.com', 'endpoint' => 'business.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-beijing-finance-1', 'regionName' => '华北2 金融云(邀测)', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'business.aliyuncs.com', 'endpoint' => 'business.aliyuncs.com', 'vpc' => ''], + ], + 'errorCodes' => [ + ['code' => 'AccountAbnormal', 'message' => 'Your account has been suspended or has outstanding issues, please contact customer service.', 'http_code' => 400, 'description' => '您的账户出现异常,详情请联系客服'], + ['code' => 'AccountNoQueryPricePermission', 'message' => 'This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice.', 'http_code' => 400, 'description' => '由于您没有折扣查询权限,无法访问该页面。请联系主账号前往费用中心授权,需要授权的权限点为 queryprice'], + ['code' => 'AccountNotExist', 'message' => 'Account does not exist.', 'http_code' => 400, 'description' => '账号不存在'], + ['code' => 'AccountNotFound', 'message' => 'The specified account does not exist in the system.', 'http_code' => 404, 'description' => '账号不存在'], + ['code' => 'AccountRiskFound', 'message' => 'You account has undefined risk.', 'http_code' => 500, 'description' => '当前账号存在风险,请提交工单后重试'], + ['code' => 'ActionInProcess', 'message' => 'Action in process, please wait.', 'http_code' => 400, 'description' => '业务处理中,请稍后'], + ['code' => 'ActivityNotFound', 'message' => 'Activity does not exist.', 'http_code' => 500, 'description' => '活动不存在'], + ['code' => 'AmountExceedLimit', 'message' => 'Amount exceeds limits, please try a different card.', 'http_code' => 400, 'description' => '金额超过限制,请联系发卡行或换卡重试'], + ['code' => 'AmountLimitExceed', 'message' => 'The transaction amount exceeds the single or daily limit. Please try reducing the transaction amount or contact your bank to increase the limit.', 'http_code' => 400, 'description' => '本次交易金额超过了单笔或每日限额。请尝试减少交易金额,或联系您的银行提高限额。'], + ['code' => 'ApplyPaperContractError', 'message' => 'Failed to apply for a paper contract.', 'http_code' => 400, 'description' => '申请过纸质合同失败'], + ['code' => 'AsyncFormalContractError', 'message' => 'Application for contract confirmation failed.', 'http_code' => 400, 'description' => '申请合同转正失败'], + ['code' => 'AuthSiteFail', 'message' => 'auth site failed.', 'http_code' => 400, 'description' => '账号和归属站点不匹配,请检查endpoint是否准确'], + ['code' => 'AvailableTransferAmountNotEnough', 'message' => 'The available amount for granting or recycling is insufficient.', 'http_code' => 400, 'description' => '可划拨/回收的金额不足,请确认后重试。'], + ['code' => 'BillingAccountOperateForbid', 'message' => 'Operation is forbidden for your billing account.', 'http_code' => 400, 'description' => '您是分销商关联的客户,禁止进行当前操作'], + ['code' => 'CanApplyContractError', 'message' => 'Failed to apply for contract verification.', 'http_code' => 400, 'description' => '是否可以申请合同校验失败'], + ['code' => 'CanApplyInvoiceEmptyError', 'message' => 'Current invoice cannot be queried. Contract application is not allowed.', 'http_code' => 400, 'description' => '无法查询到当前发票,不允许申请合同'], + ['code' => 'CanApplyInvoiceNegativeError', 'message' => 'Current invoice amount is negative, contract application is not allowed.', 'http_code' => 400, 'description' => '当前发票金额为负数,不允许申请合同'], + ['code' => 'CanApplyInvoiceStatusError', 'message' => 'Invoice status incorrect, unable to apply for contract.', 'http_code' => 400, 'description' => '发票状态不正确,无法申请合同'], + ['code' => 'CANCEL_INVOICE_ERROR', 'message' => 'Cancel invoice fail.', 'http_code' => 400, 'description' => '发票作废失败'], + ['code' => 'CANCEL_INVOICE_STATUS_ERROR', 'message' => 'The status of this invoice does not meet the cancel conditions.', 'http_code' => 400, 'description' => '该申请单状态不符合作废条件'], + ['code' => 'CantDeletePaymentMethodWhileOpenAutoCharge', 'message' => 'You have turned on the auto-recharge function. After the payment method is unbound, the auto-recharge function cannot be completed. If you need to untie, please turn off auto-recharge before operation.', 'http_code' => 400, 'description' => '您已开启自动充值功能,支付方式解绑后将无法完成自动充值功能。如需解绑,请先关闭自动充值后再行操作。'], + ['code' => 'CantDeleteWhileOpenAutoRecharge', 'message' => 'You have turned on the auto-recharge function. After the payment method is unbound, the auto-recharge function cannot be completed. If you need to untie, please turn off auto-recharge before operation.', 'http_code' => 400, 'description' => '您已开启自动充值功能,支付方式解绑后将无法完成自动充值功能。如需解绑,请先关闭自动充值后再行操作。'], + ['code' => 'CanTransferAmountNotEnough', 'message' => 'Recoverable/allocated amount is insufficient, please confirm and try again.', 'http_code' => 400, 'description' => '可回收/划拨金额不足,请确认后重试'], + ['code' => 'CardAlreadyBind', 'message' => 'The specified card has already been added.', 'http_code' => 400, 'description' => '您已经添加了该银行卡,请不要重复添加。'], + ['code' => 'CardBalanceNotEnough', 'message' => 'The card balance is not enough for this transfer, please change the card and try again.', 'http_code' => 400, 'description' => '卡余额不足,请换卡重试'], + ['code' => 'CardBindAccountNumberLimit', 'message' => 'The card has been bound to an Alibaba Cloud account.', 'http_code' => 400, 'description' => '该卡已绑定到阿里云账号上.'], + ['code' => 'CardClassNotSupport', 'message' => 'This card type is not supported. Try a different type of card.', 'http_code' => 400, 'description' => '暂不支持添加该类型银行卡,请更换其他类型银行卡重试。'], + ['code' => 'CardCountryNotSupport', 'message' => 'Country not supported this payment method type yet.', 'http_code' => 400, 'description' => '暂不支持该银行卡的发卡国家。'], + ['code' => 'CardCurrencyNotSupport', 'message' => 'The card does not support the current transaction currency. Try a different card that supports the current transaction currency.', 'http_code' => 400, 'description' => '该卡片不支持当前交易币种,请使用支持当前交易币种的银行卡重试。'], + ['code' => 'CardHasBindOnOtherAccount', 'message' => 'The specified card has been added to another Alibaba Cloud account.', 'http_code' => 400, 'description' => '该银行卡已经被添加在其他阿里云账号上。'], + ['code' => 'CardNotSupport3DVerification', 'message' => 'The card does not support 3D Secure authentication. Contact your issuing bank to enable 3D Secure authentication, or try a different card.', 'http_code' => 400, 'description' => '该银行卡不支持3D验证,请联系您的发卡行开通3D验证功能,或更换其他银行卡重试。'], + ['code' => 'CardNumberInvalid', 'message' => 'The card number is invalid. Enter a valid card number.', 'http_code' => 400, 'description' => '银行卡号无效,请输入正确的银行卡号。'], + ['code' => 'ChannelProcessFail', 'message' => 'Channel system error, please contact your issuer bank or submit a ticket.', 'http_code' => 400, 'description' => '渠道处理异常,请联系发卡行或提交工单'], + ['code' => 'ChannelProcessFail', 'message' => 'Channel processing is abnormal, please contact the issuing bank or submit a work order.', 'http_code' => 400, 'description' => '渠道处理异常,请联系发卡行或提交工单。'], + ['code' => 'ChargeLimit', 'message' => 'Recharge is prohibited for the account associated with the ecological partner.', 'http_code' => 400, 'description' => '生态伙伴关联的账号禁止充值,请联系生态运营咨询'], + ['code' => 'ClaimAmountExceedLimit', 'message' => 'Claim amount exceeds limit.', 'http_code' => 400, 'description' => '认领金额超过限制,请检查后重试'], + ['code' => 'CloseAutoWriteoffError', 'message' => 'close auto write off error.', 'http_code' => 400, 'description' => '关闭自动核销失败'], + ['code' => 'ConfirmInvoiceInfoFail', 'message' => 'The current invoice has an order bill that exceeds the contract.', 'http_code' => 400, 'description' => '当前发票存在超开合同的订账单'], + ['code' => 'ConfirmInvoiceInfoFail', 'message' => 'Failed to confirm invoice booking information.', 'http_code' => 400, 'description' => '确认发票订账单信息失败'], + ['code' => 'ContractIdEmptyError', 'message' => 'Contract ID cannot be empty.', 'http_code' => 400, 'description' => '合同ID不能为空'], + ['code' => 'ContractIdNotNumberError', 'message' => 'Contract ID is not of numerical type.', 'http_code' => 400, 'description' => '合同ID不是数字类型'], + ['code' => 'ContractNoEmptyError', 'message' => 'Contract number cannot be empty.', 'http_code' => 400, 'description' => '合同编号不能为空'], + ['code' => 'ContractNoInvalidError', 'message' => 'Contract not found.', 'http_code' => 400, 'description' => '没有找到合同'], + ['code' => 'ContractStatusInvalidForApplyPaperContractError', 'message' => 'The current contract status does not allow the application for mailing contracts.', 'http_code' => 400, 'description' => '当前合同状态不允许申请邮寄合同'], + ['code' => 'ContractStatusInvalidForCancelError', 'message' => 'Formal contracts do not allow rejection.', 'http_code' => 400, 'description' => '正式合同不允许拒绝'], + ['code' => 'CouponExist', 'message' => 'The coupon collection has reached the upper limit, and the system has recalculated the best price.', 'http_code' => 500, 'description' => '券领取已达上限,系统已重新计算最优价格'], + ['code' => 'CouponOverMaxRelease', 'message' => 'Coupon Over Max Release.', 'http_code' => 500, 'description' => '券已领完,系统已重新计算最优价格 '], + ['code' => 'CreateCouponError', 'message' => 'create coupon error.', 'http_code' => 500, 'description' => '领券下单失败,系统已重新计算最优价格'], + ['code' => 'CreateOrderFailed', 'message' => 'Failed to create transfer order due to system processing error.', 'http_code' => 400, 'description' => '过户单创建失败'], + ['code' => 'DecinedByBank', 'message' => 'Your bank declined this transaction. Please contact your issuing bank for the specific reason, or try using another card.', 'http_code' => 400, 'description' => '您的银行拒绝了本次交易。请联系您的发卡银行咨询交易被拒绝的具体原因,或尝试更换其他银行卡。'], + ['code' => 'DeclinedByIssuerBank', 'message' => 'Declined by your card issuer bank. Please contact your issuer bank to ensure that your card is activated for online payment and try again.', 'http_code' => 400, 'description' => '发卡行拒绝,请联系发卡行确保银行卡在线支付业务已开通,然后重试。'], + ['code' => 'DeleteContractError', 'message' => 'Failed to delete contract.', 'http_code' => 400, 'description' => '删除合同失败'], + ['code' => 'DeleteReasonEmptyError', 'message' => 'Reason for deletion cannot be empty.', 'http_code' => 400, 'description' => '删除原因不能为空'], + ['code' => 'ExceedQueryTimesLimit', 'message' => 'Exceed daily query times limit.', 'http_code' => 400, 'description' => '超过每天查询次数限制'], + ['code' => 'ExistApprovingProcess', 'message' => 'There is a credit control setting process in the approval process, please contact the business manager.', 'http_code' => 400, 'description' => '存在审批中的信控设置流程,请联系商务经理。'], + ['code' => 'ExistUnconfirmedContract', 'message' => 'The account you operate has a credit contract to be confirmed. Please confirm the contract first.', 'http_code' => 400, 'description' => '您操作的账户存在待确认的信控合同,请先确认合同。'."\n"], + ['code' => 'ExpireCard', 'message' => 'Your bank card has expired. Please use another card that is not expired for payment.', 'http_code' => 400, 'description' => '您的银行卡已过期。请使用尚未过期的银行卡进行支付。'], + ['code' => 'ExpiredCard', 'message' => 'The specified card has been expired.', 'http_code' => 400, 'description' => '该银行卡已经过期。'], + ['code' => 'ExpiryDateWrong', 'message' => 'The card expiry date format is incorrect. Please enter it in the correct month/year format (e.g., MM/YY) and try again.', 'http_code' => 400, 'description' => '您输入的卡片有效期格式不正确。请按照正确的月份/年份格式(例如:MM/YY)输入后重新尝试。'], + ['code' => 'ForbiddenAccessContractError', 'message' => 'Please confirm if you have contract authority.', 'http_code' => 400, 'description' => '请确认是否有合同权限'], + ['code' => 'FormalContractError', 'message' => 'Contract confirmation failed.', 'http_code' => 400, 'description' => '合同转正失败'], + ['code' => 'FormalVipContractError', 'message' => 'Key customer contract confirmation failed.', 'http_code' => 400, 'description' => '大客户合同转正失败'], + ['code' => 'FormalWanWangContractError', 'message' => 'Wanwang Contract Confirmation Failure.', 'http_code' => 400, 'description' => '万网合同转正失败'], + ['code' => 'FunctionPaused', 'message' => 'This function is temporarily suspended for maintenance or updates.', 'http_code' => 400, 'description' => '暂停开放此功能'], + ['code' => 'GenerateFileUrlError', 'message' => 'Failed to generate download address.', 'http_code' => 400, 'description' => '生成下载地址失败'], + ['code' => 'GetAccountInfoFail', 'message' => 'Failed to get account information, please try again later.', 'http_code' => 400, 'description' => '获取账号信息失败,请稍后再试'], + ['code' => 'GetContractNoError', 'message' => 'Error in obtaining contract number.', 'http_code' => 400, 'description' => '获取合同编号错误'], + ['code' => 'GetFileUrlError', 'message' => 'Error in obtaining contract file download address.', 'http_code' => 400, 'description' => '获取合同文件下载地址错误'], + ['code' => 'GetFormalResultError', 'message' => 'Error in obtaining contract confirmation results.', 'http_code' => 400, 'description' => '获取合同转正结果错误'], + ['code' => 'IdempotentParameterMismatch', 'message' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', 'http_code' => 400, 'description' => '幂等参数错误'], + ['code' => 'InconsistentConsignerIdentityInfo', 'message' => 'The real name information verified by E-sign is inconsistent. Please enter the correct mobile phone number and name.', 'http_code' => 400, 'description' => '经E签宝核验实名信息不一致,请输入正确的手机号和姓名'], + ['code' => 'InnerAccountNoQueryPricePermission', 'message' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account. More questions please refer to the document.', 'http_code' => 400, 'description' => '因数据安全及合规要求,对集团上云账号金额信息权限管控,由此带来的不便敬请谅解。您可以通过HCRM/云间平台查看,详见:https://aliyuque.antfin.com/yunfei.xyf/kr0b8h/yvdm6izaeulmq8g2。'], + ['code' => 'InnerSubAccountNoQueryPricePermission', 'message' => 'In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group\'s cloud account.', 'http_code' => 400, 'description' => '因数据安全及合规要求,对集团上云账号金额信息权限管控,由此带来的不便敬请谅解。您可以通过HCRM/云间平台查看,详见:https://aliyuque.antfin.com/yunfei.xyf/kr0b8h/yvdm6izaeulmq8g2。'], + ['code' => 'InstanceInfoError', 'message' => 'Instance information provided is incomplete or contains invalid data.', 'http_code' => 400, 'description' => '实例信息有误'], + ['code' => 'InstanceNotBelongToAccount', 'message' => 'The specified instance does not belong to the current account.', 'http_code' => 400, 'description' => '您要处理的实例不属于当前账户,无法打开!'], + ['code' => 'InstanceNumberTooLarge', 'message' => 'The instance num exceed 2000.', 'http_code' => 400, 'description' => '对应条件下的实例ID大于2000个,无法在页面查询,请导出/订阅账单明细进行查看。'], + ['code' => 'INSUFFICIENT.AVAILABLE.QUOTA', 'message' => 'The account balance is negative. Add funds to the account and try again.', 'http_code' => 200, 'description' => '您的账户可用额度小于0,请先充值后再尝试购买'], + ['code' => 'InternalError', 'message' => 'An error occurred in the internal server.', 'http_code' => 500, 'description' => '系统异常,请重试'], + ['code' => 'InvalidAmountFormat', 'message' => 'The transaction amount is invalid. Please try using another payment method, or contact customer service.', 'http_code' => 400, 'description' => '交易金额不合法。请尝试更换其他支付方式,或联系客服。'], + ['code' => 'InvalidBillingAccount', 'message' => 'The caller does not have permission for the specified billing account.', 'http_code' => 400, 'description' => '当前登录账号不是此账户的管理员,无权操作此账户。'], + ['code' => 'InvalidBindRequest', 'message' => 'Invalid bind card request.', 'http_code' => 400, 'description' => '无效的绑卡请求.'], + ['code' => 'InvalidCaller', 'message' => 'The caller\'s primary account is invalid or does not have permission to query enterprise member account information.', 'http_code' => 401, 'description' => '调用者主账号无效 或者 无权限查询企业成员账号信息。'], + ['code' => 'InvalidCaptcha', 'message' => 'Invalid Captcha.', 'http_code' => 400, 'description' => '您的验证码错误或者已过期,请重新获取'], + ['code' => 'InvalidCard', 'message' => 'There is a problem with the card. Try a different card or submit a ticket.', 'http_code' => 400, 'description' => '该银行卡存在问题,请更换银行卡重试或提交工单。'], + ['code' => 'InvalidCardExpireTime', 'message' => 'The specified card expiration date is invalid. Check the expiration date and try again.', 'http_code' => 400, 'description' => '您输入的银行卡有效期有误,请确认后重新输入。'], + ['code' => 'InvalidCardNumber', 'message' => 'The card number you entered is incorrect. Please carefully check your card number for any errors or omissions and try again.', 'http_code' => 400, 'description' => '您输入的银行卡号不正确。请仔细核对您的银行卡号,确保没有输入错误或遗漏后重新输入。'], + ['code' => 'InvalidContractError', 'message' => 'Invalid contract failed.', 'http_code' => 400, 'description' => '作废合同失败'], + ['code' => 'InvalidCurrency', 'message' => 'Sorry, this currency is not supported for the current transaction. Please try using a supported currency or contact customer service for more details.', 'http_code' => 400, 'description' => '抱歉,当前交易不支持此币种。请尝试使用支持的币种进行交易,或联系客服了解详情。'], + ['code' => 'InvalidCvv', 'message' => 'Invalid cvv code.', 'http_code' => 400, 'description' => 'Cvv码异常'], + ['code' => 'InvalidFundAccount', 'message' => 'The caller does not have permission for the specified fund account.', 'http_code' => 400, 'description' => '当前登录账号不是此账户的管理员,无权操作此账户。'], + ['code' => 'InvalidFundAccount', 'message' => 'The caller does not have permission for the specified billing account.', 'http_code' => 400, 'description' => '当前登录账号不是此账户的管理员,无权操作此账户。'], + ['code' => 'InvalidOwner', 'message' => 'The specified owner doesn\'t belong to caller.', 'http_code' => 400, 'description' => '用户身份错误'], + ['code' => 'InvalidParameter', 'message' => 'Transaction information is incorrect. Please check the transaction details you entered (e.g., amount, card number) and try again.', 'http_code' => 400, 'description' => '交易信息有误。请检查您填写的交易信息(如金额、卡号等)是否有误后重试。'], + ['code' => 'InvalidReasonEmptyError', 'message' => 'Reason for invalidation cannot be empty.', 'http_code' => 400, 'description' => '作废原因不能为空'], + ['code' => 'InvalidSecurityCode', 'message' => 'The security code is invalid ,please contact your issuing bank or try a different card.', 'http_code' => 400, 'description' => '您的卡安全码失效,请联系发卡行或换卡重试'], + ['code' => 'InvalidTime', 'message' => 'Invalid Time.', 'http_code' => 400, 'description' => '超出成本分析的日期选择范围,请重新选择'], + ['code' => 'InvoiceAlreadyInvoicingCanNotClose', 'message' => 'Invoice is being issued and cannot be closed.', 'http_code' => 400, 'description' => '发票开具中,无法作废'], + ['code' => 'InvoiceAmountFormatInvalid', 'message' => 'Illegal format of invoiced amount.', 'http_code' => 400, 'description' => '申请开票金额格式不合法'], + ['code' => 'InvoiceAmountInValid', 'message' => 'Illegal amount requested for invoicing.', 'http_code' => 400, 'description' => '申请开票金额不合法'], + ['code' => 'InvoiceAmountNegativeInvalid', 'message' => 'The sum of the selected amounts is negative and cannot be invoiced.', 'http_code' => 400, 'description' => '所选金额总和为负数,不可开票'], + ['code' => 'InvoiceAmountNotValid', 'message' => 'The invoiced amount field is illegal, and supports up to 2 decimal places.', 'http_code' => 400, 'description' => '申请开票金额字段不合法,最多支持2位小数'], + ['code' => 'InvoiceApplyNotAllowedForTestUser', 'message' => 'Test accounts are not permitted to perform invoicing operations.', 'http_code' => 400, 'description' => '该账号为测试账号,不可申请开票'], + ['code' => 'InvoiceAutoApplyConfigNotMatchRealName', 'message' => 'Automatic invoicing only supports the viewpoint consistent with real-name authentication. Please select again.', 'http_code' => 400, 'description' => '自动开票仅支持与实名认证一致的抬头,请您重新选择'], + ['code' => 'InvoiceCandidateNotFound', 'message' => 'No valid data to be invoiced can be found based on the invoicing object list and account list passed in.', 'http_code' => 400, 'description' => '根据传入的开票对象列表和账号列表,查询不到有效的待开票数据'], + ['code' => 'InvoiceCandidateSearchTimeInvalid', 'message' => 'Invoicing Candidate query time is illegal.', 'http_code' => 400, 'description' => '开票对象查询时间不合法'], + ['code' => 'InvoiceContractUnsupportedWanwangOrderError', 'message' => 'The current invoice has a World Wide Web order that does not support invoicing.', 'http_code' => 400, 'description' => '当前发票存在不支持开票的万网订单'], + ['code' => 'InvoiceDataDontExistError', 'message' => 'There are no orders being processed in the current invoice.', 'http_code' => 400, 'description' => '当前发票中不存在正在处理的订账单'], + ['code' => 'InvoiceDataEmptyError', 'message' => 'There are no subscription bills in the current invoice that can apply for contracts.', 'http_code' => 400, 'description' => '当前发票中不存在可以申请合同的订账单'], + ['code' => 'InvoiceDataOverOpeningContract', 'message' => 'The current invoice has an order bill that exceeds the contract.', 'http_code' => 400, 'description' => '当前发票存在超开合同的订账单'], + ['code' => 'InvoiceDataUsedError', 'message' => 'The current invoice has a subscription bill for a contract that has already been applied.', 'http_code' => 400, 'description' => '当前发票存在已申请合同的订账单'], + ['code' => 'InvoiceFileDownloadError', 'message' => 'Download failed, please try again later.', 'http_code' => 400, 'description' => '下载失败,请稍后再试。'], + ['code' => 'InvoiceManualAmountNotAllowed', 'message' => 'Cross-account independent invoicing, amount cannot be specified.', 'http_code' => 400, 'description' => '跨账号独立开票,不可指定金额'], + ['code' => 'InvoiceModeInvalid', 'message' => 'InvoiceMode field is illegal.', 'http_code' => 400, 'description' => 'InvoiceMode字段不合法'], + ['code' => 'InvoiceModeNotValid', 'message' => 'The invoice mode field is invalid. Please select a valid option.', 'http_code' => 400, 'description' => 'InvoiceMode字段不合法'], + ['code' => 'InvoiceOuUnsupportedError', 'message' => 'There are entities in the current invoice that do not support invoicing.', 'http_code' => 400, 'description' => '当前发票存在不支持开票的主体'], + ['code' => 'InvoiceRecipientEmailsMoreThanThree', 'message' => 'Maximum 3 email addresses allowed for invoice application.', 'http_code' => 400, 'description' => '申请开票时最多可选3个邮箱'], + ['code' => 'InvoiceRemarkTooLong', 'message' => 'Invoice remarks must not exceed 200 characters. Please abbreviate and resubmit.', 'http_code' => 400, 'description' => '发票备注长度过长,请适当缩写后重新提交!'], + ['code' => 'InvoiceSpecialOnlyForEnterprises', 'message' => 'Special invoices can only be issued by enterprise accounts.', 'http_code' => 400, 'description' => '企业类型才能开专票'], + ['code' => 'InvoiceStatusError', 'message' => 'The current invoice status is incorrect, unable to retrieve the contract.', 'http_code' => 400, 'description' => '当前发票状态不正确,无法开取合同'], + ['code' => 'InvoiceTdsValidateAuditing', 'message' => 'This user TAN NO. In the process of approval, please do not submit repeatedly.', 'http_code' => 400, 'description' => '该用户TAN NO.正在审批中,请勿重复提交。'], + ['code' => 'InvoiceTdsValidateDuplicate', 'message' => 'The tan no. It has been saved, please do not submit it again.', 'http_code' => 400, 'description' => '该TAN NO.已经被保存,请勿重复提交。'], + ['code' => 'InvoiceTdsValidateFailed', 'message' => 'The tan no. It has been used by other accounts. Please confirm whether the input is correct.', 'http_code' => 400, 'description' => '该TAN NO.已经被其他账号使用请确认输入是否正确。'], + ['code' => 'InvoiceTitleNotExist', 'message' => 'Invoice title does not exist.', 'http_code' => 400, 'description' => '发票抬头不存在'], + ['code' => 'InvoiceTypeInvalid', 'message' => 'InvoiceType field is illegal.', 'http_code' => 400, 'description' => 'InvoiceType字段不合法'."\n"], + ['code' => 'InvoiceTypeNotValid', 'message' => 'The invoice type field is invalid. Please select a valid option.', 'http_code' => 400, 'description' => 'InvoiceType字段不合法'], + ['code' => 'InvoiceUnificationCheckEmailFail', 'message' => 'No default email for unified invoicing check.', 'http_code' => 400, 'description' => '统一开票检查无默认邮箱'], + ['code' => 'InvoiceUnificationCheckTitleFail', 'message' => 'No default invoice title for unified invoicing check.', 'http_code' => 400, 'description' => '统一开票检查无默认发票抬头'], + ['code' => 'InvoiceUsedError', 'message' => 'The current invoice has already applied for a contract.', 'http_code' => 400, 'description' => '当前发票已申请过合同'], + ['code' => 'LimitRecharge', 'message' => 'Account limit recharge.', 'http_code' => 400, 'description' => '账号限制充值'], + ['code' => 'LimitWithdraw', 'message' => 'Account limit withdraw.', 'http_code' => 400, 'description' => '账号限制提现'], + ['code' => 'MaxOffsetLimit', 'message' => 'Exceeded maximum page turning limit.', 'http_code' => 400, 'description' => '超过最大翻页限制,请导出后查看'], + ['code' => 'NoAvailablePaymentMethod', 'message' => 'Sorry, there are no available payment methods at this time. Please check your network connection or try again later. If the issue persists, please contact customer service.', 'http_code' => 400, 'description' => '抱歉,当前无可用支付方式。请确认您的网络连接,或稍后再试。如果问题持续,请联系客服。'], + ['code' => 'NoFundAccountPermission', 'message' => 'The caller does not have permission for the specified fund account.', 'http_code' => 400, 'description' => '当前登录账号没有权限操作指定账户。'], + ['code' => 'NoPermission', 'message' => 'You are not authorized to perform this action.', 'http_code' => 400, 'description' => '您无权执行此操作。'], + ['code' => 'NoQueryPricePermission', 'message' => 'If you do not have discount query permission, please contact the main account for authorization. The permission code is queryprice.', 'http_code' => 400, 'description' => '没有折扣查询权限,请联系主账号授权,权限点为 queryprice.'."\n"], + ['code' => 'NotActiveService', 'message' => 'You are not active the service,please use after activation.', 'http_code' => 400, 'description' => '您没有开通服务,请开通后使用'], + ['code' => 'NotEligibleForTransfer', 'message' => 'The selected instances do not meet transfer eligibility requirements.', 'http_code' => 400, 'description' => '不符合过户要求'], + ['code' => 'NotOpenUnifiedSettle', 'message' => 'The unified settlement is not open for caller.', 'http_code' => 400, 'description' => '尚未对您开放统一结算功能,敬请期待'], + ['code' => 'NotSupportAllocateCredit', 'message' => 'Self-service credit limit allocation is currently unavailable. Please contact your service manager for assistance.', 'http_code' => 400, 'description' => '当前不支持自助分配信控额度,请联系您的服务经理修改'], + ['code' => 'NoValidInstanceFund', 'message' => 'No valid instance found.', 'http_code' => 400, 'description' => '未找到有效实例'], + ['code' => 'OldFinanceCloudUserNoPermission', 'message' => 'Old finance cloud user has no permission to query new menus.', 'http_code' => 400, 'description' => '旧版财务云客户无权访问新菜单,请升级新版企业组织后再试。'], + ['code' => 'OneCardBindUidLimit', 'message' => 'Each bank card can only be linked to one Alibaba Cloud account. The card number you entered has already been bound to another Alibaba Cloud account. Please try again with a different bank card.', 'http_code' => 400, 'description' => '每张银行卡只能绑定到一个阿里云账号上,您输入的卡号已绑定在其他阿里云账号上,请更换其他银行卡重试。'], + ['code' => 'OpenAutoWriteoffError', 'message' => 'open auto write off error.', 'http_code' => 400, 'description' => '开启自动核销失败'], + ['code' => 'OperationTypeError', 'message' => 'Invalid operation type specified, please use a valid operation type.', 'http_code' => 400, 'description' => '操作类型错误'], + ['code' => 'OrderExpiredOrProcessed', 'message' => 'The transfer order has expired or been completed, cannot be processed.', 'http_code' => 400, 'description' => '过户单已过期或已处理'], + ['code' => 'OrderNotExist', 'message' => 'The transaction order does not exist. Please refresh the page and try to initiate a new transaction.', 'http_code' => 400, 'description' => '交易订单不存在。请刷新页面后重新尝试发起交易。'], + ['code' => 'OrderNotOperational', 'message' => 'The transfer order is not in a state that allows operations.', 'http_code' => 400, 'description' => '过户单不可操作'], + ['code' => 'OrderQueryError', 'message' => 'Failed to query transfer order information due to system error.', 'http_code' => 400, 'description' => '过户单信息查询出错'], + ['code' => 'PageInfoError', 'message' => 'Invalid pagination parameters provided, please check page number and size.', 'http_code' => 400, 'description' => '分页信息错误'], + ['code' => 'PaperContractMultipleApplyError', 'message' => 'This contract has already applied for a paper contract.', 'http_code' => 400, 'description' => '该合同已申请过纸质合同'], + ['code' => 'ParamError', 'message' => 'Parameter error.', 'http_code' => 500, 'description' => '参数有误 '], + ['code' => 'ParameterError', 'message' => 'Invalid or missing required parameters in the request.', 'http_code' => 400, 'description' => '参数错误'], + ['code' => 'PARAM_ERROR', 'message' => 'param is error.', 'http_code' => 400, 'description' => '参数错误'], + ['code' => 'PARAM_INVALID', 'message' => 'Parameter error.', 'http_code' => 533, 'description' => '参数异常'], + ['code' => 'PaymentChannelProcessFail', 'message' => 'Payment channel process fail, please contact your issuer bank or submit a ticket.', 'http_code' => 400, 'description' => '支付渠道处理失败,请联系发卡行或提交工单'], + ['code' => 'PaymentDeclinedByBank', 'message' => 'payment is declined by issuer bank.', 'http_code' => 400, 'description' => '支付被发卡行拒绝'], + ['code' => 'PaymentMethodNotExist', 'message' => 'The specific card not exist or has been deleted, please check and try again.', 'http_code' => 400, 'description' => '支付方式不存在或已被删除,请检查后重试'], + ['code' => 'PaymentTypeNotSupportSettleCurrency', 'message' => 'PayPal currently does not support non-USD payments. Please set PayPal as your preferred payment method when both the current and next month\'s settlement currencies are USD.', 'http_code' => 400, 'description' => 'Paypal暂不支持以非美元付款,在设置Paypal为首选支付方式时,请将当前结算币种和次月结算币种设置为USD.'], + ['code' => 'PayNotQualified', 'message' => 'Sorry, your transaction does not meet the payment requirements. Please try using another card or payment method.', 'http_code' => 400, 'description' => '抱歉,您的交易不符合支付条件。请尝试更换其他银行卡或支付方式。'], + ['code' => 'PaySystemAccessDenied', 'message' => 'Payment channel is temporarily inaccessible. Please try again later or use another payment method. If the issue persists, please contact our customer service.', 'http_code' => 400, 'description' => '支付渠道暂时无法访问。请稍等片刻后重试,如果问题持续,请联系我们的客服团队。'], + ['code' => 'PaySystemAuthenticationFail', 'message' => 'Payment channel authentication failed. Please try again later, or try using another payment method.', 'http_code' => 400, 'description' => '支付渠道认证失败。请稍后重新尝试,或尝试更换其他支付方式。'], + ['code' => 'PaySystemAuthenticationRequired', 'message' => 'This transaction requires 3D Secure verification. Please follow the instructions on the page to complete your bank\'s 3D Secure verification.', 'http_code' => 400, 'description' => '本次交易需要进行3D安全验证。请按照页面提示完成银行的3D安全验证。'], + ['code' => 'PaySystemCardNotSupported', 'message' => 'Sorry, this card is not supported by the current payment channel. Please try using another card or payment method.', 'http_code' => 400, 'description' => '抱歉,当前支付渠道不支持此银行卡。请尝试更换其他银行卡或支付方式。'], + ['code' => 'PaySystemOrderIsClosed', 'message' => 'This transaction order has been closed or is no longer valid. Please initiate a new transaction. If the order was paid, please contact customer service for verification.', 'http_code' => 400, 'description' => '本次交易订单已关闭或已失效。请重新发起交易。如果订单已支付,请联系客服核实。'], + ['code' => 'PaySystemOTPVerifyTimesExceedLimit', 'message' => 'Too many incorrect verification code attempts. Please wait for a while before trying to get a new code, or try another verification method with your bank.', 'http_code' => 400, 'description' => '验证码错误次数过多。请等待一段时间后再尝试获取验证码,或尝试联系银行进行其他验证。'], + ['code' => 'PaySystemOTPVerifyUnmatched', 'message' => 'Your bank card has expired. Please use another card that is not expired for payment.', 'http_code' => 400, 'description' => '您的银行卡已过期。请使用尚未过期的银行卡进行支付。'], + ['code' => 'PaySystemSuspectedCard', 'message' => 'Your bank card has an issue. Please contact your issuing bank to inquire about its status and any abnormalities.', 'http_code' => 400, 'description' => '您的银行卡存在异常。请联系您的发卡银行,咨询银行卡状态和是否存在异常。'], + ['code' => 'PaySystemUserPaymentVerificationFailed', 'message' => 'Your payment information failed verification. Please check if your payment details (e.g., password, fingerprint, OTP) are correct, or contact the payment channel\'s customer service.', 'http_code' => 400, 'description' => '您的支付信息未能通过验证。请检查您的支付信息(如密码、指纹、动态口令等)是否正确,或联系支付渠道客服。'], + ['code' => 'PaySystemUserStatusAbnormal', 'message' => 'Your account status is abnormal, unable to complete this transaction. Please contact customer service to inquire about your account status.', 'http_code' => 400, 'description' => '您的账户状态异常,无法完成本次交易。请联系客服查询您的账户状态。'], + ['code' => 'PaySystemVerificationInProcess', 'message' => 'Verification code is being processed. Please wait patiently for the result and do not repeat the operation. If there is no response for a long time, please contact customer service.', 'http_code' => 400, 'description' => '验证码正在验证中,请耐心等待结果,切勿重复操作。如果长时间无响应,请联系客服。'], + ['code' => 'PAY_QUERY_ORDER_EMPTY_RESULT', 'message' => 'Query order is empty, please check order parameters.', 'http_code' => 501, 'description' => '查询订单为空'], + ['code' => 'PAY_QUERY_ORDER_ERROR', 'message' => 'Query Order Exception.', 'http_code' => 502, 'description' => '查询订单异常'], + ['code' => 'PAY_SYSTEM_EXCEPTION', 'message' => 'Internal system error occurred, please contact technical support.', 'http_code' => 500, 'description' => '系统异常'], + ['code' => 'QueryConnectedRelationListInfoError', 'message' => 'Query information of Party A\'s associated entity list is abnormal, please try again later.', 'http_code' => 400, 'description' => '查询甲方关联实体列表信息异常,请稍后重试'], + ['code' => 'QueryContractTaskInfoError', 'message' => 'Query contract task information is abnormal, please try again later.', 'http_code' => 400, 'description' => '查询合同任务信息异常,请稍后重试'], + ['code' => 'QueryCountExceedLimit', 'message' => 'The count of queries exceeds the daily query limit.', 'http_code' => 400, 'description' => '查询次数超过每天的次数限制'], + ['code' => 'QueryInvioceListInfoError', 'message' => 'Invoice header list query information is abnormal, please try again later.', 'http_code' => 400, 'description' => '查询发票抬头列表信息异常,请稍后重试'], + ['code' => 'QueryInvioceListInfoFail', 'message' => 'Failed to query invoice header list information, please try again later.', 'http_code' => 400, 'description' => '查询发票抬头列表信息失败,请稍后重试'], + ['code' => 'QueryInvoiceInfoError', 'message' => 'Exception in querying invoice information. Please try again later.', 'http_code' => 400, 'description' => '查询发票信息异常,请稍后重试'], + ['code' => 'QueryInvoiceInfoFail', 'message' => 'Failed to query invoice information.', 'http_code' => 400, 'description' => '查询发票信息失败'], + ['code' => 'QueryPartyaInfoError', 'message' => 'Party A entity name query is abnormal, please try again later.', 'http_code' => 400, 'description' => '查询甲方主体名称异常,请稍后重试'], + ['code' => 'RC_3TH_LOGISTICS_DETAIL_REQUEST', 'message' => 'Failed to query the details of the third party logistics node.', 'http_code' => 509, 'description' => '查询第三方物流节点详情失败'], + ['code' => 'RC_GET_USER_ERROR', 'message' => 'Failed to obtain the group account HavanaId required for order query.', 'http_code' => 508, 'description' => '获取订单查询需要的集团账号HavanaId失败'], + ['code' => 'RC_ORDER_CONFIRM_FAIL', 'message' => 'Confirm receipt failed.', 'http_code' => 505, 'description' => '确认收货失败'], + ['code' => 'RC_ORDER_DETAIL_FAIL', 'message' => 'Failed to query order details.', 'http_code' => 503, 'description' => '查询订单详情失败'], + ['code' => 'RC_ORDER_LIST_FAIL', 'message' => 'Failed to query order list.', 'http_code' => 502, 'description' => '查询订单列表失败'], + ['code' => 'RC_ORDER_LOGISTICS_FAIL', 'message' => 'No logistics information.', 'http_code' => 504, 'description' => '暂无物流信息'], + ['code' => 'RC_ORDER_LOGISTICS_OVERVIEW_FAIL', 'message' => 'Failed to query logistics overview information.', 'http_code' => 510, 'description' => '查询物流概览信息失败 '], + ['code' => 'RC_PAGE_SIZE_MAX_LIMIT_REQUEST', 'message' => 'PageSize parameter setting is too large.', 'http_code' => 507, 'description' => '分页参数设置过大'], + ['code' => 'RC_PARAM_IS_EMPTY', 'message' => 'Required field values in request parameters cannot be empty.', 'http_code' => 501, 'description' => '请求参数中必要字段取值不能为空'], + ['code' => 'RC_QUERY_OPEN_BY_SYSTEM_ORDER', 'message' => 'Post-paid commodity for service, the system automatically orders and opens. This kind of order does not support customer inquiry.', 'http_code' => 514, 'description' => '针对免开通后付费商品,系统自动下单开通。此类订单不支持对客查询。'], + ['code' => 'RC_REFUND_QUOTA_EXCEED', 'message' => 'Exceeding the limit.', 'http_code' => 523, 'description' => '抱歉,已经超出本月可退订的总额度'], + ['code' => 'RC_SYSTEM_ERROR', 'message' => 'An error occurred in the internal server.', 'http_code' => 500, 'description' => '系统异常,请重试'], + ['code' => 'RC_TIME_OUT', 'message' => 'The system timed out, the query data may be too much, please shorten the time range or select a specific product and re-query.', 'http_code' => 513, 'description' => '系统超时,查询数据可能过多,请缩短时间范围或选择特定产品后重新查询'], + ['code' => 'RC_UNKNOWN_ERROR', 'message' => 'Unknown error.', 'http_code' => 511, 'description' => '未知错误'], + ['code' => 'RealNameAuthenticationNotCompleted', 'message' => 'real-name authentication is not completed.', 'http_code' => 400, 'description' => '未完成实名认证'], + ['code' => 'RealNameAuthenticationTypeUnsupported', 'message' => 'The system only supports individual users authenticated by ID number and enterprise users authenticated by social unified credit code.', 'http_code' => 400, 'description' => '系统只支持以身份证号认证的个人用户和以社会统一信用代码认证的企业用户,请更新认证后重试。'], + ['code' => 'RejectContractError', 'message' => 'Refusal of contract failed.', 'http_code' => 400, 'description' => '拒绝合同失败'], + ['code' => 'RejectVipContractError', 'message' => 'Refusal of major client contract failed.', 'http_code' => 400, 'description' => '拒绝大客户合同失败'], + ['code' => 'RejectWanWangContractError', 'message' => 'Refusal of the World Wide Web contract failed.', 'http_code' => 400, 'description' => '拒绝万网合同失败'], + ['code' => 'RelationOrderDataError', 'message' => 'Abnormal contract related billing data.', 'http_code' => 400, 'description' => '合同关联订账单数据异常'], + ['code' => 'RequestCountExceedBankLimit', 'message' => 'The number of requests has exceeded the limit of the issuer bank. Please try again later.', 'http_code' => 400, 'description' => '请求数量超过发卡行限制,请稍后再试'], + ['code' => 'RequestTimeout', 'message' => 'Request timed out. Please try again later.', 'http_code' => 400, 'description' => '请求超时,请稍后再试'], + ['code' => 'ResourceCreatingNotAllowWithdraw', 'message' => 'The resource you purchased is being created and cannot withdraw during this period.', 'http_code' => 400, 'description' => '您购买的资源正在创建中,期间不可进行余额提现,请稍后重试'], + ['code' => 'ResourceNotExists', 'message' => 'The specified resource does not exist.', 'http_code' => 400, 'description' => '资源实例不存在'], + ['code' => 'RiskReject', 'message' => 'The request rejected by risk control.', 'http_code' => 400, 'description' => '请求被风控拒绝'], + ['code' => 'RiskReject', 'message' => 'The card poses a security risk. Try a different card or submit a ticket.', 'http_code' => 400, 'description' => '该银行卡存在安全风险,请更换其他银行卡重试或提交工单.'], + ['code' => 'RiskSystemRejected', 'message' => 'This transaction has been rejected by the risk control system due to potential risk. If you have questions, please contact our customer service team.', 'http_code' => 400, 'description' => '交易存在风险,已被系统拒绝。如有疑问,请联系我们的客服团队了解具体的风控拒绝原因。'], + ['code' => 'SameAccountTransfer', 'message' => 'Target account is identical to source account, transfer operation is not allowed.', 'http_code' => 400, 'description' => '目标账户与当前账户为同一账户,无法过户,请更换目标账户'], + ['code' => 'SameLicenseNoError', 'message' => 'The identification numbers of Party B and Party C in the payment agreement cannot be the same.', 'http_code' => 400, 'description' => '代付协议乙方和丙方的识别号不能相同'], + ['code' => 'SameName', 'message' => 'The specified name already exists.', 'http_code' => 400, 'description' => '名称已存在'], + ['code' => 'SAME_NAME', 'message' => 'The specified name already exists.', 'http_code' => 400, 'description' => '名称已存在'], + ['code' => 'SettleBillBeingWrittenOff', 'message' => 'Settle bill is being written off.', 'http_code' => 400, 'description' => '账单正在核销中,请稍后重试'], + ['code' => 'SettleTaskCloseError', 'message' => 'close unified settlement task error.', 'http_code' => 400, 'description' => '结算任务关闭失败, 请刷新页面后重试'], + ['code' => 'SettleTaskDeleteError', 'message' => 'delete unified settlement task error.', 'http_code' => 400, 'description' => '结算任务删除失败,请刷新页面后重试'], + ['code' => 'SettleTaskPauseError', 'message' => 'pause unified settlement task error.', 'http_code' => 400, 'description' => '结算任务暂停失败,请刷新页面后重试'], + ['code' => 'SettleTaskRestartError', 'message' => 'restart unified settlement task error.', 'http_code' => 400, 'description' => '结算任务重启失败,请刷新页面后重试'], + ['code' => 'SettleTaskSaveError', 'message' => 'Failed to save settlement task.', 'http_code' => 400, 'description' => '结算任务保存失败'], + ['code' => 'SettleTaskStopError', 'message' => 'stop unified settlement task error.', 'http_code' => 400, 'description' => '结算任务停止失败,请刷新页面后重试'], + ['code' => 'SettleTitleDup', 'message' => 'Duplicate unified settlement title.', 'http_code' => 400, 'description' => '统一结算标题重复'], + ['code' => 'SettleTitleTooLong', 'message' => 'Unified settlement document title is too long.', 'http_code' => 400, 'description' => '统一结算单标题超长,请控制标题长度在200个字符以下'], + ['code' => 'SpecifiedWriteoffCycleConflict', 'message' => 'Specified writeoff cycle conflict.', 'http_code' => 400, 'description' => '该账期上一笔指定核销尚未完成,请稍后再试'], + ['code' => 'SPN_INSTANCE_HAS_SHARED', 'message' => 'Savings plan instance has shared.', 'http_code' => 400, 'description' => '节省计划实例设置了共享,不能再设置抵扣标签'], + ['code' => 'SubAccountNoQueryPricePermission', 'message' => 'This page cannot be accessed because you do not have discount rights query permissions. Contact the main account to go to the RAM console for authorization. The Action to be authorized is bss:QueryPrice.', 'http_code' => 400, 'description' => '由于您没有折扣查询权限,无法访问该页面。请联系主账号前往RAM控制台授权,需要授权的Action为 bss:QueryPrice'], + ['code' => 'SystemBusyError', 'message' => 'System is busy now, please retry later.', 'http_code' => 400, 'description' => '系统繁忙,请稍后再试'], + ['code' => 'SystemError', 'message' => 'Internal system error occurred, please try again or contact technical support.', 'http_code' => 400, 'description' => '系统异常,请稍后重试或联系技术支持.'], + ['code' => 'TaskAlreadyExist', 'message' => 'The task already exists.', 'http_code' => 400, 'description' => '该任务已经存在'], + ['code' => 'TASK_EXIST', 'message' => 'task has already exist.', 'http_code' => 400, 'description' => '该表已存在,不可重复订阅'], + ['code' => 'TaxInfoStatusNotAllowUpdate', 'message' => 'Tax information cannot be modified in the current tax qualification status.', 'http_code' => 400, 'description' => '当前税务资质状态不允许修改税务信息。'], + ['code' => 'TaxInfoTaxNumberInvalid', 'message' => 'VAT No is not valid.', 'http_code' => 400, 'description' => '税号格式不合法。'], + ['code' => 'TransferFailed', 'message' => 'Transfer operation failed due to processing error, please try again.', 'http_code' => 400, 'description' => '过户失败'], + ['code' => 'TransferForbiddenWithoutCashBookPaymentMethod', 'message' => 'Non-credit users cannot use account balance. Please contact the business manager to apply for credit limit first.', 'http_code' => 400, 'description' => '非信控用户不可以使用账户余额,请先联系商务经理申请信控。'], + ['code' => 'UnconfirmedContractError', 'message' => 'The account you operate has a credit contract to be confirmed. Please confirm the contract first.', 'http_code' => 400, 'description' => '您操作的账户存在待确认的信控合同,请先确认合同。'], + ['code' => 'UniqueAgentLimit', 'message' => 'The valid agent already exists.', 'http_code' => 400, 'description' => '被委托方已存在,请更换被委托方后重新创建"'], + ['code' => 'UniqueIdNotValid', 'message' => 'The card binding request has expired. Please refresh and try again.', 'http_code' => 400, 'description' => '绑卡请求已失效,请刷新页面后重试.'], + ['code' => 'UnpayAmountNotEnough', 'message' => 'Unpay amount not enough.', 'http_code' => 400, 'description' => '账单正在核销中,您支付的金额大于剩余待核销金额,请勿重复支付!'], + ['code' => 'UNPAY_AMOUNT_NOT_ENOUGH', 'message' => 'unpay amount not enough.', 'http_code' => 400, 'description' => '账单正在核销中,您支付的金额大于剩余待核销金额,请勿重复支付!'], + ['code' => 'UpdateContractMemoError', 'message' => 'Error in modifying contract remarks.', 'http_code' => 400, 'description' => '修改合同备注错误'], + ['code' => 'UserAccountInfoEmptyError', 'message' => 'AliyunId cannot be empty.', 'http_code' => 400, 'description' => 'aliyunId不能为空'], + ['code' => 'UserIdInvalidError', 'message' => 'User not found.', 'http_code' => 400, 'description' => '没有找到用户'], + ['code' => 'UserInfoEmptyError', 'message' => 'UserId cannot be empty.', 'http_code' => 400, 'description' => 'userId不能为空'], + ['code' => 'UserInfoError', 'message' => 'User information provided is incomplete or contains invalid data.', 'http_code' => 400, 'description' => '用户信息有误'], + ['code' => 'UsernameUidMismatch', 'message' => 'The entered UID and account name do not match, please verify and re-enter.', 'http_code' => 400, 'description' => '您输入的接收UID和账号不匹配,请输入正确的账号信息'], + ['code' => 'ValidAuth', 'message' => 'Valid auth check failed.', 'http_code' => 200, 'description' => '权限验证不通过'], + ['code' => 'VericationTimeExceedLimit', 'message' => 'Verification times exceeds limit, please try a different card.', 'http_code' => 400, 'description' => '验证次数超过限制, 请换卡重试'], + ['code' => 'WithdrawAmountExceedLimit', 'message' => 'Withdraw amount exceeds limit.', 'http_code' => 400, 'description' => '提现金额超过限制'], + ['code' => 'InvoiceApplySpecialTitleOnlyForCommon', 'message' => 'The invoice title is the general ticket title of the special process application, and the special invoice cannot be issued.', 'http_code' => 400, 'description' => '该发票抬头为特殊流程申请的普票抬头,不支持开具专用发票'], + ['code' => 'EnterpriseInvoiceTitleApplyOnlyForPersonal', 'message' => 'The application process is limited to personal real-name authentication users.', 'http_code' => 400, 'description' => '该申请流程仅限个人实名认证用户使用'], + ['code' => 'EnterpriseInvoiceTitleApplyAlreadyExist', 'message' => 'Invoice title data already exists in the application.', 'http_code' => 400, 'description' => '已存在申请中的抬头数据'], + ['code' => 'InvoiceTitleRegisterNoIsEmpty', 'message' => 'Unified Social Credit Code cannot be empty.', 'http_code' => 400, 'description' => '统一社会信用代码不能为空'], + ['code' => 'RC_NO_REFUND_REMAIN_CHOSEN', 'message' => 'No refund resources selected.', 'http_code' => 502, 'description' => '没有选择退款资源'], + ['code' => 'RC_NOREASON_REFUND_RESPONSE_INVALID', 'message' => 'Only one instance is allowed to be returned if there is no reason to unsubscribe at a time for five days.', 'http_code' => 514, 'description' => '五天无理由一次退订只允许退一个实例'], + ['code' => 'RC_INVALID_INSTANCE', 'message' => 'The instance you selected to unsubscribe is invalid, please return to the unsubscribe list page to refresh and try again.', 'http_code' => 504, 'description' => '你选择退订的实例不合法,请返回退订列表页刷新重试'], + ['code' => 'RC_QUERY_RESOURCE_ERROR', 'message' => 'Failed to obtain unsubscribe resource information.', 'http_code' => 509, 'description' => '获取退订资源信息失败'], + ['code' => 'RC_INVALID_RENEW_INSTANCE', 'message' => 'The instance unsubscription period you selected is invalid, please return to the unsubscription list page to refresh and try again.', 'http_code' => 506, 'description' => '你选择的实例退订周期不合法,请返回退订列表页刷新重试'], + ['code' => 'RC_SERVICE_TIMEOUT', 'message' => 'Service call timed out, try to reduce the number of queries and retry.', 'http_code' => 522, 'description' => '服务调用超时,尝试减少查询数量后重试'], + ['code' => 'RISK_REJECT_RR321', 'message' => 'The request rejected by risk control.', 'http_code' => 400, 'description' => '请求被风控拒绝'], + ['code' => 'NOT_ALLOW_CANCEL_TRUSTSHIP', 'message' => 'Only supports setting to trusteeship.', 'http_code' => 400, 'description' => '仅支持设置为停机托管'], + ['code' => 'PayChannelPolicy', 'message' => 'The transaction is restricted by policy.', 'http_code' => 400, 'description' => '政策限制'], + ['code' => 'PayChannelStolenCard', 'message' => 'The card has been reported as stolen (fraud account).', 'http_code' => 400, 'description' => '被盗卡(欺诈账户)'], + ['code' => 'PayChannelFraudReject', 'message' => 'The transaction was rejected due to risk control.', 'http_code' => 400, 'description' => '由于风险控制,交易无法进一步处理款'], + ['code' => 'PayChannelBlockedByCardholder', 'message' => 'The card has been locked by the cardholder.', 'http_code' => 400, 'description' => '该卡被用户锁定'], + ['code' => 'PayChannelSellerAccountRestricted', 'message' => 'The seller\'s channel account is restricted.', 'http_code' => 400, 'description' => '卖家渠道账户受限'], + ['code' => 'PayChannelSelectedCardBrandNotAvailable', 'message' => 'The selected card brand is not available.', 'http_code' => 400, 'description' => '用户选择的支付银行卡品牌不可用'], + ['code' => 'PayChannelRestrictedCard', 'message' => 'The issuing bank has restricted the usage scope of the card.', 'http_code' => 400, 'description' => '发卡行限制了该卡的使用范围'], + ['code' => 'PayChannelPayOrderInvalidStatus', 'message' => 'The payment order status in the payment channel is invalid.', 'http_code' => 400, 'description' => '支付渠道支付订单状态非法'], + ['code' => 'PayChannelUserKycNotQualified', 'message' => 'Payment failed due to the user\'s KYC status.', 'http_code' => 400, 'description' => '由于用户的 KYC 状态,支付失败'], + ['code' => 'PayChannelReEnterTransaction', 'message' => 'The transaction cannot be processed temporarily.', 'http_code' => 400, 'description' => '交易暂时无法处理'], + ['code' => 'PayChannelCannotVerifyPin', 'message' => 'Unable to verify the PIN.', 'http_code' => 400, 'description' => '无法验证 PIN 码'], + ['code' => 'PayChannelInvalidIssuer', 'message' => 'Unable to contact the cardholder\'s issuing bank for authorization.', 'http_code' => 400, 'description' => '无法联系持卡人的发卡行进行交易授权'], + ['code' => 'PayChannelVerifyTimesExceedLimit', 'message' => 'Too many failed verification attempts for the current code.', 'http_code' => 400, 'description' => '当前验证码在支付验证中失败次数过多'], + ['code' => 'PayChannelOrderAlreadyPaid', 'message' => 'The order has already been paid in the payment channel.', 'http_code' => 400, 'description' => '支付渠道已经支付成功'], + ['code' => 'PayChannelIdentityVerifyFailed', 'message' => 'Identity verification timed out or failed to obtain results.', 'http_code' => 400, 'description' => '身份验证超时或无法获取结果'], + ['code' => 'PayChannelPinRequired', 'message' => 'A PIN is required to process the transaction but was not provided.', 'http_code' => 400, 'description' => '处理交易必须提供 PIN 码,但持卡人未提供'], + ['code' => 'PayChannelUserPaymentVerificationFailed', 'message' => 'The user failed payment verification such as OTP or PIN.', 'http_code' => 400, 'description' => '用户在 OTP、PIN 等验证方式中未能通过支付验证'], + ['code' => 'PayChannelBlockedFirstUsed', 'message' => 'The card may be temporarily frozen due to first-use activation or special conditions.', 'http_code' => 400, 'description' => '卡片可能因以下原因被临时冻结:未激活首次使用,或受特殊条件限制(例如新卡未激活)'], + ['code' => 'PayChannelOrderStatusInvalid', 'message' => 'The order status is invalid and cannot be processed.', 'http_code' => 400, 'description' => '订单状态无效,无法继续处理'], + ['code' => 'PayChannelIdentityAgeNotEnough', 'message' => 'The user\'s age does not meet the requirement.', 'http_code' => 400, 'description' => '用户年龄未达到要求'], + ['code' => 'PayChannelLawViolation', 'message' => 'The transaction was rejected by the issuing bank.', 'http_code' => 400, 'description' => '发卡行拒绝了该交易'], + ['code' => 'PayChannelCloseFailed', 'message' => 'Failed to close the order in the payment channel.', 'http_code' => 400, 'description' => '支付渠道关单失败'], + ['code' => 'PayChannelPayOrderNotExist', 'message' => 'The payment order does not exist in the payment channel.', 'http_code' => 400, 'description' => '支付渠道支付订单不存在'], + ['code' => 'PayChannelCardNotSupported', 'message' => 'The bank card used for the transaction is not supported.', 'http_code' => 400, 'description' => '用于交易的银行卡不被支持'], + ['code' => 'PayChannelCloseInnerException', 'message' => 'Internal exception occurred while closing the order in the payment channel.', 'http_code' => 400, 'description' => '支付渠道关单内部异常'], + ['code' => 'PayChannelUserAmountExceedLimit', 'message' => 'The payment amount exceeds the user\'s payment limit.', 'http_code' => 400, 'description' => '支付金额超过了用户的支付限额'], + ['code' => 'PayChannelVerifyUnmatched', 'message' => 'The verification code is invalid.', 'http_code' => 400, 'description' => '验证码无效'], + ['code' => 'PayChannelPickupCard', 'message' => 'The issuing bank requests to retain the payment card, usually in suspected counterfeit or fraud scenarios.', 'http_code' => 400, 'description' => '发卡行要求扣留支付卡,通常出现在疑似伪卡或盗刷场景中'], + ['code' => 'PayChannelFailed', 'message' => 'The payment channel returned a failure.', 'http_code' => 400, 'description' => '支付渠道返回失败'], + ['code' => 'PayChannelBuyerAccountRestricted', 'message' => 'The buyer\'s channel account is restricted.', 'http_code' => 400, 'description' => '渠道账户受限'], + ['code' => 'PayChannelGeneralFail', 'message' => 'Unknown error occurred in the payment channel.', 'http_code' => 400, 'description' => '支付渠道未知异常'], + ['code' => 'PayChannelLostCard', 'message' => 'The card has been reported as lost (fraud account).', 'http_code' => 400, 'description' => '挂失卡(欺诈账户)'], + ['code' => 'PayChannelNoSelectedAccount', 'message' => 'The cardholder selected a non-existent account.', 'http_code' => 400, 'description' => '持卡人选择了不存在的指定账户'], + ['code' => 'PayChannelLifecycle', 'message' => 'The transaction was rejected due to invalid card data.', 'http_code' => 400, 'description' => '由于无效的卡片数据,交易被拒绝'], + ['code' => 'PayChannelInvalidIdentityStatus', 'message' => 'The identity status is abnormal.', 'http_code' => 400, 'description' => '身份状态异常'], + ['code' => 'PayChannelSystemError', 'message' => 'External payment channel system error.', 'http_code' => 400, 'description' => '外部支付渠道系统异常'], + ['code' => 'PayChannelAuthenticationRequired', 'message' => 'Payment channel requires 3D Secure authentication.', 'http_code' => 400, 'description' => '需要进行 3D Secure 验证'], + ['code' => 'PayChannelInvalidPin', 'message' => 'The provided PIN is incorrect or does not meet the requirements.', 'http_code' => 400, 'description' => '提供的 PIN 码不正确或不符合要求'], + ['code' => 'PayChannelTradeStatusError', 'message' => 'The payment channel trade status does not support this operation.', 'http_code' => 400, 'description' => '支付渠道交易状态不支持此操作'], + ['code' => 'PayChannelExpiredCode', 'message' => 'The payment code has expired.', 'http_code' => 400, 'description' => '支付码已过期'], + ['code' => 'PayChannelTransactionNotAllowedAtTerminal', 'message' => 'The transaction is not allowed at the terminal.', 'http_code' => 400, 'description' => '终端不允许该交易'], + ['code' => 'PayChannelStopRecurringPayment', 'message' => 'The cardholder has cancelled the recurring payment.', 'http_code' => 400, 'description' => '持卡人已取消复购'], + ['code' => 'InvalidCard', 'message' => 'The credit card is invalid.', 'http_code' => 400, 'description' => '您的银行卡无效。请前往支付方式管理检查并更新绑定的银行卡。'], + ['code' => 'PaymentParamIllegal', 'message' => 'The payment parameters are illegal.', 'http_code' => 400, 'description' => '支付参数有误。请检查后重试。'], + ['code' => 'ExpiredCard', 'message' => 'The credit card has expired.', 'http_code' => 400, 'description' => '您的信用卡已过期。请更换其他信用卡。'], + ['code' => 'BindCardNotExist', 'message' => 'The bindcard information was not found during payment.', 'http_code' => 400, 'description' => '绑卡信息未找到。请重新绑卡或联系客服。'], + ['code' => 'PaymentDeclinedByBank', 'message' => 'The payment was declined by the bank.', 'http_code' => 400, 'description' => '您的银行拒绝了本次交易。请联系您的银行了解原因。'], + ['code' => 'PaymentOrderStatusInvalid', 'message' => 'The payment order status returned by the channel is invalid.', 'http_code' => 400, 'description' => '支付渠道订单状态异常。请联系客服。'], + ['code' => 'AmountLimitExceed', 'message' => 'The amount exceeds the limit.', 'http_code' => 400, 'description' => '交易金额超过限额。请调整金额或联系客服。'], + ['code' => 'ThirdPartyPayerAccountStatusInvalid', 'message' => 'The third-party payer account status is invalid.', 'http_code' => 400, 'description' => '第三方资金账户状态异常。请联系客服。'], + ['code' => 'InvalidCardNumber', 'message' => 'The credit card number is invalid.', 'http_code' => 400, 'description' => '您的银行卡卡号无效。请前往支付方式管理检查并更新绑定的银行卡。'], + ['code' => 'CurrencyNotSupport', 'message' => 'The currency is not supported.', 'http_code' => 400, 'description' => '不支持当前币种交易。请更换其他币种或支付方式。'], + ['code' => 'RepeatRefundRequestInconsist', 'message' => 'The repeated refund request parameters are inconsistent.', 'http_code' => 400, 'description' => '二次退款参数不一致。请检查后重试。'], + ['code' => 'PaymentOrderNotExist', 'message' => 'The payment order does not exist in the channel.', 'http_code' => 400, 'description' => '支付渠道订单不存在。请刷新页面或重新发起交易。'], + ['code' => 'PaymentOrderIsClosed', 'message' => 'The payment order has been closed by the channel.', 'http_code' => 400, 'description' => '支付渠道订单已关闭。请刷新页面或重新发起交易。'], + ['code' => 'RefundTimeExceedLimit', 'message' => 'The refund time exceeds the maximum allowed refund period.', 'http_code' => 400, 'description' => '退款时间已超过允许范围。请联系客服。'], + ['code' => 'TradeInCaptureOrCancelNotAllowRefund', 'message' => 'Refund is not allowed when the trade is in capture or cancel status.', 'http_code' => 400, 'description' => '交易状态不允许退款。请联系客服。'], + ['code' => 'PaymentChargeback', 'message' => 'The user has initiated a chargeback.', 'http_code' => 400, 'description' => '用户已拒付本次交易。请联系客服。'], + ['code' => 'TransactionTypeNotPermitted', 'message' => 'The credit card does not support this transaction type.', 'http_code' => 400, 'description' => '您的信用卡不支持该交易类型。请更换其他信用卡或支付方式。'], + ['code' => 'InvalidAmount', 'message' => 'The amount is invalid.', 'http_code' => 400, 'description' => '金额无效。请检查后重试。'], + ['code' => 'RecurringPaymentForbidden', 'message' => 'The user has forbidden recurring payments.', 'http_code' => 400, 'description' => '您已禁止代扣功能。请联系客服。'], + ['code' => 'RefundAmountExceedLimit', 'message' => 'The cumulative refund amount exceeds the payment order amount.', 'http_code' => 400, 'description' => '退款金额超过支付单总金额。请检查退款金额。'], + ['code' => 'BillingAgreementCancelled', 'message' => 'The billing agreement has been cancelled.', 'http_code' => 400, 'description' => '代扣协议已取消。请联系客服。'], + ['code' => 'RequestTrafficExceedLimit', 'message' => 'The request traffic exceeds the channel rate limit.', 'http_code' => 400, 'description' => '支付渠道请求频繁,请稍后再试。'], + ['code' => 'ExpiryDateWrong', 'message' => 'The credit card expiry date is wrong.', 'http_code' => 400, 'description' => '信用卡过期日期错误。请检查后重试。'], + ['code' => 'PaymentOrderFrozen', 'message' => 'The payment order has been frozen by the channel.', 'http_code' => 400, 'description' => '支付渠道订单已冻结。请联系客服。'], + ['code' => 'BillingAgreementIllegal', 'message' => 'The billing agreement status is illegal.', 'http_code' => 400, 'description' => '代扣协议状态异常。请联系客服。'], + ['code' => 'Cvv2Declined', 'message' => 'The credit card CVV2 is invalid.', 'http_code' => 400, 'description' => '您输入的CVV2无效。请检查后重试。'], + ['code' => 'AgreementNotExist', 'message' => 'The billing agreement does not exist.', 'http_code' => 400, 'description' => '代扣协议不存在。请联系客服。'], + ['code' => 'COUPON_NOT_FOUND', 'message' => 'No claimable SLA coupons.', 'http_code' => 400, 'description' => '无可申领的SLA优惠券'], + ['code' => 'CouponNotFound', 'message' => 'No claimable SLA coupons.', 'http_code' => 400, 'description' => '无可申领的SLA优惠券'], + ['code' => 'InvoiceTitleNotExistSubSite', 'message' => 'There is currently no valid invoice title, please add a title before submitting the application.', 'http_code' => 400, 'description' => '当前无有效发票抬头,请新增抬头后再提交申请'], + ['code' => 'InvoiceCnApiNotSupportInIntlSite', 'message' => 'Domestic station interface, not callable in international environment.', 'http_code' => 400, 'description' => '国内站接口,不可在国际环境调用'], + ['code' => 'InvoiceIntlApiNotSupportInCnSite', 'message' => 'International station interface, cannot be called in domestic environment.', 'http_code' => 400, 'description' => '国际站接口,不可在国内环境调用'], + ['code' => 'InvoiceApplyAmountNotEnough', 'message' => 'The current invoiced amount exceeds the total invoiced amount, please check the order again.', 'http_code' => 400, 'description' => '当前开票金额超过总可开票金额,请重新勾选订单'], + ['code' => 'InvoiceApplyAmountNotEnoughSubSite', 'message' => 'The currently submitted invoicing amount exceeds the total invoicing amount, please check again.', 'http_code' => 400, 'description' => '当前提交的开票金额超过总可开票金额,请重新勾选'], + ['code' => 'SUBSCRIPTION_0001', 'message' => 'invalid param.', 'http_code' => 400, 'description' => '参数错误'], + ['code' => 'SUBSCRIPTION_0007', 'message' => 'Limited to once per hour.', 'http_code' => 400, 'description' => '每小时仅允许操作一次。如需再次修改,请下个小时重试.'], + ['code' => 'MultiAccountQueryNotSupported', 'message' => 'The historical month dimension summary does not support multi-account query.', 'http_code' => 400, 'description' => ' "按产品/按账号"维度下,该月份仅支持单账号查看。切换其他维度可查看多账号,或通过导出获取。'], + ['code' => 'LimitedOperation', 'message' => 'Limited to once per hour.', 'http_code' => 400, 'description' => '每小时仅允许操作一次。如需再次修改,请下个小时重试.'], + ['code' => 'F-10000-16-00609', 'message' => 'Subscription not exist.', 'http_code' => 405, 'description' => '订阅不存在'], + ], + 'changeSet' => [ [ - 'regionId' => 'cn-qingdao', - 'endpoint' => 'business.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'business.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou', - 'endpoint' => 'business.aliyuncs.com', - ], - [ - 'regionId' => 'cn-huhehaote', - 'endpoint' => 'business.aliyuncs.com', - ], - [ - 'regionId' => 'cn-wulanchabu', - 'endpoint' => 'business.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'business.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'business.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'business.aliyuncs.com', - ], - [ - 'regionId' => 'cn-chengdu', - 'endpoint' => 'business.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'business.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-1', - 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-2', - 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-3', - 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-5', - 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'us-east-1', - 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'us-west-1', - 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1', - 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-south-1', - 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'me-east-1', - 'endpoint' => 'business.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-finance', - 'endpoint' => 'business.aliyuncs.com', + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'CreateFundAccountTransfer'], + ], + 'createdAt' => '2025-12-05T11:34:07.000Z', + 'description' => '', ], - [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'business.aliyuncs.com', + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'], ], - [ - 'regionId' => 'cn-shenzhen-finance-1', - 'endpoint' => 'business.aliyuncs.com', + ], + 'ram' => [ + 'productCode' => 'BssOpenApi', + 'productName' => '阿里云交易和账单管理API', + 'ramCodes' => ['bss', 'bssapi', 'efc'], + 'ramLevel' => '操作级', + 'ramConditions' => [ + [ + 'name' => 'bssapi:ProductType', + 'schema' => ['type' => 'STRING', 'description' => '操作资源的产品类型,示例:ecs'], + ], + [ + 'name' => 'bssapi:ProductCode', + 'schema' => ['type' => 'STRING', 'description' => '操作资源的产品code,示例:ecs'], + ], ], - [ - 'regionId' => 'cn-beijing-finance-1', - 'endpoint' => 'business.aliyuncs.com', + 'ramActions' => [ + [ + 'apiName' => 'DescribeCouponItemList', + 'description' => '查询优惠券可用商品列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeCouponItemList', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'QueryCostByCostCenter', + 'description' => '查询财务单元费用概览结果', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CheckBudgetNameExists', + 'description' => '检测预算名称是否存在', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:CheckBudgetNameExists', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetFundAccountCanWithdrawAmount', + 'description' => '查询资金账户可提现金额', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeAccount', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetFundAccountCanTransferAmount', + 'description' => '查询资金账户的可转出金额', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeBillingAccount', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'AllocateCostCenterResource', + 'description' => '资源分配到财务单元', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'bss:AllocateCostUnitResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListInvoiceCandidate', + 'description' => '开票对象查询服务', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'bss:DescribeQueryInvoice', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateCostCenter', + 'description' => '创建财务单元', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'bss:ModifyCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'QueryCostCenterResource', + 'description' => '查询财务单元的资源', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'bss:DescribeCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetFundAccountLowAvailableAmountAlarm', + 'description' => '查询资金账户低额预警', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeAlarm', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeFrInstances', + 'description' => '查询资源包实例', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'bss:DescribeFrInstance', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'QueryCostCenterRule', + 'description' => '查询财务单元自动分配规则', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListFundAccount', + 'description' => '查询资金账户列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'bss:DescribeBillingAccount', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'SaveCostCenterShareRule', + 'description' => '修改财务单元分摊规则', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'bss:ModifyCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeDeductLogs', + 'description' => '查询资源包抵扣记录', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'bss:DescribeFrDeductLogs', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ModifyCostCenter', + 'description' => '修改财务单元', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'bss:ModifyCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListInvoiceTitle', + 'description' => '发票抬头查询服务', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'bss:DescribeQueryInvoice', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateReportDefinition', + 'description' => '创建报告订阅', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'bss:ModifyOssSub', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ModifyCostCenterRule', + 'description' => '修改财务单元自动分配规则', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'bss:ModifyCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateCostCenterRule', + 'description' => '创建财务单元自动分配规则', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'bss:ModifyCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteCostCenterRule', + 'description' => '删除财务单元自动分配规则', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'bss:ModifyCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeCoupon', + 'description' => '查询优惠券列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'bss:DescribeCoupon', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateInvoice', + 'description' => '发票申请', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'bss:ApplyInvoice', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteReportDefinition', + 'description' => '删除报告订阅', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'bss:ModifyOssSub', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeBudgets', + 'description' => '查询预算列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeBudgets', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'SetFundAccountLowAvailableAmountAlarm', + 'description' => '设置资金账户低额预警', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'bss:ModifyAlarm', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetFundAccountAvailableAmount', + 'description' => '查询资金账户可用金', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeBillingAccount', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListFundAccountPayRelation', + 'description' => '查询账户的付款关系', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'bss:DescribeBillingAccount', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteCostCenter', + 'description' => '删除财务单元', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'bss:ModifyCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CancelFundAccountLowAvailableAmountAlarm', + 'description' => '取消资金账户低额预警', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'bss:ModifyAlarm', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetFundAccountCanRecycleAmount', + 'description' => '查询资金账户可回收金额', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeBillingAccount', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'QueryCostCenterShareRule', + 'description' => '查询财务单元分摊规则', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'bss:DescribeCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'QueryCostCenter', + 'description' => '查询财务单元', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeCostUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetOrderDetail', + 'description' => '订单详情查询服务', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeOrderDetail', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListReportDefinitions', + 'description' => '查看订阅报告', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'bss:DescribeOss', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetFundAccountTransactionDetails', + 'description' => '查询资金账户收支明细', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bss:DescribeFund', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetOrders', + 'description' => '订单列表查询服务', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bssapi:QueryOrders', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'QueryMonthlySlaList', + 'description' => 'SLA赔付查询', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'bssapi:QueryMonthlySlaList', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'SubmitSlaCouponApply', + 'description' => 'SLA赔付申领', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'bssapi:SubmitSlaCouponApply', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'SetFundAccountCreditAmount', + 'description' => '设置资金账户的信控限额', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'efc:ModifyCredit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetFundAccountCanAllocateCreditAmount', + 'description' => '查询资金账户可分配信控额度', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'efc:ModifyCredit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateFundAccountTransfer', + 'description' => '创建账户划拨/回收', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'efc:ModifyTransfer', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'BssOpenApi', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'resourceTypes' => [], ], ]; |
