Create Invoices

Issue invoices for services and track their payment status.

How it Works:

  1. Create an invoice with itemized details and due date.

  2. Share the invoice URL with the customer.

  3. Monitor invoice status (paid, open, draft, void, uncollectable).

  4. Use webhooks for payment updates.

Example API Call:

curl --request POST \
  --url https://api.copperx.dev/api/v1/invoices \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "dueDate": "2025-06-01",
    "currency": "usdc",
    "lineItems": {
      "data": [
        {
          "priceData": {
            "currency": "usdc",
            "unitAmount": "50000000",
            "productData": {
              "name": "Consulting Service"
            }
          }
        }
      ]
    }
  }'

Last updated