The client requests to check if an order can be fulfilled.
Request
CheckOrderFulfillabilityRequest
Return value
CheckOrderFulfillabilityResponse
// Request to check the fulfillability of an order. message CheckOrderFulfillabilityRequest { // The merchant that this order is intended for. (required) string merchant_id = 1; // The line items in this order. All services requested must belong to the // specified merchant. (required) repeated LineItem item = 2; // An identifier for the contents of this cart (optional). // This will be the same as the idempotency token in CreateorderRequest. // This field can be ignored if you aren't setting an expiration time for // the contents of the cart. string cart_id = 3; } // Response for the CheckOrderfulfillabilityRequest. message CheckOrderFulfillabilityResponse { // Fulfillability status of the order, potentially contains updated // availabilities and prices of the requested line item. OrderFulfillability fulfillability = 1; // Total processing fees & taxes that need to be paid for this order // (required if fees and taxes will be charged on this order). This field // will be deprecated; new users should populate fees instead. Price fees_and_taxes = 2; // Breakdown of the specific per-ticket and per-order fees and taxes. Fees fees = 3; // Time at which the cart will expire and its contents will no longer be // available, in unix epoch time (optional). // If not set, a default value will be used and the cart will not expire. int64 cart_expiration_sec = 4; } // Breakdown of the specific, partner-named per-ticket and per-order fees and // taxes. message Fees { // Fees and taxes that must be paid for each ticket the user purchases. repeated SpecificPerTicketFee per_ticket_fee = 1; // Fees and taxes that must be paid once per order, regardless of the number // of tickets purchased. repeated SpecificPerOrderFee per_order_fee = 2; } // The specific partner-named fees that must be paid for each ticket the user // purchases. message SpecificPerTicketFee { // ID of a ticket type. string ticket_id = 1; // ID of the parent service of this ticket_type. string service_id = 4; // A localized partner-provided name for this fee or tax. string fee_name = 2; // The amount of the fee or tax. Price fee_amount = 3; } // The specific partner-named fees that must be paid once per order, regardless // of number of tickets. message SpecificPerOrderFee { // A localized partner-provided name for this fee or tax. string fee_name = 1; // The amount of the fee or tax. Price fee_amount = 2; }
OrderFulfillability Specification can be found here