Use these operations to manage Storefront accounts. A Storefront account is an account that the customer is subscribed to in order to use the Rebilly product.
Storefront operations interact directly with the customer, and provide the customer with access to their own data.
To use Storefront operations, the customer must be issued a JWT with limited permissions. For more information, see Create a session with username and password and Exchange an authentication token.
Storefront operations are intended to be used directly from an untrusted browser.
Retrieve account.
Expands a request to include embedded objects within the _embedded property of the response. This field accepts a comma-separated list of objects.
For more information, see Embedded resources.
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/storefront/account
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/storefront/account
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/storefront/account
curl -i -X GET \
'https://www.rebilly.com/_mock/catalog/all/storefront/account?expand=string' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Account retrieved.
ID of the account.
ID of the website. A website is where an organization obtains a customer. For more information, see Obtain an organization ID and website ID.
Default payment instrument. The default payment instrument is used to automatically pay subscription renewals, and for transaction requests where a specific payment instrument is not provided.
ID of the customer's preferred payment instrument for payouts.
Date and time when the resource is created. This value is set automatically when the resource is created.
Date and time when the resource is updated. This value is set automatically when the resource is updated.
Email addresses for notification delivery in event-based email notifications. When you configure event-based email notifications, you can send to these addresses, the customer's primary email address, or another email address you specify. For more information, see Manage notification emails.
{ "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21", "websiteId": "web_0YV7DE4Z26DQSA1AC92FBJ7SEG", "username": "string", "primaryAddress": { "firstName": "Benjamin", "lastName": "Franklin", "organization": "Rebilly", "address": "36 Craven St", "address2": "string", "city": "Austin", "region": "Texas", "country": "GB", "postalCode": "WC2N 5NF", "phoneNumbers": [ … ], "emails": [ … ], "dob": "1980-04-01", "jobTitle": "CEO", "hash": "056ae6d97c788b9e98b049ebafd7b229bf852221" }, "defaultPaymentInstrument": { "method": "payment-card", "paymentInstrumentId": "inst_0YVB8KPKNXCBR9EDX7JHSED75N" }, "preferredPayoutInstrumentId": "inst_0YVB8KPKNXCBR9EDX7JHSED75N", "isVerified": true, "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "taxNumbers": [ { … } ], "notificationEmails": [ "user@example.com" ], "_links": [ { … } ], "_embedded": { "website": {}, "leadSource": {} } }