google_api_content v0.9.0 GoogleApi.Content.V2.Api.Orderinvoices View Source
API calls for all endpoints tagged Orderinvoices
.
Link to this section Summary
Functions
Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders.
Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice enabled orders. This can only be used for line items that have previously been charged using createChargeInvoice. All amounts (except for the summary) are incremental with respect to the previous invoice.
Link to this section Functions
content_orderinvoices_createchargeinvoice(connection, merchant_id, order_id, optional_params \\ [], opts \\ []) View Source
Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders.
Parameters
- connection (GoogleApi.Content.V2.Connection): Connection to server
- merchant_id (String.t): The ID of the account that manages the order. This cannot be a multi-client account.
- order_id (String.t): The ID of the order.
optional_params (KeywordList): [optional] Optional parameters
- :alt (String.t): Data format for the response.
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :quotaUser (String.t): An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
- :userIp (String.t): Deprecated. Please use quotaUser instead.
- :body (OrderinvoicesCreateChargeInvoiceRequest):
Returns
{:ok, %GoogleApi.Content.V2.Model.OrderinvoicesCreateChargeInvoiceResponse{}} on success {:error, info} on failure
content_orderinvoices_createrefundinvoice(connection, merchant_id, order_id, optional_params \\ [], opts \\ []) View Source
Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice enabled orders. This can only be used for line items that have previously been charged using createChargeInvoice. All amounts (except for the summary) are incremental with respect to the previous invoice.
Parameters
- connection (GoogleApi.Content.V2.Connection): Connection to server
- merchant_id (String.t): The ID of the account that manages the order. This cannot be a multi-client account.
- order_id (String.t): The ID of the order.
optional_params (KeywordList): [optional] Optional parameters
- :alt (String.t): Data format for the response.
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :quotaUser (String.t): An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
- :userIp (String.t): Deprecated. Please use quotaUser instead.
- :body (OrderinvoicesCreateRefundInvoiceRequest):
Returns
{:ok, %GoogleApi.Content.V2.Model.OrderinvoicesCreateRefundInvoiceResponse{}} on success {:error, info} on failure