Files
speakeasy-playground/docs/sdks/manifests
Mike Lueders 14c449163c generate sdk
2024-03-01 12:52:50 -06:00
..
2024-03-01 12:52:50 -06:00

Manifests

(manifests)

Overview

A manifest is a single-page document with a barcode that carriers can scan to accept all packages into transit without the need to scan each item individually. They are close-outs of shipping labels of a certain day. Some carriers require manifests to process the shipments.

Manifest Errors

The following codes and messages are the possible errors that may occur when creating Manifests.

Available Operations

list_manifests

Returns a list of all manifest objects.

Example Usage

import shippo

s = shippo.Shippo(
    api_key_header="<YOUR_API_KEY_HERE>",
)


res = s.manifests.list_manifests(page=1, results=25, shippo_api_version='<value>')

if res.manifest_list_wrapper is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
page Optional[int] The page number you want to select
results Optional[int] The number of results to return per page (max 100)
shippo_api_version Optional[str] String used to pick a non-default API version to use

Response

operations.ListManifestsResponse

Errors

Error Object Status Code Content Type
errors.SDKError 4x-5xx /

create_manifest

Creates a new manifest object.

Example Usage

import shippo
from shippo.models import components

s = shippo.Shippo(
    api_key_header="<YOUR_API_KEY_HERE>",
)


res = s.manifests.create_manifest(shippo_api_version='<value>', manifest_create_request=components.ManifestCreateRequest(
    carrier_account='adcfdddf8ec64b84ad22772bce3ea37a',
    shipment_date='2014-05-16T23:59:59Z',
    address_from=components.AddressCreateRequest(
        country='US',
        name='Shwan Ippotle',
        company='Shippo',
        street1='215 Clayton St.',
        street3='',
        street_no='',
        city='San Francisco',
        state='CA',
        zip='94117',
        phone='+1 555 341 9393',
        email='shippotle@shippo.com',
        is_residential=True,
        metadata='Customer ID 123456',
        validate=True,
    ),
    transactions=[
        'adcfdddf8ec64b84ad22772bce3ea37a',
    ],
))

if res.manifest is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
shippo_api_version Optional[str] String used to pick a non-default API version to use
manifest_create_request Optional[components.ManifestCreateRequest] Manifest details and contact info.

Response

operations.CreateManifestResponse

Errors

Error Object Status Code Content Type
errors.SDKError 4x-5xx /

get_manifest

Returns an existing manifest using an object ID.

Example Usage

import shippo

s = shippo.Shippo(
    api_key_header="<YOUR_API_KEY_HERE>",
)


res = s.manifests.get_manifest(manifest_id='<value>', shippo_api_version='<value>')

if res.manifest is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
manifest_id str ✔️ Object ID of the manifest to update
shippo_api_version Optional[str] String used to pick a non-default API version to use

Response

operations.GetManifestResponse

Errors

Error Object Status Code Content Type
errors.SDKError 4x-5xx /