wm21w/sage 1.0.1

Wm21w Sage

Type

magento2-module

License

OSL-3.0, AFL-3.0

Requires
Requires (dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Set in Magento Sage Order ID

Assign Sage OrderID with Magento 2 OrderID

Get Admin token

Endpoint

POST http://{{host}}/rest/default/V1/integration/admin/token

Headers

Content-Type: application/json Authorization: Bearer {{token}}

Payload { "username": "{{admin username}}", "password": "{{admin password}}" }

Set SageOrderId

PUT http://{{host}}/rest/V1/sage/{{order IncrementId}}

BODY: { "entity":{"sage_order_id":"Sage Order ID ex: 10203004304"}}

Get SageOrderId

GET http://{{host}}/rest/V1/sage/{{order IncrementId}}