Set in Magento Sage Order ID
Assign Sage OrderID with Magento 2 OrderID, (*1)
Get Admin token
Endpoint, (*2)
POST http://{{host}}/rest/default/V1/integration/admin/token, (*3)
Headers, (*4)
Content-Type: application/json
Authorization: Bearer {{token}}, (*5)
Payload
{
"username": "{{admin username}}",
"password": "{{admin password}}"
}, (*6)
Set SageOrderId
PUT http://{{host}}/rest/V1/sage/{{order IncrementId}}, (*7)
BODY:
{ "entity":{"sage_order_id":"Sage Order ID ex: 10203004304"}}, (*8)
Get SageOrderId
GET http://{{host}}/rest/V1/sage/{{order IncrementId}}, (*9)