Possibilities of the Order API

Highlighted
Tourist
9 0 0

Hello wonderful folks!

 

(New to ShopifyAPI and) I would love some advice on this idea before getting too far into it

 

Via API only is it possible to

  1. create an order
  2. for an existing customer (probably with a billing address or ideally without)
  3. for a single quantity of a single sku, which doesn't require shipping (digital item),
  4. with a manual payment method
  5. have taxes calculated (based on billing address)
  6. mark the order as paid (using the manual payment method)
  7. mark the item fulfilled (without sending an email)
  8. proceed to drink tea
0 Likes
Highlighted
Shopify Staff
Shopify Staff
618 46 87

 

Hi @stuforge,

 

Short answer, sort of. I'd highly recommend downloading something like Postman or Insomnia and playing around with the API.

 

Longer answer: You will need to explicitly specify the customer, line item details, taxes to charge, shipping charges, etc. when creating an order through the Order API. You'll also need to use the fulfillment API if you want to fulfill the order after the fact. If you're looking for most of the heavy lifting to be done by Shopify, you should check out the Draft Order API.

 

If you're looking to create an order as the result of a checkout, where money can be passed using a real payment gateway programatically, you would need to use the Checkout API through a Sales Channel app.

 

Cheers,

0 Likes
Tourist
9 0 0

Thanks Busfox!

 

Looks like the draft order API has great potential, is it possible to apply a gift card to a draft order via the API?

0 Likes