aYOUne
← Service Desk API

ServiceAssignments

Singular: ServiceAssignment — Base URL: https://service-api.ayoune.app — Access: CRUD

play_circle Try it now beta

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": {
    "shippingAddress": {
      "address_additional": ""
    },
    "_id": "65e0b1fe121b7d48fe15a685",
    "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,
    "needsProduction": false,
    "hasProductionOrders": false,
    "insuranceBooked": false,
    "status": "Neu",
    "deposits": [],
    "type": "Kurz",
    "text_pre": "",
    "text_post": "",
    "useTitles": false,
    "totalTime": 0,
    "totalTimeHours": 0,
    "totalTimeDays": 0,
    "totalTimeWeeks": 0,
    "totalTimeMonths": 0,
    "final_discount_percent": 0,
    "final_discount_percent_amount": 0,
    "final_discount": 0,
    "coupon_discount": 0,
    "shippingCosts": 0,
    "sum": 0,
    "totalDiscount": 0,
    "net_total": 0,
    "net_total_1": 0,
    "net_total_2": 0,
    "tax_1": 0,
    "tax_2": 0,
    "total": 0,
    "monthly_part": 0,
    "total_part": 0,
    "external_monthly_part": 0,
    "external_total_part": 0,
    "foreignCountry": false,
    "createdBy": "6045f4d25704710012485569",
    "shares": [],
    "pricedate": "2024-02-29T16:34:06.552Z",
    "titles": [],
    "positions": [],
    "taxes": [],
    "createdAt": "2024-02-29T16:34:06.552Z",
    "updatedAt": "2024-02-29T16:34:06.552Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://service-api.ayoune.app/serviceassignments/65e0b1fe121b7d48fe15a685",
        "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": "Offers",
        "title": "MODEL_OFFER",
        "href": "https://api.ayoune.app/sale/offers",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "sale.offers"
      },
      {
        "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": "6a6199d1e4b54de427d221dd",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_SERVICEASSIGNMENT",
        "href": "https://api.ayoune.app/service/serviceassignments/65e0b1fe121b7d48fe15a685/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_SERVICEASSIGNMENT",
        "href": "https://api.ayoune.app/service/serviceassignments/65e0b1fe121b7d48fe15a685/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.4.0",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2475",
      "reset": "1784784859",
      "resetDate": "Thu Jul 23 2026"
    },
    "responseTime": 17.97532,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

MethodPathDescriptionRight
GET /serviceassignments List with filters/pagination service.serviceassignments.view
GET /serviceassignments/:id Single record service.serviceassignments.view
POST /serviceassignments Create new record service.serviceassignments.new
PUT /serviceassignments Update record service.serviceassignments.edit
DELETE /serviceassignments/:id Delete record service.serviceassignments.delete

SDK

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

// List all
const list = await ay.service.serviceAssignments.find().limit(10).exec();

// Single record
const one = await ay.service.serviceAssignments.findById('OBJECT_ID').exec();

// Create
const created = await ay.service.serviceAssignments.create({ name: 'Foo' });

See also