Created
December 20, 2018 12:12
-
-
Save diogopms/8e9528a974ba36d3fca79c038fdd2bb2 to your computer and use it in GitHub Desktop.
invoice express schedule invoice nodejs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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