8. CHECKOUT
Module: checkout
Checkout
Bases: MEBase
A factory for a Checkout class.
This class provides methods for managing checkouts of shipments in the MelhorEnvio API.
| METHOD | DESCRIPTION |
|---|---|
create |
Create a checkout of the current shipment. |
create(body: dict) -> dict
Create a checkout of the current shipment .
This method allows you to create a checkout for the current shipment using the MelhorEnvio API.
Usage:
| PARAMETER | DESCRIPTION |
|---|---|
body |
A dictionary containing information about the shipment to be checked out.
TYPE:
|
| RAISES | DESCRIPTION |
|---|---|
ValueError
|
If the provided request body is not a dictionary. |
| RETURNS | DESCRIPTION |
|---|---|
dict
|
A dictionary containing information about the created checkout.
TYPE:
|