Liking cljdoc? Tell your friends :D

happygapi.content.orders

Content API for Shopping: orders. Manage your product listings and accounts for Google Shopping See: https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders

Content API for Shopping: orders.
Manage your product listings and accounts for Google Shopping
See: https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders
raw docstring

acknowledge$clj

(acknowledge$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/acknowledge

Required parameters: merchantId, orderId

Optional parameters: none

Body:

{:operationId string}

Marks an order as acknowledged.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/acknowledge

Required parameters: merchantId, orderId

Optional parameters: none

Body: 

{:operationId string}

Marks an order as acknowledged.
sourceraw docstring

advancetestorder$clj

(advancetestorder$ auth parameters)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/advancetestorder

Required parameters: merchantId, orderId

Optional parameters: none

Sandbox only. Moves a test order from state "inProgress" to state "pendingShipment".

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/advancetestorder

Required parameters: merchantId, orderId

Optional parameters: none

Sandbox only. Moves a test order from state "`inProgress`" to state "`pendingShipment`".
sourceraw docstring

cancel$clj

(cancel$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/cancel

Required parameters: merchantId, orderId

Optional parameters: none

Body:

{:operationId string, :reasonText string, :reason string}

Cancels all line items in an order, making a full refund.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/cancel

Required parameters: merchantId, orderId

Optional parameters: none

Body: 

{:operationId string, :reasonText string, :reason string}

Cancels all line items in an order, making a full refund.
sourceraw docstring

cancellineitem$clj

(cancellineitem$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/cancellineitem

Required parameters: orderId, merchantId

Optional parameters: none

Body:

{:reason string, :quantity integer, :reasonText string, :operationId string, :productId string, :lineItemId string}

Cancels a line item, making a full refund.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/cancellineitem

Required parameters: orderId, merchantId

Optional parameters: none

Body: 

{:reason string,
 :quantity integer,
 :reasonText string,
 :operationId string,
 :productId string,
 :lineItemId string}

Cancels a line item, making a full refund.
sourceraw docstring

canceltestorderbycustomer$clj

(canceltestorderbycustomer$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/canceltestorderbycustomer

Required parameters: orderId, merchantId

Optional parameters: none

Body:

{:reason string}

Sandbox only. Cancels a test order for customer-initiated cancellation.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/canceltestorderbycustomer

Required parameters: orderId, merchantId

Optional parameters: none

Body: 

{:reason string}

Sandbox only. Cancels a test order for customer-initiated cancellation.
sourceraw docstring

captureOrder$clj

(captureOrder$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/captureOrder

Required parameters: merchantId, orderId

Optional parameters: none

Body:

{}

Capture funds from the customer for the current order total. This method should be called after the merchant verifies that they are able and ready to start shipping the order. This method blocks until a response is received from the payment processsor. If this method succeeds, the merchant is guaranteed to receive funds for the order after shipment. If the request fails, it can be retried or the order may be cancelled. This method cannot be called after the entire order is already shipped. A rejected error code is returned when the payment service provider has declined the charge. This indicates a problem between the PSP and either the merchant's or customer's account. Sometimes this error will be resolved by the customer. We recommend retrying these errors once per day or cancelling the order with reason failedToCaptureFunds if the items cannot be held.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/captureOrder

Required parameters: merchantId, orderId

Optional parameters: none

Body: 

{}

Capture funds from the customer for the current order total. This method should be called after the merchant verifies that they are able and ready to start shipping the order. This method blocks until a response is received from the payment processsor. If this method succeeds, the merchant is guaranteed to receive funds for the order after shipment. If the request fails, it can be retried or the order may be cancelled. This method cannot be called after the entire order is already shipped. A rejected error code is returned when the payment service provider has declined the charge. This indicates a problem between the PSP and either the merchant's or customer's account. Sometimes this error will be resolved by the customer. We recommend retrying these errors once per day or cancelling the order with reason `failedToCaptureFunds` if the items cannot be held.
sourceraw docstring

createtestorder$clj

(createtestorder$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/createtestorder

Required parameters: merchantId

Optional parameters: none

Body:

{:templateName string, :testOrder {:promotions [OrderPromotion], :predefinedPickupDetails string, :shippingOption string, :pickupDetails TestOrderPickupDetails, :enableOrderinvoices boolean, :predefinedBillingAddress string, :lineItems [TestOrderLineItem], :deliveryDetails TestOrderDeliveryDetails, :shippingCost Price, :kind string, :predefinedDeliveryAddress string, :predefinedEmail string, :notificationMode string}, :country string}

Sandbox only. Creates a test order.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/createtestorder

Required parameters: merchantId

Optional parameters: none

Body: 

{:templateName string,
 :testOrder {:promotions [OrderPromotion],
             :predefinedPickupDetails string,
             :shippingOption string,
             :pickupDetails TestOrderPickupDetails,
             :enableOrderinvoices boolean,
             :predefinedBillingAddress string,
             :lineItems [TestOrderLineItem],
             :deliveryDetails TestOrderDeliveryDetails,
             :shippingCost Price,
             :kind string,
             :predefinedDeliveryAddress string,
             :predefinedEmail string,
             :notificationMode string},
 :country string}

Sandbox only. Creates a test order.
sourceraw docstring

createtestreturn$clj

(createtestreturn$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/createtestreturn

Required parameters: orderId, merchantId

Optional parameters: none

Body:

{:items [{:quantity integer, :lineItemId string}]}

Sandbox only. Creates a test return.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/createtestreturn

Required parameters: orderId, merchantId

Optional parameters: none

Body: 

{:items [{:quantity integer, :lineItemId string}]}

Sandbox only. Creates a test return.
sourceraw docstring

get$clj

(get$ auth parameters)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/get

Required parameters: orderId, merchantId

Optional parameters: none

Retrieves an order from your Merchant Center account.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/get

Required parameters: orderId, merchantId

Optional parameters: none

Retrieves an order from your Merchant Center account.
sourceraw docstring

getbymerchantorderid$clj

(getbymerchantorderid$ auth parameters)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/getbymerchantorderid

Required parameters: merchantId, merchantOrderId

Optional parameters: none

Retrieves an order using merchant order ID.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/getbymerchantorderid

Required parameters: merchantId, merchantOrderId

Optional parameters: none

Retrieves an order using merchant order ID.
sourceraw docstring

gettestordertemplate$clj

(gettestordertemplate$ auth parameters)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/gettestordertemplate

Required parameters: templateName, merchantId

Optional parameters: country

Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/gettestordertemplate

Required parameters: templateName, merchantId

Optional parameters: country

Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.
sourceraw docstring

instorerefundlineitem$clj

(instorerefundlineitem$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/instorerefundlineitem

Required parameters: orderId, merchantId

Optional parameters: none

Body:

{:quantity integer, :reasonText string, :lineItemId string, :taxAmount {:value string, :currency string}, :priceAmount {:value string, :currency string}, :productId string, :operationId string, :reason string}

Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store). Note: We recommend calling the returnrefundlineitem method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/instorerefundlineitem

Required parameters: orderId, merchantId

Optional parameters: none

Body: 

{:quantity integer,
 :reasonText string,
 :lineItemId string,
 :taxAmount {:value string, :currency string},
 :priceAmount {:value string, :currency string},
 :productId string,
 :operationId string,
 :reason string}

Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store). Note: We recommend calling the returnrefundlineitem method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return.
sourceraw docstring

list$clj

(list$ auth parameters)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/list

Required parameters: merchantId

Optional parameters: orderBy, placedDateEnd, acknowledged, maxResults, statuses, pageToken, placedDateStart

Lists the orders in your Merchant Center account.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/list

Required parameters: merchantId

Optional parameters: orderBy, placedDateEnd, acknowledged, maxResults, statuses, pageToken, placedDateStart

Lists the orders in your Merchant Center account.
sourceraw docstring

refunditem$clj

(refunditem$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/refunditem

Required parameters: merchantId, orderId

Optional parameters: none

Body:

{:reasonText string, :reason string, :operationId string, :items [{:amount MonetaryAmount, :quantity integer, :lineItemId string, :fullRefund boolean, :productId string}], :shipping {:fullRefund boolean, :amount Price}}

Issues a partial or total refund for items and shipment.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/refunditem

Required parameters: merchantId, orderId

Optional parameters: none

Body: 

{:reasonText string,
 :reason string,
 :operationId string,
 :items [{:amount MonetaryAmount,
          :quantity integer,
          :lineItemId string,
          :fullRefund boolean,
          :productId string}],
 :shipping {:fullRefund boolean, :amount Price}}

Issues a partial or total refund for items and shipment.
sourceraw docstring

refundorder$clj

(refundorder$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/refundorder

Required parameters: merchantId, orderId

Optional parameters: none

Body:

{:fullRefund boolean, :amount {:priceAmount Price, :taxAmount Price}, :reasonText string, :reason string, :operationId string}

Issues a partial or total refund for an order.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/refundorder

Required parameters: merchantId, orderId

Optional parameters: none

Body: 

{:fullRefund boolean,
 :amount {:priceAmount Price, :taxAmount Price},
 :reasonText string,
 :reason string,
 :operationId string}

Issues a partial or total refund for an order.
sourceraw docstring

rejectreturnlineitem$clj

(rejectreturnlineitem$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/rejectreturnlineitem

Required parameters: merchantId, orderId

Optional parameters: none

Body:

{:quantity integer, :operationId string, :lineItemId string, :reasonText string, :productId string, :reason string}

Rejects return on an line item.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/rejectreturnlineitem

Required parameters: merchantId, orderId

Optional parameters: none

Body: 

{:quantity integer,
 :operationId string,
 :lineItemId string,
 :reasonText string,
 :productId string,
 :reason string}

Rejects return on an line item.
sourceraw docstring

returnrefundlineitem$clj

(returnrefundlineitem$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/returnrefundlineitem

Required parameters: merchantId, orderId

Optional parameters: none

Body:

{:quantity integer, :lineItemId string, :operationId string, :taxAmount {:value string, :currency string}, :reason string, :priceAmount {:value string, :currency string}, :productId string, :reasonText string}

Returns and refunds a line item. Note that this method can only be called on fully shipped orders. Please also note that the Orderreturns API is the preferred way to handle returns after you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot be found, then we recommend using this API to issue a refund.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/returnrefundlineitem

Required parameters: merchantId, orderId

Optional parameters: none

Body: 

{:quantity integer,
 :lineItemId string,
 :operationId string,
 :taxAmount {:value string, :currency string},
 :reason string,
 :priceAmount {:value string, :currency string},
 :productId string,
 :reasonText string}

Returns and refunds a line item. Note that this method can only be called on fully shipped orders. Please also note that the Orderreturns API is the preferred way to handle returns after you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot be found, then we recommend using this API to issue a refund.
sourceraw docstring

setlineitemmetadata$clj

(setlineitemmetadata$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/setlineitemmetadata

Required parameters: orderId, merchantId

Optional parameters: none

Body:

{:productId string, :annotations [{:value string, :key string}], :lineItemId string, :operationId string}

Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs. A common use case would be to supply us with additional structured information about a line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders resource.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/setlineitemmetadata

Required parameters: orderId, merchantId

Optional parameters: none

Body: 

{:productId string,
 :annotations [{:value string, :key string}],
 :lineItemId string,
 :operationId string}

Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs. A common use case would be to supply us with additional structured information about a line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders resource.
sourceraw docstring

shiplineitems$clj

(shiplineitems$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/shiplineitems

Required parameters: merchantId, orderId

Optional parameters: none

Body:

{:lineItems [{:lineItemId string, :quantity integer, :productId string}], :shipmentGroupId string, :operationId string, :shipmentInfos [{:trackingId string, :shipmentId string, :carrier string}]}

Marks line item(s) as shipped.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/shiplineitems

Required parameters: merchantId, orderId

Optional parameters: none

Body: 

{:lineItems [{:lineItemId string,
              :quantity integer,
              :productId string}],
 :shipmentGroupId string,
 :operationId string,
 :shipmentInfos [{:trackingId string,
                  :shipmentId string,
                  :carrier string}]}

Marks line item(s) as shipped.
sourceraw docstring

updatelineitemshippingdetails$clj

(updatelineitemshippingdetails$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/updatelineitemshippingdetails

Required parameters: orderId, merchantId

Optional parameters: none

Body:

{:shipByDate string, :deliverByDate string, :productId string, :lineItemId string, :operationId string}

Updates ship by and delivery by dates for a line item.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/updatelineitemshippingdetails

Required parameters: orderId, merchantId

Optional parameters: none

Body: 

{:shipByDate string,
 :deliverByDate string,
 :productId string,
 :lineItemId string,
 :operationId string}

Updates ship by and delivery by dates for a line item.
sourceraw docstring

updatemerchantorderid$clj

(updatemerchantorderid$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/updatemerchantorderid

Required parameters: merchantId, orderId

Optional parameters: none

Body:

{:merchantOrderId string, :operationId string}

Updates the merchant order ID for a given order.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/updatemerchantorderid

Required parameters: merchantId, orderId

Optional parameters: none

Body: 

{:merchantOrderId string, :operationId string}

Updates the merchant order ID for a given order.
sourceraw docstring

updateshipment$clj

(updateshipment$ auth parameters body)

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/updateshipment

Required parameters: merchantId, orderId

Optional parameters: none

Body:

{:readyPickupDate string, :undeliveredDate string, :carrier string, :trackingId string, :lastPickupDate string, :shipmentId string, :status string, :operationId string, :deliveryDate string, :scheduledDeliveryDetails {:scheduledDate string, :carrierPhoneNumber string}}

Updates a shipment's status, carrier, and/or tracking ID.

https://developers.google.com/shopping-content/v2/api/reference/rest/v2.1/orders/updateshipment

Required parameters: merchantId, orderId

Optional parameters: none

Body: 

{:readyPickupDate string,
 :undeliveredDate string,
 :carrier string,
 :trackingId string,
 :lastPickupDate string,
 :shipmentId string,
 :status string,
 :operationId string,
 :deliveryDate string,
 :scheduledDeliveryDetails {:scheduledDate string,
                            :carrierPhoneNumber string}}

Updates a shipment's status, carrier, and/or tracking ID.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close