Shopify order shipping address id - shopify

Is there a way to retrieve the id of the shipping address per order? The shopify api returns the billing and shipping address and the billing address has an id field but the shipping address does not.
I need the shipping address id specifically, not just the address fields.

So I contacted Shopify support and this was their response:
At this time, there's no way to pull a shipping address ID from an order, rather the closest thing to your request would be to go through the Customer resource, retrieve the customer associated to a specific order and then grab that customers address using this endpoint:
GET /admin/customers/#{id}/addresses.json
I hope this helps anyone with the same query.

Related

Sending cardholder name to Authorize.net through API without billing address

I'm trying to find out how to send cardholder name without sending billing address to Authorize.net in order to get it populated under "Customer" column. With old AIM integration method cardholder name was part of credit card information but it sounds like new API only accepting it as part of "bill to"? Something doesn't make sense to me. Any suggestions?
Note: I'm not creating customer profiles
Simply set firstname and lastname only under billTo block.

Retrieval of all the invoices of particular contact id in xero

In xero, if we create a contact. Using that contact we perform couple of sales invoice and purchase bills and few of them get paid. Now I want to obtain the list of the invoices groupedBy ContactID in php
Xero have recently released functionality that allows this in an easy way.
You can use the ContactIDs query parameter on the invoices endpoint like the following:
GET ../Invoices?ContactIDs=623e392d-7402-40e4-a54c-fdf29783e9a4
You can also do this for more than one ContactID by supplying a comma separated list of ContactIDs.
You can find more information about this in this handy blog post

Hyperledger Online payment use case: front end GO implementation

I am new to hyperledger and online payment.
One scenario I have in mind is: if A is an online shop, B is a consumer. B orders an item from A's shop and pays with Bitcoin/hyperledger. A ships the item to B once the payment is received.
With hyperledger, the process goes:
B sends A the payment via blockchain;
A is able to query how much money A owns;
But the question is:
How does A know if the transaction was from B?
How does A know how much money was sent by B?
How does A know if the transaction from B is for the specific ordered item?
Thanks,
What you'd usually do in Bitcoin is to create a new payment address that is bound to the specific order. The invoice would include that address with instructions to send the specified amount to that address and the recipient could simply wait for an incoming transaction with an output destined for that address.
At this point you'd know which customer has paid for which order, to check the amount just check the output value field in the transaction and compare it to the invoice.

Is there anyway to get the label information by tracking number from UPS, USPS, FEDEX, etc?

I want to know if is possible to get information like:
Consignee name (Destination Name) from UPS (And/or other couriers) tracking number?
My final goal is scan the tracking number and get the name of the receiver using the api from those.
Neither UPS nor any other major carrier returns the sender or recipient name in the tracking API. You're able to get location information like city, zip code and country, but not the actual name.

ebay getOrders API

I am building a .net service to getOrders from ebay. my service runs fine, however I dont know how should I handle data.
For example I am using CreateTimeTo and CreateTimeFrom Filter to return orders from past 24 hours. I save them into my database, now some orders return no Address info.
My question is, Whats the best way to hadnle/update already imported orders into my database. Say for example order imported into my system wa without shiping info, and customer completed shipping info after a week, how would I update that order in my system?
Thanks
I would definitely use modtimefrom modtimeto filter. Ih this way you can get all order that have been modiefied in last "x interval". This way you will get either new orders and modified (checkout complete - paid - shipped) and so on. My favourite filter anyway is NumberOfDays. This one acts as ModTimeFrom/ModTimeTo but is way more simple and you don't have to deal with dates.
An order without address means buyer has not completed checkout (no payment selected so no shipping address as well yet).
Once buyer completes checkout or order is mark as paid the entire address will be avaible.
You can get buyer default address shipping by using call GetSellerTransaction
I hope i understood your question and to be helpful.