Combines two or more transactions into a single order, enabling a buyer to pay for all of those transactions with a single payment (and, if so arranged, ship all of the items together).
Strong recommendation: avoid mixing digital and non-digital listings in the same order. (In the future, AddOrder may enforce this recommendation.)
See Working with Combined Payment.
| Output Detail Controls Samples Change History Top Errors for AddOrder User Notes |
The box below lists all fields that could be included in the call request. To learn more about an individual field or its type, click its name in the box (or scroll down to find it in the table below the box).
See also Samples.
See also the Deprecated Objects link above. Fields presented in this color are deprecated, and fields presented in this color are (or soon will be) non-operational.
The XML prototype may be missing some XML fields and attributes. This is a documentation limitation only (see Limitations of This Document).
<?xml version="1.0" encoding="utf-8"?>
<AddOrderRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<!-- Standard Input Fields -->
<ErrorLanguage> string </ErrorLanguage>
<InvocationID> UUIDType (string) </InvocationID>
<MessageID> string </MessageID>
<Version> string </Version>
<WarningLevel> WarningLevelCodeType </WarningLevel>
<!-- Call-specific Input Fields -->
<Order> OrderType
<CreatingUserRole> TradingRoleCodeType </CreatingUserRole>
<PaymentMethods> BuyerPaymentMethodCodeType </PaymentMethods>
<!-- ... more PaymentMethods nodes here ... -->
<ShippingDetails> ShippingDetailsType
<CODCost> AmountType (double) </CODCost>
<InsuranceFee> AmountType (double) </InsuranceFee>
<InsuranceOption> InsuranceOptionCodeType </InsuranceOption>
<InternationalShippingServiceOption> InternationalShippingServiceOptionsType
<ShippingInsuranceCost> AmountType (double) </ShippingInsuranceCost>
<ShippingService> token </ShippingService>
<ShippingServiceAdditionalCost> AmountType (double) </ShippingServiceAdditionalCost>
<ShippingServiceCost> AmountType (double) </ShippingServiceCost>
<ShippingServicePriority> int </ShippingServicePriority>
<ShipToLocation> string </ShipToLocation>
<!-- ... more ShipToLocation nodes here ... -->
</InternationalShippingServiceOption>
<!-- ... more InternationalShippingServiceOption nodes here ... -->
<SalesTax> SalesTaxType
<SalesTaxPercent> float </SalesTaxPercent>
<SalesTaxState> string </SalesTaxState>
<ShippingIncludedInTax> boolean </ShippingIncludedInTax>
</SalesTax>
<ShippingServiceOptions> ShippingServiceOptionsType
<ShippingInsuranceCost> AmountType (double) </ShippingInsuranceCost>
<ShippingService> token </ShippingService>
<ShippingServiceAdditionalCost> AmountType (double) </ShippingServiceAdditionalCost>
<ShippingServiceCost> AmountType (double) </ShippingServiceCost>
<ShippingServicePriority> int </ShippingServicePriority>
<ShippingSurcharge> AmountType (double) </ShippingSurcharge>
</ShippingServiceOptions>
<!-- ... more ShippingServiceOptions nodes here ... -->
<ThirdPartyCheckout> boolean </ThirdPartyCheckout>
</ShippingDetails>
<Total currencyID="CurrencyCodeType"> AmountType (double) </Total>
<TransactionArray> TransactionArrayType
<Transaction> TransactionType
<Item> ItemType
<ItemID> ItemIDType (string) </ItemID>
</Item>
<TransactionID> string </TransactionID>
</Transaction>
<!-- ... more Transaction nodes here ... -->
</TransactionArray>
</Order>
</AddOrderRequest>
| Argument | Type | Reqd? | Meaning |
|---|---|---|---|
| Standard Input Fields [Jump to call-specific fields] | |||
| ErrorLanguage | string | Optional |
Use ErrorLanguage to return error strings for the call in a different language from the language commonly associated with the site that the requesting user is registered with. Specify the standard RFC 3066 language identification tag (e.g., en_US). ID--- country ----- ----- de_AT Austria de_CH Switzerland de_DE Germany en_AU Australia en_CA Canada en_GB United Kingdom en_SG Singapore en_US United States es_ES Spain fr_BE Belgium (French) fr_CA Canada (French) fr_FR France it_IT Italy nl_BE Belgium (Dutch) nl_NL Netherlands zh_CN China en_IN India en_IE Ireland zh_HK Hong Kong See Tags for the Identification of Languages. |
| InvocationID | UUIDType (string) | Optional |
A unique identifer for a particular call. If the same InvocationID is passed in after it has been passed in once on a call that succeeded for a particular application and user, then an error will be returned. The identifier can only contain digits from 0-9 and letters from A-F. The identifier must be 32 characters long. For example, 1FB02B2-9D27-3acb-ABA2-9D539C374228. Max length: 32. |
| MessageID | string | Optional |
In most cases, all calls support a MessageID element in the request and a CorrelationID element in the response. If you pass a message ID in a request, we will return the same value in CorrelationID in the response. You can use this for tracking that a response is returned for every request and to match particular responses to particular requests. If you do not pass MessageID in the request, CorrelationID is not returned. Note: GetCategories, GetAttributesCS, GetCategory2CS, GetAttributesXSL, GetProductFinder, GetProductFinderXSL, and GetProductSearchPage are designed to retrieve very large sets of metadata that change once a day or less often. To improve performance, these calls return cached responses when you request all available data (with no filters). When this occurs, the MessageID and CorrelationID fields aren't applicable. However, if you specify an input filter to reduce the amount of data returned, the calls retrieve the latest data (not cached). When this occurs, MessageID and CorrelationID are applicable. |
| Version | string | Conditional |
The version number of the API code that you are programming against (e.g., 549). The version you specify for a call has these basic effects: - It indicates the version of the code lists and other data that eBay should use to process your request. - It indicates the schema version you are using. You need to use a version that is greater than or equal to the lowest supported version. For the SOAP API: If you are using the SOAP API, this field is required. Specify the version of the WSDL your application is using. For the XML API: If you are using the XML API, this field has no effect. Instead, specify the version in the X-EBAY-API-COMPATIBILITY-LEVEL HTTP header. (If you specify Version in the body of an XML API request and it is different from the value in the HTTP header, eBay returns an informational warning that the value in the HTTP header was used instead.) See: HTTP Headers (XML API Only) eBay Schema Versioning Strategy Lowest Supported Version |
| WarningLevel | WarningLevelCodeType | Optional |
Controls whether or not to return warnings when the application passes unrecognized or deprecated elements in a request. An unrecognized element is one that is not defined in any supported version of the schema. Schema element names are case-sensitive, so using WarningLevel can also help you remove any potential hidden bugs within your application due to incorrect case or spelling in field names before you put your application into the Production environment. WarningLevel only validates elements; it doesn't validate XML attributes. It also doesn't control warnings related to user-entered strings or numbers, or warnings for logical errors. We recommend that you only use this during development and debugging. Do not use this in requests in your production code. Applicable values: • High (in) Return warnings when the application passes unrecognized or deprecated elements in a request. • Low (in) Do not return warnings when the application passes unrecognized or deprecated elements in a request. This is the default value if WarningLevel is not specified. See Warning Level. |
| Call-specific Input Fields | |||
| Order | OrderType | Required | The order that is being created. |
| Order.CreatingUserRole | TradingRoleCodeType | Required |
Indicates whether the order is created by the buyer or by the seller.
Applicable values: • Buyer (in/out) Acting as buyer. • CustomCode (in/out) Reserved for future use. • Seller (in/out) Acting as seller. For GetOrders, you can use this value to limit orders to those where the calling user is the seller. |
| Order.PaymentMethods | BuyerPaymentMethodCodeType (repeatable) |
Optional |
The payment methods the buyer uses to pay for the order. An order can have multiple payment methods if the buyer combines several transactions into one order. Also applicable to Half.com (for GetOrders).
Applicable values: See PaymentMethods. |
| Order.ShippingDetails | ShippingDetailsType | Optional | The shipping-related details for an item or transaction, including flat or calculated shipping costs and shipping insurance costs. Also applicable to Half.com (for GetOrders). |
| Order.ShippingDetails.CODCost | AmountType (double) | Conditional |
Italy site (site ID 101) only. Contains the cash-on-delivery (COD) cost, for COD shipping.
See Specifying the Cash on Delivery Option in Shipping Details. |
|
Order.ShippingDetails .InsuranceFee |
AmountType (double) | Optional |
Cost of shipping insurance set by the seller. If the buyer bought more than one of this item, this is the insurance for just a single item. Exception: for GetItemShipping, this is proportional to QuantitySold. Value should be greater than 0.00 if InsuranceOption is Optional or Required. For flat shipping only. Optional as input and only allowed if ChangePaymentInstructions is true. This field is ignored when InsuranceOption is not specified in the request. This field is ignored when Item.ListingType=Express. Applicable to Half.com for GetOrders. Not applicable to eBay Motors vehicle listings. Default: 0.00. |
|
Order.ShippingDetails .InsuranceOption |
InsuranceOptionCodeType | Optional |
Whether the seller offers shipping insurance and, if so, whether the insurance is optional or required. Flat and calculated shipping. Optional as input and only allowed if ChangePaymentInstructions is true. Also applicable to Half.com (for GetOrders). This field is ignored when Item.ListingType=Express. If this field is not included in the request, values specified in the InsuranceFee field will be ignored.
Applicable values: • CustomCode (in/out) Reserved for internal or future use • IncludedInShippingHandling (in/out) The seller is not charging separately for shipping insurance costs; any insurance is already included in the base shipping cost. • NotOffered (in/out) The seller does not offer shipping insurance to the buyer. • Optional (in/out) The seller offers the buyer the choice of paying for shipping insurance or not. • Required (in/out) The seller requires that the buyer pay for shipping insurance. (Not all values in InsuranceOptionCodeType apply to this field.) |
|
Order.ShippingDetails .InternationalShippingServiceOption |
InternationalShippingServiceOptionsType (repeatable) |
Optional |
Shipping costs and options related to an international shipping service. If used, at least one domestic shipping service must also be provided in ShippingServiceOptions. If you specify multiple InternationalShippingServiceOption nodes, the repeating nodes must be contiguous. That is, you cannot insert other nodes between InternationalShippingServiceOption nodes. If you specify ShippingDetails when you revise or relist an item but you omit InternationalShippingServiceOption, eBay will drop the international shipping services from the listing. This may also have unintended side effects, as other fields that depend on this data may be dropped as well. To retain the shipping services and dependent fields when you modify other shipping details, it may be simplest to specify all ShippingDetails that you still want to include in the listing. Not applicable to Half.com or eBay Motors vehicle listings. This field is ignored when Item.ListingType=Express. See Overview of the API Schema for rules regarding repeating instances of a nodes (nodes for which maxOccurs is "unbounded" or is greater than 1). |
|
Order.ShippingDetails .InternationalShippingServiceOption .ShippingInsuranceCost |
AmountType (double) | Optional |
The insurance cost associated with shipping a single item with this shipping service. Exception: for GetItemShipping, this is proportional to QuantitySold. If the item has not yet been sold, insurance information cannot be calculated and the value is 0.00. For calculated shipping only. Also applicable to Half.com (for GetOrders).
See Shipping. |
|
Order.ShippingDetails .InternationalShippingServiceOption .ShippingService |
token | Conditional |
An international shipping service offered for shipping the item. For a list of valid values that you can cache for future use, call GeteBayDetails with DetailName set to ShippingServiceDetails. For flat and calculated shipping.
See GeteBayDetails. |
|
Order.ShippingDetails .InternationalShippingServiceOption .ShippingServiceAdditionalCost |
AmountType (double) | Optional | Cost of shipping each additional item beyond the first item. Should be zero for single-item listings. Default value is 0.00. For flat shipping only. |
|
Order.ShippingDetails .InternationalShippingServiceOption .ShippingServiceCost |
AmountType (double) | Conditional |
The meaning of this element depends on the call and on whether flat or calculated shipping has been selected. (For example, it could be the cost to ship a single item, the cost to ship all items, or the cost to ship just the first of many items, with ShippingServiceAdditionalCost accounting for the rest.) When returned by GetItemShipping, it includes the packaging and handling cost. For flat and calculated shipping.
See Shipping. |
|
Order.ShippingDetails .InternationalShippingServiceOption .ShippingServicePriority |
int | Conditional | Seller-preferred presentation order relative to other service options. Valid values are: 1, 2 and 3 (first, second and third choices). For flat and calculated shipping. |
|
Order.ShippingDetails .InternationalShippingServiceOption .ShipToLocation |
string (repeatable) |
Conditional |
An international location or region to which the item may be shipped via this particular shipping service. Associated with the shipping service by the seller. Use GeteBayDetails to determine which locations are valid per site. These values are string equivalents of values found in ShippingRegionCodeType and CountryCodeType. For the AddItem family of calls, this field is required if any international shipping service has been specified.
See ShipToLocation. |
| Order.ShippingDetails.SalesTax | SalesTaxType | Optional |
Sales tax details. US site only. Flat and calculated shipping. Also applicable to Half.com (for GetOrders). If your application normally calculates sales tax without using eBay's tax tables, you should understand how purchases via eBay Express will affect the way you process payments. For general information about listings on eBay Express, see the eBay Web Services Guide links below. Not applicable to eBay Motors vehicle listings.
See: Enabling Multi-jurisdiction Sales Tax Specify Sales Tax for Express and eBay |
|
Order.ShippingDetails.SalesTax .SalesTaxPercent |
float | Optional | Percent of an item's price to be charged as the sales tax for the transaction. The value passed in is stored with a precision of 3 digits after the decimal point (##.###). Also applicable to Half.com (for GetOrders). |
|
Order.ShippingDetails.SalesTax .SalesTaxState |
string | Optional | State or jurisdiction for which the sales tax is being collected. Only returned if the seller specified a value. Also returned for Half.com (for GetOrders). |
|
Order.ShippingDetails.SalesTax .ShippingIncludedInTax |
boolean | Optional | (US only) Whether shipping costs were part of the base amount that was taxed. Flat or calculated shipping. Also returned for Half.com (for GetOrders). |
|
Order.ShippingDetails .ShippingServiceOptions |
ShippingServiceOptionsType (repeatable) |
Optional |
Shipping costs and options related to domestic shipping services offered by the seller. Flat and calculated shipping. Required if InternationalShippingServiceOption is specified. If you specify multiple ShippingServiceOptions nodes, the repeating nodes must be contiguous. For example, you can insert InternationalShippingServiceOption nodes after a list of repeating ShippingServiceOptions nodes, but not between them: <ShippingServiceOptions>...</ShippingServiceOptions> <ShippingServiceOptions>...</ShippingServiceOptions> <ShippingServiceOptions>...</ShippingServiceOptions> <InternationalShippingServiceOption>...</InternationalShippingServiceOption> <InternationalShippingServiceOption>...</InternationalShippingServiceOption> If you specify ShippingDetails when you revise or relist an item but you omit ShippingServiceOptions, eBay will drop the domestic shipping services from the listing. This may also have unintended side effects, as other fields that depend on this data may be dropped as well. To retain the shipping services and dependent fields when you modify other shipping details, it may be simplest to specify all ShippingDetails that you still want to include in the listing. Not applicable to Half.com or eBay Motors vehicle listings. See Overview of the API Schema for rules regarding repeating instances of a nodes (nodes for which maxOccurs is "unbounded" or is greater than 1). |
|
Order.ShippingDetails .ShippingServiceOptions .ShippingInsuranceCost |
AmountType (double) | Optional |
The insurance cost associated with shipping a single item with this shipping service. Exception: for GetItemShipping, this is proportional to QuantitySold. If the item has not yet been sold, insurance information cannot be calculated and the value is 0.00. For calculated shipping only. Also applicable to Half.com (for GetOrders).
See Determining Shipping Costs for a Listing. |
|
Order.ShippingDetails .ShippingServiceOptions .ShippingService |
token | Conditional |
A domestic shipping service offered for shipping the item (for example, UPS Ground). For a list of valid values that you can cache for future use, call GeteBayDetails with DetailName set to ShippingServiceDetails. For flat and calculated shipping. Also applicable to Half.com (for GetOrders).
See GeteBayDetails. |
|
Order.ShippingDetails .ShippingServiceOptions .ShippingServiceAdditionalCost |
AmountType (double) | Optional |
The cost of shipping each additional item beyond the first item. For input, this is required if the listing is for multiple items and should be zero for single-item listings. Default value is 0.00. For flat shipping only. Not applicable to Half.com.
See Determining Shipping Costs for a Listing. |
|
Order.ShippingDetails .ShippingServiceOptions .ShippingServiceCost |
AmountType (double) | Conditional |
The meaning of this element depends on the call and on whether flat or calculated shipping has been selected. (For example, it could be the cost to ship a single item, the cost to ship all items, or the cost to ship just the first of many items, with ShippingServiceAdditionalCost accounting for the rest.) When returned by GetItemShipping, it includes the packaging and handling cost. For flat and calculated shipping. Also applicable to Half.com (for GetOrders). For applications processing an Express transaction when the transaction is part of an Express Order, ShippingServiceCost will have a value of 0. This is generally because the ShippingServiceCost of an Order is not returned by each transaction included in that Order when making the GetItemTransactions or GetSellerTransactions call. This is regardless of whether the Order is an Express Order or a regular eBay site Order. This is a known issue and a current product limitation for Orders and Transactions in general. See Determining Shipping Costs for a Listing. |
|
Order.ShippingDetails .ShippingServiceOptions .ShippingServicePriority |
int | Conditional | Seller-preferred presentation order relative to other service options. Valid values: 1 (1st choice), 2 (2nd choice), 3 (3rd choice). For flat and calculated shipping. Not applicable to Half.com. |
|
Order.ShippingDetails .ShippingServiceOptions .ShippingSurcharge |
AmountType (double) | Conditional | An additional fee to charge US buyers who ship via UPS to Alaska, Hawaii or Puerto Rico. Can only be assigned a value for the eBay US site and for items in the Parts and Accessories category of the eBay Motors site. Only returned if set. If some transactions in an order have a surcharge, surcharge is added only for those transactions. Flat rate shipping only. |
|
Order.ShippingDetails .ThirdPartyCheckout |
boolean | Optional |
Whether checkout for this is to be handled by a Third-Party Checkout application. The counterpart in the AddItem family of calls is Item.ThirdPartyCheckout. Not applicable to Half.com.
See: Third Party Checkout (AddItem) Item.ThirdPartyCheckout |
| Order.Total | AmountType (double) | Required | Subtotal plus the shipping cost plus the sales tax plus cost of insurance. Also applicable to Half.com (for GetOrders). |
| Order.Total [ attribute currencyID ] |
CurrencyCodeType | Required |
Currency in which the monetary amount is specified. In the AddItem family of calls, the currency can be specified in the Item.Currency field instead. If you do specify this attribute in the AddItem family of calls, the value must match the site currency (i.e., it must be the same as the value in Item.Currency) unless otherwise stated. For a list of possible enumeration values, see CurrencyCodeType. |
| Order.TransactionArray | TransactionArrayType | Required |
The set of two or more transactions that make up the order. Also applicable to Half.com (for GetOrders). We strongly recommend that you avoid mixing transactions for digital and non-digital listings in the same order. (In the future, AddOrder may enforce this recommendation.) |
|
Order.TransactionArray .Transaction |
TransactionType (repeatable) |
Required |
Information about one transaction. Also applicable to Half.com (for GetOrders).
See Working with Combined Payment. |
|
Order.TransactionArray .Transaction.Item |
ItemType | Required | Information about the item that spawned the transaction. It is a purchase from this item's listing that the transaction represents. To remove a property from an item, specify it in ModifyType as a changed property, but do not give it a value in Item. Also applicable to Half.com (for GetOrders). |
|
Order.TransactionArray .Transaction.Item.ItemID |
ItemIDType (string) | Required |
The ID that uniquely identifies the item listing. The ID is generated by eBay after an item is listed. You cannot choose or revise this value. Also applicable to Half.com. For Half.com, you can specify either ItemID or SellerInventoryID in a ReviseItem request to uniquely identify the listing. In GetItemRecommendations, the item ID is required when the value of ListingFlow is ReviseItem or RelistItem, but it is not applicable when the value of ListingFlow is AddItem. In GetSearchResultsExpress, always returned when ItemArray.Item is returned. For GetCart/SetCart input, this is only required if the parent container is submitted. Max length: 19. (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits.). |
|
Order.TransactionArray .Transaction.TransactionID |
string | Required |
Identifier for the transaction. A value of zero is used for the Chinese auction format. Thus, a value of zero is a valid transaction ID. A transaction ID is only unique to the listing that spawned it, so a transaction is only uniquely identified on a global basis by a combination of ItemID and TransactionID. Also applicable to Half.com (for GetOrders). Max length: 19 (Note: The eBay database specifies 38. Currently, transaction IDs are usually 9 to 12 digits.). |
| Input Detail Controls Samples Change History Top Errors for AddOrder User Notes |
The box below lists all fields that might be returned in the call response. To learn more about an individual field or its type, click its name in the box (or scroll down to find it in the table below the box).
See also Samples.
See also the Deprecated Objects link above. Fields presented in this color are deprecated, and fields presented in this color are not returned (or soon will not be returned) or are not operational (or soon will be non-operational).
The XML prototype may be missing some XML fields and attributes. This is a documentation limitation only (see Limitations of This Document).
<?xml version="1.0" encoding="utf-8"?>
<AddOrderResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<!-- Standard Output Fields -->
<Ack> AckCodeType </Ack>
<Build> string </Build>
<CorrelationID> string </CorrelationID>
<DuplicateInvocationDetails> DuplicateInvocationDetailsType
<DuplicateInvocationID> UUIDType (string) </DuplicateInvocationID>
<InvocationTrackingID> string </InvocationTrackingID>
<Status> InvocationStatusType </Status>
</DuplicateInvocationDetails>
<Errors> ErrorType
<ErrorClassification> ErrorClassificationCodeType </ErrorClassification>
<ErrorCode> token </ErrorCode>
<ErrorParameters ParamID="string"> ErrorParameterType
<Value> string </Value>
</ErrorParameters>
<!-- ... more ErrorParameters nodes here ... -->
<LongMessage> string </LongMessage>
<SeverityCode> SeverityCodeType </SeverityCode>
<ShortMessage> string </ShortMessage>
</Errors>
<!-- ... more Errors nodes here ... -->
<HardExpirationWarning> string </HardExpirationWarning>
<Timestamp> dateTime </Timestamp>
<Version> string </Version>
<!-- Call-specific Output Fields -->
<CreatedTime> dateTime </CreatedTime>
<OrderID> OrderIDType (string) </OrderID>
</AddOrderResponse>
| Return Value | Type | Returned? | Meaning |
|---|---|---|---|
| Standard Output Fields [Jump to call-specific fields] | |||
| Ack | AckCodeType | Always |
A token representing the application-level acknowledgement code that indicates the response status (e.g., success). The AckCodeType list specifies the possible values for Ack.
Applicable values: • CustomCode (out) Reserved for internal or future use. • Failure (out) Request processing failed • Success (out) Request processing succeeded • Warning (out) Request processing completed with warning information being included in the response message (Not all values in AckCodeType apply to this field.) |
| Build | string | Always | This refers to the specific software build that eBay used when processing the request and generating the response. This includes the version number plus additional information. eBay Developer Support may request the build information when helping you resolve technical issues. |
| CorrelationID | string | Conditionally |
In most cases, all calls support a MessageID element in the request and a CorrelationID element in the response. If you pass a message ID in a request, we will return the same value in CorrelationID in the response. You can use this for tracking that a response is returned for every request and to match particular responses to particular requests. If you do not pass MessageID in the request, CorrelationID is not returned. Note: GetCategories, GetAttributesCS, GetCategory2CS, GetAttributesXSL, GetProductFinder, GetProductFinderXSL, and GetProductSearchPage are designed to retrieve very large sets of metadata that change once a day or less often. To improve performance, these calls return cached responses when you request all available data (with no filters). When this occurs, the MessageID and CorrelationID fields aren't applicable. However, if you specify an input filter to reduce the amount of data returned, the calls retrieve the latest data (not cached). When this occurs, MessageID and CorrelationID are applicable. |
| DuplicateInvocationDetails | DuplicateInvocationDetailsType | Conditionally | Information that explains a failure due to a duplicate InvocationID being passed in. |
|
DuplicateInvocationDetails .DuplicateInvocationID |
UUIDType (string) | Conditionally | The duplicate InvocationID. |
|
DuplicateInvocationDetails .InvocationTrackingID |
string | Conditionally | The id that identifies the business item the previous API invocation created. For example, the ItemID of the item created by an AddItem call. |
|
DuplicateInvocationDetails .Status |
InvocationStatusType | Conditionally |
The status of the previous call that used the InvocationID.
Applicable values: • CustomCode
• Failure (out) • InProgress (out) • Success (out) |
| Errors | ErrorType (repeatable) |
Conditionally |
A list of application-level errors (if any) that occurred when eBay processed the request.
See Error Handling. |
| Errors.ErrorClassification | ErrorClassificationCodeType | Conditionally |
API errors are divided between two classes: system errors and request errors.
Applicable values: • CustomCode (out) Reserved for internal or future use. • RequestError (out) An error has occurred either as a result of a problem in the sending application or because the application's end-user has attempted to submit invalid data (or missing data). In these cases, do not retry the request. The problem must be corrected before the request can be made again. If the problem is due to something in the application (such as a missing required field), the application must be changed. If the problem is a result of end-user data, the application must alert the end-user to the problem and provide the means for the end-user to correct the data. Once the problem in the application or data is resolved, resend the request to eBay with the corrected data. • SystemError (out) Indicates that an error has occurred on the eBay system side, such as a database or server down. An application can retry the request as-is a reasonable number of times (eBay recommends twice). If the error persists, contact Developer Technical Support. Once the problem has been resolved, the request may be resent in its original form. |
| Errors.ErrorCode | token | Conditionally | A unique code that identifies the particular error condition that occurred. Your application can use error codes as identifiers in your customized error-handling algorithms. |
| Errors.ErrorParameters | ErrorParameterType (repeatable) |
Conditionally | This optional element carries a list of context-specific error variables that indicate details about the error condition. These are useful when multiple instances of ErrorType are returned. |
| Errors.ErrorParameters [ attribute ParamID ] |
string | Conditionally | The index of the parameter in the list of parameter types returned within the error type. |
| Errors.ErrorParameters.Value | string | Conditionally | The value of the variable (e.g., the attribute set ID) |
| Errors.LongMessage | string | Conditionally | A more detailed description of the condition that raised the error. |
| Errors.SeverityCode | SeverityCodeType | Conditionally |
Indicates whether the error is a severe error (causing the request to fail) or an informational error (a warning) that should be communicated to the user.
Applicable values: • CustomCode (out) Reserved for internal or future use • Error (out) Application-level error • Warning (out) Warning or informational error |
| Errors.ShortMessage | string | Conditionally | A brief description of the condition that raised the error. |
| HardExpirationWarning | string | Conditionally | Expiration date of the user's authentication token. Only returned within the 7-day period prior to a token's expiration. To ensure that user authentication tokens are secure and to help avoid a user's token being compromised, tokens have a limited life span. A token is only valid for a period of time (set by eBay). After this amount of time has passed, the token expires and must be replaced with a new token. |
| Timestamp | dateTime | Always |
This value represents the date and time when eBay processed the request. The time zone of this value is GMT and the format is the ISO 8601 date and time format (YYYY-MM-DDTHH:MM:SS.SSSZ). See Time Values in the eBay Web Services guide for information about this time format and converting to and from the GMT time zone. Note: GetCategories, GetAttributesCS, GetCategory2CS, GetAttributesXSL, GetProductFinder, GetProductFinderXSL, and GetProductSearchPage are designed to retrieve very large sets of metadata that change once a day or less often. To improve performance, these calls return cached responses when you request all available data (with no filters). When this occurs, this time value reflects the time the cached response was created. Thus, this value is not necessarily when the request was processed. However, if you specify an input filter to reduce the amount of data returned, the calls retrieve the latest data (not cached). When this occurs, this time value does reflect when the request was processed. |
| Version | string | Always | The version of the response payload schema. Indicates the version of the schema that eBay used to process the request. See "Standard Data for All Calls" in the eBay Web Services Guide for information on using the response version when troubleshooting "CustomCode" values that appear in the response. |
| Call-specific Output Fields | |||
| CreatedTime | dateTime | Always | The date and time the order was created. |
| OrderID | OrderIDType (string) | Always | The unique identifier for the order. |
| Input Output Samples Change History Top Errors for AddOrder User Notes |
This call does not support varying Detail Levels. You do not need to pass DetailLevel in the request.
| Input Output Detail Controls Change History Top Errors for AddOrder User Notes |
New to making API calls? Please see Routing the Request.
Note: Some item IDs, user IDs, or other data in these samples might no longer be active on eBay. If necessary, you can substitute current eBay data in your requests.
Creates an order from two ItemID/TransactionID pairs
Description
User braggybuyer purchased two separate items from magicalbookseller. magicalbookseller wants to make the process more convenient for herself and the buyer: magicalbookseller wants to combine the two transactions into one order so that braggybuyer can pay for both items together (and thus only going through the checkout process once for everything). magicalbookseller has the item ID for each listing and already used GetItemTransactions to obtain the transaction ID corresponding to each item.
Input
The key input for this call is Transaction (a container with the ItemID and corresponding TransactionID). For the seller to create the order, set CreatingUserRole to Seller. (By the way, a few more options are available when the person creating the order is the seller.)
XML format (HTTP POST). Also available is the .txt version of this XML. <?xml version="1.0" encoding="utf-8"?> <AddOrderRequest xmlns="urn:ebay:apis:eBLBaseComponents"> <RequesterCredentials> <eBayAuthToken>ABC...123</eBayAuthToken> </RequesterCredentials> <Order> <CreatingUserRole>Seller</CreatingUserRole> <PaymentMethods>PayPal</PaymentMethods> <Total currencyID="USD">36.00</Total> <TransactionArray> <Transaction> <Item> <ItemID>110025788765</ItemID> </Item> <TransactionID>0</TransactionID> </Transaction> <Transaction> <Item> <ItemID>110025788368</ItemID> </Item> <TransactionID>0</TransactionID> </Transaction> </TransactionArray> </Order> </AddOrderRequest>
Output
AddOrder creates an order and returns an OrderID. The order is assigned the state of Active.
XML format. Also available is the .txt version of this XML. <?xml version="1.0" encoding="UTF-8" ?> <AddOrderResponse xmlns="urn:ebay:apis:eBLBaseComponents"> <Timestamp>2007-12-10T16:09:47.540Z</Timestamp> <Ack>Success</Ack> <Version>539</Version> <Build>e539_core_Bundled_5642307_R1</Build> <OrderID>865826</OrderID> <CreatedTime>2007-12-10T16:09:47.000Z</CreatedTime> </AddOrderResponse>
| Input Output Detail Controls Samples Top Errors for AddOrder User Notes |
| Version | Description |
|---|---|
| 555 2008-03-05 |
|
| 537 2007-10-31 |
|
| 477 2006-09-06 |
|
| 471 2006-08-09 |
|
| Input Output Detail Controls Samples Change History Top Errors for AddOrder User Notes |
This document was generated with a customized version of the apireferencedocs tool [0.5M zip].
© 2005–2008 eBay, Inc. All rights reserved.