Delete customer pricing plan
1 min
DELETE
https://app.amberflo.io/payments/pricing/amberflo/customer-pricing
CustomerIdstringUnique identifier of the customer whose pricing plan should be deleted.
Required unless RelationId is provided.
RelationIdstring<p>Serialized relationship identifier that contains customer and product plan information.
If provided, this parameter takes precedence over CustomerId, ProductId, and ProductPlanTimeInSeconds.</p>
ProductIdstring<p>Unique identifier for the specific product plan to delete.
If not provided, defaults to the account's default product ID.</p>
ProductPlanTimeInSecondsinteger<int64><p>Unix timestamp (in seconds) specifying the exact plan assignment to delete.
If not provided, deletes the most recent future plan assignment.</p>
200Successfully deleted the customer pricing plan and returns confirmation message
400Invalid customer ID, cannot delete active plan, or malformed request parameters
401Authentication required or invalid API key provided
403Insufficient permissions to delete customer pricing plans
404Customer not found or no future plans available for deletion
409Cannot delete active pricing plan - only future plans can be deleted
500Internal server error occurred while deleting customer pricing plan
curl --request DELETE \
--url 'https://app.amberflo.io/payments/pricing/amberflo/customer-pricing?CustomerId=customer_123' \
--header 'accept: application/json'