Categorygithub.com/codatio/client-sdk-go/commerce
package
0.23.1
Repository: https://github.com/codatio/client-sdk-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Commerce API

Codat's Commerce API enables you to pull up-date-date commerce data from several leading payments, point-of-sale, and eCommerce systems. You can view your SMB customers' products, orders, payments, payouts, disputes, and more - all standardized to our Commerce data model.

SDK Installation

go get github.com/codatio/client-sdk-go/commerce

SDK Example Usage

package main

import(
	"context"
	"log"
	"github.com/codatio/client-sdk-go/commerce"
	"github.com/codatio/client-sdk-go/commerce/pkg/models/operations"
)

func main() {
    s := codatcommerce.New(
        codatcommerce.WithSecurity(shared.Security{
            AuthHeader: "Basic BASE_64_ENCODED(API_KEY)",
        }),
    )

    ctx := context.Background()
    res, err := s.CompanyInfo.Get(ctx, operations.GetCompanyInfoRequest{
        CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002",
        ConnectionID: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
    })
    if err != nil {
        log.Fatal(err)
    }

    if res.CompanyInfo != nil {
        // handle response
    }
}

Available Resources and Operations

CompanyInfo

  • Get - Get company info

Customers

  • Get - Get customer
  • List - List customers

Disputes

  • Get - Get dispute
  • List - List disputes

Locations

  • Get - Get location
  • List - List locations

Orders

  • Get - Get order
  • List - List orders

Payments

Products

TaxComponents

  • Get - Get tax component
  • List - List tax components

Transactions

  • Get - Get transaction
  • List - List transactions

SDK Generated by Speakeasy