← Vertrieb API
OfferCalculations
Singular: OfferCalculation — Base-URL: https://sale-api.ayoune.app — Zugriff: CRUD
Jetzt ausprobieren
beta
Response (live)
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": {
"calculation": {
"materialPurchasePrice": 0,
"materialPurchasePriceWithOverheads": 0,
"materialSurcharge": 0,
"materialSellPrice": 0,
"materialContributionMargin": 0,
"materialContributionMarginPercentage": 0,
"totalMaterial": 0,
"wageInternal": 0,
"wageExternal": 0,
"wageSubcontractor": 0,
"wageGlobal": 0,
"wagePurchasePrice": 0,
"wagePurchasePriceWithOverheads": 0,
"wageSurcharge": 0,
"wageSellPrice": 0,
"wageContributionMargin": 0,
"wageContributionMarginPercentage": 0,
"totalWage": 0,
"nettoPurchasePrice": 0,
"nettoPurchasePriceWithOverheads": 0,
"nettoSurcharge": 0,
"nettoSellPrice": 0,
"nettoContributionMargin": 0,
"nettoContributionMarginPercentage": 0,
"wageTime": 0,
"wageTimeHours": 0,
"wageTimeMinutes": 0,
"groups": [],
"material": []
},
"acceptance": {
"signed": false,
"ip": ""
},
"shippingAddress": {
"address_additional": ""
},
"_id": "65e0b1f1121b7d48fe15a4f0",
"suppliers": [],
"editors": [],
"team": [],
"confirmed": false,
"destinationCountries": [],
"destinationCities": [],
"destinationCity": [],
"groups": [],
"othergroups": [],
"skus": [],
"shopOrder": false,
"shopOrderNbr": "",
"interestchannels": [],
"stock_booked": false,
"hasQuota": false,
"hasDuration": false,
"hasCheckLists": false,
"hasSupplierFeedback": false,
"hasRequirements": false,
"status": "Neu",
"text_pre": "",
"text_post": "",
"sent": false,
"useTitles": false,
"specialRemarks": "",
"totalDiscount": 0,
"lockCalculation": false,
"taxValue": 0.19,
"foreignCountry": false,
"createdBy": "6045f4d25704710012485569",
"shares": [],
"pricedate": "2024-02-29T16:33:53.054Z",
"titles": [],
"taxes": [],
"problems": [],
"createdAt": "2024-02-29T16:33:53.055Z",
"updatedAt": "2024-02-29T16:33:53.055Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://sale-api.ayoune.app/offercalculations/65e0b1f1121b7d48fe15a4f0",
"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": "Consumers",
"title": "MODEL_CONSUMER",
"href": "https://api.ayoune.app/crm/consumers",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.consumers"
},
{
"rel": "Coupons",
"title": "MODEL_COUPON",
"href": "https://api.ayoune.app/marketing/coupons",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "marketing.coupons"
},
{
"rel": "CalendarEntries",
"title": "MODEL_CALENDARENTRY",
"href": "https://api.ayoune.app/crm/calendarentries",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.calendarentries"
},
{
"rel": "Opportunities",
"title": "MODEL_OPPORTUNITY",
"href": "https://api.ayoune.app/sale/opportunities",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.opportunities"
},
{
"rel": "Assignments",
"title": "MODEL_ASSIGNMENT",
"href": "https://api.ayoune.app/sale/assignments",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.assignments"
},
{
"rel": "Contracts",
"title": "MODEL_CONTRACT",
"href": "https://api.ayoune.app/sale/contracts",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.contracts"
},
{
"rel": "Projects",
"title": "MODEL_PROJECT",
"href": "https://api.ayoune.app/pm/projects",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pm.projects"
},
{
"rel": "Configurations",
"title": "MODEL_CONFIGURATION",
"href": "https://api.ayoune.app/sale/configurations",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.configurations"
},
{
"rel": "PriceGroups",
"title": "MODEL_PRICEGROUP",
"href": "https://api.ayoune.app/config/pricegroups",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.pricegroups"
},
{
"rel": "DiscountGroups",
"title": "MODEL_DISCOUNTGROUP",
"href": "https://api.ayoune.app/config/discountgroups",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.discountgroups"
},
{
"rel": "PaymentGroups",
"title": "MODEL_PAYMENTGROUP",
"href": "https://api.ayoune.app/config/paymentgroups",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.paymentgroups"
},
{
"rel": "Shippments",
"title": "MODEL_SHIPPMENT",
"href": "https://api.ayoune.app/sale/shippments",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.shippments"
}
],
"debugId": "6a61991c01c854403a7ccec1",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_OFFERCALCULATION",
"href": "https://api.ayoune.app/sale/offercalculations/65e0b1f1121b7d48fe15a4f0/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_OFFERCALCULATION",
"href": "https://api.ayoune.app/sale/offercalculations/65e0b1f1121b7d48fe15a4f0/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.37.2",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2334",
"reset": "1784784645",
"resetDate": "Thu Jul 23 2026"
},
"responseTime": 94.917268,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /offercalculations |
Liste mit Filtern/Paginierung | sale.offercalculations.view |
| GET | /offercalculations/:id |
Einzelner Datensatz | sale.offercalculations.view |
| POST | /offercalculations |
Neuen Datensatz erstellen | sale.offercalculations.new |
| PUT | /offercalculations |
Datensatz aktualisieren | sale.offercalculations.edit |
| DELETE | /offercalculations/:id |
Datensatz löschen | sale.offercalculations.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.sale.offerCalculations.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.sale.offerCalculations.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.sale.offerCalculations.create({ name: 'Foo' });