Calculate shipping rate with draft order api

There is also another option. Use this code snippet:

“shipping_line”: {
“custom”:“true”,
“title”:“Fedex”,
“price”:“12.99”
}