Access to add and change pages is restricted. See: https://cwiki.apache.org/confluence/display/OFBIZ/Wiki+access

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

Purpose

The purpose of this document is to list the high-level API endpoints required for headless commerce(B2C). This will helps in finalizing API design.

API Endpoints

Authentication

Sr No.API EndpointDescriptionTasksStatusPhase
1GET /getGuestTokenThis API will return a token for a guest account.
PlanningI
2POST /getCustomerTokenThis API will return a token for the registered user.
PlanningI
3POST /refreshTokenIn case we need to update the token. As JWT token ideally contains a certain expiry time. So if the user is active then instead of getting him to log out, this API can generate a new token from the existing token.
PlanningI

Customer

Sr No.API EndpointDescriptionTasksStatusPhase
1POST /customersTo register the customer.
PlanningI
2GET /customers/{customerPartyId}/password-hintTo get the password hint.
PlanningI
3POST /customers/reset-passwordTo get the reset password link on the registered email.
PlanningI
4POST /customers/{customerPartyId}/change-passwordTo change the password.
PlanningI
5GET /customers/{customerPartyId}To get the full data of the customer profile.
PlanningI
6PUT /customers/{customerPartyId}To update the customer's personal information.
PlanningI
7POST /customers/{customerPartyId}/addressesTo create the postal address.
PlanningI
8PUT /customers/{customerPartyId}/addresses/{contactMechId}To update the postal address and to mark the default address.
PlanningI
9DELETE /customers/{customerPartyId}/addresses/{contactMechId}To delete/expire the postal address.
PlanningI
10POST /customers/{customerPartyId}/phonesTo create a telecom number.
PlanningI
11PUT /customers/{customerPartyId}/phones/{contactMechId}To update a telecom number.
PlanningI
12DELETE /customers/{customerPartyId}/phones/{contactMechId}To delete a telecom number
PlanningI
13POST /customers/{customerPartyId}/emailsTo create an email address.
PlanningI
14PUT /customers/{customerPartyId}/emails/{contactMechId}To update an email address.
PlanningI
15DELETE /customers/{customerPartyId}/emails/{contactMechId}To remove an email address.
PlanningI
16POST /customers/{customerPartyId}/contact-informationTo add the other contact information like electronic address, Internet IP address, Internet Domain Name, Web Url, LDAP address, File server, etc. 
PlanningI
17PUT /customers/{customerPartyId}/contact-information/{contactMechId}To update the other contact information like electronic address, Internet IP address, Internet Domain Name, Web Url, LDAP address, File server, etc.
PlanningI
18DELETE /customers/{customerPartyId}/contact-information/{contactMechId}To remove the other contact information like electronic address, Internet IP address, Internet Domain Name, Web Url, LDAP address, File server, etc.
PlanningI
19POST /customers/{customerPartyId}/sendEmailTo send the mail from the profile page to the added email address.
PlanningI
20POST /customers/{customerPartyId}/credit-cardsTo create a credit card.
PlanningI
21PUT /customers/{customerPartyId}/credit-cards/{paymentMethodId}To update the credit card detail and to mark it as default.
PlanningI
22DELETE /customers/{customerPartyId}/credit-cards/{paymentMethodId}To remove a credit card.
PlanningI
23POST /customers/{customerPartyId}/gift-cardsTo create a gift card.
PlanningI
24PUT /customers/{customerPartyId}/gift-cards/{paymentMethodId}To update the gift card detail and to mark it as default.
PlanningI
25DELETE /customers/{customerPartyId}/gift-cards/{paymentMethodId}To remove the gift card.
PlanningI
26POST /customers/{customerPartyId}/eft-accountsTo create an EFT account.
PlanningI
27PUT /customers/{customerPartyId}/eft-accounts/{paymentMethodId}To update the EFT account detail and to mark it as default.
PlanningI
28DELETE /customers/{customerPartyId}/eft-accounts/{paymentMethodId}To remove the EFT account.
PlanningI
29POST /customers/{customerPartyId}/shipment-methods/{shipmentMethodId}To mark the default shipping method if there is a default shipping address.
PlanningI
30POST /customers/{customerPartyId}/contact-list/{contactListId}/subscriptionTo subscribe to the contact list.
PlanningI
31PUT /customers/{customerPartyId}/contact-list/{contactListId/subscriptionTo unsubscribe the contact list.
PlanningI
32GET /customers/{customerPartyId}/ordersTo fetch all the orders of a customer.
PlanningI
33GET /customers/{customerPartyId}/orders/{orderId}To fetch the order detail.
PlanningI
34PUT /customers/{customerPartyId}/orders/{orderId}To update the order. Right now the support to cancel an item(partially or fully) is there. That should be handled in this API.
PlanningI
35GET /customers/{customerPartyId}/orders/{orderId}/order-pdfTo get the order pdf.
PlanningI
36GET /customers/{customerPartyId}/orders/{orderId}/invoice-pdfTo get the invoice pdf.
PlanningI
37POST /customers/{customerPartyId}/returnsTo create a return.
PlanningI






Catalog

Sr No.API EndpointDescriptionTasksStatusPhase
1GET /catalogsTo get the list of catalogs.
PlanningI
2GET /catalogs/{catalogId}/feature-categoriesTo get the feature categories of a catalog.
PlanningI
3GET  /catalogs/{catalogId}/feature-productsTo get the feature products of a catalog.
PlanningI
4GET /catalogs/{catalogId}/category-hierarchyTo get the category hierarchy of a catalog.
PlanningI
5GET /productsThis API will have support for the search string and other additional filters. This API will also bring the products of a selected category if provided.
PlanningI
6GET /products/{productId}To get the product detail.
PlanningI
7POST /products/{productId}/reviewsTo add a review of a product.
PlanningI
8GET /products/{productId}/reviewsTo get the reviews of a product.
PlanningI
9GET /products/{productId}/associated-productsTo get the list of cross-sell/upsell products.
PlanningI
10POST /products/{productId}/product-tagsTo add a tag for a product.
PlanningI
11GET /products/{productId}/product-tagsTo get all the tags of a product.
PlanningI
12GET /products/product-tagsAll the product tags for the tag cloud.
PlanningI
13GET /offersTo list the special offers
PlanningI
14GET /offers/{promotionId}To get the complete detail of a particular offer
PlanningI
15POST /sendMailFor Tell a Friend functionality
PlanningI
16POST /products/compare-listTo create a compare list and to add a product to it.
PlanningI
17GET /products/compare-listTo get the list of added products with detail for the comparison view.
PlanningI
18DELETE /products/compare-list/{productId}To remove a product from the compare list.
PlanningI

Shopping List and Quotes

Sr No.API EndpointDescriptionTasksStatusPhase
1POST /shopping-listsTo create a new shopping list.
PlanningI
2GET /shopping-listsTo get the list of shopping lists.
PlanningI
3GET /shopping-lists/{shoppingListId}To get the detail of a shopping list. This will also bring the list of available interval/frequency data for setting the recurrence detail using the update shopping list API.
PlanningI
4PUT /shopping-lists/{shoppingListId}To update the shopping list detail. Recurrence info can also be set from this API.
PlanningI
5POST /shopping-lists/{shoppingListId}/itemsAdd an item to the shopping list.
PlanningI
6GET /shopping-lists/{shoppingListId}/itemsGet the list of items on a shopping list.
PlanningI
7PUT /shopping-lists/{shoppingListId}/items/{itemId}Update the particular item on the shopping list.
PlanningI
8DELETE /shopping-lists/{shoppingListId}/items/{itemId}Remove the particular item from the shopping list.
PlanningI
9POST /quote-requestsQuotes Request can be created from the shopping list and from the cart.  This API will create a quote request.
PlanningI
10GET /quote-requestsTo get the list of quote requests(request history).
PlanningI
11GET /quote-requests/{requestId}To get the detail of a quote request.
PlanningI
12GET /quotesTo get the list of quotes.
PlanningI
13GET /quotes/{quoteId}To get the detail of a quote.
PlanningI
14POST /quote-ordersTo create an order from the quote.
PlanningI












Shopping Cart & Checkout

Sr No.API EndpointDescriptionTasksStatusPhase


















  • No labels