Orders: canceltestorderbycustomer

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


HTTP request

POST https://www.googleapis.com/content/v2.1sandbox/merchantId/testorders/orderId/cancelByCustomer


Parameter name Value Description
Path parameters
merchantId unsigned long The ID of the account that manages the order. This cannot be a multi-client account.
orderId string The ID of the test order to cancel.


This request requires authorization with the following scope:


Request body

In the request body, supply data with the following structure:

  "reason": string
Property name Value Description Notes
reason string The reason for the cancellation.

Acceptable values are:
  • "changedMind"
  • "orderedWrongItem"
  • "other"


If successful, this method returns a response body with the following structure:

  "kind": "content#ordersCancelTestOrderByCustomerResponse"
Property name Value Description Notes
kind string Identifies what kind of resource this is. Value: the fixed string "content#ordersCancelTestOrderByCustomerResponse".