Generates an order number for an order based on the given prefix
prefix
POST https://<hantera-hostname>/resources/actors/order/newAuthorization: Bearer <YOUR TOKEN>Content-Type: application/json [{ "type": "create", "body": { "commands": [{ "type": "generateOrderNumberByPrefix", "prefix": "B2C" } ] }}]
curl -i -X POST \ https://<hantera-hostname>/resources/actors/order/new \ -H 'Authorization: Bearer <YOUR TOKEN>' \ -H 'Content-Type: application/json' \ -d '[{ "type": "create", "body": { "commands": [{ "type": "generateOrderNumberByPrefix", "prefix": "B2C" } ] }}]'
Invoke-WebRequest `-Uri "https://<hantera-hostname>/resources/actors/order/new" `-Method POST ` `-Headers @{Authorization="Bearer <YOUR TOKEN>"; 'Content-Type'="application/json"}-Body '[{ "type": "create", "body": { "commands": [{ "type": "generateOrderNumberByPrefix", "prefix": "B2C" } ] }}]'