(Manifests)
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.
The following codes and messages are the possible errors that may occur when creating Manifests.
Returns a list of all manifest objects.
using Shippo;
using Shippo.Models.Requests;
using Shippo.Models.Components;
var sdk = new ShippoSDK(
apiKeyHeader: "<YOUR_API_KEY_HERE>",
shippoApiVersion: "2018-02-08"
);
var res = await sdk.Manifests.ListAsync(
page: 1,
results: 5,
shippoApiVersion: "2018-02-08"
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Page |
long | ➖ | The page number you want to select | |
Results |
long | ➖ | The number of results to return per page (max 100, default 5) | |
ShippoApiVersion |
string | ➖ | Optional string used to pick a non-default API version to use. See our API version guide. | 2018-02-08 |
Error Type | Status Code | Content Type |
---|---|---|
Shippo.Models.Errors.SDKException | 4XX, 5XX | */* |
Creates a new manifest object.
using Shippo;
using Shippo.Models.Requests;
using Shippo.Models.Components;
using System.Collections.Generic;
var sdk = new ShippoSDK(
apiKeyHeader: "<YOUR_API_KEY_HERE>",
shippoApiVersion: "2018-02-08"
);
var res = await sdk.Manifests.CreateAsync(
manifestCreateRequest: new ManifestCreateRequest() {
CarrierAccount = "adcfdddf8ec64b84ad22772bce3ea37a",
ShipmentDate = "2014-05-16T23:59:59Z",
Transactions = new List<string>() {
"adcfdddf8ec64b84ad22772bce3ea37a",
},
AddressFrom = ManifestCreateRequestAddressFrom.CreateAddressCreateRequest(
new AddressCreateRequest() {
Name = "Shwan Ippotle",
Company = "Shippo",
Street1 = "215 Clayton St.",
Street3 = "",
StreetNo = "",
City = "San Francisco",
State = "CA",
Zip = "94117",
Country = "US",
Phone = "+1 555 341 9393",
Email = "[email protected]",
IsResidential = true,
Metadata = "Customer ID 123456",
Validate = true,
}
),
},
shippoApiVersion: "2018-02-08"
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ManifestCreateRequest |
ManifestCreateRequest | ✔️ | Manifest details and contact info. | |
ShippoApiVersion |
string | ➖ | Optional string used to pick a non-default API version to use. See our API version guide. | 2018-02-08 |
Error Type | Status Code | Content Type |
---|---|---|
Shippo.Models.Errors.SDKException | 4XX, 5XX | */* |
Returns an existing manifest using an object ID.
using Shippo;
using Shippo.Models.Requests;
using Shippo.Models.Components;
var sdk = new ShippoSDK(
apiKeyHeader: "<YOUR_API_KEY_HERE>",
shippoApiVersion: "2018-02-08"
);
var res = await sdk.Manifests.GetAsync(
manifestId: "<id>",
shippoApiVersion: "2018-02-08"
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ManifestId |
string | ✔️ | Object ID of the manifest to update | |
ShippoApiVersion |
string | ➖ | Optional string used to pick a non-default API version to use. See our API version guide. | 2018-02-08 |
Error Type | Status Code | Content Type |
---|---|---|
Shippo.Models.Errors.SDKException | 4XX, 5XX | */* |