latestOpenAPI 3.0.32026-08-19299284712.8 KB

67d9f45bb99b

Currencies

Create dimension conversion rate mapping

Create a new dimension conversion rate mapping. This object creation may trigger the deletion of other existing mappings if the new object's fields would cause a conflict with those mappings. Will result in a response of 409 (Conflict), and require an additional query parameter confirm=true in the request to proceed with creating the mapping and deleting the existing mappings that conflict.Clients that receive a 200 OK response for an create should subsequently request the mappings list to learn of any deletions.

post/currencies/rates/dimension-mappings

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