Skip to navigation

v1.0.27

This release includes breaking changes. It corrects the organization details types to match the API, renames the ticket amount fields on paypoint credentials, and adds an organizations client for the intelligent boarding API (beta). See October 20, 2026 and October 22, 2026 and October 27, 2026 for more information.

Basic organization details return a response envelope

Organization.GetBasicOrganization and Organization.GetBasicOrganizationById now return *payabli.GetBasicOrganizationResponse instead of *payabli.OrganizationQueryRecord. The organization details are in ResponseData, alongside IsSuccess and ResponseText.

// Before
org, err := c.Organization.GetBasicOrganization(ctx, "my-org")
// After
basic, err := c.Organization.GetBasicOrganization(ctx, "my-org")
if err != nil {
return err
}
org := basic.GetResponseData()

Organization details types match the API

OrganizationQueryRecord changes these field types, and their Get and Set methods:

  • BillingInfo is now *InstrumentResponse instead of *Instrument. InstrumentResponse has AchAccount, AchRouting, BillingAddress, BillingCity, BillingCountry, BillingState, and BillingZip (*string).
  • Contacts is now []*ContactsResponse instead of *ContactsField. ContactsResponse has ContactName, ContactEmail, ContactTitle, and ContactPhone.
  • OrgLogo is now *string, the logo’s URL, instead of *FileContent.

It also adds OrgFavicon (*string), the URL of the organization’s favicon. The field names are unchanged, but their JSON tags now match the PascalCase names the API returns, such as OrgId and BillingInfo.

Ticket amount fields renamed

PayabliCredentialsPascal renames MaxTicket to Maxticket and MinTicket to Minticket, along with their Get methods.

// Before
fmt.Println(credentials.GetMaxTicket(), credentials.GetMinTicket())
// After
fmt.Println(credentials.GetMaxticket(), credentials.GetMinticket())

Organizations client (beta)

The client adds Organizations, with ListOrganizations, CreateOrganization, GetOrganization, and UpdateOrganization. CreateOrganization takes *payabli.CreateOrganizationOrganizationsRequest, which holds one of CreateOrganizationWithInlineBusiness, CreateOrganizationWithBusinessReference, or CreateOrganizationAllFields. The methods return envelope types, such as *payabli.PaypointDetailEnvelope.

These endpoints only accept OAuth. Create the client with option.WithClientCredentials and your OAuth client ID and client secret. See OAuth authentication.

detail, err := c.Organizations.GetOrganization(ctx, "org-reference")

Other changes

  • MethodsListOut adds Rtp and Wire (*bool).
  • PaypointSummaryResponse adds ExternalId (*string).