Invoices
Invoice management, recipients, and location settings
Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Query Parameters
Location ID to fetch settings for (required)
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/invoice-location-settings?locationId=0"{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "defaultPaymentTermsDays": 30, "invoiceNumberPrefix": "string", "invoiceNumberCounter": 0, "minInvoiceAmount": 0, "senderName": "string", "senderAddressLine1": "string", "senderAddressLine2": "string", "senderPostalCode": "string", "senderCity": "string", "senderCountry": "string", "senderEmail": "string", "senderPhone": "string", "senderOrganizationNumber": "string", "senderVatNumber": "string", "senderLogoUrl": "string", "bankAccountNumber": "string", "bankName": "string", "swiftBic": "string", "iban": "string", "paymentReferencePrefix": "string", "invoiceFooterText": "string", "invoiceTermsText": "string", "latePaymentFee": 0, "latePaymentInterestRate": 0, "autoGenerateEnabled": true, "autoSendOnGeneration": true, "defaultInvoiceSendMode": "manual", "defaultInvoiceSchedule": { "scheduleType": "weekly", "dayOfWeek": 0, "dayOfMonth": 1, "intervalDays": 1, "timeOfDay": "string", "timezone": "string" }, "registerPurchasesInCashRegister": true, "collectionPeriodType": "calendar_month", "reminderEnabled": true, "firstReminderDaysAfterDue": 0, "secondReminderDaysAfterDue": 0, "thirdReminderDaysAfterDue": 0, "reminderFeeAmount": 0, "autoMarkOverdueDays": 0, "currency": "string", "overrideParentSettings": true, "shareInvoiceNumberSeries": true, "allowChildRecipientCreation": true, "canCreateRecipients": true, "requiredRecipientFields": [ "name" ], "posReferenceRequirement": "optional", "sourceLocationId": 0, "sourceLocationName": "string", "isInherited": true, "hasParent": true, "numberSeriesSourceLocationId": 0, "numberSeriesSourceLocationName": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Location ID (required)
Default payment terms in days
Prefix for invoice numbers
Minimum amount for invoicing
Sender/company name
Sender address line 1
Sender address line 2
Sender postal code
Sender city
Sender country
Sender email address
Sender phone number
Sender organization number
Sender VAT number
Logo URL shown top-right on the invoice PDF and in the invoice email
Bank account number
Bank name
SWIFT/BIC code
IBAN
Payment reference prefix
Footer text for invoices
Terms and conditions text
Late payment fee amount
Late payment interest rate (percentage)
Enable automatic invoice generation
Automatically send invoices when generated
Value in
- "manual"
- "scheduled"
- "immediate"
Register invoice purchases in the configured cash register
Collection period type for auto-invoicing
Value in
- "calendar_month"
- "rolling_30_days"
- "weekly"
Enable payment reminders
Days after due date for first reminder
Days after due date for second reminder
Days after due date for third reminder
Fee amount added per reminder
Days after due date to auto-mark as overdue
Currency code (e.g., SEK, EUR)
Use location-specific settings instead of inheriting parent settings
Share this location's invoice counter with child locations
Allow child locations to create invoice recipients
Value in
- "optional"
- "required"
- "existing"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/v1/invoice-location-settings" \ -H "Content-Type: application/json" \ -d '{ "locationId": 0 }'{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "defaultPaymentTermsDays": 30, "invoiceNumberPrefix": "string", "invoiceNumberCounter": 0, "minInvoiceAmount": 0, "senderName": "string", "senderAddressLine1": "string", "senderAddressLine2": "string", "senderPostalCode": "string", "senderCity": "string", "senderCountry": "string", "senderEmail": "string", "senderPhone": "string", "senderOrganizationNumber": "string", "senderVatNumber": "string", "senderLogoUrl": "string", "bankAccountNumber": "string", "bankName": "string", "swiftBic": "string", "iban": "string", "paymentReferencePrefix": "string", "invoiceFooterText": "string", "invoiceTermsText": "string", "latePaymentFee": 0, "latePaymentInterestRate": 0, "autoGenerateEnabled": true, "autoSendOnGeneration": true, "defaultInvoiceSendMode": "manual", "defaultInvoiceSchedule": { "scheduleType": "weekly", "dayOfWeek": 0, "dayOfMonth": 1, "intervalDays": 1, "timeOfDay": "string", "timezone": "string" }, "registerPurchasesInCashRegister": true, "collectionPeriodType": "calendar_month", "reminderEnabled": true, "firstReminderDaysAfterDue": 0, "secondReminderDaysAfterDue": 0, "thirdReminderDaysAfterDue": 0, "reminderFeeAmount": 0, "autoMarkOverdueDays": 0, "currency": "string", "overrideParentSettings": true, "shareInvoiceNumberSeries": true, "allowChildRecipientCreation": true, "canCreateRecipients": true, "requiredRecipientFields": [ "name" ], "posReferenceRequirement": "optional", "sourceLocationId": 0, "sourceLocationName": "string", "isInherited": true, "hasParent": true, "numberSeriesSourceLocationId": 0, "numberSeriesSourceLocationName": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Query Parameters
Location ID (required)
Filter by active status
Match against name, organization name, email or organization number
Page number
1 <= value1Items per page
1 <= value <= 10050Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/invoice-recipients?locationId=0"{ "status": "success", "data": { "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "name": "string", "email": "string", "organizationName": "string", "organizationNumber": "string", "phone": "string", "billingAddressLine1": "string", "billingAddressLine2": "string", "postalCode": "string", "city": "string", "country": "string", "reference": "string", "contactPerson": "string", "vatNumber": "string", "totalInvoicedAmount": 0, "totalPaidAmount": 0, "outstandingAmount": 0, "invoiceCount": 0, "isActive": true, "showInvoiceAddOns": true, "invoiceReferenceGrouping": "per_reference", "sourceLocationId": 0, "sourceLocationName": "string", "isInherited": true, "relationship": "local", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "pagination": { "page": 1, "limit": 1, "total": 0, "totalPages": 0 } }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Location ID (required)
Recipient name (required)
Email address (required)
Organization/company name
Organization number
Phone number
Address line 1
Address line 2
Postal code
City
ISO 3166-1 alpha-2 country code
2 <= length <= 2Reference/PO number
Contact person name
VAT number
Value in
- "per_reference"
- "combined"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/invoice-recipients" \ -H "Content-Type: application/json" \ -d '{ "locationId": 0, "name": "string", "email": "string", "country": "st" }'{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "name": "string", "email": "string", "organizationName": "string", "organizationNumber": "string", "phone": "string", "billingAddressLine1": "string", "billingAddressLine2": "string", "postalCode": "string", "city": "string", "country": "string", "reference": "string", "contactPerson": "string", "vatNumber": "string", "totalInvoicedAmount": 0, "totalPaidAmount": 0, "outstandingAmount": 0, "invoiceCount": 0, "isActive": true, "showInvoiceAddOns": true, "invoiceReferenceGrouping": "per_reference", "sourceLocationId": 0, "sourceLocationName": "string", "isInherited": true, "relationship": "local", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Recipient UUID
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/invoice-recipients/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "name": "string", "email": "string", "organizationName": "string", "organizationNumber": "string", "phone": "string", "billingAddressLine1": "string", "billingAddressLine2": "string", "postalCode": "string", "city": "string", "country": "string", "reference": "string", "contactPerson": "string", "vatNumber": "string", "totalInvoicedAmount": 0, "totalPaidAmount": 0, "outstandingAmount": 0, "invoiceCount": 0, "isActive": true, "showInvoiceAddOns": true, "invoiceReferenceGrouping": "per_reference", "sourceLocationId": 0, "sourceLocationName": "string", "isInherited": true, "relationship": "local", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Recipient UUID
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/api/v1/invoice-recipients/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "status": "success", "data": { "deleted": true }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Recipient UUID
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Recipient name
Email address
Organization/company name
Organization number
Phone number
Address line 1
Address line 2
Postal code
City
Country
Reference/PO number
Contact person name
VAT number
Whether the recipient is active
Value in
- "per_reference"
- "combined"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/v1/invoice-recipients/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "name": "string", "email": "string", "organizationName": "string", "organizationNumber": "string", "phone": "string", "billingAddressLine1": "string", "billingAddressLine2": "string", "postalCode": "string", "city": "string", "country": "string", "reference": "string", "contactPerson": "string", "vatNumber": "string", "totalInvoicedAmount": 0, "totalPaidAmount": 0, "outstandingAmount": 0, "invoiceCount": 0, "isActive": true, "showInvoiceAddOns": true, "invoiceReferenceGrouping": "per_reference", "sourceLocationId": 0, "sourceLocationName": "string", "isInherited": true, "relationship": "local", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Recipient UUID
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Parent location receiving ownership
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/invoice-recipients/497f6eca-6276-4993-bfeb-53cbbbba6f08/lift" \ -H "Content-Type: application/json" \ -d '{ "targetLocationId": 0 }'{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "name": "string", "email": "string", "organizationName": "string", "organizationNumber": "string", "phone": "string", "billingAddressLine1": "string", "billingAddressLine2": "string", "postalCode": "string", "city": "string", "country": "string", "reference": "string", "contactPerson": "string", "vatNumber": "string", "totalInvoicedAmount": 0, "totalPaidAmount": 0, "outstandingAmount": 0, "invoiceCount": 0, "isActive": true, "showInvoiceAddOns": true, "invoiceReferenceGrouping": "per_reference", "sourceLocationId": 0, "sourceLocationName": "string", "isInherited": true, "relationship": "local", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Recipient UUID
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/invoice-recipients/497f6eca-6276-4993-bfeb-53cbbbba6f08/rules"{ "status": "success", "data": { "rules": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d", "locationId": 0, "ruleType": "email_exact", "ruleValue": "string", "isActive": true, "maxCreditLimit": 0, "autoApprove": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "userName": "string", "userEmail": "string" } ] }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Recipient UUID
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Location ID (required)
Type of rule (required)
Value in
- "email_exact"
- "email_wildcard"
- "user_id"
Rule value - email, pattern (*@company.com), or user ID (required)
Maximum credit limit for auto-invoicing
Auto-approve invoices matching this rule
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/invoice-recipients/497f6eca-6276-4993-bfeb-53cbbbba6f08/rules" \ -H "Content-Type: application/json" \ -d '{ "locationId": 0, "ruleType": "email_exact", "ruleValue": "string" }'{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d", "locationId": 0, "ruleType": "email_exact", "ruleValue": "string", "isActive": true, "maxCreditLimit": 0, "autoApprove": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "userName": "string", "userEmail": "string" }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Recipient UUID
uuidRule UUID
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/api/v1/invoice-recipients/497f6eca-6276-4993-bfeb-53cbbbba6f08/rules/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "status": "success", "data": { "deleted": true }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Query Parameters
Location ID (required)
Include authorized descendants of locationId.
falseOptional comma-separated subset of the resolved location hierarchy.
^[0-9]+(,[0-9]+)*$length <= 11000Filter by recipient
uuidFilter by status
Value in
- "draft"
- "sent"
- "paid"
- "overdue"
- "cancelled"
- "auto_draft"
Filter by invoice type
Value in
- "manual"
- "auto_generated"
- "credit"
Filter by start date
date-timeFilter by end date
date-timePage number
1 <= value1Items per page
1 <= value <= 100050Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/invoices?locationId=0"{ "status": "success", "data": { "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d", "referenceId": "8502eb05-558d-4480-8511-c1011710b340", "reference": "string", "invoiceNumber": "string", "status": "draft", "invoiceType": "manual", "collectionPeriodStart": "2019-08-24T14:15:22Z", "collectionPeriodEnd": "2019-08-24T14:15:22Z", "totalAmount": 0, "taxAmount": 0, "subtotalAmount": 0, "currency": "string", "dueDate": "2019-08-24", "issuedDate": "2019-08-24", "paidDate": "2019-08-24", "paymentReference": "string", "notes": "string", "createdBy": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "originalInvoiceId": "787ae005-a194-4a17-83df-7d3c81acedb2", "timeline": [ { "id": "string", "action": "created", "occurredAt": "2019-08-24T14:15:22Z", "actor": { "type": "retailer_user", "id": "string", "name": "string", "email": "string" }, "details": {} } ] } ], "pagination": { "page": 1, "limit": 1, "total": 0, "totalPages": 0 } }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Location ID (required)
Recipient UUID (required)
uuidRecipient reference UUID (optional)
uuidDue date YYYY-MM-DD (required)
dateCurrency code (optional - defaults to location currency)
Invoice type (default: manual)
Value in
- "manual"
- "auto_generated"
Collection period start
date-timeCollection period end
date-timeTotal amount
Tax amount
Subtotal amount
Issue date
datePayment reference
Notes
Purchase IDs to link to invoice
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/invoices" \ -H "Content-Type: application/json" \ -d '{ "locationId": 0, "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d", "dueDate": "2019-08-24" }'{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d", "referenceId": "8502eb05-558d-4480-8511-c1011710b340", "reference": "string", "invoiceNumber": "string", "status": "draft", "invoiceType": "manual", "collectionPeriodStart": "2019-08-24T14:15:22Z", "collectionPeriodEnd": "2019-08-24T14:15:22Z", "totalAmount": 0, "taxAmount": 0, "subtotalAmount": 0, "currency": "string", "dueDate": "2019-08-24", "issuedDate": "2019-08-24", "paidDate": "2019-08-24", "paymentReference": "string", "notes": "string", "createdBy": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "originalInvoiceId": "787ae005-a194-4a17-83df-7d3c81acedb2", "timeline": [ { "id": "string", "action": "created", "occurredAt": "2019-08-24T14:15:22Z", "actor": { "type": "retailer_user", "id": "string", "name": "string", "email": "string" }, "details": {} } ] }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Invoice UUID
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d", "referenceId": "8502eb05-558d-4480-8511-c1011710b340", "reference": "string", "invoiceNumber": "string", "status": "draft", "invoiceType": "manual", "collectionPeriodStart": "2019-08-24T14:15:22Z", "collectionPeriodEnd": "2019-08-24T14:15:22Z", "totalAmount": 0, "taxAmount": 0, "subtotalAmount": 0, "currency": "string", "dueDate": "2019-08-24", "issuedDate": "2019-08-24", "paidDate": "2019-08-24", "paymentReference": "string", "notes": "string", "createdBy": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "originalInvoiceId": "787ae005-a194-4a17-83df-7d3c81acedb2", "timeline": [ { "id": "string", "action": "created", "occurredAt": "2019-08-24T14:15:22Z", "actor": { "type": "retailer_user", "id": "string", "name": "string", "email": "string" }, "details": {} } ] }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Invoice UUID
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/api/v1/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "status": "success", "data": { "deleted": true }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Invoice UUID
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Invoice status
Value in
- "draft"
- "sent"
- "paid"
- "overdue"
- "cancelled"
- "auto_draft"
Due date
dateIssue date
datePayment date
datePayment reference
Notes
Total amount
Tax amount
Subtotal amount
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/v1/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d", "referenceId": "8502eb05-558d-4480-8511-c1011710b340", "reference": "string", "invoiceNumber": "string", "status": "draft", "invoiceType": "manual", "collectionPeriodStart": "2019-08-24T14:15:22Z", "collectionPeriodEnd": "2019-08-24T14:15:22Z", "totalAmount": 0, "taxAmount": 0, "subtotalAmount": 0, "currency": "string", "dueDate": "2019-08-24", "issuedDate": "2019-08-24", "paidDate": "2019-08-24", "paymentReference": "string", "notes": "string", "createdBy": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "originalInvoiceId": "787ae005-a194-4a17-83df-7d3c81acedb2", "timeline": [ { "id": "string", "action": "created", "occurredAt": "2019-08-24T14:15:22Z", "actor": { "type": "retailer_user", "id": "string", "name": "string", "email": "string" }, "details": {} } ] }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Invoice UUID
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel"{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d", "referenceId": "8502eb05-558d-4480-8511-c1011710b340", "reference": "string", "invoiceNumber": "string", "status": "draft", "invoiceType": "manual", "collectionPeriodStart": "2019-08-24T14:15:22Z", "collectionPeriodEnd": "2019-08-24T14:15:22Z", "totalAmount": 0, "taxAmount": 0, "subtotalAmount": 0, "currency": "string", "dueDate": "2019-08-24", "issuedDate": "2019-08-24", "paidDate": "2019-08-24", "paymentReference": "string", "notes": "string", "createdBy": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "originalInvoiceId": "787ae005-a194-4a17-83df-7d3c81acedb2", "timeline": [ { "id": "string", "action": "created", "occurredAt": "2019-08-24T14:15:22Z", "actor": { "type": "retailer_user", "id": "string", "name": "string", "email": "string" }, "details": {} } ] }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Original invoice UUID
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= itemslength <= 4000Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/credit-invoices" \ -H "Content-Type: application/json" \ -d '{ "lines": [ { "lineItemId": 0, "amountCents": 1 } ] }'{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d", "referenceId": "8502eb05-558d-4480-8511-c1011710b340", "reference": "string", "invoiceNumber": "string", "status": "draft", "invoiceType": "manual", "collectionPeriodStart": "2019-08-24T14:15:22Z", "collectionPeriodEnd": "2019-08-24T14:15:22Z", "totalAmount": 0, "taxAmount": 0, "subtotalAmount": 0, "currency": "string", "dueDate": "2019-08-24", "issuedDate": "2019-08-24", "paidDate": "2019-08-24", "paymentReference": "string", "notes": "string", "createdBy": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "originalInvoiceId": "787ae005-a194-4a17-83df-7d3c81acedb2", "timeline": [ { "id": "string", "action": "created", "occurredAt": "2019-08-24T14:15:22Z", "actor": { "type": "retailer_user", "id": "string", "name": "string", "email": "string" }, "details": {} } ] }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Invoice UUID
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Payment reference (optional)
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/mark-paid" \ -H "Content-Type: application/json" \ -d '{}'{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d", "referenceId": "8502eb05-558d-4480-8511-c1011710b340", "reference": "string", "invoiceNumber": "string", "status": "draft", "invoiceType": "manual", "collectionPeriodStart": "2019-08-24T14:15:22Z", "collectionPeriodEnd": "2019-08-24T14:15:22Z", "totalAmount": 0, "taxAmount": 0, "subtotalAmount": 0, "currency": "string", "dueDate": "2019-08-24", "issuedDate": "2019-08-24", "paidDate": "2019-08-24", "paymentReference": "string", "notes": "string", "createdBy": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "originalInvoiceId": "787ae005-a194-4a17-83df-7d3c81acedb2", "timeline": [ { "id": "string", "action": "created", "occurredAt": "2019-08-24T14:15:22Z", "actor": { "type": "retailer_user", "id": "string", "name": "string", "email": "string" }, "details": {} } ] }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Invoice UUID
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/mark-sent"{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d", "referenceId": "8502eb05-558d-4480-8511-c1011710b340", "reference": "string", "invoiceNumber": "string", "status": "draft", "invoiceType": "manual", "collectionPeriodStart": "2019-08-24T14:15:22Z", "collectionPeriodEnd": "2019-08-24T14:15:22Z", "totalAmount": 0, "taxAmount": 0, "subtotalAmount": 0, "currency": "string", "dueDate": "2019-08-24", "issuedDate": "2019-08-24", "paidDate": "2019-08-24", "paymentReference": "string", "notes": "string", "createdBy": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "originalInvoiceId": "787ae005-a194-4a17-83df-7d3c81acedb2", "timeline": [ { "id": "string", "action": "created", "occurredAt": "2019-08-24T14:15:22Z", "actor": { "type": "retailer_user", "id": "string", "name": "string", "email": "string" }, "details": {} } ] }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Invoice UUID
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/pdf-data"{ "status": "success", "data": { "invoice": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d", "referenceId": "8502eb05-558d-4480-8511-c1011710b340", "reference": "string", "invoiceNumber": "string", "status": "draft", "invoiceType": "manual", "collectionPeriodStart": "2019-08-24T14:15:22Z", "collectionPeriodEnd": "2019-08-24T14:15:22Z", "totalAmount": 0, "taxAmount": 0, "subtotalAmount": 0, "currency": "string", "dueDate": "2019-08-24", "issuedDate": "2019-08-24", "paidDate": "2019-08-24", "paymentReference": "string", "notes": "string", "createdBy": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "originalInvoiceId": "787ae005-a194-4a17-83df-7d3c81acedb2", "timeline": [ { "id": "string", "action": "created", "occurredAt": "2019-08-24T14:15:22Z", "actor": { "type": "retailer_user", "id": "string", "name": "string", "email": "string" }, "details": {} } ] }, "recipient": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "name": "string", "email": "string", "organizationName": "string", "organizationNumber": "string", "phone": "string", "billingAddressLine1": "string", "billingAddressLine2": "string", "postalCode": "string", "city": "string", "country": "string", "reference": "string", "contactPerson": "string", "vatNumber": "string", "totalInvoicedAmount": 0, "totalPaidAmount": 0, "outstandingAmount": 0, "invoiceCount": 0, "isActive": true, "showInvoiceAddOns": true, "invoiceReferenceGrouping": "per_reference", "sourceLocationId": 0, "sourceLocationName": "string", "isInherited": true, "relationship": "local", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "settings": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "defaultPaymentTermsDays": 30, "invoiceNumberPrefix": "string", "invoiceNumberCounter": 0, "minInvoiceAmount": 0, "senderName": "string", "senderAddressLine1": "string", "senderAddressLine2": "string", "senderPostalCode": "string", "senderCity": "string", "senderCountry": "string", "senderEmail": "string", "senderPhone": "string", "senderOrganizationNumber": "string", "senderVatNumber": "string", "senderLogoUrl": "string", "bankAccountNumber": "string", "bankName": "string", "swiftBic": "string", "iban": "string", "paymentReferencePrefix": "string", "invoiceFooterText": "string", "invoiceTermsText": "string", "latePaymentFee": 0, "latePaymentInterestRate": 0, "autoGenerateEnabled": true, "autoSendOnGeneration": true, "defaultInvoiceSendMode": "manual", "defaultInvoiceSchedule": { "scheduleType": "weekly", "dayOfWeek": 0, "dayOfMonth": 1, "intervalDays": 1, "timeOfDay": "string", "timezone": "string" }, "registerPurchasesInCashRegister": true, "collectionPeriodType": "calendar_month", "reminderEnabled": true, "firstReminderDaysAfterDue": 0, "secondReminderDaysAfterDue": 0, "thirdReminderDaysAfterDue": 0, "reminderFeeAmount": 0, "autoMarkOverdueDays": 0, "currency": "string", "overrideParentSettings": true, "shareInvoiceNumberSeries": true, "allowChildRecipientCreation": true, "canCreateRecipients": true, "requiredRecipientFields": [ "name" ], "posReferenceRequirement": "optional", "sourceLocationId": 0, "sourceLocationName": "string", "isInherited": true, "hasParent": true, "numberSeriesSourceLocationId": 0, "numberSeriesSourceLocationName": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "location": { "id": 0, "name": "string", "address": "string", "postalCode": "string", "city": "string", "country": "string", "phone": "string", "organizationNumber": "string", "email": "string", "vatNumber": "string" }, "purchaseDetails": [ { "id": 0, "intentId": "string", "purchasedAt": "2019-08-24T14:15:22Z", "totalAmountCents": 0, "vatAmountCents": 0, "items": "string", "reference": "string", "orderNumber": "string", "orderComments": "string", "lineItems": [ { "id": 0, "type": "string", "title": "string", "quantity": 0, "finalAmountCents": 0, "vatRateBasisPoints": 0, "vatAmountCents": 0, "articleNo": "string" } ] } ] }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Invoice UUID
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Array of purchase IDs to add to the invoice
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/purchases" \ -H "Content-Type: application/json" \ -d '{ "purchaseIds": [ 0 ] }'{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d", "referenceId": "8502eb05-558d-4480-8511-c1011710b340", "reference": "string", "invoiceNumber": "string", "status": "draft", "invoiceType": "manual", "collectionPeriodStart": "2019-08-24T14:15:22Z", "collectionPeriodEnd": "2019-08-24T14:15:22Z", "totalAmount": 0, "taxAmount": 0, "subtotalAmount": 0, "currency": "string", "dueDate": "2019-08-24", "issuedDate": "2019-08-24", "paidDate": "2019-08-24", "paymentReference": "string", "notes": "string", "createdBy": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "originalInvoiceId": "787ae005-a194-4a17-83df-7d3c81acedb2", "timeline": [ { "id": "string", "action": "created", "occurredAt": "2019-08-24T14:15:22Z", "actor": { "type": "retailer_user", "id": "string", "name": "string", "email": "string" }, "details": {} } ] }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Invoice UUID
uuidPurchase ID on the invoice
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Reference; empty or null clears it
length <= 200Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/api/v1/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/purchases/0" \ -H "Content-Type: application/json" \ -d '{ "reference": "string" }'{ "status": "string", "data": { "purchaseId": 0, "reference": "string" }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Invoice UUID
uuidPurchase ID to remove
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/api/v1/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/purchases/0"{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d", "referenceId": "8502eb05-558d-4480-8511-c1011710b340", "reference": "string", "invoiceNumber": "string", "status": "draft", "invoiceType": "manual", "collectionPeriodStart": "2019-08-24T14:15:22Z", "collectionPeriodEnd": "2019-08-24T14:15:22Z", "totalAmount": 0, "taxAmount": 0, "subtotalAmount": 0, "currency": "string", "dueDate": "2019-08-24", "issuedDate": "2019-08-24", "paidDate": "2019-08-24", "paymentReference": "string", "notes": "string", "createdBy": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "originalInvoiceId": "787ae005-a194-4a17-83df-7d3c81acedb2", "timeline": [ { "id": "string", "action": "created", "occurredAt": "2019-08-24T14:15:22Z", "actor": { "type": "retailer_user", "id": "string", "name": "string", "email": "string" }, "details": {} } ] }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Invoice UUID
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/send"{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d", "referenceId": "8502eb05-558d-4480-8511-c1011710b340", "reference": "string", "invoiceNumber": "string", "status": "draft", "invoiceType": "manual", "collectionPeriodStart": "2019-08-24T14:15:22Z", "collectionPeriodEnd": "2019-08-24T14:15:22Z", "totalAmount": 0, "taxAmount": 0, "subtotalAmount": 0, "currency": "string", "dueDate": "2019-08-24", "issuedDate": "2019-08-24", "paidDate": "2019-08-24", "paymentReference": "string", "notes": "string", "createdBy": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "originalInvoiceId": "787ae005-a194-4a17-83df-7d3c81acedb2", "timeline": [ { "id": "string", "action": "created", "occurredAt": "2019-08-24T14:15:22Z", "actor": { "type": "retailer_user", "id": "string", "name": "string", "email": "string" }, "details": {} } ], "pdfUrl": "string", "emailSentTo": "string" }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Invoice UUID
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Reminder number (1, 2, or 3)
1 <= value <= 3Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/send-reminder" \ -H "Content-Type: application/json" \ -d '{ "reminderNumber": 1 }'{ "status": "success", "data": { "sent": true, "reminderNumber": 0 }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Invoice UUID
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/send-to-fortnox"{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "locationId": 0, "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d", "referenceId": "8502eb05-558d-4480-8511-c1011710b340", "reference": "string", "invoiceNumber": "string", "status": "draft", "invoiceType": "manual", "collectionPeriodStart": "2019-08-24T14:15:22Z", "collectionPeriodEnd": "2019-08-24T14:15:22Z", "totalAmount": 0, "taxAmount": 0, "subtotalAmount": 0, "currency": "string", "dueDate": "2019-08-24", "issuedDate": "2019-08-24", "paidDate": "2019-08-24", "paymentReference": "string", "notes": "string", "createdBy": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "originalInvoiceId": "787ae005-a194-4a17-83df-7d3c81acedb2", "timeline": [ { "id": "string", "action": "created", "occurredAt": "2019-08-24T14:15:22Z", "actor": { "type": "retailer_user", "id": "string", "name": "string", "email": "string" }, "details": {} } ], "pdfUrl": "string", "emailSentTo": "string" }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Path Parameters
Invoice UUID
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Base64-encoded PDF content
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/upload-pdf" \ -H "Content-Type: application/json" \ -d '{ "pdfBase64": "string" }'{ "status": "success", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "invoiceId": "4f163819-178d-470c-a246-d6768476a6ec", "pdfUrl": "string", "cdnPath": "string", "fileSize": 0, "generatedAt": "2019-08-24T14:15:22Z" }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/invoices/auto-send/run"{ "status": "success", "data": { "schedulesProcessed": 0, "invoicesSent": 0, "invoicesFailed": 0, "details": [ { "recipientId": "string", "recipientName": "string", "sent": [ "string" ], "failed": [ { "invoiceId": "string", "error": "string" } ] } ] }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Query Parameters
Location ID (required)
Email to check eligibility for (required)
User ID to check eligibility for (optional)
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/invoices/check-eligibility?locationId=0&email=string"{ "status": "success", "data": { "eligible": true, "recipientId": "string", "creditLimit": 0, "outstandingAmount": 0 }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Tab UUID to pay
uuidLocation ID
Invoice recipient UUID
uuidOptional: recipient reference UUID — draft invoices accumulate per (recipient, reference).
uuidOptional: specific kitchen dispatch item IDs to pay. If omitted, pays all unpaid items.
Optional: voucher codes to apply to this payment.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/invoices/start-purchase" \ -H "Content-Type: application/json" \ -d '{ "tabId": "f4c36190-e358-41c0-b3ad-58e9e89eba63", "locationId": 0 }'{ "status": "success", "data": { "success": true, "purchaseIntentId": "7c933f97-ad75-490a-be55-2ca143239cc3", "invoiceReference": "string" }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Query Parameters
Location ID
Include authorized descendant locations
falseResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/invoices/stats?locationId=0"{ "status": "success", "data": { "unsent": { "count": 0, "amount": 0 }, "sent": { "count": 0, "amount": 0 }, "monthly": [ { "month": "string", "amount": 0, "count": 0 } ] }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}Authorization
ApiKeyAuth API key authentication. Format: karma_live_* or karma_dev_*
In: header
Query Parameters
Location ID (required)
Page number
1 <= value1Items per page
1 <= value <= 10050Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/invoices/unclaimed-purchases?locationId=0"{ "status": "success", "data": { "items": [ { "id": 0, "intentId": "string", "purchasedAt": "2019-08-24T14:15:22Z", "payingUserId": 0, "state": "string", "currencyCode": "string", "totalAmountCents": 0, "vatAmountCents": 0, "items": "string", "userEmail": "string", "userName": "string", "reference": "string", "orderNumber": "string" } ], "pagination": { "page": 1, "limit": 1, "total": 0, "totalPages": 0 } }, "meta": { "requestId": "string", "timestamp": "2019-08-24T14:15:22Z", "executionTimeMs": 0 }}