Skip to content

Generate Better IDs #28

@svapnil

Description

@svapnil

a prefix like we had with TRF would be useful to users looking to differentiate between UUIDs

It would be useful to standardize these IDs in such a way that makes it easy for a human to distinguish between them, and have them sufficiently random.

This has been accomplished by leading fintech companies like Increase (https://increase.com/documentation/api#ach-transfers) and Stripe (https://docs.stripe.com/api/payouts).

Examples:

Increase (api bank) ACH transfers IDs are like: ach_transfer_uoxatyh3lt5evrsdvo7q
Stripe payouts IDs are like: po_1OaFDbEcg9tTZuTgNYmX0PKB

Currently, the default IDs that generates are uuidv4()s. We should reimagine this to be like Stripe / Increase

I think we need a system for generating IDs that is similar to these great companies. We might need to think a little bit more about this and generate a thoughtful change that will apply to the whole package. It would be an incredible and needed edition to iso20022.js.

Originally posted by @svapnil in #25 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions