MyMarkit SaaS V1 (1.0.0)

Download OpenAPI specification:Download

This is an example API to demonstrate features of the OpenAPI specification.

Introduction

This API implementation guide is intended to to be a good starting point for implementing various MyMarkit SaaS products.

Company Site.

Global throttle specification for the API: Rate: 100 requests /sec, Burst: 200 requests , Quota: 2,000 requests /day, Default Timeout: 29 sec

Payment with MarkitPay (Fiat)

Universal Payment Processor with MarkitPay (Fiat).

Create a payment page with MarkitPay (Fiat)

Create a universal payment page loaded with payment methods from MarkitPay (Fiat) dashboard

SecurityApiKeyAuth
Request
Request Body schema: application/json

Payment payload

merchantId
string >= 4 characters

unique merchant id

value
string non-empty

total amount to pay

currency
string non-empty

currency

returnURL
string non-empty

the url to return to upon successful payment completion

Responses
200

OK

401

Unauthorized

post/api/v1/payments/adyen
Request samples
application/json
{
  • "merchantId": "WonderWebShop1",
  • "value": "100.15",
  • "currency": "EUR",
  • "returnURL": "https://saasdevs.net"
}
Response samples
application/json
{}

Payment with MarkitPay (Crypto)

Universal Payment Processor with MarkitPay (Crypto).

Create a payment page with MarkitPay (Crypto)

Create a universal payment page loaded with payment methods from MarkitPay (Crypto) dashboard

SecurityApiKeyAuth
Request
Request Body schema: application/json

Payment payload

merchantId
string >= 4 characters

unique merchant id

value
string non-empty

total amount to pay

currency
string non-empty

currency

returnURL
string non-empty

the url to return to upon successful payment completion

Responses
200

OK

401

Unauthorized

post/api/v1/payments/coinbase
Request samples
application/json
{
  • "merchantId": "WonderWebShop1",
  • "value": "100.15",
  • "currency": "USD",
  • "returnURL": "https://saasdevs.net"
}
Response samples
application/json
{}

Webhook confirmation from MarkitPay (Fiat)

Webhook confirmation from Universal Payment Processor with MarkitPay (Fiat).

Create a webhook confirmation response from MarkitPay (Fiat) payment

Create a webhook JSON confirmation response page from MarkitPay (Fiat) payment

SecurityApiKeyAuth
Request
Request Body schema: application/json

webhook request body

upp-api-key
string >= 4 characters

unique upp api key

upp-client-key
string >= 4 characters

unique client key per customer

Responses
200

OK

401

Unauthorized

post/user-provided-url-for-webhook-adyen
Request samples
application/json
{
  • "upp-api-key": "12345678xyz",
  • "upp-client-key": "xyzw12345"
}
Response samples
application/json
{
  • "live": "false",
  • "notificationItems": [
    ]
}

Webhook confirmation from MarkitPay (Crypto)

Webhook confirmation from Universal Payment Processor with MarkitPay (Crypto).

Create a webhook confirmation response from MarkitPay (Crypto) payment

Create a webhook JSON confirmation response page from MarkitPay (Crypto) payment

SecurityApiKeyAuth
Request
Request Body schema: application/json

webhook request body

upp-api-key
string >= 4 characters

unique upp api key

upp-client-key
string >= 4 characters

unique client key per customer

Responses
200

OK

401

Unauthorized

post/user-provided-url-for-webhook-coinbase
Request samples
application/json
{
  • "upp-api-key": "12345678xyz",
  • "upp-client-key": "xyzw12345"
}
Response samples
application/json
{
  • "attempt_number": 1,
  • "id": "51dc060b-8ac3-4615-9ef1-b4e3206cdee0",
  • "scheduled_for": "2022-07-01T22:10:50Z",
  • "event": {
    }
}

Add a single entry record to MarkitChain

Add a single entry record to MarkitChain.

Create a Blockchain ledger entry in MarkitChain

Create a Blockchain ledger entry in MarkitChain from customer request

SecurityApiKeyAuth
Request
Request Body schema: application/json

Create MarkitChain Request Body

ledger_id
integer non-empty

ledger_id of the product customer wants to create

Array of objects

field data which can go up to 30 fields, subject to change

Responses
200

OK

401

Unauthorized

post/api/v1/markitchain/post
Request samples
application/json
{
  • "ledger_id": 12345,
  • "field_data": [
    ]
}
Response samples
application/json
{
  • "ledger_id": 12345,
  • "field_data": [
    ],
  • "statusCode": 200,
  • "timeStamp": "2023-03-30T05:00:47.859379",
  • "transactionId": "017338d5-23bc-48f3-9d0d-f805b3dd63ae"
}

Retrieve a single entry record from MarkitChain

Retrieve a single entry record from MarkitChain.

Retrieve an entry with MarkitChain

Retrieve a single Blockchain ledger entry in MarkitChain based on ledger_id, if deprecated return json response saying 'deprecated entry found'

SecurityApiKeyAuth
Request
query Parameters
ledger_id
required
string

ledger_id of the product to be searched for

Responses
200

OK

401

Unauthorized

get/api/v1/markitchain/entry
Request samples
Response samples
application/json
{
  • "ledger_id": 12345,
  • "field_data": [
    ],
  • "statusCode": 200,
  • "timeStamp": "2023-03-30T05:00:47.859379",
  • "transactionId": "017338d5-23bc-48f3-9d0d-f805b3dd63ae"
}

Retrieve a collection of entry records from MarkitChain

Retrieve a collection of entry records from MarkitChain.

Retrieve a collection of entry records from MarkitChain

Retrieve a collection of Blockchain ledger entries in MarkitChain based on a collection of ledger_ids, , if any deprecated return json response saying 'deprecated entry found'

SecurityApiKeyAuth
Request
query Parameters
ledger_ids
required
string

an array of ledger_ids to be searched for

Responses
200

OK

401

Unauthorized

get/api/v1/markitchain/entries
Request samples
Response samples
application/json
[
  • {
    }
]

Deprecate a single entry record on MarkitChain

Deprecate a single entry record on MarkitChain.

Deprecate a single entry record on MarkitChain

Deprecate a single entry record on the chain in MarkitChain based on ledger_id

SecurityApiKeyAuth
Request
query Parameters
ledger_id
required
string

ledger_id of the product to be deprecated

Responses
200

OK

401

Unauthorized

delete/api/v1/markitchain/entry
Request samples
Response samples
application/json
{
  • "ledger_id": 12345,
  • "statusCode": 200,
  • "timeStamp": "2023-03-30T05:00:47.859379",
  • "transactionId": "017338d5-23bc-48f3-9d0d-f805b3dd63ae"
}