Class: Peddler::API::VendorInvoicesV1

Inherits:
Peddler::API show all
Defined in:
lib/peddler/api/vendor_invoices_v1.rb

Overview

Selling Partner API for Retail Procurement Payments

The Selling Partner API for Retail Procurement Payments provides programmatic access to vendors payments data.

Instance Attribute Summary

Attributes inherited from Peddler::API

#access_token, #endpoint

Instance Method Summary collapse

Methods inherited from Peddler::API

#cannot_sandbox!, #endpoint_uri, #http, #initialize, #meter, #must_sandbox!, #retriable, #sandbox, #sandbox?, #use, #via

Constructor Details

This class inherits a constructor from Peddler::API

Instance Method Details

#submit_invoices(body, rate_limit: 10.0) ⇒ Hash

Note:

This operation can make a static sandbox call.

Submit new invoices to Amazon.

Parameters:

  • body (Hash)

    The request body containing the invoice data to submit.

  • rate_limit (Float) (defaults to: 10.0)

    Requests per second

Returns:

  • (Hash)

    The API response



23
24
25
26
27
# File 'lib/peddler/api/vendor_invoices_v1.rb', line 23

def submit_invoices(body, rate_limit: 10.0)
  path = "/vendor/payments/v1/invoices"

  meter(rate_limit).post(path, body:)
end