Skip to main content

entirius-django-checkout-import-from-magento-api

A Django module that imports order statuses from a Magento 2 store into Entirius, the open-source modular ecommerce platform, over REST. It is the return path of the order export: Magento processes the order and its status comes back to the checkout.

PyPI Python License: MPL-2.0

What it does

  • Reads the Magento status of one order, or of every order created in the last days.
  • Updates the checkout order when Magento reports it on hold, canceled or complete.
  • Confirms a processing order once Magento holds an invoice for it.
  • Keeps the Magento response, a success flag and the attempt count per order.

Installation

uv add entirius-django-checkout-import-from-magento-api
pip install entirius-django-checkout-import-from-magento-api
INSTALLED_APPS = [
    ...
    "django_checkout",
    "django_checkout_import_from_magento_api",
]

django_checkout brings its own app requirements. Required settings: MAGENTO2_URL_FOR_CHECKOUT_EXPORT and MAGENTO2_TOKEN_FOR_CHECKOUT_EXPORT. The module also reads BI_ENVIRONMENT and BI_BUSINESS_UNIT (BI events) at import time, without a default.

Both settings are shared with entirius-django-checkout-export-to-magento-api: one Magento endpoint serves the export and the status import. Reference: https://github.com/entirius/entirius-django-checkout-import-from-magento-api/blob/develop/AGENTS.md (section Settings).

Quick start

# settings.py
MAGENTO2_URL_FOR_CHECKOUT_EXPORT = "https://magento.example.com/rest/"
MAGENTO2_TOKEN_FOR_CHECKOUT_EXPORT = "<api-token>"

# a shell or a scheduled job
from django.core.management import call_command

call_command("import-orders-status-from-magento", days=7)

days is how far back orders are looked up by creation date (default 1). One order: import-order-status-from-magento <order_id>.

Requirements

  • Python 3.11 or newer, Django 5.0 or newer.
  • PostgreSQL.
  • A Magento 2 store with a REST API integration token.
  • Entirius packages pulled in: entirius-django-checkout (orders and status updates), entirius-py-magento2-sdk (Magento 2 REST client), entirius-py-bievents (BI events).

Documentation

Part of Entirius

This module runs inside the Entirius backend service (Volkanos) and reads order statuses back from an existing Magento 2 store.

Development

make install     # sync dependencies (uv)
make check       # lint + format check (ruff)
make test        # test suite (pytest + pytest-django, needs PostgreSQL via DATABASE_URL)

Development and agent instructions: https://github.com/entirius/entirius-django-checkout-import-from-magento-api/blob/develop/AGENTS.md

License

Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-django-checkout-import-from-magento-api/blob/develop/LICENSE.

Metadata

Release files for entirius-django-checkout-import-from-magento-api 2.0.1

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

Source distribution (sdist)

Source distribution for entirius-django-checkout-import-from-magento-api 2.0.1
File Size Uploaded Provenance Actions
entirius_django_checkout_import_from_magento_api-2.0.1.tar.gz 148.9 kB Without provenance Details for entirius_django_checkout_import_from_magento_api-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for entirius-django-checkout-import-from-magento-api 2.0.1
File Interpreter ABI Platform Actions
entirius_django_checkout_import_from_magento_api-2.0.1-py3-none-any.whl Python 3 none any Details for entirius_django_checkout_import_from_magento_api-2.0.1-py3-none-any.whl

Total release size: 169.4 kB

Release files / entirius_django_checkout_import_from_magento_api-2.0.1.tar.gz

Download URL entirius_django_checkout_import_from_magento_api-2.0.1.tar.gz
Size 148.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e3cab034ab7958b73f90cea45849e0eea37f31a1236443b8da32fac5624368b3
BLAKE2b-256 checksum
How to use checksums
809e7f268a756ff5c33fd596369e6ac15208dfe334e2c5713840b1307dc6f6d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / entirius_django_checkout_import_from_magento_api-2.0.1-py3-none-any.whl

Download URL entirius_django_checkout_import_from_magento_api-2.0.1-py3-none-any.whl
Size 20.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6ca6ef81b1169c4adc57cc1e69983b037741134b35df5e477094b1d97f11892
BLAKE2b-256 checksum
How to use checksums
5c6ba0a97ec0a0beceebe100f6ab6a2a345177517cf6ab19de5eb940e350a05d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for entirius-django-checkout-import-from-magento-api 2.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files No provenance

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