Shipment Id from Amazom SP API? - python-3.x

AMAZON-SP-API to pull data from amazon's seller account.Can anybody tell me how to get shipment id and FNSKU from API?. I pulled data from orders and catalog API but did not found any shipment id related to it.Neither the documentation lists the API response variables.

Related

Linking CustPymt to CustInvc in NetSuite API

I am dealing with integrating with NetSuite API.
I'm stuck as to how to link a CustPymt (Customer Payment) to the CustInvc (Customer Invoice) it's linked to on NetSuite.
On Netsuite I can visibly see these linkages, but I cannot recreate them via the API.
I'm currently syncing JSON responses from Transactions and TransactionLine. Am I missing something?
I can't find anything in the children of Transactions (Lines) to link either transaction together via a common key or a reference to the invoice within the Transaction or Transaction Line.

¿how to query all items created in netsuite rest api?

I am doing an integration with the Netsuite API and I am testing the resources such as invoices, clients and products in Postman. I can't find a URL that shows all products (items). Do you know how to access this?
in the user interface it can be easily seen in: Lists>Accounting>items
You can use the suiteql rest endpoint to submit suiteql queries.
The query you will want to submit in the q is:
select id, itemid from item
You can find the entire list of queryable fields in the analytics browser.

Get total sold of product variant from Shopify's API

I am trying to retrieve total of sold products variants (Like how we see them in the dashboard reports) from Shopify's dashboard via API.
I checked orders API documentation but it seems like it doesn't have any filter or endpoint that would returns that data.
I am not sure if it is possible via Shopify GraphQl or ShopifyQL.
In the documentation of ShopifyQL it says
(The Analytics API is deprecated. Please use our other APIs to get Sales, Payments, Taxes, and Customer data.)
Anybody knows how to access to that data in anyway?

Creating a Contact with a Customer External Id

Is it possible to create a contact through the NetSuite SOAP API (SuiteTalk) for a customer using the customer external id? I tried setting the RecordRef external id and type to customer but received the error "Nonexistent externalId 123 for company" but a customer with that external id does exist.
As you mentioned that you already checked that externalid exists for the customer. This error is seen when the customer record is inactive. Can you check if the customer is active or not. If it's not then try integrating with an active customer. Please let me know if this works! Thanks

Getting Stripe Checkout Product SKU from Stripe charge API

I have a very basic website that runs a stripe checkout with 2 product. This all works fine and I am able to sell products and they appear in the dashboard. Now I want to automate the whole shipping process and get the shipping address for each new purchase along with what was purchased. I can get the address through the stripe API but I can't find any GET commands that can tell me which product sku was ordered along with the Charge. This seems like something that should be pretty easy to find out? It shows up in the web GUI dashboard but not in the web requests. I've read through the documents here https://stripe.com/docs/api but I'm not finding much help.
I have a working web request in python that can return all of my charges that were created but it has no product info.
Alright I found out how to do it. It's a little convoluted and should be streamlined by stripe but here is how you can do it.
First requests a list of events like this (I'm using python)
import stripe
foo = stripe. PaymentIntent.list(type='checkout.session.completed',limit=10)
Once you get the events you can find the payment intent buried inside of the json object.
payment_intent = foo['data']['object']['payment_intent']
Once you have a payment intent you can retrieve the payment_intent object from stripe like this
charges = stripe.PaymentIntent.retrieve(payment_intent)['charges']['data'][0]
which will yield a charges object that has all the billing data in it.
Now to the get the product that was ordered from that payment intent. This can be found in the event object at
item = events['data'][<insert or loop over this list element>]['data']['object']['display_items'][0]['sku']['attributes']['name']
And doing this you can get the shipping and item that was sold.

Resources