Skip to content
aYOUne
← payments API

PaymentCards

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

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 /paymentcards List with filters/pagination payments.paymentcards.view
GET /paymentcards/:id Single record payments.paymentcards.view
POST /paymentcards Create new record payments.paymentcards.new
PUT /paymentcards Update record payments.paymentcards.edit
DELETE /paymentcards/:id Delete record payments.paymentcards.delete

SDK

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

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

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

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

See also