# Custom UUID on page creation

**URL:** <https://forum.getkirby.com/t/custom-uuid-on-page-creation/34590>\
**Category:** Questions\
**Tags:** v5\
**Created:** [August 15, 2025, 7:05am UTC](https://forum.getkirby.com/t/custom-uuid-on-page-creation/34590 "2025-08-15T07:05:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sly31](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/sly31/32/16579_2.png) [@sly31](https://forum.getkirby.com/u/sly31)\
**Post date:** [August 15, 2025, 7:05am UTC](https://forum.getkirby.com/t/custom-uuid-on-page-creation/34590/1 "2025-08-15T07:05:19Z")

</div>

Hello,  
I’m trying to sync Stripe prices with Kirby.  
After getting datas from Stripe API, I create a new page.  
Is it possible to use Stripe price ID as Kirby page UUID ?  
Thanks

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [August 15, 2025, 11:19am UTC](https://forum.getkirby.com/t/custom-uuid-on-page-creation/34590/2 "2025-08-15T11:19:41Z")

</div>

Yes, if you set the value at page creation, it shouldn’t be a problem

---

<div class="post-metadata">

**Author:** ![lemmon](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lemmon/32/7059_2.png) [@lemmon](https://forum.getkirby.com/u/lemmon)\
**Post date:** [August 15, 2025, 11:23am UTC](https://forum.getkirby.com/t/custom-uuid-on-page-creation/34590/3 "2025-08-15T11:23:40Z")

</div>

I use page models for such tasks. This example matches the same Id/Uuid/whatever with both page uuid and slug.

```php
public static function create(array $props): Page
{
    $id = self::generateID();

    return parent::create(array_replace_recursive($props, [
        'slug' => $id,
        'content' => [
            'uuid' => $id,
        ],
    ]));
}

```

---

<div class="post-metadata">

**Author:** ![sly31](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/sly31/32/16579_2.png) [@sly31](https://forum.getkirby.com/u/sly31)\
**Post date:** [August 15, 2025, 11:27am UTC](https://forum.getkirby.com/t/custom-uuid-on-page-creation/34590/4 "2025-08-15T11:27:11Z")

</div>

Thanks, it works perfectly !
