Skip to main content
POST
/
v1
/
invoices
/
{id}
/
mark-as-paid
Mark an Invoice as Paid
curl --request POST \
  --url https://api.bookeeping.ai/public-api/v1/invoices/{id}/mark-as-paid \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "strategyData": {
    "strategy": "CREATE_TRANSACTION",
    "data": {
      "transactionRefNo": "<string>",
      "category": "<string>",
      "account": "<string>",
      "counterParty": "<string>",
      "transactionNote": "<string>"
    }
  }
}
'
{
  "message": "<string>",
  "metaData": {
    "warnings": [
      "<string>"
    ]
  },
  "data": {
    "_id": "<string>",
    "projectId": "<string>",
    "status": "DRAFT",
    "invoiceId": "<string>",
    "discount": {},
    "amount": 123,
    "invoiceDate": "2023-11-07T05:31:56Z",
    "dueDate": "2023-11-07T05:31:56Z",
    "currency": "<string>",
    "lineItems": [
      {}
    ],
    "note": "<string>",
    "calculated": {
      "grandTotal": 123,
      "tax": 123,
      "discount": 123,
      "subTotal": 123
    },
    "attachments": [
      "<string>"
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "purchaseOrderId": "<string>",
    "counterParty": {
      "_id": "<string>",
      "accountName": "<string>",
      "accountNumber": "<string>",
      "email": "jsmith@example.com",
      "phone": "<string>",
      "type": "customer",
      "otherEmails": [
        "jsmith@example.com"
      ],
      "address": {}
    },
    "convertedAmount": 123,
    "convertedCurrency": "<string>",
    "sendDate": "2023-11-07T05:31:56Z",
    "sendBy": "<string>",
    "cancellationReason": "<string>",
    "cancellationDate": "2023-11-07T05:31:56Z",
    "cancellationBy": "<string>",
    "paidMarkedBy": "<string>",
    "paidMarkedDate": "2023-11-07T05:31:56Z",
    "attachedTransactionId": "<string>",
    "payViaStripeAccountConnectionId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key for authentication. Get your key from the Dashboard > Settings > API Access.

Path Parameters

id
string
required

The id of the invoice. Expected to be a valid object id like 666666666666666666666666

Body

application/json
strategyData
object
required

Response

Mark an Invoice as Paid executed successfully

message
string

Success message

metaData
object
data
object