← Sales API
Offers
Singular: Offer — Base URL: https://sale-api.ayoune.app — Access: CRUD
Try it now
beta
Response (live)
Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.
Example response (recorded) sample
A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.
{
"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": ""
},
"deposits": [],
"currency": "EUR",
"contributors": [],
"consumerContributors": [],
"_id": "61de42874970427b9c5a3c03",
"suppliers": [],
"editors": [],
"team": [],
"confirmed": false,
"destinationCountries": [],
"destinationCities": [],
"destinationCity": [],
"groups": [],
"othergroups": [],
"skus": [],
"shopOrder": false,
"shopOrderNbr": "false",
"interestchannels": [],
"stock_booked": false,
"hasQuota": false,
"hasDuration": false,
"hasCheckLists": false,
"hasSupplierFeedback": false,
"hasRequirements": false,
"status": "Neu",
"type": "Kurz",
"text_pre": "",
"text_post": "",
"sent": false,
"materialLocked": false,
"totalVolume": 0,
"totalTime": 0,
"totalTimeHours": 0,
"totalTimeDays": 0,
"totalTimeWeeks": 0,
"totalTimeMonths": 0,
"totalWeight": 0,
"useTitles": false,
"specialRemarks": "",
"totalDiscount": 0,
"net_total": 0,
"net_total_1": 0,
"net_total_2": 0,
"tax_1": 0,
"tax_2": 0,
"totalTax": 0,
"lockCalculation": false,
"taxValue": 0.19,
"foreignCountry": false,
"watchers": [],
"shares": [],
"pricedate": "2022-01-12T02:52:55.419Z",
"material": [],
"machines": [],
"workCenters": [],
"skills": [],
"titles": [],
"positions": [],
"created": "2022-01-12T02:52:55.419Z",
"taxes": [],
"problems": [],
"comments": [],
"nbr": 2,
"user": "5ee06fc3860473001cfb290e",
"pricegroup": "5ee06fc6860473001cfb2917",
"paymentcondition": "5ee06fc6860473001cfb2919",
"createdAt": "2022-01-12T02:52:55.420Z",
"updatedAt": "2022-01-12T02:52:55.420Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://sale-api.ayoune.app/offers/61de42874970427b9c5a3c03",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "PriceGroups",
"title": "MODEL_PRICEGROUP",
"href": "https://api.ayoune.app/config/pricegroups/5ee06fc6860473001cfb2917",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.pricegroups"
},
{
"rel": "PaymentGroups",
"title": "MODEL_PAYMENTGROUP",
"href": "https://api.ayoune.app/config/paymentgroups/5ee06fc6860473001cfb2919",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.paymentgroups"
}
],
"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": "Invoices",
"title": "MODEL_INVOICE",
"href": "https://api.ayoune.app/sale/invoices",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.invoices"
},
{
"rel": "Shippings",
"title": "MODEL_SHIPPING",
"href": "https://api.ayoune.app/sale/shippings",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.shippings"
},
{
"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"
},
{
"rel": "Documents",
"title": "MODEL_DOCUMENT",
"href": "https://api.ayoune.app/crm/documents",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.documents"
}
],
"debugId": "6a61991f01c854403a7ccfdc",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_OFFER",
"href": "https://api.ayoune.app/sale/offers/61de42874970427b9c5a3c03/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_OFFER",
"href": "https://api.ayoune.app/sale/offers/61de42874970427b9c5a3c03/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.37.2",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2321",
"reset": "1784784645",
"resetDate": "Thu Jul 23 2026"
},
"responseTime": 100.726237,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /offers |
List with filters/pagination | sale.offers.view |
| GET | /offers/:id |
Single record | sale.offers.view |
| POST | /offers |
Create new record | sale.offers.new |
| PUT | /offers |
Update record | sale.offers.edit |
| DELETE | /offers/:id |
Delete record | sale.offers.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.sale.offers.find().limit(10).exec();
// Single record
const one = await ay.sale.offers.findById('OBJECT_ID').exec();
// Create
const created = await ay.sale.offers.create({ name: 'Foo' });