

Building for an omni-channel business with Square’s APIs has never been easier
source link: https://developer.squareup.com/blog/building-for-an-omni-channel-business-with-squares-apis-has-never-been-easier/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.


Building for an omni-channel business with Square’s APIs has never been easier
Use the full power of Square’s Connect APIs and reporting tools to supercharge your online or omni-channel business.
Starting with the launch of our E-Commerce API, we’ve worked to create a powerful commerce platform for both online-only and multi-channel businesses. In the last few months we’ve introduced our Catalog API, a tool to help businesses manage their products more efficiently, as well as Square Checkout, an out-of-the-box, hosted checkout for Square developers. And today, we are tying it all together to make sure developers can provide all the necessary tools for every omni-channel business eCommerce and in person.
With the new Orders API, the tools developers build for Square sellers connect their Catalog to their online sales through our APIs for online payments. This full itemization translates to more meaningful reporting for online businesses, and especially for those who also sell in-person and share a catalog between channels.
Implementation
To implement full itemization, all a developer needs to do is create an Order and reference the order_id in our Charge endpoint or directly pass the order as part of the Checkout POST request.
{
"idempotency_key": "74ae1696-b1e3-4328-af6d-f1e04d947a13",
"reference_id": "my-order-001",
"line_items": [
{
"catalog_object_id": "7WBTDGGMYEJYU2GINA7HHKO2",
"note": "catalog-note",
"quantity": "1",
"discounts": [
{
"catalog_object_id": "JYAQQC6AE7WUL5DPAYW7IH3O"
}
],
"modifiers": [
{
"catalog_object_id": "YZ4TIQBFGOYFGEISYTVWGM4A"
}
]
},
{
"name": "T-Shirt",
"note": "custom-note",
"variation_name": "Mini",
"quantity": "1",
"base_price_money": {
"amount": 1000,
"currency": "USD"
},
"taxes": [
{
"name": "Sales Tax",
"type": "ADDITIVE",
"percentage": "12"
}
],
"discounts": [
{
"name": "$3 off Discount",
"amount_money": {
"amount": 3,
"currency": "USD"
}
}
]
}
]
}
Like the earlier release of Checkout we didn’t limit this to just merchants who have catalogs stored on Square. You can still use the feature even if you just want to create, one-off, ad hoc items.
Reporting
Now, when creating an Order and charging it, the full itemization will be available via Square dashboard with full discount, taxes and item breakdown. Custom amounts are still available if you don’t use itemization. We also allow you to consume that information directly via our API. All you need to do to see your order information is: ListTransactions to get the order_id and then BatchRetrieveOrders.
When creating custom items, Square’s internal systems will take care to aggregate your custom item sales data to show you the full picture of your business.
Additional Reading

By Matan-Paul Shetrit
@MatanPaulMedium
Recommend
-
28
Hacking on GHC Has Never Been Easier! Posted on 22 June 2019 Tags:haskell, nix ,
-
10
aflorithmic on Twitter: "Aflorithmic CEO Timo P Kunz🎧 talks about how to create engaging voice over 🔊 for video production using https://t.co/aViTR0fFHU. Making high-quality audio has never been easier, faster or more scalable!💪 https://t.co/63l...
-
7
FinanceSquare is building a decentralized finance business using bitcoinPublished Fri, Jul 16 20218:49 AM EDTUpdated 35 Min Ago...
-
14
Monetizing stolen data has never been easier, fueling more expensive breaches Read later
-
10
z3 made unreasonably easy Have you ever thought, "I really need a constraint solver right now" and remembered that the python wrapper for z3 (which is already very easy to use) is not easy enough to use? No? That's fine, I made this...
-
9
A prescription for success - omni-channel transformation at Walgreens Boots Alliance The goal is to support the patient journey across the entire care continuum through omni-channel solution. ...
-
10
The Power of Omni/Multi-Channel Experiences...
-
6
Redmi Pad’s first omni-channel sales exceed 75,000 units
-
2
The technologies you must put in place to embrace omni-channel retail By Joshua Husk
-
6
GAP's new CEO revived Barbie, but can he do omni-channel transformation differently this time? By Stuart Lauchlan ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK