Skip to content

Hermsi1337/go-magento2

Repository files navigation

Lint Compile & Test Maintainability Donate

go-magento2

A Golang package for communicating with the magento2 api. (tested with >=2.1.0)

I initially built this package because I need it for a project I'm currently working on.
For the start, I will add further features upon my need.

If you need a feature which is not implemented yet, feel free to open a pull request.


⚠️ ⚠️ COMPATIBILITY NOTICE ⚠️ ⚠️

This package is still in development-state.
While I'm trying to ensure 100% backwards-compatibility, there might be breaking changes in minor- or patch-level updates.


Features

  • Guest api
    • guest-carts
      • add items
      • get available shipping carrier
      • add shipping information (billing- and shipping-address)
      • get available payment methods
      • add payment method
      • place order
  • Registered customer api
    • cart
      • add items
      • get available shipping carrier
      • add shipping information (billing- and shipping-address)
      • get available payment methods
      • add payment method
      • place order
  • Administrator / Integration
    • cart
      • all features from guest- and customer-api
    • order
      • add comment to order
    • products
      • create new product
        • configurable products
          • assign simple products
        • simple products
      • create attributes
      • create attribute-set
        • assign attributes to attribute-set

Examples

See examples-directory.