Skip to content

Command: order.generateOrderNumberByPrefix

Back to Index

Generates an order number for an order based on the given prefix

Body
prefixstring

Examples

Create order with custom order number
POST https://<hantera-hostname>/resources/actors/order/new
Authorization: Bearer <YOUR TOKEN>
Content-Type: application/json
[{
"type": "create",
"body": {
"commands": [{
"type": "generateOrderNumberByPrefix",
"prefix": "B2C"
}
]
}
}]
Back to Index