ebay.logistics
Module ebay.logistics
API
Definitions
ballerinax/ebay.logistics Ballerina library
Overview
The eBay logistics API v1_beta.0.0 connector(https://developer.ebay.com/api-docs/sell/logistics/static/overview.html) OpenAPI Specification.
This is an API available only to select developers approved by business units.The Logistics API resources offer the following capabilities: shipping_quote Consolidates into a list a set of live shipping rates, or quotes, from which you can select a rate to ship a package. shipment creates a "shipment" for the selected shipping rate. Call createShippingQuote to get a list of live shipping rates. The rates returned are all valid for a specific time window and all quoted prices are at eBay-negotiated rates. Select one of the live rates and using its associated rateId, create a "shipment" for the package by calling createFromShippingQuote. Creating a shipment completes an agreement, and the cost of the base service and any added shipping options are summed into the returned totalShippingCost value. This action also generates a shipping label that you can use to ship the package. The total cost of the shipment is incurred when the package is shipped using the supplied shipping label. Sellers must set up a payment method via their eBay account before they can use the methods in this API to create a shipment and the associated shipping label.
Key Features
- Programmatic access to create and manage resources via REST API
- Handle payments, billing, and financial transactions
- Manage user accounts and profiles
- Secure authentication with API key or OAuth support
Prerequisites
Before using this connector in your Ballerina application, complete the following:
- Create an eBay developer account
- Obtain tokens
- Follow this link to obtain tokens
Clients
ebay.logistics: Client
This is a generated connector for eBay logistics API v1_beta.0.0 OpenAPI Specification. This is an API available only to select developers approved by business units.The Logistics API resources offer the following capabilities: shipping_quote Consolidates into a list a set of live shipping rates, or quotes, from which you can select a rate to ship a package. shipment creates a "shipment" for the selected shipping rate. Call createShippingQuote to get a list of live shipping rates. The rates returned are all valid for a specific time window and all quoted prices are at eBay-negotiated rates. Select one of the live rates and using its associated rateId, create a "shipment" for the package by calling createFromShippingQuote. Creating a shipment completes an agreement, and the cost of the base service and any added shipping options are summed into the returned totalShippingCost value. This action also generates a shipping label that you can use to ship the package. The total cost of the shipment is incurred when the package is shipped using the supplied shipping label. Sellers must set up a payment method via their eBay account before they can use the methods in this API to create a shipment and the associated shipping label.
Constructor
Gets invoked to initialize the connector.
The connector initialization requires setting the API credentials.
Create a developer account and obtain tokens following this guide.
init (ConnectionConfig config, string serviceUrl)- config ConnectionConfig - The configurations to be used when initializing the
connector
- serviceUrl string "https://api.ebay.com/sell/logistics/v1_beta" - URL of the target service
createShippingQuote
function createShippingQuote(ShippingQuoteRequest payload) returns ShippingQuote|errorThe createShippingQuote method returns a shipping quote that contains a list of live rates. Each rate represents an offer made by a shipping carrier for a specific service and each offer has a live quote for the base service cost. Rates have a time window in which they are live, and rates expire when their purchase window ends. If offered by the carrier, rates can include shipping options (and their associated prices), and users can add any offered shipping option to the base service should they desire. Also, depending on the services required, rates can also include pickup and delivery windows. Each rate is for a single package and is based on the following information: The shipping origin The shipping destination The package size (weight and dimensions) Rates are identified by a unique eBay-assigned rateId and rates are based on price points, pickup and delivery time frames, and other user requirements. Because each rate offered must be compliant with the eBay shipping program, all rates reflect eBay-negotiated prices. The various rates returned in a shipping quote offer the user a choice from which they can choose a shipping service that best fits their needs. Select the rate for your shipment and using the associated rateId, call cerateFromShippingQuote to create a shipment and generate a shipping label that you can use to ship the package.
Parameters
- payload ShippingQuoteRequest - The request object for createShippingQuote.
Return Type
- ShippingQuote|error - Created
getShippingQuote
function getShippingQuote(string shippingQuoteId) returns ShippingQuote|errorThis method retrieves the complete details of the shipping quote associated with the specified shippingQuoteId value. A shipping quote pertains to a single specific package and contains a set of shipping rates that quote the cost to ship the package by different shipping carriers and services. The quotes are based on the package's origin, destination, and size. Call createShippingQuote to create a shippingQuoteId.
Parameters
- shippingQuoteId string - This path parameter specifies the unique eBay-assigned ID of the shipping quote you want to retrieve. The shippingQuoteId value is generated and returned by a call to createShippingQuote.
Return Type
- ShippingQuote|error - Success
createFromShippingQuote
function createFromShippingQuote(CreateShipmentFromQuoteRequest payload) returns Shipment|errorThis method creates a shipment based on the shippingQuoteId and rateId values supplied in the request. The rate identified by the rateId value specifies the carrier and service for the package shipment, and the rate ID must be contained in the shipping quote identified by the shippingQuoteId value. Call createShippingQuote to retrieve a set of live shipping rates. When you create a shipment, eBay generates a shipping label that you can download and use to ship your package. In a createFromShippingQuote request, sellers can include a list of shipping options they want to add to the base service quoted in the selected rate. The list of available shipping options is specific to each quoted rate and if available, the options are listed in the rate container of the of the shipping quote. In addition to a configurable return-to location and other details about the shipment, the response to this method includes: The shipping carrier and service to be used for the package shipment A list of selected shipping options, if any The shipment tracking number The total shipping cost (the sum cost of the base shipping service and any added options) When you create a shipment, your billing agreement account is charged the sum of the baseShippingCost and the total cost of any additional shipping options you might have selected. Use the URL returned in labelDownloadUrl field, or call downloadLabelFile with the shipmentId value from the response, to download a shipping label for your package. Important! Sellers must set up their payment method with eBay before they can use this method to create a shipment and the associated shipping label.
Parameters
- payload CreateShipmentFromQuoteRequest - The create shipment from quote request.
getShipment
This method retrieves the shipment details for the specified shipment ID. Call createFromShippingQuote to generate a shipment ID.
Parameters
- shipmentId string - This path parameter specifies the unique eBay-assigned ID of the shipment you want to retrieve. The shipmentId value is generated and returned by a call to createFromShippingQuote.
downloadLabelFile
This method returns the shipping label file that was generated for the shipmentId value specified in the request. Call createFromShippingQuote to generate a shipment ID. Use the Accept HTTP header to specify the format of the returned file. The default file format is a PDF file.
Parameters
- shipmentId string - This path parameter specifies the unique eBay-assigned ID of the shipment associated with the shipping label you want to download. The shipmentId value is generated and returned by a call to createFromShippingQuote.
cancelShipment
This method cancels the shipment associated with the specified shipment ID and the associated shipping label is deleted. When you cancel a shipment, the totalShippingCost of the canceled shipment is refunded to the account established by the user's billing agreement. Note that you cannot cancel a shipment if you have used the associated shipping label.
Parameters
- shipmentId string - This path parameter specifies the unique eBay-assigned ID of the shipment to be canceled. The shipmentId value is generated and returned by a call to createFromShippingQuote.
Records
ebay.logistics: AdditionalOption
This complex type contains information about a shipping option that can be purchased in addition to the base shipping cost of a recommended rate. Additional options for each rate are defined, named, and offered by the selected shipping carrier. Examples include shipping insurance or the requirement for a recipient signature.
Fields
- additionalCost? Amount - A complex type that describes the value of a monetary amount as represented by a global currency.
- optionType? string - The name of a shipping option that can be purchased in addition to the base shipping cost of this rate. The value supplied in this field must match exactly the option name as supplied by the selected rate.
ebay.logistics: Amount
A complex type that describes the value of a monetary amount as represented by a global currency.
Fields
- currency? string - The base currency applied to the value field to establish a monetary amount. The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD. Default: The default currency of the eBay marketplace that hosts the listing. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/logistics/types/bas:CurrencyCodeEnum'>eBay API documentation</a>
- value? string - The monetary amount in the specified currency.
ebay.logistics: ClientHttp1Settings
Provides settings related to HTTP/1.x protocol.
Fields
- keepAlive KeepAlive(default http:KEEPALIVE_AUTO) - Specifies whether to reuse a connection for multiple requests
- chunking Chunking(default http:CHUNKING_AUTO) - The chunking behaviour of the request
- proxy? ProxyConfig - Proxy server related options
ebay.logistics: ConnectionConfig
Provides a set of configurations for controlling the behaviours when communicating with a remote HTTP endpoint.
Fields
- auth BearerTokenConfig|OAuth2RefreshTokenGrantConfig - Configurations related to client authentication
- httpVersion HttpVersion(default http:HTTP_2_0) - The HTTP version understood by the client
- http1Settings? ClientHttp1Settings - Configurations related to HTTP/1.x protocol
- http2Settings? ClientHttp2Settings - Configurations related to HTTP/2 protocol
- timeout decimal(default 60) - The maximum time to wait (in seconds) for a response before closing the connection
- forwarded string(default "disable") - The choice of setting
forwarded/x-forwardedheader
- poolConfig? PoolConfiguration - Configurations associated with request pooling
- cache? CacheConfig - HTTP caching related configurations
- compression Compression(default http:COMPRESSION_AUTO) - Specifies the way of handling compression (
accept-encoding) header
- circuitBreaker? CircuitBreakerConfig - Configurations associated with the behaviour of the Circuit Breaker
- retryConfig? RetryConfig - Configurations associated with retrying
- responseLimits? ResponseLimitConfigs - Configurations associated with inbound response size limits
- secureSocket? ClientSecureSocket - SSL/TLS-related options
- proxy? ProxyConfig - Proxy server related options
- validation boolean(default true) - Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
ebay.logistics: Contact
This complex type contains contact information for an individual buyer or seller.
Fields
- companyName? string - The company name with which the contact is associated.
- contactAddress? ContactAddress - This complex type specifies the details of a geographical address.
- fullName? string - The contact's full name.
- primaryPhone? PhoneNumber - This complex type contains a string field representing a telephone number.
ebay.logistics: ContactAddress
This complex type specifies the details of a geographical address.
Fields
- addressLine1? string - The first line of the street address.
- addressLine2? string - The second line of the street address. Use this field for additional address information, such as a suite or apartment number.
- city? string - The city in which the address is located.
- countryCode? string - The country of the address, represented as two-letter ISO 3166 country code. For example, US represents the United States and DE represents Germany. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/logistics/types/bas:CountryCodeEnum'>eBay API documentation</a>
- county? string - The county (not country) in which the address is located. Counties typically contain multiple cities or towns.
- postalCode? string - The postal code of the address.
- stateOrProvince? string - The state or province in which the address is located. States and provinces often contain multiple counties.
ebay.logistics: CreateShipmentFromQuoteRequest
This complex type contains the request payload for the createFromShippingQuote method.
Fields
- additionalOptions? AdditionalOption[] - Supply a list of one or more shipping options that the seller wants to purchase for this shipment. The baseShippingCost field that's associated with the selected shipping rate is the cost of the base service offered in the rate. In addition to the base service, sellers can add additional shipping services to the base service. Shipping options include things such as shipping insurance or a recipient's signature upon delivery. The cost of any added services is summed with the base shipping cost to determine the final cost for the shipment. All options added to the shipment must be chosen from the set of shipping options offered with the selected rate.
- labelCustomMessage? string - Optional text to be printed on the shipping label if the selected shipping carrier supports custom messages on their labels.
- labelSize? string - The seller's desired label size. Any supplied value is applied only if the shipping carrier supports multiple label sizes, otherwise the carrier's default label size is used. 4x6
- rateId? string - The eBay-assigned ID of the shipping rate that the seller selected for the shipment. This value is generated by a call to createShippingQuote and is returned in the rates.rateId field.
- returnTo? Contact - This complex type contains contact information for an individual buyer or seller.
- shippingQuoteId? string - The unique eBay-assigned ID of the shipping quote that was generated by a call to createShippingQuote.
ebay.logistics: Dimensions
This complex type defines the dimensions of a package to be shipped.
Fields
- height? string - The numeric value of the height of the package.
- length? string - The numeric value of the length of the package.
- unit? string - The unit of measure used to express the height, length, and width of the package. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/logistics/types/api:LengthUnitOfMeasureEnum'>eBay API documentation</a>
- width? string - The numeric value of the width of the package.
ebay.logistics: Error
A container that defines the elements of error and warning message.
Fields
- category? string - The category type for this error or warning. It takes a string that can have one of three values: Application: Indicates an exception or error occurred in the application code or at runtime. Examples include catching an exception in a service's business logic, system failures, or request errors from a dependency. Business: Used when your service or a dependent service refused to continue processing on the resource because of a business rule violation such as Seller does not ship item to Antarctica or Buyer ineligible to purchase an alcoholic item. Business errors are not syntactical input errors. Request: Used when there is anything wrong with the request, such as authentication, syntactical errors, rate limiting or missing headers, bad HTTP header values, and so on.
- domain? string - Name of the domain containing the service or application.
- errorId? int - A positive integer that uniquely identifies the specific error condition that occurred. Your application can use error codes as identifiers in your customized error-handling algorithms.
- inputRefIds? string[] - Identifies specific request elements associated with the error, if any. inputRefId's response is format specific. For JSON, use JSONPath notation.
- longMessage? string - An expanded version of message that should be around 100-200 characters long, but is not required to be such.
- message? string - An end user and app-developer friendly device agnostic message. It explains what the error or warning is, and how to fix it (in a general sense). Its value is at most 50 characters long. If applicable, the value is localized in the end user's requested locale.
- outputRefIds? string[] - Identifies specific response elements associated with the error, if any. Path format is the same as inputRefId.
- parameters? ErrorParameter[] - This optional complex field type contains a list of one or more context-specific ErrorParameter objects, with each item in the list entry being a parameter (or input field name) that caused an error condition. Each ErrorParameter object consists of two fields, a name and a value.
- subdomain? string - Name of the domain's subsystem or subdivision. For example, checkout is a subdomain in the buying domain.
ebay.logistics: ErrorParameter
Container for an error parameter.
Fields
- name? string - Name of the entity that threw the error.
- value? string - A description of the error.
ebay.logistics: OAuth2RefreshTokenGrantConfig
OAuth2 Refresh Token Grant Configs
Fields
- Fields Included from *OAuth2RefreshTokenGrantConfig
- refreshUrl string(default "https://api.ebay.com/identity/v1/oauth2/token") - Refresh URL
ebay.logistics: Order
This complex type defines an order from which a seller is including one or more line items in a single package to be shipped.
Fields
- channel? string - The e-commerce platform or environment where the order was created. Use the value EBAY to get the rates available for eBay orders.
- orderId? string - The unique ID of the order supplied by the channel of origin. For eBay orders, this would be the orderId.
ebay.logistics: PackageSpecification
This complex type specifies the dimensions and weight of a package.
Fields
- dimensions? Dimensions - This complex type defines the dimensions of a package to be shipped.
- weight? Weight - This complex type contains information about the weight of an object such as a shipping package.
ebay.logistics: PhoneNumber
This complex type contains a string field representing a telephone number.
Fields
- phoneNumber? string - A telephone number.
ebay.logistics: PickupSlot
This complex type defines a time window for the pickup of a package.
Fields
- pickupSlotEndTime? string - The date and time the pickup slot ends, formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock. Format: [YYYY]-[MM]-[DD]T[HH]:[MM]:[SS].[SSS]Z Example: 2018-08-20T07:09:00.000Z
- pickupSlotId? string - Seller-defined name for the pickup slot.
- pickupSlotStartTime? string - The date and time the pickup slot begins, formatted as an ISO 8601 UTC string.
- pickupSlotTimeZone? string - The time zone of the pickup location, returned as Time Zone Database ID (also know as an Olson time zone ID).
ebay.logistics: ProxyConfig
Proxy server configurations to be used with the HTTP client endpoint.
Fields
- host string(default "") - Host name of the proxy server
- port int(default 0) - Proxy server port
- userName string(default "") - Proxy server username
- password string(default "") - Proxy server password
ebay.logistics: PurchasedRate
The rate that has been selected and purchased for the shipment, as referenced by the rateId value.
Fields
- additionalOptions? AdditionalOption[] - An list of additional, optional features that have been purchased for the shipment.
- baseShippingCost? Amount - A complex type that describes the value of a monetary amount as represented by a global currency.
- destinationTimeZone? string - The time zone of the destination according to Time Zone Database. For example, America/Los_Angeles.
- maxEstimatedDeliveryDate? string - A string value representing maximum (latest) estimated delivery time, formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock. Format: [YYYY]-[MM]-[DD]T[HH]:[MM]:[SS].[SSS]Z Example: 2018-08-20T07:09:00.000Z
- minEstimatedDeliveryDate? string - A string value representing minimum (earliest) estimated delivery time, formatted as an ISO 8601ISO 8601 UTC string.
- pickupNetworks? string[] - A list of pickup networks compatible with the shipping service.
- pickupSlotId? string - This unique eBay-assigned ID value is returned only if the shipment has been configured for a scheduled pickup.
- pickupType? string - The type of pickup or drop off configured for the shipment. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/logistics/types/api:PickupTypeEnum'>eBay API documentation</a>
- rateId? string - The eBay-generated ID of the shipping rate that the seller has chosen to purchase for the shipment.
- shippingCarrierCode? string - The ID code for the carrier that was selected for the package shipment.
- shippingCarrierName? string - The name of the shipping carrier.
- shippingQuoteId? string - The unique eBay-generated ID of the shipping quote from which the seller selected a shipping rate (rateId).
- shippingServiceCode? string - String ID code for the shipping service selected for the package shipment. This is a service that the shipping carrier supplies.
- shippingServiceName? string - The name of the shipping service.
- totalShippingCost? Amount - A complex type that describes the value of a monetary amount as represented by a global currency.
ebay.logistics: Rate
This complex type contains live quote information about a shipping service that's available for a given shipping quote request, including the shipping carrier and service, delivery window, shipping cost, and additional shipping options.
Fields
- additionalOptions? AdditionalOption[] - Contains service and pricing information for one or more shipping options that are offered by the carrier and can be purchased in addition to the base shipping service provided by this rate. Shipping options can include items such as INSURANCE and SIGNATURE.
- baseShippingCost? Amount - A complex type that describes the value of a monetary amount as represented by a global currency.
- destinationTimeZone? string - The name of the time zone region, as defined in the IANA Time Zone Database, to which the package is being shipped. Delivery dates are calculated relative to this time zone. Note: This is different from a Coordinated Universal Time (UTC) offset. For example, the America/Los_Angeles time zone identifies a region with the UTC standard time offset of -08:00, but so do several other time zones, including America/Tijuana,America/Dawson, and Pacific/Pitcairn.
- maxEstimatedDeliveryDate? string - The latest stated date and time the shipment will be delivered at this rate. The time stamp is formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock. Format: [YYYY]-[MM]-[DD]T[HH]:[MM]:[SS].[SSS]Z Example: 2018-08-20T07:09:00.000Z
- minEstimatedDeliveryDate? string - The estimated earliest date and time the shipment will be delivered at this rate. The time stamp is formatted as an ISO 8601 UTC string.
- pickupNetworks? string[] - A list of pickup networks compatible with the shipping service.
- pickupSlots? PickupSlot[] - A list of available pickup slots for the package.
- pickupType? string - The type of pickup or drop-off service associated with the pickupSlots time frames. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/logistics/types/api:PickupTypeEnum'>eBay API documentation</a>
- rateId? string - The unique eBay-assigned ID for this shipping rate.
- rateRecommendation? string[] - A list of reasons this rate is recommended. Available values are: BUYER_CHOSEN — The rate meets or exceeds the requirements of the buyer's preferred shipping option. CHEAPEST_ON_TIME — The rate is the cheapest rate available that will provide delivery within the seller's time frame commitment. EBAY_PLUS_OK — The rate complies with the shipping requirements of the eBay Plus program. FASTEST_ON_TIME — The rate has the fastest shipping time, and will provide delivery within the seller's time frame commitment. GUARANTEED_DELIVERY_OK — The rate complies with the shipping requirements of the eBay Guaranteed Delivery program.
- shippingCarrierCode? string - The code name of the shipping carrier who will provide the service identified by shippingServiceCode.
- shippingCarrierName? string - The common name of the shipping carrier.
- shippingServiceCode? string - The code name of the shipping service to be provided by the carrier identified by shippingCarrierCode.
- shippingServiceName? string - The common name of the shipping service.
ebay.logistics: Shipment
This complex type defines a shipment for a specific package (for example, a box or letter). Shipments are always linked to a purchased shipping label.
Fields
- cancellation? ShipmentCancellation - This type defines a shipment cancellation by the date and time the cancellation request was made and the current status of the request.
- creationDate? string - The date and time the shipment was created, formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock. Format: [YYYY]-[MM]-[DD]T[HH]:[MM]:[SS].[SSS]Z Example: 2018-08-20T07:09:00.000Z
- labelCustomMessage? string - If supported by the selected shipping carrier, this field can contain optional seller text to be printed on the shipping label.
- labelDownloadUrl? string - The direct URL the seller can use to download an image of the shipping label. By default, the file format is PDF. See downloadLabelFile for requesting different response file formats.
- labelSize? string - The seller's desired label size. The support for multi-sized labels is shipping-carrier specific and if the size requested in the creaateFromShippingQuote call matches a size the carrier supports, the value will be represented here in the shipment. Currently, the only valid value is: 4x6
- orders? Order[] - This list value is optionally assigned by the seller. When present, each element in the returned list contains seller-assigned information about an order (such as an order number). Because a package can contain all or part of one or more orders, this field provides a way for sellers to identify the packages that contain specific orders.
- packageSpecification? PackageSpecification - This complex type specifies the dimensions and weight of a package.
- rate? PurchasedRate - The rate that has been selected and purchased for the shipment, as referenced by the rateId value.
- returnTo? Contact - This complex type contains contact information for an individual buyer or seller.
- shipFrom? Contact - This complex type contains contact information for an individual buyer or seller.
- shipmentId? string - The unique eBay-assigned ID for the shipment. The ID is generated when the shipment is created by a call to createFromShippingQuote.
- shipmentTrackingNumber? string - A unique carrier-assigned ID string that can be used to track the shipment.
- shipTo? Contact - This complex type contains contact information for an individual buyer or seller.
ebay.logistics: ShipmentCancellation
This type defines a shipment cancellation by the date and time the cancellation request was made and the current status of the request.
Fields
- cancellationRequestedDate? string - The time and date the request was made to cancel the shipment, formatted as an ISO 8601 UTC string.
- cancellationStatus? string - This enum specifies the current cancellation status of a shipment, if a cancellation request has been made. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/logistics/types/api:ShipmentCancellationStatusEnum'>eBay API documentation</a>
ebay.logistics: ShippingQuote
This complex type describes a shipping quote, which contains the parameters for a package shipment. The shipping quote contains a list of live quotes or rates for the shipment. Rates are offerd by a carrier for a particular service, of set of services, for shipping the package. Included in the shipping quote are the package specifications, the shipment's origin and destination addresses, and the shipping parameters specified by the seller. Use the rateId value to select the specific service you want when you create a shipment by calling createFromShippingQuote.
Fields
- creationDate? string - The date and time this quote was created, expressed as an ISO 8601 UTC string.
- expirationDate? string - The last date and time that this quote will be honored, expressed as an ISO 8601 UTC string. After this time the quote expires and the expressed rates can no longer be purchased.
- orders? Order[] - This list value is optionally assigned by the seller. When present, each element in the returned list contains seller-assigned information about an order (such as an order number). Because a package can contain all or part of one or more orders, this field provides a way for sellers to identify the packages that contain specific orders.
- packageSpecification? PackageSpecification - This complex type specifies the dimensions and weight of a package.
- rates? Rate[] - A list of rates where each rate, as identified by a rateId, contains information about a specific shipping service offered by a carrier. Rates include shipping carrier and service, the to and from locations, the pickup and delivery windows, the seller's shipping parameters, the service constraints, and the cost for the base service and a list of additional shipping options. Each rate offered is supported by a label service where you can purchase the rate, and associated shipping label, via a call to createFromShippingQuote.
- shipFrom? Contact - This complex type contains contact information for an individual buyer or seller.
- shippingQuoteId? string - The unique eBay-assigned ID for this shipping quote. The value of this field is associated with a specific package, based on its origin, destination, and size.
- shipTo? Contact - This complex type contains contact information for an individual buyer or seller.
- warnings? Error[] - A list of any warnings triggered by the request.
ebay.logistics: ShippingQuoteRequest
This complex type defines the request body for createShippingQuote. Sellers request a quote for a shipment by defining the To and From addresses for the package, plus the package's size. Carriers respond by offering up a rate for the service of theirs that best fits seller's needs.
Fields
- orders? Order[] - A seller-defined list that contains information about the orders in the package. This allows sellers to include information about the line items in the package with the shipment information. A package can contain any number of line items from one or more orders, providing they all ship in the same package. Maximum list size: 10
- packageSpecification? PackageSpecification - This complex type specifies the dimensions and weight of a package.
- shipFrom? Contact - This complex type contains contact information for an individual buyer or seller.
- shipTo? Contact - This complex type contains contact information for an individual buyer or seller.
ebay.logistics: Weight
This complex type contains information about the weight of an object such as a shipping package.
Fields
- unit? string - The unit of measurement used to specify the weight of a shipping package. Both the unit and value fields are required if the weight container is used. If the English system of measurement is being used, the applicable values for weight units are POUND and OUNCE. If the metric system of measurement is being used, the applicable values for weight units are KILOGRAM and GRAM. The metric system is used by most countries outside of the US. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/logistics/types/api:WeightUnitOfMeasureEnum'>eBay API documentation</a>
- value? string - The numeric value of the weight of the package, as measured by the value of unit.
Array types
ebay.logistics: StringArr
StringArr
Import
import ballerinax/ebay.logistics;Metadata
Released date: 3 days ago
Version: 1.5.2
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.8.0
GraalVM compatible: Yes
Pull count
Total: 34
Current verison: 0
Weekly downloads
Keywords
Type/Connector
Vendor/eBay
Area/E-Commerce
Commerce/eCommerce
Cost/Freemium
Contributors
Dependencies