Yoki Finance
  • Introduction
    • What is Yoki Finance?
    • Our Values
    • $YOKI token
  • Subscription payments
    • Subscription payments gateway
    • For merchant
      • Glossary
      • How to create the subscription plan
      • Payment plan page
      • Money flows and settlement
      • Get subscription statuses
      • API integration
        • Introduction
        • Steps
        • Localhost environment
        • API brief overview
        • Sending to Telegram group
      • Data export
    • Chains and Tokens
  • Dollar-Cost-Averaging
    • Dollar-Cost-Averaging app
    • Overview
    • Architecture
    • Creating the first subscription
    • Chains and Tokens
    • Analytics
    • Fees
    • Integration
  • Social Media
    • Website
    • Twitter
    • Medium
    • Discord
Powered by GitBook
On this page
  1. Subscription payments
  2. For merchant
  3. API integration

API brief overview

PreviousLocalhost environmentNextSending to Telegram group

Last updated 11 months ago

The Introduction gives a brief overview about events Yoki notifies a merchant via webhooks. Full API reference can be found here . Yoki API uses Stripe API terminology where possible to ease onboarding and integration. Let's see what objects are used in Yoki API:

Object
Description

Merchant

This is company receiving payments. Normally, one merchant corresponds to one client, but there can be situations (when client is a marketplace or payment system), when client wants to manage multiple merchants via API. In this case an Organization is created as an umbrella object for multiple merchants.

Organization

High-level organization that can create multiple merchants. It has separate payment fee and API key.

Product

Product describes specific goods or services merchants offer to their customers. You can also think about this as set of characteristics customers buy. For example, you can offer Standard and Premium version of your service. In this case, each would be a separate product.

Price

Prices define cost, currency (for now only USD is supported) and payment terms. For instance, you can offer Standard product for $5/month or $50/year. So, there will be two prices for one Product. A product can have multiple prices.

Payment contract

Payment contract defines how customers pay certain Price onchain. For instance, for a price $5/month, there could be two payment contracts – one to pay in USDT and another in USDC.

https://api-rps.yoki.fi/swagger