Skip to main content

flexcommerce-orders

The full order lifecycle: payment, confirmation, partial shipments with tracking events, delivery, returns within a return window, refunds, guest order tracking and a customer-visible timeline.

Part of FlexCommerce — a complete, modular e-commerce and marketplace backend for Django + DRF, built for Nigeria and Africa. Every app is optional.

Features

  • Every state change goes through one service with row locking and side effects (stock, coupons)
  • Unpaid orders expire and release stock automatically
  • Refunds validated against what was paid, paid out via the original gateway or wallet
  • Returns with reasons, photos, approval, receipt (restock) and refund
  • Guest tracking by order number + email, or a secret link
  • export_orders CSV command

Install

pip install flexcommerce-orders
INSTALLED_APPS = [..., "rest_framework", "flexcommerce_core", "flexcommerce_orders"]
urlpatterns = [path("api/", include("flexcommerce_core.urls"))]
python manage.py migrate

Example: POST /api/orders/{id}/return/

Documentation

Requires Python 3.10+, Django 4.2+, Django REST framework 3.14+. MIT licensed.

Metadata

Release files for flexcommerce-orders 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flexcommerce-orders 1.0.0
File Size Uploaded
flexcommerce_orders-1.0.0.tar.gz 27.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flexcommerce-orders 1.0.0
File Interpreter ABI Platform
flexcommerce_orders-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 58.5 kB

Release files / flexcommerce_orders-1.0.0.tar.gz

Download URL flexcommerce_orders-1.0.0.tar.gz
Size 27.8 kB
Tags Source
SHA-256 checksum
How to use checksums
733c828d8bf1b2d6a8f4b1bfdec3ee69654a1388efa5a112a070fb374b46c01a
BLAKE2b-256 checksum
How to use checksums
6c53583ac12838fe233162c934b476f297c504136041e714a80ab30139d51529
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / flexcommerce_orders-1.0.0-py3-none-any.whl

Download URL flexcommerce_orders-1.0.0-py3-none-any.whl
Size 30.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e354bf276b26ec50dffdae00e95af1306ae4b2e2f343c01928a985d0fd687da
BLAKE2b-256 checksum
How to use checksums
ccf7b4a10e03c9d1f47082815bf44d8f428de78505bcb66a7640f65dc5e3104a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page