Exchange Rate PUT

URI

https://{DATACENTER}.brightpearlconnect.com/public-api/{ACCOUNT}
/accounting-service/currency/{currency-id}/exchange-rate

Refer to our documentation on URI syntax for more information on how to construct URIs.

Description

Updates an existing exchange rate. The rateActiveFrom element must be an ISO-8601 formatted date. NOTE: For the "single exchange rate" implementation 1) Only the "initial" (EPOCH) exchange rate for the currency can be updated. 2) The customer ID provided must be an actual customer

Example

Updates an exchange rate for an existing currency and date and returns the number of table rows updated.

Request URI

/currency/2/exchange-rate

Request body

{
	"rateActiveFrom": "1971-01-01T00:00:00.000+01:00",
	"rate": 1.090876
}

Response

{
	"response": 1
}