Class Batch
Class representing an EasyPost batch.
Inherited Members
Namespace: EasyPost.Models.API
Assembly: EasyPost.dll
Syntax
public class Batch : EasyPostObject, IEasyPostObject, IBatchParameter, IParameter
Properties
| Improve this Doc View SourceError
Potential error encountered while processing the batch.
Declaration
public string? Error { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
LabelUrl
The URL of the label image.
Declaration
public string? LabelUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
Message
A human-readable message for any errors that occurred during the batch's life cycle.
Declaration
public string? Message { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
NumShipments
The number of shipments in the batch.
Declaration
public int? NumShipments { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Reference
An optional field that may be used in place of ID in some API endpoints.
Declaration
public string? Reference { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
ScanForm
The ScanForm associated with the batch.
Declaration
public ScanForm ScanForm { get; set; }
Property Value
| Type | Description |
|---|---|
| ScanForm |
Shipments
The BatchShipments associated with the batch.
Declaration
public List<BatchShipment>? Shipments { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<List<BatchShipment>> |
State
The current state of the batch. Possible values include: "creating", "creation_failed", "created", "purchasing", "purchase_failed", "purchased", "label_generating" and "label_generated".
Declaration
public string? State { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
Status
A dictionary of BatchShipment statuses and their counts. Valid statuses are:
- "postage_purchased"
- "postage_purchase_failed"
- "queued_for_purchase"
- "creation_failed"
Declaration
public Dictionary<string, int>? Status { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<Dictionary<System.String, System.Int32>> |