aYOUne
← E-Commerce API

Orders

Singular: Order — Base-URL: https://ecommerce-api.ayoune.app — Zugriff: CRUD

play_circle Jetzt ausprobieren beta

Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.

Beispiel-Response (aufgezeichnet) Beispiel

Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.

{
  "payload": {
    "_id": "6a62dfea1af8fff1cf6ee1c3",
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2026-07-24T03:45:46.641Z",
    "updatedAt": "2026-07-24T03:45:46.641Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ecommerce-api.ayoune.app/orders/6a62dfea1af8fff1cf6ee1c3",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Consumers",
        "title": "MODEL_CONSUMER",
        "href": "https://api.ayoune.app/crm/consumers",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "crm.consumers"
      },
      {
        "rel": "ShoppingCarts",
        "title": "MODEL_SHOPPINGCART",
        "href": "https://api.ayoune.app/ecommerce/shoppingcarts",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ecommerce.shoppingcarts"
      },
      {
        "rel": "PaymentTransactions",
        "title": "MODEL_PAYMENTTRANSACTION",
        "href": "https://api.ayoune.app/payments/paymenttransactions",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "payments.paymenttransactions"
      },
      {
        "rel": "Websites",
        "title": "MODEL_WEBSITE",
        "href": "https://api.ayoune.app/cms/websites",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "cms.websites"
      },
      {
        "rel": "ShippingMethods",
        "title": "MODEL_SHIPPINGMETHOD",
        "href": "https://api.ayoune.app/ecommerce/shippingmethods",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ecommerce.shippingmethods"
      }
    ],
    "debugId": "6a62dfeb1af8fff1cf6ee1f0",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_ORDER",
        "href": "https://api.ayoune.app/ecommerce/orders/6a62dfea1af8fff1cf6ee1c3/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_ORDER",
        "href": "https://api.ayoune.app/ecommerce/orders/6a62dfea1af8fff1cf6ee1c3/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.14.0",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2404",
      "reset": "1784868325",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 46.897689,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /orders Liste mit Filtern/Paginierung ecommerce.orders.view
GET /orders/:id Einzelner Datensatz ecommerce.orders.view
POST /orders Neuen Datensatz erstellen ecommerce.orders.new
PUT /orders Datensatz aktualisieren ecommerce.orders.edit
DELETE /orders/:id Datensatz löschen ecommerce.orders.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// Alle abrufen
const list = await ay.ecommerce.orders.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.ecommerce.orders.findById('OBJECT_ID').exec();

// Erstellen
const created = await ay.ecommerce.orders.create({ name: 'Foo' });

Weiterführend