當貨幣為空值(未指派)時,擷取專案的貨幣資訊
具有貨幣欄位的專案物件可使用以下請求來擷取:
GET /attask/api-internal/project/{{projectID}}?fields=currency
這會傳回下列回應內文:
{
{
"data": {
"ID": "some_project_id",
"name": "some_project_name",
"objCode": "PROJ",
"currency": "EUR"
}
}
}
如果未設定專案的貨幣,此回應將包含值為null
的貨幣:
{
{
"data": {
"ID": "some_project_id",
"name": "some_project_name",
"objCode": "PROJ",
"currency": null
}
}
}
如果您需要專案的貨幣(例如計算),可以擷取客戶的預設貨幣:
GET /attask/api-internal/CUST/currentCustomer?fields=currency
回應包含使用者已設定為預設的貨幣,該貨幣將用於該客戶未設定貨幣的任何專案:
{
"data": [
{
"ID": "some_customer_id,
"name": "some_customer_name",
"objCode": "CUST",
"currency": "USD"
}
]
}
recommendation-more-help
5f00cc6b-2202-40d6-bcd0-3ee0c2316b43