Skip to content

Customer

The Customer menu is the shopper's account surface — everything tied to a registered customer: signing up and in, managing the profile and saved addresses, and reading their order history, invoices, downloadable products and reviews.

Authentication

Registration, login and forgot-password are reached with the storefront key alone. Everything else here acts on a specific customer's data and requires that customer to be authenticated — log in to obtain a customer Bearer token, then send it on every account request. A customer can only ever see and act on their own data.

How a client uses this

A typical flow is: register (or login) to obtain a token, verify the token when resuming a session, manage the profile and addresses, and read back orders, invoices, downloadable products and reviews. Logout invalidates the token; forgot/change password handle credential recovery and rotation.

Operations in this menu

Registration & session

OperationMethod & PathDescription
RegistrationPOST /api/shop/customersCreate a new customer account.
LoginPOST /api/shop/customer/loginAuthenticate and receive a Bearer token.
Verify TokenGET /api/shop/verify-tokensCheck that a customer token is still valid.
Customer LogoutPOST /api/shop/customer/logoutInvalidate the current token.
Forgot PasswordPOST /api/shop/forgot-passwordsSend a password-reset email.
Change PasswordPUT /api/shop/customer-profile-updates/{id}Change the customer's password.

Profile

OperationMethod & PathDescription
Get ProfileGET /api/shop/customer-profileRead the authenticated customer's profile.
Update ProfilePUT /api/shop/customer-profile-updates/{id}Update profile details.
Delete ProfileDELETE /api/shop/customer-profile-deletes/{id}Delete the customer account.

Addresses

OperationMethod & PathDescription
Get AddressesGET /api/shop/customer-addressesList the customer's saved addresses.
Create AddressPOST /api/shop/customer-addressesAdd a new address.
Update AddressPUT /api/shop/customer-addresses/{id}Edit an address.
Delete AddressDELETE /api/shop/customer-addresses/{id}Remove an address.

Orders

OperationMethod & PathDescription
Get OrdersGET /api/shop/customer-ordersList the customer's orders.
Get OrderGET /api/shop/customer-orders/{id}A single order with its detail.

Invoices

OperationMethod & PathDescription
Get InvoicesGET /api/shop/customer-invoicesList the customer's invoices.
Get InvoiceGET /api/shop/customer-invoices/{id}A single invoice.
Download Invoice PDFGET /api/shop/customer-invoices/{id}/pdfDownload the invoice as a PDF.

Downloadable products

OperationMethod & PathDescription
Get Downloadable ProductsGET /api/shop/customer-downloadable-productsList the customer's purchased downloads.
Get Downloadable ProductGET /api/shop/customer-downloadable-products/{id}A single downloadable purchase.

Reviews

OperationMethod & PathDescription
Get Customer ReviewsGET /api/shop/customer-reviewsList the reviews the customer has written.
Get Customer ReviewGET /api/shop/customer-reviews/{id}A single review by the customer.

Registration, login and forgot-password need only the storefront key; every other Customer endpoint requires a customer Bearer token — see Authentication.

Released under the MIT License.