Order
Manages orders, including processing, tracking, and updating order status.
The Account module is responsible for managing channel accounts within a company. Channel accounts represent different sales channels or marketplaces through which products are sold. This module provides functionality to create, retrieve, update, and list channel accounts, enabling businesses to manage multiple sales channels from a single platform.
Create channel account
createAccount
Get channel accounts list
listAccounts
Get channel account details
getAccountById
Update account
updateAccount
Bag represents a virtual entity to group same items which contains single or multi quantity. Bags are part of a shipment. An order will have one or more than one shipments. A shipment can contain zero or more bags.
List bag cancellation reasons
getShipmentReasons
Get bag
getBagById
List bags
getBags
Order represents a customer's intent to purchase a specific set of products from your platform. Here platform could be a Website, POS machine, External integrations etc. It typically includes details like customer information, billing/shipping addresses, items ordered, quantities, pricing, and chosen fulfillment method.
Get channel configuration
getChannelConfig
Create channel configuration
createChannelConfig
Attach order to a user
attachOrderUser
Create Order
createOrder
Get order
getOrderById
List orders
getOrders
The State Manager is responsible for handling state logic for entities such as Shipment and Bag. It determines the behavior of the Shipment, including whether shipment breaking should be allowed, and what tasks should be run during particular state transitions, such as generating an invoice ID. Additionally, it controls which states are permissible after certain states. The State Manager is enabled at the application level and if not set it has default behavior, which determines the default flow of a shipment if no custom behavior is set.
Available PreHooks:
| PreHook | Description | kwargs |
|---|---|---|
| populate_b2b_details | Populates B2B buyer GSTIN details into the shipment. | None required |
| lock_entity | Locks the parent entity based on configured settings or transition properties. | None required |
| update_sla_time | Updates the estimated Service Level Agreement time of the shipment. |
|
| resume_tasks_after_unlock | Resumes tasks associated with the parent entity after unlocking it. | None required |
| process_gst_calculation | Initiates the GST calculation process for shipments and updates HSN-related data on bag level. | None required |
| populate_filters_for_manifest | Generates a manifest filter entry for the shipment. | None required |
| deactivate_manifest_filter_entry | Deactivates a manifest filter entry associated with a shipment. | None required |
| state_hopper | Hops the shipment's state to the requested state. |
|
| calculate_bag_gst_tag | Calculates and sets GST tags for bags based on customer and seller states. | None required. |
| set_high_priority_to_hyperlocal_dp_shipments | Temporarily sets the delivery priority for hyperlocal delivery partners. | None required |
| update_is_customer_return_allowed_flag | Updates the flag to indicate whether customer returns are allowed. |
|
| generate_ticket | Generates a support ticket for the shipment. | None required |
| update_shipment_manifest_mapping | Updates the mapping of shipment to its manifest. | None required |
| inject_missing_state | Injects a missing state into the state transition process. |
|
| check_and_restore_promo | Checks for and restores any applicable promotional offers for the shipment. | None required |
| reassign_dp | Reassigns the shipment to a different delivery partner. | None required |
| update_article_and_store_data | Updates article and store configuration data when the store is reassigned. | None required |
| inventory_movement | Manages inventory depletion, handling movements from one state to another. |
|
| check_and_init_refund | Checks the status of a refund request and initializes the refund process. |
|
| assign_shipment_to_dp | Assigns the shipment to a courier partner. | None required |
| fetch_new_courier_partner_data | Fetches courier partner data from Stormbreaker based on the journey type. | None required |
| configure_clear_cart | Clears the customer's cart when enabled. | None required |
| configure_coupon | Restores coupons once all bags are cancelled. | None required |
Available PreHooks:
| PreHook | Description | kwargs |
|---|---|---|
| populate_b2b_details | Populates B2B buyer GSTIN details into the shipment. | None required |
| lock_entity | Locks the parent entity based on configured settings or transition properties. | None required |
| update_sla_time | Updates the estimated Service Level Agreement time of the shipment. |
|
| resume_tasks_after_unlock | Resumes tasks associated with the parent entity after unlocking it. | None required |
| process_gst_calculation | Initiates the GST calculation process for shipments and updates HSN-related data on bag level. | None required |
| populate_filters_for_manifest | Generates a manifest filter entry for the shipment. | None required |
| deactivate_manifest_filter_entry | Deactivates a manifest filter entry associated with a shipment. | None required |
| state_hopper | Hops the shipment's state to the requested state. |
|
| calculate_bag_gst_tag | Calculates and sets GST tags for bags based on customer and seller states. | None required. |
| set_high_priority_to_hyperlocal_dp_shipments | Temporarily sets the delivery priority for hyperlocal delivery partners. | None required |
| update_is_customer_return_allowed_flag | Updates the flag to indicate whether customer returns are allowed. |
|
| generate_ticket | Generates a support ticket for the shipment. | None required |
| update_shipment_manifest_mapping | Updates the mapping of shipment to its manifest. | None required |
| inject_missing_state | Injects a missing state into the state transition process. |
|
| check_and_restore_promo | Checks for and restores any applicable promotional offers for the shipment. | None required |
| reassign_dp | Reassigns the shipment to a different delivery partner. | None required |
| update_article_and_store_data | Updates article and store configuration data when the store is reassigned. | None required |
| inventory_movement | Manages inventory depletion, handling movements from one state to another. |
|
| check_and_init_refund | Checks the status of a refund request and initializes the refund process. |
|
| assign_shipment_to_dp | Assigns the shipment to a courier partner. | None required |
| fetch_new_courier_partner_data | Fetches courier partner data from Stormbreaker based on the journey type. | None required |
| configure_clear_cart | Clears the customer's cart when enabled. | None required |
| configure_coupon | Restores coupons once all bags are cancelled. | None required |
Available PreHooks:
| PreHook | Description | kwargs |
|---|---|---|
| populate_b2b_details | Populates B2B buyer GSTIN details into the shipment. | None required |
| lock_entity | Locks the parent entity based on configured settings or transition properties. | None required |
| update_sla_time | Updates the estimated Service Level Agreement time of the shipment. |
|
| resume_tasks_after_unlock | Resumes tasks associated with the parent entity after unlocking it. | None required |
| process_gst_calculation | Initiates the GST calculation process for shipments and updates HSN-related data on bag level. | None required |
| populate_filters_for_manifest | Generates a manifest filter entry for the shipment. | None required |
| deactivate_manifest_filter_entry | Deactivates a manifest filter entry associated with a shipment. | None required |
| state_hopper | Hops the shipment's state to the requested state. |
|
| calculate_bag_gst_tag | Calculates and sets GST tags for bags based on customer and seller states. | None required. |
| set_high_priority_to_hyperlocal_dp_shipments | Temporarily sets the delivery priority for hyperlocal delivery partners. | None required |
| update_is_customer_return_allowed_flag | Updates the flag to indicate whether customer returns are allowed. |
|
| generate_ticket | Generates a support ticket for the shipment. | None required |
| update_shipment_manifest_mapping | Updates the mapping of shipment to its manifest. | None required |
| inject_missing_state | Injects a missing state into the state transition process. |
|
| check_and_restore_promo | Checks for and restores any applicable promotional offers for the shipment. | None required |
| reassign_dp | Reassigns the shipment to a different delivery partner. | None required |
| update_article_and_store_data | Updates article and store configuration data when the store is reassigned. | None required |
| inventory_movement | Manages inventory depletion, handling movements from one state to another. |
|
| check_and_init_refund | Checks the status of a refund request and initializes the refund process. |
|
| assign_shipment_to_dp | Assigns the shipment to a courier partner. | None required |
| fetch_new_courier_partner_data | Fetches courier partner data from Stormbreaker based on the journey type. | None required |
| configure_clear_cart | Clears the customer's cart when enabled. | None required |
| configure_coupon | Restores coupons once all bags are cancelled. | None required |
Available PreHooks:
| PreHook | Description | kwargs |
|---|---|---|
| populate_b2b_details | Populates B2B buyer GSTIN details into the shipment. | None required |
| lock_entity | Locks the parent entity based on configured settings or transition properties. | None required |
| update_sla_time | Updates the estimated Service Level Agreement time of the shipment. |
|
| resume_tasks_after_unlock | Resumes tasks associated with the parent entity after unlocking it. | None required |
| process_gst_calculation | Initiates the GST calculation process for shipments and updates HSN-related data on bag level. | None required |
| populate_filters_for_manifest | Generates a manifest filter entry for the shipment. | None required |
| deactivate_manifest_filter_entry | Deactivates a manifest filter entry associated with a shipment. | None required |
| state_hopper | Hops the shipment's state to the requested state. |
|
| calculate_bag_gst_tag | Calculates and sets GST tags for bags based on customer and seller states. | None required. |
| set_high_priority_to_hyperlocal_dp_shipments | Temporarily sets the delivery priority for hyperlocal delivery partners. | None required |
| update_is_customer_return_allowed_flag | Updates the flag to indicate whether customer returns are allowed. |
|
| generate_ticket | Generates a support ticket for the shipment. | None required |
| update_shipment_manifest_mapping | Updates the mapping of shipment to its manifest. | None required |
| inject_missing_state | Injects a missing state into the state transition process. |
|
| check_and_restore_promo | Checks for and restores any applicable promotional offers for the shipment. | None required |
| reassign_dp | Reassigns the shipment to a different delivery partner. | None required |
| update_article_and_store_data | Updates article and store configuration data when the store is reassigned. | None required |
| inventory_movement | Manages inventory depletion, handling movements from one state to another. |
|
| check_and_init_refund | Checks the status of a refund request and initializes the refund process. |
|
| assign_shipment_to_dp | Assigns the shipment to a courier partner. | None required |
| fetch_new_courier_partner_data | Fetches courier partner data from Stormbreaker based on the journey type. | None required |
| configure_clear_cart | Clears the customer's cart when enabled. | None required |
| configure_coupon | Restores coupons once all bags are cancelled. | None required |
Allows esm config updation
addStateManagerConfig
Retrieves Entity State Manager configuration which includes flags, hooks, and filters, for a specific application within a company's setup.
Available PreHooks:
| PreHook | Description | kwargs |
|---|---|---|
| populate_b2b_details | Populates B2B buyer GSTIN details into the shipment. | None required |
| lock_entity | Locks the parent entity based on configured settings or transition properties. | None required |
| update_sla_time | Updates the estimated Service Level Agreement time of the shipment. |
|
| resume_tasks_after_unlock | Resumes tasks associated with the parent entity after unlocking it. | None required |
| process_gst_calculation | Initiates the GST calculation process for shipments and updates HSN-related data on bag level. | None required |
| populate_filters_for_manifest | Generates a manifest filter entry for the shipment. | None required |
| deactivate_manifest_filter_entry | Deactivates a manifest filter entry associated with a shipment. | None required |
| state_hopper | Hops the shipment's state to the requested state. |
|
| calculate_bag_gst_tag | Calculates and sets GST tags for bags based on customer and seller states. | None required. |
| set_high_priority_to_hyperlocal_dp_shipments | Temporarily sets the delivery priority for hyperlocal delivery partners. | None required |
| update_is_customer_return_allowed_flag | Updates the flag to indicate whether customer returns are allowed. |
|
| generate_ticket | Generates a support ticket for the shipment. | None required |
| update_shipment_manifest_mapping | Updates the mapping of shipment to its manifest. | None required |
| inject_missing_state | Injects a missing state into the state transition process. |
|
| check_and_restore_promo | Checks for and restores any applicable promotional offers for the shipment. | None required |
| reassign_dp | Reassigns the shipment to a different delivery partner. | None required |
| update_article_and_store_data | Updates article and store configuration data when the store is reassigned. | None required |
| inventory_movement | Manages inventory depletion, handling movements from one state to another. |
|
| check_and_init_refund | Checks the status of a refund request and initializes the refund process. |
|
| assign_shipment_to_dp | Assigns the shipment to a courier partner. | None required |
| fetch_new_courier_partner_data | Fetches courier partner data from Stormbreaker based on the journey type. | None required |
| configure_clear_cart | Clears the customer's cart when enabled. | None required |
| configure_coupon | Restores coupons once all bags are cancelled. | None required |
Available PreHooks:
| PreHook | Description | kwargs |
|---|---|---|
| populate_b2b_details | Populates B2B buyer GSTIN details into the shipment. | None required |
| lock_entity | Locks the parent entity based on configured settings or transition properties. | None required |
| update_sla_time | Updates the estimated Service Level Agreement time of the shipment. |
|
| resume_tasks_after_unlock | Resumes tasks associated with the parent entity after unlocking it. | None required |
| process_gst_calculation | Initiates the GST calculation process for shipments and updates HSN-related data on bag level. | None required |
| populate_filters_for_manifest | Generates a manifest filter entry for the shipment. | None required |
| deactivate_manifest_filter_entry | Deactivates a manifest filter entry associated with a shipment. | None required |
| state_hopper | Hops the shipment's state to the requested state. |
|
| calculate_bag_gst_tag | Calculates and sets GST tags for bags based on customer and seller states. | None required. |
| set_high_priority_to_hyperlocal_dp_shipments | Temporarily sets the delivery priority for hyperlocal delivery partners. | None required |
| update_is_customer_return_allowed_flag | Updates the flag to indicate whether customer returns are allowed. |
|
| generate_ticket | Generates a support ticket for the shipment. | None required |
| update_shipment_manifest_mapping | Updates the mapping of shipment to its manifest. | None required |
| inject_missing_state | Injects a missing state into the state transition process. |
|
| check_and_restore_promo | Checks for and restores any applicable promotional offers for the shipment. | None required |
| reassign_dp | Reassigns the shipment to a different delivery partner. | None required |
| update_article_and_store_data | Updates article and store configuration data when the store is reassigned. | None required |
| inventory_movement | Manages inventory depletion, handling movements from one state to another. |
|
| check_and_init_refund | Checks the status of a refund request and initializes the refund process. |
|
| assign_shipment_to_dp | Assigns the shipment to a courier partner. | None required |
| fetch_new_courier_partner_data | Fetches courier partner data from Stormbreaker based on the journey type. | None required |
| configure_clear_cart | Clears the customer's cart when enabled. | None required |
| configure_coupon | Restores coupons once all bags are cancelled. | None required |
Retrieves Entity State Manager configuration which includes flags, hooks, and filters, for a specific application within a company's setup.
getStateManagerConfig
The Payment module is responsible for handling payment methods operations. These will include updating payment mode of entities.
Update payment details for an order, its shipments and its bags.
updatePaymentInfo
Shipment represents the physical movement of goods from the seller (or your warehouse) to the customer. It's associated with a specific order and includes details like tracking information, carrier used, weight, dimensions, and estimated delivery date. An Order can contain multiple shipments. Shipments are created based on multiple factors like selling location assigned to that shipment, the packaging material available etc. A shipment will get created whenever there is a partial transition of items also when there is a negative state transition is invoked. Negative state transition can be defined against a state. Currently only some defined states are configured as negative. If any state is to be added as negative state then please contact support team.