Duplicate `price_id` fields sent in the items list
You're attempting to create a one-time charge for one or more of the same items in the same request.
Error Message | duplicate `price_id`s are not valid when creating a one-time charge for a subscription |
Error Code | subscription_charge_duplicate_price_ids |
Status Code | 400 |
Common causes
Prices must be unique in a one-time charge request. You sent the same
price_id
more than once in theitems
array.
Solutions
Combine duplicate
price_id
items into a single item in the array, then retry your request.