---
schema_version: "1"
id: e380007959712aa2c7d5a8169df0eedbda94d75731023ff5a5143957e32d1ae5
title: Commerce Register Guest Buyer API
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lightning-base-components/lightning-design-system/guides/lwc/components/lightning/commerceRegisterGuestBuyerApi/lightning-commerce-register-guest-buyer-api.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-component-reference/guide/lightning-commerce-register-guest-buyer-api.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0946053ffcf9393f2815cddc03c2c06cfcadc0b4617e566f24b2a822374a68f2
products:
  - Lightning Component Reference
---
# Commerce Register Guest Buyer API

**`lightning/commerceRegisterGuestBuyerApi`**

Register a guest buyer account against a webstore using the `lightning/commerceRegisterGuestBuyerApi` module. The `lightning/commerceRegisterGuestBuyerApi` module requires API version 62.0 or later.

**For Use In**

Lightning Experience, Experience Builder Sites, Salesforce Mobile App

::::::tabset{tabs='[ "Develop", "Specifications" ]'}

:::::tab
The `lightning/commerceRegisterGuestBuyerApi` module includes a method to register a guest buyer account against a webstore.

To use the Commerce Register Guest Buyer API in your component, import the function in your component's JavaScript file.

```js
import { registerGuestBuyer } from "lightning/commerceRegisterGuestBuyerApi";
```

For this module's specification and examples, see the [Lightning Web Components Developer Guide](https://developer.salesforce.com/docs/platform/lwc/guide/reference-lightning-commerce-register-guest-buyer-api.html).

:::::

:::::tab
::component-specification{component="commerceRegisterGuestBuyerApi" model="lwc" namespace="lightning"}

:::::

::::::
