0.37.0 • Published 7 months ago

@codat/commerce v0.37.0

Weekly downloads
-
License
-
Repository
github
Last release
7 months ago

Commerce

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

NPM

npm add @codat/commerce

Yarn

yarn add @codat/commerce

Example Usage

import { CodatCommerce } from "@codat/commerce";

(async () => {
    const sdk = new CodatCommerce({
        security: {
            authHeader: "Basic BASE_64_ENCODED(API_KEY)",
        },
    });

    const res = await sdk.companyInfo.get({
        companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
        connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
    });

    if (res.statusCode == 200) {
        // 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

payments

products

taxComponents

  • get - Get tax component
  • list - List tax components

transactions

  • get - Get transaction
  • list - List transactions

Library generated by Speakeasy

0.37.0

7 months ago

0.36.0

8 months ago

0.35.0

8 months ago

0.33.0

9 months ago

0.32.1

11 months ago

0.26.1

11 months ago

0.24.2

12 months ago

0.22.1

12 months ago

0.19.1

1 year ago

0.14.3

1 year ago

0.18.0

1 year ago

0.12.2

1 year ago

0.12.1

1 year ago

0.12.0

1 year ago

0.11.0

1 year ago