Stamp an existing invoice as funded. Pass the ID of the invoice returned from a succesful submit.
/api/invoices/:id
PATCH
token=[ACCESS_TOKEN]
None
{
"stamped": true
}
{
"id": "ID-VALUE",
"stamped": false
}
-
Syntax errors. Invoid ID.
{ "errors": { "Invalid id parameter" } }
-
Returned when the submitted `token\` value is not valid.
{ "errors": { "Invalid Token" } }
-
Not found. ID is not found
{ "errors": { "Invalid invoice id" } }
-
Invoice was already stamped.
{ "errors": { "invoice": "Invoice has already been stamped" } }
curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' \
'http://INVOICE-CHECK-API/invoice/stamp/ID-VALUE?token=TOKEN'
{
"id": "ID-VALUE",
"stamped": true
}
- To obtain the appropriate invoice_id one must submit the appropriate data to the `Submit Invoice` to retrieve the id.