Assign Profile

View as Markdown
Assign a dunning profile to a cycle length or price. This determines which profile is used when dunning starts for a subscription. Resolution order: 1. Price-level assignment (if subscription has a price with an assignment) 2. Cycle-length assignment (based on subscription's billing cycle) 3. System default profile (always available as fallback) resource_type values: - "cycle_length": Assign to a billing cycle range. resource_id must be "daily", "short", "medium", or "long". - "price": Assign to a specific price. resource_id is the price's ID. Overrides the cycle-length assignment for that price. If an assignment already exists for the same (resource_type, resource_id), it will be replaced with this profile.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

profile_idstringRequired
account_idstringRequired

Request

This endpoint expects an object.
resource_typeenumRequired

Type of resource to assign to: ‘cycle_length’ or ‘price’

resource_idstringRequired

For cycle_length: ‘daily’, ‘short’, ‘medium’, ‘long’. For price: the price’s ID

Response

Successful Response
idstring
profile_idstring
resource_typestring
resource_idstring
assigned_atdatetime

Errors

422
Unprocessable Entity Error