@@ -6,7 +6,7 @@ Please see [our docs](https://www.shipengine.com/docs/labels/create-from-rate/)
66
77Input Parameters
88----------------
9- The ` create_label_from_rate ` method accepts a valid ` rate_id ` and a dictionary of label params that
9+ The ` create_label_from_rate_id ` method accepts a valid ` rate_id ` and a dictionary of label params that
1010will dictate the label display and level of verification.
1111``` python
1212params = {
@@ -20,7 +20,7 @@ params = {
2020
2121Output
2222------
23- The ` create_label_from_rate ` method returns a shipping label that corresponds to the
23+ The ` create_label_from_rate_id ` method returns a shipping label that corresponds to the
2424shipping and rate details encapsulated in the ` rate_id ` passed in.
2525
2626Example:
@@ -33,7 +33,7 @@ from shipengine import ShipEngine
3333from shipengine.errors import ShipEngineError
3434
3535
36- def create_label_from_rate_demo ():
36+ def create_label_from_rate_id_demo ():
3737 api_key = os.getenv(" SHIPENGINE_API_KEY" )
3838
3939 shipengine = ShipEngine(
@@ -48,19 +48,22 @@ def create_label_from_rate_demo():
4848 " label_download_type" : " url" ,
4949 " display_scheme" : " label" ,
5050 }
51- result = shipengine.create_label_from_rate_id (
51+ result = shipengine.create_label_from_rate_id_id (
5252 rate_id = " se-799373193" , params = params
5353 )
5454 print (" ::SUCCESS::" )
5555 p.pprint(result)
5656 except ShipEngineError as err:
5757 print (" ::ERROR::" )
5858 print (err.to_json())
59+
60+
61+ create_label_from_rate_id_demo()
5962```
6063
6164Example Output:
6265===============
63- - Successful ` create_label_from_rate ()` result.
66+ - Successful ` create_label_from_rate_id ()` result.
6467``` python
6568{
6669 " batch_id" : " " ,
0 commit comments