Skip to content

acolono/php-magento-api-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Place a magento order via API

This is a sandbox module to place a order in a Magento 2 shop via api. We use it as a demo application for our OpenTrigger System.

The API examples are mostly taken from this magento.stackexchage.com entry

Video demonstration

https://www.youtube.com/watch?v=bM9SWjf4cbc

Create api key in Magento:

  • Go to: System -> Integrations -> "Add new integration"
  • Create a new Integration with sufficient permissions (e.g. set Ressource Access to "All" if you are just playing around)
  • Note down the created Access Token for usage in place-order.php

Configure place-order.php

Set valid values for $api_url, $token and $sku.

Execute order

php place-order.php

About

A sandbox repository to place a Magento 2 order via api.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages