Bind payment to invoice

Description

In most cases, buyers pay exactly the amount specified in the invoice to your crypto wallet. But there are also cases when the buyer may make a mistake and pay not exactly the amount reserved. In this case, the service will not be able to automatically bind the payment and the invoice, and mark the invoice as paid. If this happens, you, as the seller, can manually bind the payment to the invoice if you are sure exactly what payment you are expecting. This operation can be done through your personal account on the site, or through the API.

Request

curl -X POST https://api.bitsby.app/invoices/bindPayment \
  -H "Authorization: Token MSvL2ltaDZdWVjmZURURMVWhqSJLT2NURjhL2Fla1Z1T1IxQTltKs1T3Ay" \
	-F "invoiceId=ade9550d-3dc7-4fd3-b94e-3b4c12aaaa0c" \
	-F "paymentId=a4c9e2ee-9a03-43e5-a1a1-00caf679d16a"

Request parameters

Example answer

{
   "result":"success",
   "data":"Invoice binded to payment"
}

Last updated