What is the correct object ID prefix for a refund in Stripe?

Prepare for the Stripe Fundamentals Exam. Use flashcards and multiple-choice questions with explanations to maximize your score. Explore essential concepts and hone your skills for a successful exam experience.

Multiple Choice

What is the correct object ID prefix for a refund in Stripe?

Explanation:
Stripe IDs encode the type of object right in the ID prefix. For a refund, the ID begins with re_. This naming convention makes it easy to recognize what kind of resource you’re dealing with by just looking at the ID — for example, charges start with ch_, refunds with re_, customers with cus_, invoices with in_, and so on. So when you see an ID that starts with re_, you know it’s a refund object. The other prefixes listed don’t represent refunds, which is why they’re not correct.

Stripe IDs encode the type of object right in the ID prefix. For a refund, the ID begins with re_. This naming convention makes it easy to recognize what kind of resource you’re dealing with by just looking at the ID — for example, charges start with ch_, refunds with re_, customers with cus_, invoices with in_, and so on. So when you see an ID that starts with re_, you know it’s a refund object. The other prefixes listed don’t represent refunds, which is why they’re not correct.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy