Send an invoice to the customer
This endpoint needs your API key
Send it as a bearer token in the Authorization header. A request without one is answered with 401. See Authentication for where to find your key and how to keep it secret.
Request
curl -X PUT "https://api.leapa.co/v2/invoices/inv_7c1f9a2b48/send" \
-H "Authorization: Bearer $LEAPA_API_KEY" \
-H "Accept: application/json"Response
OK
{
"id": "obj_5f21c8a40b",
"object": "string",
"sent": false
}Path parameters
Values that go into the URL itself.
invoice_idstringrequiredExample:inv_7c1f9a2b48
Response
application/json
idstringInvoice ID
objectstringThe object name
sentbooleanFlag indicating that the invoice is sent.
Status codes
200OK400Bad request401Unauthorized402Payment required403Forbidden404Not found428Precondition required500Server error