post https://api.piriod.com/invoices/
This endpoint creates an invoice for a given customer with status draft. After create the invoice use finalize resource for finish invoice.
Response
This endpoint creates an invoice for a given customer with status draft. After create the invoice use finalize resource for finish invoice.
xxxxxxxxxx
12curl --request POST \
--url https://api.piriod.com/invoices/ \
--header 'Authorization: Token YOUR_USER_API_KEY' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-simple-workspace: YOUR_ORGANIZATION_ID' \
--data '
{
"collection_method": "deferred",
"discount_scheme": "%"
}
'