Skip to content

Instantly share code, notes, and snippets.

@diogopms
Created December 20, 2018 12:12
Show Gist options
  • Save diogopms/8e9528a974ba36d3fca79c038fdd2bb2 to your computer and use it in GitHub Desktop.
Save diogopms/8e9528a974ba36d3fca79c038fdd2bb2 to your computer and use it in GitHub Desktop.
invoice express schedule invoice nodejs
#List all sequence id
curl --request GET \
--url 'https://<NAME>.app.invoicexpress.com/sequences.json?api_key=API_KEY' \
--header 'accept: application/json'
# Invoice
curl --request POST \
--url 'https://<NAME>.app.invoicexpress.com/invoices.json?api_key=API_KEY' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"invoice": {
"date": "18/12/2018",
"due_date": "18/12/2018",
"tax_exemption": "M07",
"sequence_id": 1115355,
"client": {
"name": "Nome",
"code": "1"
},
"items": [{
"name": "AI-C",
"description": "Description",
"unit_price": "395",
"quantity": "1"
}]
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment