All URIs are relative to https://api.rekki.com/api
Method | HTTP request | Description |
---|---|---|
DeleteCatalogItem | Delete /integration/v1/catalog/items/{id} | Delete an item from catalog |
DeleteCatalogItemsV3 | Post /integration/v3/catalog/items/delete | Delete items from catalog |
GetCatalogItem | Get /integration/v1/catalog/items/{id} | Lists all orders placed for the supplier that were placed through REKKI. |
GetCatalogItemV3 | Get /integration/v3/catalog/items/{id} | Fetch a specific catalog item by its Id. |
GetCatalogItems | Get /integration/v1/catalog/items | Get catalog items for authenticated supplier |
GetCatalogItemsV3 | Get /integration/v3/catalog/items | Get catalog items for authenticated supplier |
ReplaceCatalog | Post /integration/v1/catalog/replace | Drop all existing items from the catalog and upload new ones |
ReplaceCatalogV3 | Post /integration/v3/catalog/replace | Drop all existing items from the catalog and upload new ones |
UpdateCatalogItem | Post /integration/v1/catalog/items | Creates or Updates an item on your catalog. If item with this product_code already exists, you can update this item. Item is looked up by product code |
UpdateCatalogItemAvailability | Post /integration/v2/catalog/items/availability | Update availability status for one of the items in the catalog |
UpdateCatalogItemAvailabilityV3 | Post /integration/v3/catalog/items/availability | Update availability status for one of the items in the catalog |
UpdateCatalogItemsV3 | Post /integration/v3/catalog/items | Creates or Updates multiple items on your catalog. If item with this product_code already exists, you can update this item. Item is looked up by product code |
MainSuccessConfirmation DeleteCatalogItem(ctx, id).XREKKIAuthorizationType(xREKKIAuthorizationType).Execute()
Delete an item from catalog
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xREKKIAuthorizationType := "xREKKIAuthorizationType_example" // string | Required header
id := "id_example" // string | ID of the item to retrieve. Item IDs are discoverable when listing items.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CatalogApi.DeleteCatalogItem(context.Background(), xREKKIAuthorizationType, id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogApi.DeleteCatalogItem``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteCatalogItem`: MainSuccessConfirmation
fmt.Fprintf(os.Stdout, "Response from `CatalogApi.DeleteCatalogItem`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | ID of the item to retrieve. Item IDs are discoverable when listing items. |
Other parameters are passed through a pointer to a apiDeleteCatalogItemRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xREKKIAuthorizationType | string | Required header |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V3SuccessConfirmation DeleteCatalogItemsV3(ctx).XREKKIAuthorizationType(xREKKIAuthorizationType).Input(input).Execute()
Delete items from catalog
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xREKKIAuthorizationType := "xREKKIAuthorizationType_example" // string | Required header
input := openapiclient.v3.DeleteCatalogItemsInput{Items: []int32{123)} // V3DeleteCatalogItemsInput | Payload
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CatalogApi.DeleteCatalogItemsV3(context.Background(), xREKKIAuthorizationType, input).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogApi.DeleteCatalogItemsV3``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteCatalogItemsV3`: V3SuccessConfirmation
fmt.Fprintf(os.Stdout, "Response from `CatalogApi.DeleteCatalogItemsV3`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiDeleteCatalogItemsV3Request struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xREKKIAuthorizationType | string | Required header | |
input | V3DeleteCatalogItemsInput | Payload |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MainAPISupplierCatalogItem GetCatalogItem(ctx, id).XREKKIAuthorizationType(xREKKIAuthorizationType).Execute()
Lists all orders placed for the supplier that were placed through REKKI.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xREKKIAuthorizationType := "xREKKIAuthorizationType_example" // string | Required header
id := "id_example" // string | ID of the item to retrieve. Item IDs are discoverable when listing items.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CatalogApi.GetCatalogItem(context.Background(), xREKKIAuthorizationType, id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogApi.GetCatalogItem``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCatalogItem`: MainAPISupplierCatalogItem
fmt.Fprintf(os.Stdout, "Response from `CatalogApi.GetCatalogItem`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | ID of the item to retrieve. Item IDs are discoverable when listing items. |
Other parameters are passed through a pointer to a apiGetCatalogItemRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xREKKIAuthorizationType | string | Required header |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V3APISupplierCatalogItem GetCatalogItemV3(ctx, id).XREKKIAuthorizationType(xREKKIAuthorizationType).Execute()
Fetch a specific catalog item by its Id.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xREKKIAuthorizationType := "xREKKIAuthorizationType_example" // string | Required header
id := "id_example" // string | ID of the item to retrieve. Item IDs are discoverable when listing items.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CatalogApi.GetCatalogItemV3(context.Background(), xREKKIAuthorizationType, id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogApi.GetCatalogItemV3``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCatalogItemV3`: V3APISupplierCatalogItem
fmt.Fprintf(os.Stdout, "Response from `CatalogApi.GetCatalogItemV3`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | ID of the item to retrieve. Item IDs are discoverable when listing items. |
Other parameters are passed through a pointer to a apiGetCatalogItemV3Request struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xREKKIAuthorizationType | string | Required header |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MainCatalogItems GetCatalogItems(ctx).XREKKIAuthorizationType(xREKKIAuthorizationType).Execute()
Get catalog items for authenticated supplier
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xREKKIAuthorizationType := "xREKKIAuthorizationType_example" // string | Required header
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CatalogApi.GetCatalogItems(context.Background(), xREKKIAuthorizationType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogApi.GetCatalogItems``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCatalogItems`: MainCatalogItems
fmt.Fprintf(os.Stdout, "Response from `CatalogApi.GetCatalogItems`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetCatalogItemsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xREKKIAuthorizationType | string | Required header |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V3CatalogItems GetCatalogItemsV3(ctx).XREKKIAuthorizationType(xREKKIAuthorizationType).Execute()
Get catalog items for authenticated supplier
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xREKKIAuthorizationType := "xREKKIAuthorizationType_example" // string | Required header
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CatalogApi.GetCatalogItemsV3(context.Background(), xREKKIAuthorizationType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogApi.GetCatalogItemsV3``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCatalogItemsV3`: V3CatalogItems
fmt.Fprintf(os.Stdout, "Response from `CatalogApi.GetCatalogItemsV3`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetCatalogItemsV3Request struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xREKKIAuthorizationType | string | Required header |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MainSuccessConfirmation ReplaceCatalog(ctx).XREKKIAuthorizationType(xREKKIAuthorizationType).Input(input).Execute()
Drop all existing items from the catalog and upload new ones
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xREKKIAuthorizationType := "xREKKIAuthorizationType_example" // string | Required header
input := openapiclient.main.ReplaceCatalogInput{Data: []MainAPISupplierCatalogItem{openapiclient.main.APISupplierCatalogItem{Allergens: []CatalogAllergen{openapiclient.catalog.Allergen{Symptoms: []string{"Symptoms_example"), Type: "Type_example"}), Availability: "Availability_example", Currency: "Currency_example", Description: "Description_example", Id: 123, Name: "Name_example", OrderCutoffTimes: openapiclient.catalog.OrderCutoffTimes{Fri: 123, Mon: 123, Thu: 123, Tue: 123, Wed: 123}, ProductCode: "ProductCode_example", ReplacementProducts: []string{"ReplacementProducts_example"), Seasonality: []CatalogSeasonality{openapiclient.catalog.Seasonality{EndDate: "EndDate_example", StartDate: "StartDate_example"}), UnitsPrices: []MainAPISupplierCatalogUnit{openapiclient.main.APISupplierCatalogUnit{PriceCents: 123, StockCount: 123, Unit: "Unit_example"})})} // MainReplaceCatalogInput | Payload
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CatalogApi.ReplaceCatalog(context.Background(), xREKKIAuthorizationType, input).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogApi.ReplaceCatalog``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReplaceCatalog`: MainSuccessConfirmation
fmt.Fprintf(os.Stdout, "Response from `CatalogApi.ReplaceCatalog`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiReplaceCatalogRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xREKKIAuthorizationType | string | Required header | |
input | MainReplaceCatalogInput | Payload |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V3SuccessConfirmation ReplaceCatalogV3(ctx).XREKKIAuthorizationType(xREKKIAuthorizationType).Input(input).Execute()
Drop all existing items from the catalog and upload new ones
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xREKKIAuthorizationType := "xREKKIAuthorizationType_example" // string | Required header
input := openapiclient.v3.ReplaceCatalogInput{Data: []V3APISupplierCatalogItem{openapiclient.v3.APISupplierCatalogItem{Allergens: []V3Allergens{openapiclient.v3.Allergens{Symptoms: []string{"Symptoms_example"), Type: "Type_example"}), Availability: "Availability_example", Currency: "Currency_example", Description: "Description_example", Id: 123, Name: "Name_example", OrderCutoffTimes: openapiclient.v3.OrderCutoffTimes{Fri: 123, Mon: 123, Thu: 123, Tue: 123, Wed: 123}, ProductCode: "ProductCode_example", ReplacementProducts: []string{"ReplacementProducts_example"), Seasonality: []V3Seasonality{openapiclient.v3.Seasonality{EndDate: "EndDate_example", StartDate: "StartDate_example"}), UnitsPrices: []V3APISupplierCatalogUnit{openapiclient.v3.APISupplierCatalogUnit{PriceCents: 123, StockCount: 123, Unit: "Unit_example"})})} // V3ReplaceCatalogInput | Payload
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CatalogApi.ReplaceCatalogV3(context.Background(), xREKKIAuthorizationType, input).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogApi.ReplaceCatalogV3``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReplaceCatalogV3`: V3SuccessConfirmation
fmt.Fprintf(os.Stdout, "Response from `CatalogApi.ReplaceCatalogV3`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiReplaceCatalogV3Request struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xREKKIAuthorizationType | string | Required header | |
input | V3ReplaceCatalogInput | Payload |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MainAPISupplierCatalogItem UpdateCatalogItem(ctx).XREKKIAuthorizationType(xREKKIAuthorizationType).Input(input).Execute()
Creates or Updates an item on your catalog. If item with this product_code already exists, you can update this item. Item is looked up by product code
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xREKKIAuthorizationType := "xREKKIAuthorizationType_example" // string | Required header
input := openapiclient.main.APISupplierCatalogItem{Allergens: []CatalogAllergen{openapiclient.catalog.Allergen{Symptoms: []string{"Symptoms_example"), Type: "Type_example"}), Availability: "Availability_example", Currency: "Currency_example", Description: "Description_example", Id: 123, Name: "Name_example", OrderCutoffTimes: openapiclient.catalog.OrderCutoffTimes{Fri: 123, Mon: 123, Thu: 123, Tue: 123, Wed: 123}, ProductCode: "ProductCode_example", ReplacementProducts: []string{"ReplacementProducts_example"), Seasonality: []CatalogSeasonality{openapiclient.catalog.Seasonality{EndDate: "EndDate_example", StartDate: "StartDate_example"}), UnitsPrices: []MainAPISupplierCatalogUnit{openapiclient.main.APISupplierCatalogUnit{PriceCents: 123, StockCount: 123, Unit: "Unit_example"})} // MainAPISupplierCatalogItem | Payload
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CatalogApi.UpdateCatalogItem(context.Background(), xREKKIAuthorizationType, input).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogApi.UpdateCatalogItem``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateCatalogItem`: MainAPISupplierCatalogItem
fmt.Fprintf(os.Stdout, "Response from `CatalogApi.UpdateCatalogItem`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiUpdateCatalogItemRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xREKKIAuthorizationType | string | Required header | |
input | MainAPISupplierCatalogItem | Payload |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MainUpdateSuccess UpdateCatalogItemAvailability(ctx).XREKKIAuthorizationType(xREKKIAuthorizationType).Input(input).Execute()
Update availability status for one of the items in the catalog
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xREKKIAuthorizationType := "xREKKIAuthorizationType_example" // string | Required header
input := openapiclient.main.SetStockStatusInput{Items: []MainStockItemState{openapiclient.main.StockItemState{Availability: "Availability_example", ProductCode: "ProductCode_example"})} // MainSetStockStatusInput | Payload
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CatalogApi.UpdateCatalogItemAvailability(context.Background(), xREKKIAuthorizationType, input).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogApi.UpdateCatalogItemAvailability``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateCatalogItemAvailability`: MainUpdateSuccess
fmt.Fprintf(os.Stdout, "Response from `CatalogApi.UpdateCatalogItemAvailability`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiUpdateCatalogItemAvailabilityRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xREKKIAuthorizationType | string | Required header | |
input | MainSetStockStatusInput | Payload |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V3UpdateSuccess UpdateCatalogItemAvailabilityV3(ctx).XREKKIAuthorizationType(xREKKIAuthorizationType).Input(input).Execute()
Update availability status for one of the items in the catalog
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xREKKIAuthorizationType := "xREKKIAuthorizationType_example" // string | Required header
input := openapiclient.v3.SetStockStatusInput{Items: []V3StockItemState{openapiclient.v3.StockItemState{Availability: "Availability_example", ProductCode: "ProductCode_example"})} // V3SetStockStatusInput | Payload
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CatalogApi.UpdateCatalogItemAvailabilityV3(context.Background(), xREKKIAuthorizationType, input).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogApi.UpdateCatalogItemAvailabilityV3``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateCatalogItemAvailabilityV3`: V3UpdateSuccess
fmt.Fprintf(os.Stdout, "Response from `CatalogApi.UpdateCatalogItemAvailabilityV3`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiUpdateCatalogItemAvailabilityV3Request struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xREKKIAuthorizationType | string | Required header | |
input | V3SetStockStatusInput | Payload |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V3CatalogItems UpdateCatalogItemsV3(ctx).XREKKIAuthorizationType(xREKKIAuthorizationType).Input(input).Execute()
Creates or Updates multiple items on your catalog. If item with this product_code already exists, you can update this item. Item is looked up by product code
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xREKKIAuthorizationType := "xREKKIAuthorizationType_example" // string | Required header
input := openapiclient.v3.UpdateCatalogInput{Data: []V3APISupplierCatalogItem{openapiclient.v3.APISupplierCatalogItem{Allergens: []V3Allergens{openapiclient.v3.Allergens{Symptoms: []string{"Symptoms_example"), Type: "Type_example"}), Availability: "Availability_example", Currency: "Currency_example", Description: "Description_example", Id: 123, Name: "Name_example", OrderCutoffTimes: openapiclient.v3.OrderCutoffTimes{Fri: 123, Mon: 123, Thu: 123, Tue: 123, Wed: 123}, ProductCode: "ProductCode_example", ReplacementProducts: []string{"ReplacementProducts_example"), Seasonality: []V3Seasonality{openapiclient.v3.Seasonality{EndDate: "EndDate_example", StartDate: "StartDate_example"}), UnitsPrices: []V3APISupplierCatalogUnit{openapiclient.v3.APISupplierCatalogUnit{PriceCents: 123, StockCount: 123, Unit: "Unit_example"})})} // V3UpdateCatalogInput | Payload
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CatalogApi.UpdateCatalogItemsV3(context.Background(), xREKKIAuthorizationType, input).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogApi.UpdateCatalogItemsV3``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateCatalogItemsV3`: V3CatalogItems
fmt.Fprintf(os.Stdout, "Response from `CatalogApi.UpdateCatalogItemsV3`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiUpdateCatalogItemsV3Request struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xREKKIAuthorizationType | string | Required header | |
input | V3UpdateCatalogInput | Payload |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]