Skip to content

Instantly share code, notes, and snippets.

@jaredk2g
Created December 11, 2017 22:53
Show Gist options
  • Save jaredk2g/3a505bcc1d24d8ee73af9b1125cc9105 to your computer and use it in GitHub Desktop.
Save jaredk2g/3a505bcc1d24d8ee73af9b1125cc9105 to your computer and use it in GitHub Desktop.
Creating an invoice with a ship to address
curl "https://api.sandbox.invoiced.com/invoices" \
-u 4d7a57bdfecc2a2cb4319f3a7c158c14: \
-d customer=93886 \
-d payment_terms="NET 14" \
-d items[0][name]="Copy paper, Case" \
-d items[0][quantity]=1 \
-d items[0][unit_cost]=45 \
-d items[1][catalog_item]="delivery" \
-d items[1][quantity]=1 \
-d ship_to[name]="Parag Patel" \
-d ship_to[address1]="701 Brazos St" \
-d ship_to[address2]="Suite 1616" \
-d ship_to[city]="Austin" \
-d ship_to[state]="TX" \
-d ship_to[postal_code]="78701" \
-d ship_to[country]="US"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment