Search by

thelogicstudio / grailpay

IanSimpson

API Documentation for moving funds via ACH using the GrailPay ACH API

Package info

github.com/thelogicstudio/grailpay

Homepage

pkg:composer/thelogicstudio/grailpay

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-10-23 01:50 UTC

This package is auto-updated.

Last update: 2026-11-25 19:53:37 UTC


README

API Documentation for moving funds via ACH using the GrailPay ACH API

Installation & Usage

Requirements

PHP 8.1 and later.

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/GrailPay PHP SDK/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');



// Configure Bearer (Token) authorization: ApiToken
$config = TheLogicStudio\GrailPay\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new TheLogicStudio\GrailPay\Api\AccountApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->getMe();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountApi->getMe: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to https://api.grailpay.com

Class Method HTTP request Description
AccountApi getMe GET /api/v3/me Fetch Authenticated Account
BankAccountsApi deleteBankAccountsByUuid DELETE /api/v3/bank-accounts/{uuid} Delete a bank account.
BankAccountsApi getBankAccounts GET /api/v3/bank-accounts List bank accounts for an entity.
BankAccountsApi getBankAccountsByUuid GET /api/v3/bank-accounts/{uuid} Show a bank account.
BankAccountsApi getBankAccountsByUuidBalance GET /api/v3/bank-accounts/{uuid}/balance Fetch a bank account balance.
BankAccountsApi getBankAccountsByUuidHistory GET /api/v3/bank-accounts/{uuid}/history Fetch bank account transaction history.
BankAccountsApi getBankAccountsByUuidOwners GET /api/v3/bank-accounts/{uuid}/owners Get Bank Account Owners
BankAccountsApi postBankAccounts POST /api/v3/bank-accounts Add a bank account to an entity.
BankAccountsApi postBankAccountsValidate POST /api/v3/bank-accounts/validate Validate a bank account's routing and account number.
BankAccountsApi postPeopleByUuidBankAccounts POST /api/v3/people/{uuid}/bank-accounts Add a new bank account to a person.
BankAccountsApi putBankAccountsByUuidDefault PUT /api/v3/bank-accounts/{uuid}/default Switch the default bank account.
BillingApi getBillingItems GET /api/v3/billing/items Get Billing Items
BillingApi getBillingSummary GET /api/v3/billing/summary Get Billing Summary
ClawbacksApi getClawbacks GET /api/v3/clawbacks Get All Clawbacks
ClawbacksApi getClawbacksByUuid GET /api/v3/clawbacks/{uuid} Get Clawback
PayoutsApi getPayouts GET /api/v3/payouts Get All Payouts
PayoutsApi getPayoutsByUuid GET /api/v3/payouts/{uuid} Get Payout
PayoutsApi postPayoutsStandalone POST /api/v3/payouts/standalone Create a standalone payout
RefundsApi getRefunds GET /api/v3/refunds Get All Refunds
RefundsApi getRefundsByUuid GET /api/v3/refunds/{uuid} Get Refund
RefundsApi postRefunds POST /api/v3/refunds Create Refund
ReturnsApi getReturns GET /api/v3/returns Get All Returns
ReversePayoutsApi getReversePayouts GET /api/v3/reverse-payouts Get All Reverse Payouts
ReversePayoutsApi getReversePayoutsByUuid GET /api/v3/reverse-payouts/{uuid} Get Reverse Payout
TransactionsApi deleteTransactionsByUuidCancel DELETE /api/v3/transactions/{uuid}/cancel Cancel a transaction in the ACH application
TransactionsApi getTransactions GET /api/v3/transactions Get All Transactions
TransactionsApi getTransactionsByUuid GET /api/v3/transactions/{uuid} Get Transaction
TransactionsApi postTransactions POST /api/v3/transactions Create Transaction
TransactionsApi postTransactionsByUuidPause POST /api/v3/transactions/{uuid}/pause Pause a transaction in the ACH application
TransactionsApi postTransactionsByUuidResume POST /api/v3/transactions/{uuid}/resume Resume a transaction in the ACH application
UsersApi deletePeopleByUuid DELETE /api/v3/people/{uuid} Delete Person
UsersApi getBusinesses GET /api/v3/businesses Get All Businesses
UsersApi getBusinessesByUuid GET /api/v3/businesses/{uuid} Get Business
UsersApi getMerchants GET /api/v3/merchants Get All Merchants
UsersApi getMerchantsByUuid GET /api/v3/merchants/{uuid} Get Merchant
UsersApi getPeople GET /api/v3/people Get All People
UsersApi getPeopleByUuid GET /api/v3/people/{uuid} Get Person
UsersApi patchBusinessesByUuid PATCH /api/v3/businesses/{uuid} Update a Business into the ACH application
UsersApi patchMerchantsByUuid PATCH /api/v3/merchants/{uuid} Update a Merchant into the ACH application
UsersApi patchPeopleByUuid PATCH /api/v3/people/{uuid} Update a Person into the ACH application
UsersApi postBusinesses POST /api/v3/businesses Onboard a new Business into the ACH application
UsersApi postMerchants POST /api/v3/merchants Onboard a new Merchant into the ACH application
UsersApi postMerchantsByUuidActivate POST /api/v3/merchants/{uuid}/activate Activate a Merchant
UsersApi postMerchantsByUuidDeactivate POST /api/v3/merchants/{uuid}/deactivate Deactivate a Merchant
UsersApi postPeople POST /api/v3/people Onboard a new Person into the ACH application
UsersApi postPeopleKyc POST /api/v3/people/kyc Register Person KYC
VendorsApi deleteVendorsByUuidBankAccountsByBankAccountUuid DELETE /api/v3/vendors/{uuid}/bank-accounts/{bank_account_uuid} Delete Vendor Bank Account
VendorsApi deleteVendorsByUuidFboFundingByFundingUuid DELETE /api/v3/vendors/{uuid}/fbo/funding/{funding_uuid} Cancel FBO Funding
VendorsApi getVendorsByUuid GET /api/v3/vendors/{uuid} Fetch Vendor Details
VendorsApi getVendorsByUuidBankAccounts GET /api/v3/vendors/{uuid}/bank-accounts List Vendor Bank Accounts
VendorsApi getVendorsByUuidFbo GET /api/v3/vendors/{uuid}/fbo Fetch vendor prefunded FBO account details
VendorsApi postVendorsByUuidBankAccounts POST /api/v3/vendors/{uuid}/bank-accounts Add Vendor Bank Account
VendorsApi postVendorsByUuidFboFunding POST /api/v3/vendors/{uuid}/fbo/funding Create FBO Funding
VendorsApi putVendorsByUuidBankAccountsByBankAccountUuidDefault PUT /api/v3/vendors/{uuid}/bank-accounts/{bank_account_uuid}/default Set Default Funding Bank Account
WebhooksApi deleteWebhooksByUuid DELETE /api/v3/webhooks/{uuid} Delete Webhook
WebhooksApi getWebhooks GET /api/v3/webhooks Get All Webhooks
WebhooksApi getWebhooksByUuid GET /api/v3/webhooks/{uuid} Get Webhook
WebhooksApi postWebhooks POST /api/v3/webhooks Register Webhook

Models

Authorization

Authentication schemes defined for the API:

ApiToken

  • Type: Bearer authentication (Token)

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 2026.9.30.1
    • Generator version: 7.26.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen