Klar API
Programatically import your data into Klar via Klar API
By Michael and 3 others4 authors28 articles
Endpoints
List of endpoints available via Klar API
- API AuthenticationHow to generate your Klar API token and authenticate your requests using Bearer authentication.
- COGSUse this endpoint if COGS (Costs of Goods Sold) are coming from a non-shop system source & order data doesn't contain COGS information.
- Orders (API Endpoint)Use this endpoint if you want to import complete order payloads, including order statuses, line items, shipping and returns info in one go.
- Refunds (API Endpoint)Use this endpoint if returns are part of your orders. Order data is coming via different data source and doesn't contain returns information
- Transaction Costs (API Endpoint)Allows you to upload payment & transaction costs for orders via API
- Logistics Costs (API Endpoint)Use this endpoint to import logistics costs missing in your shop system / are coming via another system, e.g. ERP.
Object Schemas
Detailed description of the entities for the Klar API Endpoints
- COGS (object schema)Costs Of Goods Sold (COGS) object schema
- Customer (object schema)Customer object schema for Klar API
- Discount (object schema)Discount object schema for Klar API
- LineItem (object schema)LineItem object schema for order products.
- LogisticsCosts (object schema)Object Schema for the Logistics Costs endpoint of Klar API.
- OptionalIdentifiers (object schema)Object schema for Klar APi. While those attributes are optional, they are very useful in linking up the order data with your marketing data.
- Order (object schema)The Order object — field definitions, types, and example values for the Klar REST API.
- Refund (object schema)Object schema for Klar API.
- RefundedLineItem (object schema)Refunded products object schema.
- Shipping (object schema)Shipping object schema for shipping revenue, costs, address, tax and shipping discount info
- Tax (object schema)Object schema for Klar API.
- Transaction Costs (object schema)Object Schema for the Transaction Costs endpoint of Klar API.
Examples
Example calls for the Klar API endpoints
