Customers
Read and change the profile of the signed-in customer.
Every method here needs a signed-in customer. Sign one in with the authentication methods first.
Gets the profile of the signed-in customer. subbly.auth.checkAuthenticated
calls it behind the scenes, so a failure here means the token no longer works.
ReturnsPromise<SubblyCustomer>
The customer profile.
Get the customer profile
Changes the profile of the signed-in customer. Send only the fields you change.
Method parameters
payloadRequiredCustomerUpdatePayloadThe fields to change. Every one is optional.
ReturnsPromise<SubblyCustomer>
The updated profile.
Update the customer
Gets the referral link of the signed-in customer, to show on a "refer a friend"
page. Referrals must be switched on for the shop; check
subbly.shop.referralSettings.enabled first.
ReturnsPromise<CustomersReferralResponse>
The referral link.
referralLinkstringThe URL the customer shares.
Get the referral link