# Method: accounts.channelPartnerLinks.channelPartnerRepricingConfigs.create

- [HTTP request](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.channelPartnerLinks.channelPartnerRepricingConfigs/create#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.channelPartnerLinks.channelPartnerRepricingConfigs/create#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.channelPartnerLinks.channelPartnerRepricingConfigs/create#body.request_body)
- [Response body](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.channelPartnerLinks.channelPartnerRepricingConfigs/create#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.channelPartnerLinks.channelPartnerRepricingConfigs/create#body.aspect)
- [Try it!](https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.channelPartnerLinks.channelPartnerRepricingConfigs/create#try-it)

Creates a ChannelPartnerRepricingConfig. Call this method to set modifications for a specific ChannelPartner's bill. You can only create configs if the `https://docs.cloud.google.com/channel/docs/reference/rest/v1/RepricingConfig#FIELDS.effective_invoice_month` is a future month. If needed, you can create a config for the current month, with some restrictions.

When creating a config for a future month, make sure there are no existing configs for that `https://docs.cloud.google.com/channel/docs/reference/rest/v1/RepricingConfig#FIELDS.effective_invoice_month`.

The following restrictions are for creating configs in the current month.

- This functionality is reserved for recovering from an erroneous config, and should not be used for regular business cases.
- The new config will not modify exports used with other configs. Changes to the config may be immediate, but may take up to 24 hours.
- There is a limit of ten configs for any ChannelPartner or `https://docs.cloud.google.com/channel/docs/reference/rest/v1/RepricingConfig#EntitlementGranularity.FIELDS.entitlement`, for any `https://docs.cloud.google.com/channel/docs/reference/rest/v1/RepricingConfig#FIELDS.effective_invoice_month`.
- The contained `https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.channelPartnerLinks.channelPartnerRepricingConfigs#ChannelPartnerRepricingConfig.FIELDS.repricing_config` value must be different from the value used in the current config for a ChannelPartner.

Possible Error Codes:

- PERMISSION_DENIED: If the account making the request and the account being queried are different.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request. Also displays if the updated config is for the current month or past months.
- NOT_FOUND: The `https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.channelPartnerLinks.channelPartnerRepricingConfigs#ChannelPartnerRepricingConfig` specified does not exist or is not associated with the given account.
- INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support.

Return Value: If successful, the updated `https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.channelPartnerLinks.channelPartnerRepricingConfigs#ChannelPartnerRepricingConfig` resource, otherwise returns an error.

### HTTP request

`POST https://cloudchannel.googleapis.com/v1/{parent=accounts/*/channelPartnerLinks/*}/channelPartnerRepricingConfigs`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The resource name of the ChannelPartner that will receive the repricing config. Parent uses the format: accounts/{account_id}/channelPartnerLinks/{channelPartnerId} |

### Request body

The request body contains an instance of `https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.channelPartnerLinks.channelPartnerRepricingConfigs#ChannelPartnerRepricingConfig`.

### Response body

If successful, the response body contains a newly created instance of `https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.channelPartnerLinks.channelPartnerRepricingConfigs#ChannelPartnerRepricingConfig`.

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/apps.order`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).