curl --request POST \
--url https://api.cloud.flexprice.io/v1/prices/units \
--header 'Content-Type: application/json' \
--data '{
"base_currency": "<string>",
"code": "<string>",
"conversion_rate": 123,
"name": "<string>",
"precision": 4,
"symbol": "<string>"
}'
{
"base_currency": "<string>",
"code": "<string>",
"conversion_rate": 123,
"created_at": "<string>",
"id": "<string>",
"name": "<string>",
"precision": 123,
"status": "published",
"symbol": "<string>",
"updated_at": "<string>"
}
Create a new price unit with the provided details
curl --request POST \
--url https://api.cloud.flexprice.io/v1/prices/units \
--header 'Content-Type: application/json' \
--data '{
"base_currency": "<string>",
"code": "<string>",
"conversion_rate": 123,
"name": "<string>",
"precision": 4,
"symbol": "<string>"
}'
{
"base_currency": "<string>",
"code": "<string>",
"conversion_rate": 123,
"created_at": "<string>",
"id": "<string>",
"name": "<string>",
"precision": 123,
"status": "published",
"symbol": "<string>",
"updated_at": "<string>"
}
Price unit details
The body is of type object
.
Created
The response is of type object
.