Skip to content

Instantly share code, notes, and snippets.

@harshadyeola
Created January 5, 2016 17:25
Show Gist options
  • Select an option

  • Save harshadyeola/933b5a48df6fe8b263f6 to your computer and use it in GitHub Desktop.

Select an option

Save harshadyeola/933b5a48df6fe8b263f6 to your computer and use it in GitHub Desktop.
boom -d 60 -m POST https://dev.linuxontheheads.com/wc-api/v3/orders \
-a ck_7732804e713dc061e861755b48bd98ba5de657d2:cs_3568d1535b7002b675f1446650d6b328497cff3e \
--content-type application/json \
-D '{
"order": {
"payment_details": {
"method_id": "bacs",
"method_title": "Direct Bank Transfer",
"paid": true
},
"billing_address": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US",
"email": "john.doe@example.com",
"phone": "(555) 555-5555"
},
"shipping_address": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US"
},
"customer_id": 2,
"line_items": [
{
"product_id": 70,
"quantity": 2
},
{
"product_id": 56,
"quantity": 1,
"variations": {
"pa_color": "Black"
}
}
],
"shipping_lines": [
{
"method_id": "flat_rate",
"method_title": "Flat Rate",
"total": 10
}
]
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment