Class: Peddler::API::VendorDirectFulfillmentPaymentsV1

Inherits:
Peddler::API
  • Object
show all
Defined in:
lib/peddler/api/vendor_direct_fulfillment_payments_v1.rb

Overview

Selling Partner API for Direct Fulfillment Payments

The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor’s invoice 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_invoice(body, rate_limit: 10.0) ⇒ Hash

Note:

This operation can make a static sandbox call.

Submits one or more invoices for a vendor’s direct fulfillment orders.

Parameters:

  • body (Hash)

    The request body that contains one or more invoices for vendor orders.

  • rate_limit (Float) (defaults to: 10.0)

    Requests per second

Returns:

  • (Hash)

    The API response



24
25
26
27
28
# File 'lib/peddler/api/vendor_direct_fulfillment_payments_v1.rb', line 24

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

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