aYOUne
← Purchase API

SupplierAgreements

Singular: SupplierAgreement — Base URL: https://purchase-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)

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.

Endpoints

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

SDK

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

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

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

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

See also