跳至主要内容
Adaptive Planning
上次更新时间 :2023-06-23
汇率类型

汇率类型

URL 端点

HTTPS://api.adaptiveplanning.com/api/rest/modeling/<version>/<tenant>/exchangeRateTypes
版本:v1
种类
元数据修改
描述
在 Adaptive Planning 中获取/创建/更新汇率类型
调用所需的权限
币种 (CURRENCIES)
请求时必须提供参数
不适用

支持的 HTTP 谓词

HTTP 谓词
描述
GET
检索系统中所有可用的汇率类型
GET
检索租户系统中给定代码的汇率类型
POST
它会根据系统中可用的汇率类型插入/更新汇率类型。
DELETE
根据提供的汇率类型代码删除汇率类型

GET

请求 URI
/exchangeRateTypes
提取汇率类型。
为租户提取系统中可用的所有汇率类型。
请求 URI 示例:
HTTPS://api.adaptiveplanning.com/api/rest/modeling/v1/greenco/exchangeRateTypes/A1

POST

申请
/exchangeRateTypes
插入或更新汇率类型。
根据汇率类型代码在 Planning 中插入或更新汇率类型:
  • 如果系统中不存在该代码,请插入汇率类型。
  • 如果系统中已存在该汇率类型代码,则进行更新。
请求 URI 示例:
HTTPS://api.adaptiveplanning.com/api/rest/modeling/v1/greenco/exchangeRateTypes

回复

204 无内容
成功响应为空,状态代码为 204。
400 错误请求
服务器无法识别该请求。
示例
{ "error": "Errors occurred while processing the request", "errors": [ { "error": "ABCD1 is a duplicate exchange rate type code in the request body. Exchange rate type code must be unique.", "code": "PLN310002" }, { "error": "Abcd name is a duplicate exchange rate type name in the request body. Exchange rate type name must be unique.", "code": "PLN310002" }, { "error": "Test Name is a duplicate exchange rate type name in the request body. Exchange rate type name must be unique.", "code": "PLN310002" } ] }
401 未授权
用户未获授权。
示例:
{ "message": "Invalid credential", "status": 401 }

DELETE

申请
/exchangeRateType/{code}
删除汇率类型。
删除用户定义的现有汇率类型。此操作还会删除外部汇率类型映射(如果存在)。
无法删除这两种预留的汇率类型。汇率类型为“每月平均”和“月末”。
请求 URI 示例:
HTTPS://api.adaptiveplanning.com/api/rest/modeling/v1/greenco/exchangeRateType/Xrate