pub struct Order {Show 14 fields
pub buyer_address: Option<BuyerAddress>,
pub create_time: Option<DateTime<Utc>>,
pub developer_revenue_in_buyer_currency: Option<Money>,
pub last_event_time: Option<DateTime<Utc>>,
pub line_items: Option<Vec<LineItem>>,
pub order_details: Option<OrderDetails>,
pub order_history: Option<OrderHistory>,
pub order_id: Option<String>,
pub points_details: Option<PointsDetails>,
pub purchase_token: Option<String>,
pub sales_channel: Option<String>,
pub state: Option<String>,
pub tax: Option<Money>,
pub total: Option<Money>,
}Expand description
The Order resource encapsulates comprehensive information about a transaction made on Google Play. It includes a variety of attributes that provide details about the order itself, the products purchased, and the history of events related to the order. The Orders APIs provide real-time access to your order data within the Google Play ecosystem. You can retrieve detailed information and metadata for both one-time and recurring orders, including transaction details like charges, taxes, and refunds, as well as metadata such as pricing phases for subscriptions. The Orders APIs let you automate tasks related to order management, reducing the need for manual checks via the Play Developer Console. The following are some of the use cases for this API: + Real-time order data retrieval - Get order details and metadata immediately after a purchase using an order ID. + Order update synchronization - Periodically sync order updates to maintain an up-to-date record of order information. Note: + The Orders API calls count towards your Play Developer API quota, which defaults to 200K daily, and may be insufficient to sync extensive order histories. + A maximum of 1000 orders can be retrieved per call. Using larger page sizes is recommended to minimize quota usage. Check your quota in the Cloud Console and request more if required.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- batchget orders (none)
- get orders (response)
- refund orders (none)
Fields§
§buyer_address: Option<BuyerAddress>Address information for the customer, for use in tax computation. When Google is the Merchant of Record for the order, only country is shown.
create_time: Option<DateTime<Utc>>The time when the order was created.
developer_revenue_in_buyer_currency: Option<Money>Your revenue for this order in the buyer’s currency, including deductions of partial refunds, taxes and fees. Google deducts standard transaction and third party fees from each sale, including VAT in some regions.
last_event_time: Option<DateTime<Utc>>The time of the last event that occurred on the order.
line_items: Option<Vec<LineItem>>The individual line items making up this order.
order_details: Option<OrderDetails>Detailed information about the order at creation time.
order_history: Option<OrderHistory>Details about events which modified the order.
order_id: Option<String>The order ID.
points_details: Option<PointsDetails>Play points applied to the order, including offer information, discount rate and point values.
purchase_token: Option<String>The token provided to the user’s device when the subscription or item was purchased.
sales_channel: Option<String>The originating sales channel of the order.
state: Option<String>The state of the order.
tax: Option<Money>The total tax paid as a part of this order.
total: Option<Money>The final amount paid by the customer, taking into account discounts and taxes.