Class: Peddler::APIs::VendorInvoicesV1

Inherits:
Peddler::API show all
Defined in:
lib/peddler/apis/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, #parser

Instance Method Summary collapse

Methods inherited from Peddler::API

#endpoint_uri, #http, #initialize, #meter, #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) ⇒ Peddler::Response

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:



23
24
25
26
27
# File 'lib/peddler/apis/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