Categorygithub.com/paybotic/synctera_client_library
repositorypackage
1.0.0
Repository: https://github.com/paybotic/synctera_client_library.git
Documentation: pkg.go.dev

# README

Go API client for openapi

Let's build something great.

Welcome to the official reference documentation for Synctera APIs. Our APIs are the best way to automate your company's banking needs and are designed to be easy to understand and implement.

We're continuously growing this library and what you see here is just the start, but if you need something specific or have a question, contact us.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 0.5.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import openapi "github.com/GIT_USER_ID/GIT_REPO_ID"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), openapi.ContextServerIndex, 1)

Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), openapi.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), openapi.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), openapi.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://api.synctera.com/v0

ClassMethodHTTP requestDescription
ACHApiAddTransactionOutPost /achSend an ACH
ACHApiGetTransactionOutGet /ach/{transaction_id}Get a sent ACH transaction
ACHApiListTransactionsOutGet /achList sent ACH transactions
ACHApiPatchTransactionOutPatch /ach/{transaction_id}Update a sent ACH transaction
AccountsApiCreateAccountPost /accountsCreate an account
AccountsApiCreateAccountRelationshipPost /accounts/{account_id}/relationshipsCreate account relationship
AccountsApiCreateAccountResourceProductPost /accounts/productsCreate an account product
AccountsApiCreateAccountTemplatePost /accounts/templatesCreate an account template
AccountsApiDeleteAccountRelationshipDelete /accounts/{account_id}/relationships/{relationship_id}Delete account relationship
AccountsApiDeleteAccountTemplateDelete /accounts/templates/{template_id}Delete account template
AccountsApiGetAccountGet /accounts/{account_id}Get account
AccountsApiGetAccountRelationshipGet /accounts/{account_id}/relationships/{relationship_id}Get account relationship
AccountsApiGetAccountTemplateGet /accounts/templates/{template_id}Get account template
AccountsApiListAccountRelationshipGet /accounts/{account_id}/relationshipsList account relationships
AccountsApiListAccountResourceProductsGet /accounts/productsList account products
AccountsApiListAccountTemplatesGet /accounts/templatesList account templates
AccountsApiListAccountsGet /accountsList accounts
AccountsApiPatchAccountPatch /accounts/{account_id}Patch account
AccountsApiPatchAccountProductPatch /accounts/products/{product_id}Patch account product
AccountsApiUpdateAccountPut /accounts/{account_id}Update account
AccountsApiUpdateAccountRelationshipPut /accounts/{account_id}/relationships/{relationship_id}Update account relationship
AccountsApiUpdateAccountTemplatePut /accounts/templates/{template_id}Update account template
BusinessesApiCreateBusinessPost /businessesCreate a business
BusinessesApiGetBusinessGet /businesses/{business_id}Get business
BusinessesApiListBusinessesGet /businessesList business
BusinessesApiUpdateBusinessPatch /businesses/{business_id}Patch business
CardTransactionSimulationsApiSimulateAuthorizationPost /cards/transaction_simulations/authorizationSimulate authorization
CardTransactionSimulationsApiSimulateAuthorizationAdvicePost /cards/transaction_simulations/authorization/adviceSimulate authorization advice
CardTransactionSimulationsApiSimulateBalanceInquiryPost /cards/transaction_simulations/financial/balance_inquirySimulate balance inquiry
CardTransactionSimulationsApiSimulateClearingPost /cards/transaction_simulations/clearingSimulate clearing or refund
CardTransactionSimulationsApiSimulateFinancialPost /cards/transaction_simulations/financialSimulate financial
CardTransactionSimulationsApiSimulateFinancialAdvicePost /cards/transaction_simulations/financial/adviceSimulate financial advice
CardTransactionSimulationsApiSimulateOriginalCreditPost /cards/transaction_simulations/financial/original_creditSimulate OCT
CardTransactionSimulationsApiSimulateReversalPost /cards/transaction_simulations/reversalSimulate reversal
CardTransactionSimulationsApiSimulateWithdrawalPost /cards/transaction_simulations/financial/withdrawalSimulate ATM withdrawal
CardWebhookSimulationsApiSimulateCardFulfillmentEventPost /cards/{card_id}/webhook_simulations/fulfillmentSimulate Card Fulfillment Event
CardsApiActivateCardPost /cards/activateActivate a card
CardsApiCreateCardImagePost /cards/imagesCreate Card Image
CardsApiCreateGatewayPost /cards/gatewaysCreate Gateway
CardsApiGetCardGet /cards/{card_id}Get Card
CardsApiGetCardBarcodeGet /cards/{card_id}/barcodesGet Card Barcode
CardsApiGetCardImageDataGet /cards/images/{card_image_id}/dataGet Card Image Data
CardsApiGetCardImageDetailsGet /cards/images/{card_image_id}Get Card Image Details
CardsApiGetCardWidgetURLGet /cards/card_widget_urlGet card widget URL
CardsApiGetClientAccessTokenPost /cards/{card_id}/client_tokenGet a client token
CardsApiGetClientSingleUseTokenPost /cards/single_use_tokenGet single-use token
CardsApiGetGatewayGet /cards/gateways/{gateway_id}Get Gateway
CardsApiIssueCardPost /cardsIssue a Card
CardsApiListCardImageDetailsGet /cards/imagesList Card Image Details
CardsApiListCardProductsGet /cards/productsList Card Products
CardsApiListCardsGet /cardsList Cards
CardsApiListChangesGet /cards/{card_id}/changesList Card Changes
CardsApiListGatewaysGet /cards/gatewaysList Gateways
CardsApiUpdateCardPatch /cards/{card_id}Update Card
CardsApiUpdateCardImageDetailsPatch /cards/images/{card_image_id}Update Card Image Details
CardsApiUpdateGatewayPatch /cards/gateways/{gateway_id}Update Gateway
CardsApiUploadCardImageDataPost /cards/images/{card_image_id}/dataUpload Card Image
CashPickupsAlphaApiCreateCashPickupPost /cash_pickupsCreate a cash pickup
CashPickupsAlphaApiGetCashPickupGet /cash_pickups/{cash_pickup_id}Get a cash pickup
CashPickupsAlphaApiListCashPickupsGet /cash_pickupsList cash pickups
CashPickupsAlphaApiPatchCashPickupPatch /cash_pickups/{cash_pickup_id}Update a cash pickup
CustomersApiCreateCustomerPost /customersCreate a Customer
CustomersApiCreateCustomerEmploymentPost /customers/{customer_id}/employmentCreate employment record
CustomersApiCreateCustomerRiskRatingPost /customers/{customer_id}/risk_ratingsCreate customer risk rating
CustomersApiGetAllCustomerEmploymentGet /customers/{customer_id}/employmentList customer employment records
CustomersApiGetAllCustomerRiskRatingsGet /customers/{customer_id}/risk_ratingsList customer risk ratings
CustomersApiGetCustomerGet /customers/{customer_id}Get Customer
CustomersApiGetCustomerRiskRatingGet /customers/{customer_id}/risk_ratings/{risk_rating_id}Get customer risk rating
CustomersApiGetPartyEmploymentGet /customers/{customer_id}/employment/{employment_id}Get customer employment record
CustomersApiListCustomersGet /customersList Customers
CustomersApiPatchCustomerPatch /customers/{customer_id}Patch Customer
CustomersApiPrefillCustomerPost /customers/{customer_id}/prefillPrefill customer
CustomersApiUpdateCustomerPut /customers/{customer_id}Update Customer
CustomersApiUpdatePartyEmploymentPut /customers/{customer_id}/employment/{employment_id}Update customer employment record
DigitalWalletTokensApiCreateDigitalWalletApplePost /cards/{card_id}/digital_wallet_tokens/applepayCreate digital wallet token provision request for Apple Pay
DigitalWalletTokensApiCreateDigitalWalletGooglePost /cards/{card_id}/digital_wallet_tokens/googlepayCreate digital wallet token provision request for Google Pay
DigitalWalletTokensApiGetDigitalWalletTokenGet /cards/digital_wallet_tokens/{digital_wallet_token_id}Get Digital Wallet Token
DigitalWalletTokensApiListDigitalWalletTokensGet /cards/digital_wallet_tokensList Digital Wallet Tokens
DigitalWalletTokensApiUpdateDigitalWalletTokenStatusPatch /cards/digital_wallet_tokens/{digital_wallet_token_id}Update Digital Wallet Token's life cycle status
DisclosuresApiCreateDisclosurePost /disclosuresCreate disclosure record
DisclosuresApiGetDisclosureGet /disclosures/{disclosure_id}Get disclosure
DisclosuresApiListDisclosuresGet /disclosuresList disclosures
DisclosuresDeprecatedApiCreateDisclosure1Post /customers/{customer_id}/disclosuresCreate a Disclosure
DisclosuresDeprecatedApiListDisclosures1Get /customers/{customer_id}/disclosuresList Disclosures
DocumentsAlphaApiCreateDocumentPost /documentsCreate a document
DocumentsAlphaApiGetDocumentGet /documents/{document_id}Get a document
DocumentsAlphaApiGetDocumentContentsGet /documents/{document_id}/contentsGet document contents
DocumentsAlphaApiListDocumentsGet /documentsList documents
DocumentsAlphaApiUpdateDocumentPatch /documents/{document_id}Update a document
ExternalAccountsApiAddExternalAccountsPost /external_accountsAdd an external account
ExternalAccountsApiAddVendorExternalAccountsPost /external_accounts/add_vendor_accountsAdd external accounts through a vendor, such as Plaid.
ExternalAccountsApiCreateAccessTokenPost /external_accounts/access_tokensCreate a permanent access token for an external account
ExternalAccountsApiCreateVerificationLinkTokenPost /external_accounts/link_tokensCreate a link token to verify an external account
ExternalAccountsApiDeleteExternalAccountDelete /external_accounts/{external_account_id}Delete an external account
ExternalAccountsApiGetExternalAccountGet /external_accounts/{external_account_id}Get an external account
ExternalAccountsApiGetExternalAccountBalanceGet /external_accounts/{external_account_id}/balanceGet an external account balance
ExternalAccountsApiGetExternalAccountTransactionsGet /external_accounts/{external_account_id}/transactionsList transactions of a given external account
ExternalAccountsApiListExternalAccountsGet /external_accountsList external accounts
ExternalAccountsApiSyncVendorExternalAccountsPost /external_accounts/sync_vendor_accountsSync external accounts through a vendor, such as Plaid.
ExternalAccountsApiUpdateExternalAccountPatch /external_accounts/{external_account_id}Patch an external account
ExternalCardsAlphaApiCreateExternalCardFromTokenPost /external_cards/tokensCreate external card from token
ExternalCardsAlphaApiCreateExternalCardTransferPost /external_cards/transfersCreate external card transfer
ExternalCardsAlphaApiCreateExternalCardTransferReversalPost /external_cards/transfers/{transfer_id}/reversalsReverse an external card transfer
ExternalCardsAlphaApiGetExternalCardGet /external_cards/{external_card_id}Get a external card
ExternalCardsAlphaApiGetExternalCardTransferGet /external_cards/transfers/{transfer_id}Get an external card transfer
ExternalCardsAlphaApiListExternalCardTransfersGet /external_cards/transfersList external transfers
ExternalCardsAlphaApiListExternalCardsGet /external_cardsList external cards
InternalAccountsApiAddInternalAccountsPost /internal_accountsAdd internal accounts
InternalAccountsApiListInternalAccountsGet /internal_accountsList internal accounts
InternalAccountsApiPatchInternalAccountPatch /internal_accounts/{internal_account_id}Patch internal account
InternalTransferApiCreateInternalTransferPost /transactions/internal_transferCreate an internal transfer
InternalTransferApiGetInternalTransferByIDGet /transactions/internal_transfer/{id}Get an internal transfer
InternalTransferApiUpdateInternalTransferByIDPatch /transactions/internal_transfer/{id}Update an internal transfer
KYCKYBVerificationsApiCreateVerificationPost /verificationsCreate a verification
KYCKYBVerificationsApiGetVerification1Get /verifications/{verification_id}Get verification
KYCKYBVerificationsApiListVerifications1Get /verificationsList verifications
KYCKYBVerificationsApiVerifyPost /verifications/verifyVerify a customer's identity
KYCKYBVerificationsApiVerifyAdHocPost /verifications/adhocCheck if an individual is on any watchlists
KYCVerificationDeprecatedApiCreateCustomerVerificationResultPost /customers/{customer_id}/verificationsCreate a customer verification result
KYCVerificationDeprecatedApiGetVerificationGet /customers/{customer_id}/verifications/{verification_id}Get verification result
KYCVerificationDeprecatedApiListVerificationsGet /customers/{customer_id}/verificationsList verification results
KYCVerificationDeprecatedApiVerifyCustomerPost /customers/{customer_id}/verifyVerify a customer's identity
MonitoringApiCreateSubscriptionPost /monitoring/subscriptionsSubscribe a customer or business to monitoring
MonitoringApiDeleteSubscriptionDelete /monitoring/subscriptions/{subscription_id}Delete monitoring subscription
MonitoringApiGetAlertGet /monitoring/alerts/{alert_id}Retrieve a monitoring alert
MonitoringApiGetSubscriptionGet /monitoring/subscriptions/{subscription_id}Retrieve monitoring subscription
MonitoringApiListAlertsGet /monitoring/alertsList monitoring alerts
MonitoringApiListSubscriptionsGet /monitoring/subscriptionsList monitoring subscriptions
MonitoringApiUpdateAlertPatch /monitoring/alerts/{alert_id}Update a monitoring alert
PaymentSchedulesApiCreatePaymentSchedulePost /payment_schedulesCreate a payment schedule
PaymentSchedulesApiListPaymentSchedulesGet /payment_schedulesList payment schedules
PaymentSchedulesApiListPaymentsGet /payment_schedules/paymentsList payments
PaymentSchedulesApiPatchPaymentSchedulePatch /payment_schedules/{payment_schedule_id}Update a payment schedule
PersonsApiCreatePersonPost /personsCreate a person
PersonsApiGetPersonGet /persons/{person_id}Get person
PersonsApiListPersonsGet /personsList persons
PersonsApiPrefillPersonPost /persons/{person_id}/prefillPrefill person
PersonsApiUpdatePersonPatch /persons/{person_id}Update person
ReconciliationsApiCreateReconciliationPost /reconciliationsCreate a reconciliation
ReconciliationsApiGetReconciliationGet /reconciliations/{reconciliation_id}Get reconciliation
ReconciliationsApiListReconciliationsGet /reconciliationsList reconciliations
RelationshipsApiCreateRelationshipPost /relationshipsCreate a relationship
RelationshipsApiDeleteRelationshipDelete /relationships/{relationship_id}Delete relationship
RelationshipsApiGetRelationshipGet /relationships/{relationship_id}Get relationship
RelationshipsApiListRelationshipsGet /relationshipsList relationships
RelationshipsApiUpdateRelationshipPatch /relationships/{relationship_id}Update relationship
RemoteCheckDepositBetaApiCreateRdcDepositPost /rdc/depositsCreate a Remote Check Deposit
RemoteCheckDepositBetaApiGetRdcDepositGet /rdc/deposits/{deposit_id}Get Remote Check Deposit
RemoteCheckDepositBetaApiListRdcDepositsGet /rdc/depositsList Remote Check Deposits
SandboxWipeAlphaApiWipeWorkspacePost /wipeDelete data
StatementsApiGetStatementGet /statements/{statement_id}Get a statement
StatementsApiListStatementsGet /statementsList statements
TransactionsApiGetPendingTransactionByIDGet /transactions/pending/{id}Get a pending transaction
TransactionsApiGetPostedTransactionByIDGet /transactions/posted/{id}Get a posted transaction
TransactionsApiListPendingTransactionsGet /transactions/pendingList pending transactions
TransactionsApiListPostedTransactionsGet /transactions/postedList posted transactions
WatchlistDeprecatedApiGetWatchlistAlertGet /customers/{customer_id}/watchlists/alerts/{alert_id}Retrieve watchlist monitoring alert
WatchlistDeprecatedApiGetWatchlistSubscriptionGet /customers/{customer_id}/watchlists/subscriptions/{subscription_id}Retrieve watchlist monitoring subscription
WatchlistDeprecatedApiListWatchlistAlertsGet /customers/{customer_id}/watchlists/alertsList watchlist monitoring alerts for a customer
WatchlistDeprecatedApiListWatchlistSubscriptionsGet /customers/{customer_id}/watchlists/subscriptionsList watchlist monitoring subscriptions for a customer
WatchlistDeprecatedApiSuppressWatchlistEntityAlertPost /customers/{customer_id}/watchlists/suppressionsSuppress entity alert
WatchlistDeprecatedApiUpdateWatchlistAlertPut /customers/{customer_id}/watchlists/alerts/{alert_id}Update watchlist alert
WatchlistDeprecatedApiUpdateWatchlistSubscriptionPut /customers/{customer_id}/watchlists/subscriptions/{subscription_id}Update watchlist monitoring subscription
WatchlistDeprecatedApiWatchlistSubscribePost /customers/{customer_id}/watchlists/subscriptionsSubscribe a customer to watchlist monitoring
WebhooksApiCreateWebhook1Post /webhooksCreate a webhook
WebhooksApiDeleteWebhookDelete /webhooks/{webhook_id}Delete a webhook
WebhooksApiGetEventGet /webhooks/{webhook_id}/events/{event_id}Get webhook event
WebhooksApiGetWebhook1Get /webhooks/{webhook_id}Get a webhook
WebhooksApiListEventsGet /webhooks/{webhook_id}/eventsList webhook events
WebhooksApiListWebhooks1Get /webhooksList webhooks
WebhooksApiResendEventPost /webhooks/{webhook_id}/events/{event_id}/resendResend an event
WebhooksApiTriggerEventPost /webhooks/triggerTrigger an event
WebhooksApiUpdateWebhookPut /webhooks/{webhook_id}Update a webhook
WiresAlphaApiCancelWirePatch /wires/{wire_id}Cancel an outgoing wire
WiresAlphaApiCreateWirePost /wiresSend a wire
WiresAlphaApiGetWireGet /wires/{wire_id}Get a wire by id
WiresAlphaApiListWiresGet /wiresList wires

Documentation For Models

Documentation For Authorization

bearerAuth

  • Type: HTTP Bearer token authentication

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARER_TOKEN_STRING")
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author