order APIv1_beta.22.0

Order API Release Notes

Just getting started with the Order API? See the following documents for details on using this API:

See the API Site Status for announcements regarding recently resolved or current system wide issues. Visit the Developer Support page for support options and information on filing bugs.

 

The API release history

The following table lists recent Order API releases. For older releases, see the Order API Release Notes Archive.

Release Version

Release Date

Description of Release

v1_beta.22.0

2019-09-30

Removed duplicate coupon error messages

v1_beta.21.0

2019-08-22

Changes to error messages

v1_beta.20.0

2019-05-29

Added error messages

Added a unique line item order ID field

v1_beta.19.0

2019-05-23

Added import charges and shipment tracking information fields

Added new requirements for Global Shipping Program

Added and changed error messages

Changed marketing consent requirements

v1_beta.18.0

2019-04-15

Added support for the EBAY_CA marketplace

v1_beta.17.0

2019-04-08

Added fields to support returning coupon information by getPurchaseOrder

v1_beta.16.0

2019-03-04

Improved existing error messages and added new errors

v1_beta.15.0

2019-02-19

2019-01-28

Added documentation to support for integrating with PayPal's Smart Button on mobile.

Increased the number of line items

v1_beta.14.0

2019-01-23

Added support for additional marketplaces

Added a new error message

 

v1_beta.22.0

In this release, the following error messages were removed from the add coupon methods. These errors were duplicates of other error messages.

 

Error ID

Message

Removed error

16011
Duplicate of 16004
The coupon has not been activated. The coupon was ignored and no discount was applied to this order.

Removed error

16021
Duplicate of 16012

The coupon is not valid for the {fieldName}. The coupon was ignored and no discount was applied to this order.

v1_beta.21.0

In this release, one error message was added and the error message of one error was changed for clarity.

 

Error ID

Message

Methods

New error

15049 There is some issue with this payment. Contact eBay developer support for assistance.

placeGuestOrder

placeProxyGuestOrder

Improved message

17000

New message:
The payment cannot be processed due to a payment processor issue, such as invalid incentive, funding or financing issue, etc.

Old message:
The payment cannot be processed due to insufficient funds or other issues with funding source. To complete this order, use the appropriate initiate checkout session call to create a new session and provide a new payment method.

placeOrder

placeGuestOrder

placeProxyGuestOrder

 

v1_beta.20.0

In this release, two error messages were added and a unique line item order ID field was added.

Added error messages

In this release, the following two error messages were added.

Error ID

Message

Methods

15047 In compliance with applicable economic sanctions and trade restrictions, eBay is unavailable in your location. If you believe you are receiving this notice in error, please contact eBay's Customer Service. initiateCheckoutSession
initiateGuestCheckoutSession
initiateProxyGuestCheckoutSession
updateShippingAddress
updateGuestShippingAddress
updateProxyShippingAddress
15048 The value of {fieldName} is too long. For more information, see the documentation for this call.

 

Added a unique line item order ID field (for future use)

Added the lineItems.orderId field to the getGuestPurchaseOrder and getPurchaseOrder methods.

This field returns the new eBay unique order ID as a string. This is being rolled out starting in Summer 2019. In the future, this will replace the lineItems.legacyReference fields you use in the Post Order API. For details see, Easier order management with updated order numbers.

 

v1_beta.19.0

Added import charges and shipment tracking information fields

The following fields were added to support import charges (for the Global Shipping Program) and the shipment tracking information.

Field

Description

Method

lineItems.shippingOptions.importCharges The Global Shipping Program import charges for a specific line item. checkout methods: apply, get, initiate, remove, and update
pricingSummary.importCharges The sum of the Global Shipping Program import charges for all line items. checkout methods: apply, get, initiate, remove, and update

getGuestPurchase Order getPurchaseOrder
shippingFulfillments.shipmentTrackingEvents.description A string describing the tracking event.
For example: On FedEx vehicle for delivery
getPurchaseOrder
shippingFulfillments.shipmentTrackingEvents.eventDate The date of the shipment tracking event. UTC Format: yyyy-MM-ddThh:00:00.000Z
For example: 2019-03-01T12:12:00.000Z
getPurchaseOrder
shippingFulfillments.shipmentTrackingEvents.eventType A normalized string for shipment tracking event.
For example: OUT_FOR_DELIVERY
getPurchaseOrder
shippingFulfillments.shipmentTrackingEvents.location.city The city where the tracking event occurred. getPurchaseOrder
shippingFulfillments.shipmentTrackingEvents.location.country The two letter code representing the country of the address where the tracking event occurred. getPurchaseOrder
shippingFulfillments.shipmentTrackingEvents.location.county The county where the tracking event occurred. getPurchaseOrder
shippingFulfillments.shipmentTrackingEvents.location.postalCode The postal code where the tracking event occurred. getPurchaseOrder
shippingFulfillments.shipmentTrackingEvents.location.stateOrProvince The state where the tracking event occurred. getPurchaseOrder

 

New Requirements for Global Shipping Program

The following are new user experience requirements for guest checkout when using the Global Shipping Program:

  • For total shipping cost - You must show the import charges amount. See Total Shipping Cost for details.
  • For total cost - You must breakdown of the charges and show the details regarding shipping and import costs. See Total Cost for details.

Error message changes

In this release, two error messages were added and one error message was changed.

 

Error ID

Message

Methods

Existing message, added to 2 methods

15012 There is a limit on the quantity of this item that can be purchased. Reduce the quantity and resubmit the call. placeOrder
placeGuestOrder
New message 15046 One or more of the mandatory values is missing for marketingChannels and/or marketingTypes. For help, refer to the placeGuestOrder call documentation and resubmit the call. placeGuestOrder
placeProxyGuestOrder
Changed message 15044 At least one of the items in the cart cannot be purchased using this API. The purchase can be done on eBay, through the eBay app or eBay website. initiateCheckoutSession
initiateGuestCheckoutSession
initiateProxyGuestCheckoutSession

 

Marketing consent requirement changes

In prior releases, the marketing consent requirements were different across marketplaces. With this release, the requirements for all marketplaces are:

Requirement changes for the buy button page

  • You must expose the marketing consent message.
  • You must expose an expressed marketing consent checkbox.
  • When the checkbox appears:
    • For marketplaces other than the US, the checkbox is to be disabled (un-checked).
    • For the US, the checkbox is to be enabled (checked).

Fields requirement changes for guest place order methods:

All marketingTerms fields are required and you must pass in all the valid values for marketingTypes, even if marketingTermsAccepted is set to false. See the Sample for details.

  • marketingTerms.marketingChannels
    "marketingChannels": [
      "EMAIL"
    ]
  • marketingTerms.marketingTermsAccepted
    "marketingTermsAccepted": false|true,
  • marketingTerms.marketingTypes
    "marketingTypes": [
      "OFFER",
      "PROMOTION",
      "SURVEY"
    ]

 

v1_beta.18.0

You can now use the Order API for checkout and with the eBay Member and eBay Guest PayPal Smart Button payment flows on the Canada (ebay.ca) site. The Canada site supports both English and French.

  • EBAY_CA - Canada (ebay.ca)
    • English is the default
    • For French set accept-language to fr-CA

v1_beta.17.0

The following fields were added to the getPurchaseOrder and the getGuestPurchaseOrder method response. These field provide information about the coupons and/or promotions that were applied to the order.

New Field Description
lineItems.baseUnitPrice The cost of a single item in this line item.
pricingSummary.additionalSavings The total amount of the coupon discounts in the purchase order.
lineItems.promotions.discount The discount amount on the applied promotional offer.
lineItems.promotions.discountPercentage Note: The purchase order methods do not support this field.
lineItems.promotions.message The text for the promotion title, which describes the promotion. For example, Buy 1 Get 1.
lineItems.promotions.promotionCode An identifier of the promotion that was generated by the system when the promotion was created.
lineItems.promotions.promotionType Indicates the kind of promotion. Some examples are: SellerDiscountedPromotionalOffer and COUPON.

Announcement

Documentation on Integrating with PayPal's Smart Button

The Order API documentation now has details on how to integrate the Order API with PayPal's Smart Button. The PayPal Smart Button eBay guest payment flow is supported only for eBay guest checkouts. There are two flows:

These flows let eBay guests pay for items with or without having a PayPal account. They can sign into PayPal and use any payment method associated with their PayPal Account, or without a PayPal account they can pay using a credit card or a direct debit all without leaving your app or site. Using these flows you do not need to be PCI compliant.

v1_beta.16.0

In this release, the error message for 15023, 15024, and 17000 was improved and the following error were added.

Methods

Error ID

Description

initiateCheckoutSession 15024 There is a problem with the buyer's payment method. Please check or provide another payment method for this order.
applyGuestCoupon, removeGuestCoupon, updateGuestPaymentInfo, updateGuestQuantity, updateGuestShippingAddress, updateGuestShippingOption 15032 After using the 'initiateGuestPayment' call, you cannot make changes to the cart. If you need to change the cart, you must start over using the 'initiateGuestCheckoutSession' call.

 

v1_beta.15.0

In this release, the following changes have been made:

  • Added documentation to support integrating with PayPal's Smart Button on mobile. See PayPal Smart Button eBay guest payment flow for details.
  • Increased the number of line items per checkout session. This values was increased from 4 to 10. Now any session can have up to 10 line items (one item ID per line).

v1_beta.14.0

In this release, a new error message and support for additional marketplaces were added.

Additional marketplace support

The Order API now supports the following marketplaces for the guest, member, and PayPal Smart Button payment flows. For details, see Buy API Support by Marketplace.

  • EBAY_AU - Australia (ebay.com.au)
  • EBAY_ES - Spain (ebay.es)
  • EBAY_FR - France (ebay.fr)
  • EBAY_IT - Italy (ebay.it)

The Buy APIs Requirements have been updated with the requirements for these marketplaces.

Added a new error message

The following error message has been added to the initiate checkout session methods. This error is return when one of the items cannot be purchased because the seller is not processing orders. The item ID is returned in the message. If there are other items that can be purchased, you need to create a new checkout session containing these items.

Error ID

Error Message

15045 The item cannot be purchased because the seller is away and is not processing orders. If you are trying to purchase more than one item, you need to create a new checkout session to purchase the other items.