Currencies

Update dimension conversion rate mapping

Update an existing dimension conversion rate mapping. An update may trigger the deletion of other existing mappings if the updated fields would cause a conflict with those mappings. Clients that receive a 200 OK response for an update should subsequently request the mappings list to learn of any deletions.

put/currencies/rates/dimension-mappings/{id}

Request

  • Base URL
    https://api.cubesoftware.com
  • Auth
    OAuth 2
    Authorization code: https://portal.cubesoftware.com/o/authorize/
    Token URL: https://api.cubesoftware.com/o/token/

Path parameters

idstring required

Headers

HTTP_ACCEPTstring required

Set the version of API the request is for

X-Company-IDstring required

Associates request with company

Request body

idinteger required
accountinteger required
is_defaultboolean
rate_typestring required
exchange_rate_typeinteger required
from_currencyinteger nullable
to_currencyinteger nullable
constant_ratestring decimal nullable
content_type_idinteger required

A helper property method for grabbing the id of the ContentType of this model. This is used for creating the rateable relationships with ConversionRate instances.

Returns: an integer representing the content type

created_atstring date-time required
modified_atstring date-time required

Response

idinteger required
accountinteger required
is_defaultboolean
rate_typestring required
exchange_rate_typeinteger required
from_currencyinteger nullable
to_currencyinteger nullable
constant_ratestring decimal nullable
content_type_idinteger required

A helper property method for grabbing the id of the ContentType of this model. This is used for creating the rateable relationships with ConversionRate instances.

Returns: an integer representing the content type

created_atstring date-time required
modified_atstring date-time required

Changes

No operation changes recorded.