Invoice cancellation

Description

An invoice can be canceled to prevent the buyer from paying the invoice. This is necessary if an error has been made on the invoice. An invoice can only be canceled if two conditions are met:

  • Invoice status: not paid

  • Payment page views: 0 views

Request

curl -X POST https://api.bitsby.app/invoices/cancel \
  -H "Authorization: Token MSvL2ltaDZdWVjmZURURMVWhqSJLT2NURjhL2Fla1Z1T1IxQTltKs1T3Ay" \
	-F "invoiceId=ade9550d-3dc7-4fd3-b94e-3b4c12aaaa0c"

Request parameters

Пример ответа

{
   "result":"success",
   "data":"Invoice canceled"
}

Last updated