Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

melio-platform-api-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

melio-platform-api-client

  • 3.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Melio Platform API Ruby Client Library

Melio Platform API enables partners to perform partner-related operations in Melio's system, for themselves, and on behalf of their system's users.

Developers can use this OpenAPI based client library in order to send API requests to Melio Platform API.

Refer to our API Reference for further information.

Getting started

Installation

Add the following in the Gemfile:

gem 'melio-platform-api-client', :git => 'https://github.com/melio/melio-platform-api-client-ruby.git', :tag => 'v1.0.1'

Change :tag => 'v1.0.1 to the version you need.

Setup

Before using the library, you need to load and configure it with the relevant parameters:

  1. The host and base URL, which represent the environment you want to work with.
  2. Your credentials, which are usually the Partner secret provided during onboarding, set as a API-Key header.
# Load the gem
require 'melio-platform-api-client'

# Setup
MelioPlatformApiClient.configure do |config|
  # Configure host
  config.host = 'api-sandbox.melio.com'
  
  # Optionally toggle debugging
  # config.debugging = true
  
  # Configure API key authorization: API-Key
  config.api_key['ApiKey'] = 'YOUR API KEY'
end

Send an API request

Once everything is configured properly, initialize one of the *Api modules in you application, and invoke one of the available functions. The functions in each module represent the API operations, as they appear in our API Reference.

api_instance = MelioPlatformApiClient::AccountsApi.new

begin
  #Retrieve all Accounts
  result = api_instance.get_accounts
  p result
rescue MelioPlatformApiClient::ApiError => e
  puts "Exception when calling AccountsApi->get_accounts: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.melio.com/v1

ClassMethodHTTP requestDescription
MelioPlatformApiClient::AccountsApiget_accountsGET /accountsRetrieve all Accounts
MelioPlatformApiClient::AccountsApiget_accounts_account_idGET /accounts/{accountId}Retrieve an Account
MelioPlatformApiClient::AccountsApipost_accountsPOST /accountsCreate an Account
MelioPlatformApiClient::AuthApipost_auth_tokenPOST /auth/tokenCreate an access token
MelioPlatformApiClient::ChargesApidelete_charges_charge_idDELETE /charges/{chargeId}Delete a Charge
MelioPlatformApiClient::ChargesApiget_charges_charge_idGET /charges/{chargeId}Retrieve a Charge
MelioPlatformApiClient::ChargesApiget_merchants_merchant_id_chargesGET /merchants/{merchantId}/chargesRetrieve all Charges
MelioPlatformApiClient::ChargesApipatch_charges_charge_idPATCH /charges/{chargeId}Update a Charge
MelioPlatformApiClient::CheckoutsApiget_checkouts_checkout_idGET /checkouts/{checkoutId}Retrieve a Checkout
MelioPlatformApiClient::CheckoutsApipost_checkoutsPOST /merchants/{merchantId}/checkoutsCreate a Checkout
MelioPlatformApiClient::CheckoutsApipost_checkouts_checkout_id_capturePOST /checkouts/{checkoutId}/captureCapture a Checkout
MelioPlatformApiClient::CheckoutsApipost_checkouts_checkout_id_completePOST /checkouts/{checkoutId}/completeComplete a Checkout
MelioPlatformApiClient::DeliveryMethodsApidelete_delivery_methods_delivery_method_idDELETE /delivery-methods/{deliveryMethodId}Delete a Delivery Method
MelioPlatformApiClient::DeliveryMethodsApiget_delivery_methodsGET /delivery-methodsRetrieve all Delivery Methods
MelioPlatformApiClient::DeliveryMethodsApiget_delivery_methods_delivery_method_idGET /delivery-methods/{deliveryMethodId}Retrieve a Delivery Method
MelioPlatformApiClient::DeliveryMethodsApiget_vendors_vendor_id_delivery_methodsGET /vendors/{vendorId}/delivery-methodsRetrieve a Vendor's Delivery Methods
MelioPlatformApiClient::DeliveryMethodsApipost_delivery_methodsPOST /delivery-methodsCreate a Delivery Method
MelioPlatformApiClient::DeliveryMethodsApipost_vendors_vendor_id_delivery_methodsPOST /vendors/{vendorId}/delivery-methodsCreate a Vendor's Delivery Method
MelioPlatformApiClient::FilesApiget_filesGET /filesRetrieve files
MelioPlatformApiClient::FilesApiget_files_file_idGET /files/{fileId}Retrieve a File
MelioPlatformApiClient::FilesApiget_files_file_id_dataGET /files/{fileId}/dataRetrieve data from a File using OCR
MelioPlatformApiClient::FilesApipost_filesPOST /filesCreate / upload a File
MelioPlatformApiClient::FinancingApiget_financing_statusGET /financingRetrieve an Account's financing status
MelioPlatformApiClient::FinancingApipost_financingPOST /financingApply for financing for an Account
MelioPlatformApiClient::FinancingApipost_financing_transactionPOST /financing/transactionRequest Transactional Financing
MelioPlatformApiClient::FundingSourcesApidelete_funding_sources_funding_source_idDELETE /funding-sources/{fundingSourceId}Delete a Funding Source
MelioPlatformApiClient::FundingSourcesApiget_funding_sourcesGET /funding-sourcesGet all Funding Sources
MelioPlatformApiClient::FundingSourcesApiget_funding_sources_funding_source_idGET /funding-sources/{fundingSourceId}Retrieve a Funding Source
MelioPlatformApiClient::FundingSourcesApipost_funding_sourcesPOST /funding-sourcesCreate a Funding Source
MelioPlatformApiClient::MerchantsApipost_merchantsPOST /merchantsCreate a Merchant
MelioPlatformApiClient::PaymentIntentsApiget_payment_intentsGET /payment-intentsRetrieve all Payment Intents
MelioPlatformApiClient::PaymentIntentsApiget_payment_intents_payment_intent_idGET /payment-intents/{paymentIntentId}Retrieve a Payment Intent
MelioPlatformApiClient::PaymentIntentsApipatch_payment_intents_payment_intent_idPATCH /payment-intents/{paymentIntentId}Update a Payment Intent
MelioPlatformApiClient::PaymentIntentsApipost_payment_intentsPOST /payment-intentsCreate a Payment Intent
MelioPlatformApiClient::PaymentIntentsApipost_payment_intents_bulkPOST /payment-intents/bulkCreate multiple Payment Intents
MelioPlatformApiClient::PaymentIntentsApipost_payment_intents_payment_intent_id_confirmPOST /payment-intents/{paymentIntentId}/confirmConfirm a Payment Intent
MelioPlatformApiClient::PaymentsApidelete_payments_payment_idDELETE /payments/{paymentId}Delete a Payment
MelioPlatformApiClient::PaymentsApiget_paymentsGET /paymentsRetrieve all Payments of a PaymentIntent
MelioPlatformApiClient::PaymentsApiget_payments_payment_idGET /payments/{paymentId}Retrieve a Payment
MelioPlatformApiClient::PaymentsApirecover_payment_payment_idPOST /payments/{paymentId}/recoverRecover a Payment
MelioPlatformApiClient::VendorDirectoryApiget_vendor_directoryGET /vendor-directoryRetrieve all filtered Vendors in the Vendor Directory
MelioPlatformApiClient::VendorDirectoryApipost_vendors_from_vendor_directoryPOST /vendors/from-vendor-directoryCreate a Vendor from Vendor Directory
MelioPlatformApiClient::VendorsApidelete_vendors_vendor_idDELETE /vendors/{vendorId}Delete a Vendor
MelioPlatformApiClient::VendorsApiget_vendor_directoryGET /vendor-directoryRetrieve all filtered Vendors in the Vendor Directory
MelioPlatformApiClient::VendorsApiget_vendorsGET /vendorsRetrieve all Vendors
MelioPlatformApiClient::VendorsApiget_vendors_vendor_idGET /vendors/{vendorId}Retrieve a Vendor
MelioPlatformApiClient::VendorsApiget_vendors_vendor_id_delivery_methodsGET /vendors/{vendorId}/delivery-methodsRetrieve a Vendor's Delivery Methods
MelioPlatformApiClient::VendorsApipatch_vendors_vendor_idPATCH /vendors/{vendorId}Update a Vendor
MelioPlatformApiClient::VendorsApipost_vendorsPOST /vendorsCreate a Vendor
MelioPlatformApiClient::VendorsApipost_vendors_bulkPOST /vendors/bulkCreate multiple Vendors
MelioPlatformApiClient::VendorsApipost_vendors_from_vendor_directoryPOST /vendors/from-vendor-directoryCreate a Vendor from Vendor Directory
MelioPlatformApiClient::VendorsApipost_vendors_vendor_id_delivery_methodsPOST /vendors/{vendorId}/delivery-methodsCreate a Vendor's Delivery Method
MelioPlatformApiClient::WebhooksApidelete_webhooks_checkoutsDELETE /webhooks/checkoutsDelete the Webhook for Checkouts
MelioPlatformApiClient::WebhooksApidelete_webhooks_paymentsDELETE /webhooks/paymentsDelete the Webhook for Payments
MelioPlatformApiClient::WebhooksApiget_webhooksGET /webhooksRetrieve all Webhooks
MelioPlatformApiClient::WebhooksApiget_webhooks_checkoutsGET /webhooks/checkoutsRetrieve Status of Webhook for Checkouts
MelioPlatformApiClient::WebhooksApiget_webhooks_paymentsGET /webhooks/paymentsRetrieve Status of Webhook for Payments
MelioPlatformApiClient::WebhooksApipost_webhooks_checkoutsPOST /webhooks/checkoutsRegister a Webhook for Checkouts
MelioPlatformApiClient::WebhooksApipost_webhooks_paymentsPOST /webhooks/paymentsRegister a Webhook for Payments

Support

For more information, please contact api-support@melio.com.

FAQs

Package last updated on 10 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc