Download the PHP package angeo/module-openai-product-feed-api without Composer

On this page you can find all versions of the php package angeo/module-openai-product-feed-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-openai-product-feed-api

OpenAI Agentic Commerce Protocol (ACP) API for Magento 2

Latest Version Total Downloads Magento ACP Feed API

Magento 2 REST implementation of the OpenAI Agentic Commerce Protocol (ACP) feed API: Feeds, Products and Promotions resources, so ChatGPT can retrieve and update your catalog data through API-based delivery instead of (or alongside) daily file uploads.

All endpoints are bearer-token authenticated per the ACP specification. Feeds are persisted in the database (they survive cache flushes and restarts), product export is fully paginated with configurable-product variants, and promotions are sourced from Magento Cart Price Rules including coupon codes and free shipping.

Works together with angeo/module-openai-product-feed (CSV file-upload feed): per OpenAI's guidance, provide the full feed daily via file upload and send incremental updates through this API.

Requirements

Installation

Authentication (required)

Every endpoint requires a bearer token carrying the Angeo_OpenAiProductFeedApi::manage_feeds ACL resource, matching the ACP requirement that requests include Authorization: Bearer <api_key>.

  1. In the Magento admin, go to System → Extensions → Integrations → Add New Integration.
  2. On the API tab, select the resource Angeo — Manage Product Feed API (under Marketing).
  3. Save, then Activate the integration and copy the Access Token.
  4. Provide that token to OpenAI as the feed API key; use it in the Authorization: Bearer header for your own calls as well.

Requests without a valid token receive 401 Unauthorized.

Endpoints

Method Path Description
POST /rest/V1/angeo/product_feeds Create a product feed
GET /rest/V1/angeo/product_feeds List all feeds (extension beyond the ACP spec)
GET /rest/V1/angeo/product_feeds/:id Get feed metadata
GET /rest/V1/angeo/product_feeds/:id/products Get products (paginated)
POST /rest/V1/angeo/product_feeds/:id/products/upsert Upsert products (PATCH bridge)
POST /rest/V1/angeo/product_feeds/:id/products/invalidate Reset product cache for the feed
GET /rest/V1/angeo/product_feeds/:id/promotions Get promotions
POST /rest/V1/angeo/product_feeds/:id/promotions/upsert Upsert promotions (PATCH bridge)

Invalid target_country returns 400 Bad Request; unknown feed or store IDs return 404 Not Found, per the ACP error model.

PATCH bridge — web server setup

Magento 2's REST framework does not support HTTP PATCH. The ACP spec defines upserts as PATCH /product_feeds/:id/products. Bridge this with a rewrite before the request reaches Magento:

Quick start

How caching works

Configuration

Stores → Configuration → Angeo → Product Feed API

Setting Description Default
Enabled Enable/disable the API Yes
Default Target Country ISO 3166-1 alpha-2, validated on feed creation US
UTM Medium Appended to all product URLs for attribution feed
Include List Price Original price when a special price is active Yes
Include Barcodes Read EAN/UPC/GTIN attributes Yes
Seller Name Store/brand name in ACP responses Store name
ToS / Privacy / Refund / Shipping / FAQ URLs Emitted as seller.links —

ACP Product schema coverage

Field Source
id product.entity_id — stable, never changes
title Product name
description.plain / description.html description / short_description
url Product URL + utm_medium + utm_source=chatgpt
media Gallery images via Magento's ImageUrlBuilder
variants[].id / title Configurable children, or the product itself
variants[].price / list_price Final price / original price, minor units (cents)
variants[].availability Stock status → in_stock / out_of_stock
variants[].categories Category names, merchant taxonomy
variants[].variant_options Configurable attribute labels/values (color, size, …)
variants[].barcodes ean / upc / gtin / barcode / isbn attributes
variants[].condition ["new"]
variants[].seller Name + policy links from configuration

ACP Promotion schema coverage

Sourced from active Magento Cart Price Rules (SalesRules):

Magento SalesRule ACP field
rule_id id as promo_rule_{id}
name title
description + coupon code (via CouponRepositoryInterface) description.plain
is_active + dates status: active / scheduled / expired / disabled
from_date / to_date active_period (RFC 3339)
by_percent {type:"percent_off"}
by_fixed / cart_fixed {type:"amount_off"} (minor units)
simple_free_shipping {type:"free_shipping"} — combinable with a discount benefit

Testing

The PromotionMapper suite (14 tests) covers benefit mapping, free-shipping detection, coupon-code resolution and status transitions.

The Angeo agentic commerce suite

Module Purpose
angeo/module-openai-product-feed OpenAI CSV product feed (file upload, all product types)
angeo/module-openai-product-feed-api This module — ACP REST API
angeo/module-ucp Universal Commerce Protocol discovery + MCP binding
angeo/module-mcp-server Read-only commerce tools over MCP
angeo/module-llms-txt llms.txt AI content map
angeo/module-aeo-audit AEO readiness audit

Need help with agentic commerce for Magento? Professional support, AEO audits and implementation at angeo.dev. Check how your store looks to AI agents with the free scanner at api.angeo.dev.

Questions? Contact me at [email protected]

License

MIT — see LICENSE


All versions of module-openai-product-feed-api with dependencies

PHP Build Version
Package Version
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package angeo/module-openai-product-feed-api contains the following files

Loading the files please wait ...