Price Units

Get price unit by code

Changed on

Use when resolving a price unit by code (e.g. from an external catalog or config). Ideal for integrations.

get/prices/units/code/{code}

Request

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

Path parameters

codestring required

Price unit code

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

    • warning

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

    • 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