Preview

createUsageReaderConfiguration is in Preview status and is subject to change without notice. For more information about Preview status, see the GraphQL API policy.

createUsageReaderConfiguration

Create a usage reader

This page contains

    Authorization Rules

    This request requires authorization with at least one of the following scopes:

    Scopes

    ROLE_PARTNER

    ROLE_DEVELOPER

    ROLE_CHANNEL_ADMIN

    Arguments

    input CreateUsageReaderConfigurationInput! PREVIEW

    Attributes to create a usage reader

    CreateUsageReaderConfigurationInput fields

    name String!

    Name for usage reader

    inputType UsageReaderInputType! PREVIEW

    Input type of usage reader defines how it is created for eg: from CSV file or JSON

    billable Boolean

    If true, reader is used for processing usage events that are billable

    productId String!

    Unique ID of the product

    fieldMappings UsageReaderFieldMappingsInput! PREVIEW

    List of fields which will be the part of usage request and their fieldReference from usage payload and inputFieldRef from usage reader input file.

    aggregationFields [String]

    List of fields which will be used in custom aggregation logic of custom metered usages

    description UsageReaderDescriptionInput PREVIEW

    Description of usage request

    additionalAttributes [String]

    Additional fields of usage request

    fileDetails UsageReaderFileDetailsInput PREVIEW

    Input file details used for reader configuration. These details are just for reference and are not used in usage processing.

    createdBy String!

    User email who is creating usage reader configurations

    Return Fields

    reader UsageReaderConfiguration PREVIEW

    Usage reader fields

    userErrors [CreateUsageReaderConfigurationsErrors!] PREVIEW

    Error details while saving usage reader

    Interactive example

    This is an example mutation query. Use the embedded interactive tool below to edit the query.

    Hint: use Ctrl + Space for autocompleting fields.