Paddle Billing
Search

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 Messageduplicate `price_id`s are not valid when creating a one-time charge for a subscription
Error Codesubscription_charge_duplicate_price_ids
Status Code400

Common causes

  • Prices must be unique in a one-time charge request. You sent the same price_id more than once in the items array.

Solutions

  • Combine duplicate price_id items into a single item in the array, then retry your request.