unarchiveValueReceipt

Unarchive a value receipt

​

Restores an archived receipt, unpublished: publish it again to make its links work. Refused with 409 VALUE_RECEIPT_PERIOD_COVERED when another unarchived receipt for the same customer now covers exactly the same period: archive that one first. Unarchiving a receipt that isn't archived does nothing. No request body.

Path Parameters

  • The value receipt's ID (vr_…).

Responses

  • application/json
  • application/json
  • application/json
Request Example for post/value-receipts/{id}/unarchive
curl https://billing.getspondo.com/api/v1/value-receipts/vr_5Tn8Qw2Lx7Bk3Rm9/unarchive \
  --request POST \
  --header "Authorization: Bearer $SPONDO_API_KEY"

{
  "success": true
}