Price Units

Update price unit

Changed on

Use when renaming or updating metadata for a price unit. Code is immutable once created.

put/prices/units/{id}

Request

  • Base URL
    https://us.api.flexprice.io/v1
  • URL
    https://us.api.flexprice.io/v1/prices/units/{id}
  • Auth
    API key in header x-api-key

Path parameters

idstring required

Price unit ID

Request body

metadataTypesMetadata
namestring

Response

OK

base_currencystring
codestring
conversion_ratestring
created_atstring date-time
created_bystring
environment_idstring
idstring
metadataTypesMetadata
namestring
status'published' | 'deleted' | 'archived'
symbolstring
tenant_idstring
updated_atstring date-time
updated_bystring

Changes

    • warning

      added the new not_implemented enum value to the response property for the response status

    • warning

      added the new not_implemented enum value to the response property for the response status

    • breaking

      the request property type changed from no type to object

    • breaking

      the response's property type changed from no type to object for status

    • breaking

      the response's property type changed from no type to string for status

    • warning

      added the new archived enum value to the response property for the response status

    • warning

      added the new deleted enum value to the response property for the response status

    • warning

      added the new published enum value to the response property for the response status