Melio

App · 12 actions

Review entities, accounts and payouts with the Melio Payouts API.

Actions

ActionWhat it does
Calculate feesEstimates the fees for a payment between two of the entity's accounts, without creating one.
Check fast payment eligibilityChecks which faster-than-standard delivery options a payment between two of the entity's accounts is eligible for, without creating one.
Estimate delivery datesEstimates when a payment between two of the entity's accounts would be delivered, without creating one.
Get accountReturns a single account.
Get account setup linkReturns a short-lived link you hand to the entity.
Get account verification linkFor an unverified internal Plaid account, returns a short-lived link you hand to the entity.
Get entityGet entity.
Get limitationsReturns the entity's per-operation capabilities.
Get paymentReturns a single payment by its Melio id (pay_ ).
List accountsReturns the entity's accounts.
List entitiesReturns your entities, newest first.
List paymentsReturns the entity's payments, newest first.

Calculate fees

Estimates the fees for a payment between two of the entity's accounts, without creating one. Fees depend on the originating account, the receiving account, the deliveryPreference, and the amount. All amounts are in minor units (cents). For a payment that converts currency this prices the fees only; use POST /tools/fx-quote for the exchange rate and the amount that would be debited.

Inputs

Melio entitymelio_entity_idtextRequired
Choose the Melio entity for this step.
Originating accountoriginating_account_idtextRequired
Internal originating account id (acct_ ), the debit account
Receiving accountreceiving_account_idtextRequired
External receiving account id (acct_ ), the credit account
Delivery preferencedelivery_preferencetextRequired
Choose a delivery option supported by the receiving account.One of: standard-ach, same-day-ach, rtp, standard-check, express-check, overnight-check, domestic-wire, instant-domestic-wire, virtual-card, instant-virtual-card, and 4 more.
AmountamountnumberRequired
Amount in the currency’s smallest unit, such as cents for USD.
Currencycurrencytext
Must match the receiving account's currency, exactly as on `POST /payments`.Default: USD.

Outputs

datalist
The response from Melio.
Example output
{
  "data": []
}

Check fast payment eligibility

Checks which faster-than-standard delivery options a payment between two of the entity's accounts is eligible for, without creating one. Eligibility depends on the originating account, the receiving account, and the amount (minor units, cents). The response has one entry per fast option valid for the receiving account and the originating account's funding type, for example same-day-ach and rtp for ACH, or express-check and overnight-check for check. With a card originating account the collect is immediate, so same-day-ach and `insta

Inputs

Melio entitymelio_entity_idtextRequired
Choose the Melio entity for this step.
Originating accountoriginating_account_idtextRequired
Internal originating account id (acct_ ), the debit account
Receiving accountreceiving_account_idtextRequired
External receiving account id (acct_ ), the credit account
AmountamountnumberRequired
Amount in the currency’s smallest unit, such as cents for USD.
Currencycurrencytext
Currency.Default: USD.

Outputs

dataobject
The response from Melio.
Example output
{
  "data": {
    "amount": 1,
    "currency": "example",
    "eligibilities": [],
    "originatingAccountId": "example",
    "receivingAccountId": "example"
  }
}

Estimate delivery dates

Estimates when a payment between two of the entity's accounts would be delivered, without creating one. The response has one estimate per delivery option valid for the receiving account and the originating account's funding type, for example standard-ach, same-day-ach, and rtp for ACH with a bank originating account, or same-day-ach and rtp with a card. deductionDate is the debit date used for the estimate (defaults to today); amount is in minor units (cents).

Inputs

Melio entitymelio_entity_idtextRequired
Choose the Melio entity for this step.
Originating accountoriginating_account_idtextRequired
Internal originating account id (acct_ ), the debit account
Receiving accountreceiving_account_idtextRequired
External receiving account id (acct_ ), the credit account
AmountamountnumberRequired
Amount in the currency’s smallest unit, such as cents for USD.
Deduction datededuction_datedate
The debit/schedule date the estimate is based on. Defaults to the current date when omitted.
Currencycurrencytext
Currency.Default: USD.

Outputs

dataobject
The response from Melio.
Example output
{
  "data": {
    "amount": 1,
    "currency": "example",
    "deductionDate": "example",
    "estimates": [],
    "originatingAccountId": "example",
    "receivingAccountId": "example"
  }
}

Get account

Returns a single account. If it's an internal Plaid account that isn't yet verified, its verification status is refreshed from Plaid before the response is returned.

Inputs

Melio entitymelio_entity_idtextRequired
Choose the Melio entity for this step.
Accountaccount_idtextRequired
Choose a record from the connected account.

Outputs

dataobject
The response from Melio.
Example output
{
  "data": {
    "bankAccount": {
      "accountNumberLast4": "example",
      "accountType": "checking",
      "routingNumber": "example"
    },
    "card": {
      "expiration": "example",
      "lastFourDigits": "example",
      "network": "example"
    },
    "counterPartyEmail": "example",
    "counterPartyName": "example",
    "createdAt": "example",
    "domesticWire": {
      "accountNumberLast4": "example",
      "address": {
        "aptNumber": "example",
        "city": "example",
        "countryCode": "example",
        "line1": "example",
        "line2": "example",
        "postalCode": "example",
        "state": "example"
      },
      "routingNumber": "example"
    },
    "externalId": "example",
    "id": "example",
    "internationalFx": {
      "accountIdentifierLast4": "example",
      "address": {
        "aptNumber": "example",
        "city": "example",
        "countryCode": "example",
        "line1": "example",
        "line2": "example",
        "postalCode": "example",
        "state": "example"
      },
      "bankCountryCode": "example",
      "bankName": "example",
      "currency": "example"
    },
    "internationalGusd": {
      "walletAddressLast4": "example"
    },
    "isVerified": false,
    "metadata": {},
    "nickname": "example",
    "ownershipType": "internal",
    "paperCheck": {
      "address": {
        "aptNumber": "example",
        "city": "example",
        "countryCode": "example",
        "line1": "example",
        "line2": "example",
        "postalCode": "example",
        "state": "example"
      },
      "printName": "example"
    },
    "type": "ach",
    "updatedAt": "example"
  }
}

Returns a short-lived link you hand to the entity. Opening it takes them to a Melio-hosted page that runs the Plaid or card flow and adds the internal account for them, so bank and card details never pass through your servers. Authenticate with your api-key.

Inputs

Melio entitymelio_entity_idtextRequired
Choose the Melio entity for this step.
TypetypetextRequired
Type.One of: plaid, card.
External IDexternal_idtext
Your own unique identifier for the account. When set, the account created through this link is pinned to this externalId; the submitter cannot supply a different one.

Outputs

dataobject
The response from Melio.
Example output
{
  "data": {
    "data": {
      "expiration": "example",
      "url": "example"
    }
  }
}

For an unverified internal Plaid account, returns a short-lived link you hand to the entity. Opening it takes them to a Melio-hosted page where they complete same-day micro-deposit verification in Plaid. Authenticate with your api-key.

Inputs

Melio entitymelio_entity_idtextRequired
Choose the Melio entity for this step.
Accountaccount_idtextRequired
Choose a record from the connected account.

Outputs

dataobject
The response from Melio.
Example output
{
  "data": {
    "data": {
      "expiration": "example",
      "url": "example"
    }
  }
}

Get entity

Get entity.

Inputs

Entityentity_idtextRequired
An entity id (ent_ ) or the sentinel `me` (the partner's sole entity).

Outputs

dataobject
The response from Melio.
Example output
{
  "data": {
    "address": {
      "aptNumber": "example",
      "city": "example",
      "countryCode": "example",
      "line1": "example",
      "line2": "example",
      "postalCode": "example",
      "state": "example"
    },
    "businessType": "example",
    "contact": {
      "firstName": "example",
      "lastName": "example"
    },
    "createdAt": "example",
    "description": "example",
    "externalId": "example",
    "id": "example",
    "industry": {
      "naicsCode": "example",
      "name": "example"
    },
    "legalAddress": {
      "aptNumber": "example",
      "city": "example",
      "countryCode": "example",
      "line1": "example",
      "line2": "example",
      "postalCode": "example",
      "state": "example"
    },
    "legalName": "example",
    "metadata": {},
    "name": "example",
    "owner": {
      "email": "example",
      "firstName": "example",
      "lastName": "example"
    },
    "phoneNumber": "example",
    "taxInfo": {
      "identifierLast4": "example",
      "type": "ein"
    },
    "termsAcceptance": {
      "acceptedAt": "example"
    },
    "type": "business",
    "updatedAt": "example",
    "website": "example"
  }
}

Get limitations

Returns the entity's per-operation capabilities. Each operation (named resource.subtype:action) is either allowed or, if not, lists the reasons why (for example, missing information). Only write operations can be limited; read operations are always allowed and are not listed.

Inputs

Melio entitymelio_entity_idtextRequired
Choose the Melio entity for this step.

Outputs

dataobject
The business's per-operation capabilities. Every entry reports whether a write operation (create/update/delete) is allowed today and, if not, why. Only limitable operations are listed; read operations are always allowed and never appear. New operations will be added over time.
Example output
{
  "data": {
    "capabilities": []
  }
}

Get payment

Returns a single payment by its Melio id (pay_ ). To look one up by your own identifier instead, list payments with ?externalId=.

Inputs

Melio entitymelio_entity_idtextRequired
Choose the Melio entity for this step.
Paymentpayment_idtextRequired
Choose a record from the connected account.

Outputs

dataobject
The response from Melio.
Example output
{
  "data": {
    "amount": 1,
    "createdAt": "example",
    "currency": "example",
    "deductionDate": "example",
    "deliveryDate": "example",
    "deliveryPreference": "standard-ach",
    "externalId": "example",
    "failureReason": {
      "code": "R01_INSUFFICIENT_FUNDS",
      "message": "example",
      "type": "failed-to-collect"
    },
    "fees": [],
    "id": "example",
    "metadata": {},
    "noteToRecipient": "example",
    "noteToSelf": "example",
    "originatingAccountId": "example",
    "receiverUpgrade": {
      "upgradedFromDeliveryPreference": "standard-ach",
      "upgradedFromReceivingAccountId": "example"
    },
    "receivingAccountId": "example",
    "status": "scheduled",
    "tracking": "example",
    "updatedAt": "example"
  }
}

List accounts

Returns the entity's accounts. Any internal Plaid account that isn't yet verified has its verification status refreshed from Plaid before the response is returned.

Inputs

Melio entitymelio_entity_idtextRequired
Choose the Melio entity for this step.
Ownership typeownership_typetext
Ownership type.One of: internal, external.
Typetypetext
Type.One of: ach, check, card, domestic-wire, virtual-card, counterparty-choice.
External IDexternal_idtext
Return only the account whose `externalId` matches (your own id).
Limitlimitnumber
Limit.From 1 to 50.
Starting afterstarting_aftertext
Starting after.
Ending beforeending_beforetext
Ending before.

Outputs

dataobject
The response from Melio.
Example output
{
  "data": {
    "data": [],
    "hasMore": false
  }
}

List entities

Returns your entities, newest first. Use the filters below to narrow the list.

Inputs

External IDexternal_idtext
Return only the entity whose `externalId` matches (your own id).
Limitlimitnumber
Limit.From 1 to 50.
Starting afterstarting_aftertext
Starting after.
Ending beforeending_beforetext
Ending before.

Outputs

dataobject
The response from Melio.
Example output
{
  "data": {
    "data": [],
    "hasMore": false
  }
}

List payments

Returns the entity's payments, newest first. Use the filters below to narrow the list; they can be combined with each other and with pagination.

Inputs

Melio entitymelio_entity_idtextRequired
Choose the Melio entity for this step.
Limitlimitnumber
Maximum number of resources to return, 1 to 50. Defaults to 50.From 1 to 50. Default: 50.
Starting afterstarting_aftertext
Cursor for forward (older) pagination: a resource id. The page returned starts immediately after this resource. Mutually exclusive with `endingBefore`.
Ending beforeending_beforetext
Cursor for backward (newer) pagination: a resource id. The page returned ends immediately before this resource. Mutually exclusive with `startingAfter`.
External IDexternal_idtext
Return only the payment whose `externalId` matches (your own id).
Statusstatustext
Filter by payment status.One of: scheduled, in-progress, completed, failed, canceled.
Originating accountoriginating_account_idtext
Return only payments drawn from this internal originating account (acct_ ).
Receiving accountreceiving_account_idtext
Return only payments sent to this external receiving account (acct_ ).
Created gtecreated_gtedate and time
Return payments created at or after this RFC 3339 timestamp.
Created ltecreated_ltedate and time
Return payments created at or before this RFC 3339 timestamp.

Outputs

dataobject
The response from Melio.
Example output
{
  "data": {
    "data": [],
    "hasMore": false
  }
}

On this page