Assign Profile
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_id
account_id
Request
This endpoint expects an object.
resource_type
Type of resource to assign to: ‘cycle_length’ or ‘price’
resource_id
For cycle_length: ‘daily’, ‘short’, ‘medium’, ‘long’. For price: the price’s ID
Response
Successful Response
id
profile_id
resource_type
resource_id
assigned_at
Errors
422
Unprocessable Entity Error