Orderpayments: notifycharge

Notify about charge on user's selected payments method. Try it now.


HTTP request

POST https://www.googleapis.com/content/v2/merchantId/orderpayments/orderId/notifyCharge


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 order for which charge is happening.


This request requires authorization with the following scope:


For more information, see the authentication and authorization page.

Request body

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

  "invoiceId": string,
  "invoiceIds": [
  "chargeState": string
Property name Value Description Notes
chargeState string Whether charge was successful.

Acceptable values are:
  • "charged"
  • "failed"
invoiceIds[] list Invoice IDs from the orderinvoices service that correspond to the charge.
invoiceId string Deprecated. Please use invoiceIds instead.


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

  "kind": "content#orderpaymentsNotifyChargeResponse",
  "executionStatus": string
Property name Value Description Notes
kind string Identifies what kind of resource this is. Value: the fixed string "content#orderpaymentsNotifyChargeResponse".
executionStatus string The status of the execution.

Acceptable values are:
  • "ok"