Skip to main content

Get Currency

GET : http://<base_url>/digipay/v3/base/currency/{id}

This API is use to get currency detail

PATH PARAMS:-

ParameterTypeDescriptionValue
IDStringPrimary key of currency detail76bc712200ca444fa334f9e55e5fd7a8

HEADERS:-

ParameterTypeDescriptionValue
AuthorizationStringIt is a combination of type and token to authenticate user for the given tokenToken duik7309njdlkhdauhknksadhjkas986876sd873j
CompanyIDStringCompany_id is a unique primary id, that is represent company detail76bc712200ca444fa334f9e55e5fd7a8

Request Body:-

Request Example
curl --request GET \
--url http://192.168.1.102:8014/digipay/v3/base/currency/76bc712200ca444fa334f9e55e5fd7a8 \
--header 'Authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI2NWY0ZDI1MDliZmU0NTBmYTg4MTVhNTU5Njk3YmM0NyIsInJvbGVzIjpbIlJPTEVfQURNSU4iXSwiZXhwIjoxNjkzNTIxOTU1fQ.9oWwUzlFzmYB1ZOhaVamxKJH6DsMO8tFue2kbg2YyoI' \
--header 'CompanyID: 76bc712200ca444fa334f9e55e5fd7a8' \
--header 'accept: application/json'

Response:-

Response
{
"success": 1,
"error": [],
"data": {
"currency": {
"id": "31f22c75ccc248bc9075104db6ca51a6",
"is_active": true,
"updated_by": "6089e4b1301845c6978056bb2b0ecbbe",
"updated_date": 1634109863,
"currency_name": "INR",
"currency_code": "INR",
"currency_symbol": "₹",
"country_id": "6089e4b1301845c6978056bb2b0ecbbe",
"is_primary_currency": false
}
}
}

RESPONSES :-

Status CodeDescription
200OK
400Bad Request
404Not Found
500Internal Server Error