SmartAcc DynaMod Web API v2024.4 Build 0000 - Local

<back to all web services

CurrenciesAsAtDateRate

Common Module - Enquiry

Currencies with as at date rate (Bank Buy and Bank Sell) API

Requires Authentication
Required permission:CurrenciesAsAtDateRate-Enquiry.GET
The following routes are available for this service:
GET/CurrenciesAsAtDateRate/CurrencyID/{AcCurrencyID}Get currency as at date rate.All currencies would be return with as at date rate if IsFilterByCurrencyID = N. Pass in AsAtDate to get the as at date currency rate.
CurrenciesAsAtDateRate Parameters:
NameParameterData TypeRequiredDescription
AcCurrencyIDpathstringNoCurrency ID
IsFilterByCurrencyIDquerystringNoIs Filter by Currency ID (Y/N). Default to Y. If N, system will return all currencies ID as at date rate. If Y, system will return given currency ID as at date rate.
AsAtDatequeryDateTimeNoAs At Date. YYYY-MM-DD. System will use today's date if without provide value.
Pagequeryint?NoPage Number. Default 1.
RecordsPerPagequeryint?NoRecords Per Page. Default 20 Records.
CurrenciesAsAtDateRateResponse Parameters:
NameParameterData TypeRequiredDescription
CurrenciesformList<pfapi70100GetCurrencyAsAtDateRate>No
ResponseStatusformResponseStatusNo
TotalRecordsformintNoTotal records in all pages.
TotalRecordsInPageformintNoTotal records in current page.
pfapi70100GetCurrencyAsAtDateRate Parameters:
NameParameterData TypeRequiredDescription
AcCurrencyIDformNVARCHAR(5)YesCurrency ID
AcCurrencyDescformNVARCHAR(100)YesCurrency Description
CurrencySymbolformNVARCHAR(5)YesCurrency Symbol
BankBuyRateformNUMERIC(18,6)YesBank Buy Rate
BankSellRateformNUMERIC(18,6)YesBank Sell Rate

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /CurrenciesAsAtDateRate/CurrencyID/{AcCurrencyID} HTTP/1.1 
Host: snr2u.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Currencies":[{"AcCurrencyID":"String","AcCurrencyDesc":"String","CurrencySymbol":"String","BankBuyRate":0,"BankSellRate":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"TotalRecords":0,"TotalRecordsInPage":0}