Receipts
Generate billing receipts for users.
#Generate a receipt
post/v2/receipts
Returns a PDF listing all billable transactions associated with the user.
Request body
- #userstring (uuid)ID of the user.required
Example Request
1curl --request POST \
2 --url https://api.argyle.com/v2/receipts \
3 --header 'accept: application/pdf' \
4 --header 'content-type: application/json' \
5 --data {"user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69"}
Example Response
1200 OK
2Content-Type: application/pdf
3Content-Disposition: attachment; filename="receipt.pdf"
4Content-Length: 12345
5
6[PDF binary stream omitted]
Example receipt
