currency_format

A currency format. Contains formatting information on a currency.

Handler Class:

com.ibm.commerce.rest.store.handler.CurrencyFormatHandler

Method Summary

HTTP MethodPathDescription
GET/store/{storeId}/currency_format?q={q}Finds currency formats by a query. See each query for details on input and output.
GET/store/{storeId}/currency_format?q=byCurrencyFinds a currency format by its currency.

Method Details

GET /store/{storeId}/currency_format?q={q}

Finds currency formats by a query. See each query for details on input and output.

Handler Method:

findByQuery

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.

GET /store/{storeId}/currency_format?q=byCurrency

Finds a currency format by its currency.

Handler Method:

findByCurrency

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
numberUsageThe number usage.querystringfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

com.ibm.commerce.common.beans.StoreCurrencyFormatDescriptionDataBean_IBM_Store_Details


Example

Request:
GET /wcs/resources/store/10001/currency_format?currency=USD&q=byCurrency&numberUsage=-1&langId=-1&responseFormat=json
HTTP Status Code:

200

Response:
{
	"resultList": [
		{
			"currencyCode": "USD",
			"currencySymbol": "$",
			"decimalPlaces": "2",
			"langId": "-1",
			"numberUsage": "-1",
			"storeId": "10001"
		}
	]
}

Data Type Details

com.ibm.commerce.common.beans.StoreCurrencyFormatDescriptionDataBean_IBM_Store_Details

Properties:
NameData TypeRequired
numberUsagestringfalse
langIdstringfalse
currencySymbolstringfalse
storeIdstringfalse
decimalPlacesstringfalse
currencyCodestringfalse