Create Serial Number
POST
/admin/serial-numbers
const url = 'http://localhost:9000/admin/serial-numbers';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"order_id":"example","stock_lot_id":"example","value":"example","invalidated":false,"metadata":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:9000/admin/serial-numbers \ --header 'Content-Type: application/json' \ --data '{ "order_id": "example", "stock_lot_id": "example", "value": "example", "invalidated": false, "metadata": {} }'Request Body required
Section titled “Request Body required ” Media type application/json
object
order_id
required
string
stock_lot_id
required
string
value
required
string
invalidated
required
boolean
metadata
object
key
additional properties
any
Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}