Class: Peddler::APIs::ShipmentInvoicingV0
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::ShipmentInvoicingV0
- Defined in:
- lib/peddler/apis/shipment_invoicing_v0.rb
Overview
Selling Partner API for Shipment Invoicing
The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders.
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #parser
Instance Method Summary collapse
-
#get_invoice_status(shipment_id, rate_limit: 1.133) ⇒ Peddler::Response
Returns the invoice status for the shipment you specify.
-
#get_shipment_details(shipment_id, rate_limit: 1.133) ⇒ Peddler::Response
Returns the shipment details required to issue an invoice for the specified shipment.
-
#submit_invoice(shipment_id, body, rate_limit: 1.133) ⇒ Peddler::Response
Submits a shipment invoice document for a given shipment.
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
#get_invoice_status(shipment_id, rate_limit: 1.133) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns the invoice status for the shipment you specify.
52 53 54 55 56 |
# File 'lib/peddler/apis/shipment_invoicing_v0.rb', line 52 def get_invoice_status(shipment_id, rate_limit: 1.133) path = "/fba/outbound/brazil/v0/shipments/#{shipment_id}/invoice/status" meter(rate_limit).get(path) end |
#get_shipment_details(shipment_id, rate_limit: 1.133) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns the shipment details required to issue an invoice for the specified shipment.
27 28 29 30 31 |
# File 'lib/peddler/apis/shipment_invoicing_v0.rb', line 27 def get_shipment_details(shipment_id, rate_limit: 1.133) path = "/fba/outbound/brazil/v0/shipments/#{shipment_id}" meter(rate_limit).get(path) end |
#submit_invoice(shipment_id, body, rate_limit: 1.133) ⇒ Peddler::Response
This operation can make a static sandbox call.
Submits a shipment invoice document for a given shipment.
40 41 42 43 44 |
# File 'lib/peddler/apis/shipment_invoicing_v0.rb', line 40 def submit_invoice(shipment_id, body, rate_limit: 1.133) path = "/fba/outbound/brazil/v0/shipments/#{shipment_id}/invoice" meter(rate_limit).post(path, body:) end |