Openapi
Return an invoice detail record for the specified organization.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
invoiceId*stringuuidorganizationId*stringuuidReturns the requested invoice.
application/jsoncharges*array<>invoice*lines*array<>linkedTaskIds*array<>originalDisplayNumber*string|nullpayment*|nullpayments*array<>statusHistory*array<>stockPreview*array<>curl -X GET 'https://app.localhost/api/v1/organizations/123/invoices/123'{ "charges": [ { "amountCents": 1, "createdAt": "2019-08-24T14:15:22Z", "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "createdByRunStepId": "cd84904e-69d0-4a75-806e-0c7e74375fd5", "currency": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "invoiceId": "4f163819-178d-470c-a246-d6768476a6ec", "kind": "collection_costs", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "reason": "string", "updatedAt": "2019-08-24T14:15:22Z" } ], "invoice": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac", "customerContactId": "94bcd060-4a66-4a44-96c9-7a2da2955e96", "customerReference": "string", "number": 1, "numberYear": 1, "displayNumber": "string", "status": "draft", "dueDays": 0, "invoiceTemplateId": "0e2218cf-2209-4a99-926b-e096382f8ef3", "title": "string", "intro": "string", "terms": "string", "currency": "string", "vatInclusive": true, "discountKind": "none", "discountValue": 0, "discountDescription": "string", "promotionId": "3eaf888b-516c-4eac-ac00-1312640986a2", "subtotalExcl": 0, "vatTotal": 0, "totalIncl": 0, "issueDate": "string", "dueDate": "string", "publicMessage": "string", "footerText": "string", "sourceQuoteId": "770302a9-ee43-4907-b3ac-f9c522a6f776", "deliveryDate": "string", "kind": "invoice", "originalInvoiceId": "787ae005-a194-4a17-83df-7d3c81acedb2", "vatRegime": "standard", "sellerName": "string", "sellerAddressLine1": "string", "sellerAddressLine2": "string", "sellerAddressPostalCode": "string", "sellerAddressCity": "string", "sellerAddressCountry": "string", "sellerEmail": "string", "sellerPhone": "string", "sellerKvk": "string", "sellerBtw": "string", "sellerIban": "string", "buyerName": "string", "buyerAddressLine1": "string", "buyerAddressLine2": "string", "buyerAddressPostalCode": "string", "buyerAddressCity": "string", "buyerAddressCountry": "string", "buyerEmail": "string", "buyerKvk": "string", "buyerBtw": "string", "termsPdfFileId": "447ac172-1a77-4d3e-a448-6529f5bad5f6", "termsPdfVersionId": "357f5e3f-e5dd-4fb8-ab36-48697a651460", "termsRichText": "string", "termsUrl": "string", "sentAt": "2019-08-24T14:15:22Z", "paidAt": "2019-08-24T14:15:22Z", "canceledAt": "2019-08-24T14:15:22Z", "archivedAt": "2019-08-24T14:15:22Z", "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "updatedBy": "b0efe45f-0520-4e21-90f0-7e35f137732e", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "amountPaidCents": 0, "amountDueCents": 0, "uncollectibleAt": "2019-08-24T14:15:22Z", "uncollectibleReason": "string", "onlinePaymentEnabled": true }, "lines": [ { "createdAt": "2019-08-24T14:15:22Z", "description": "string", "discountKind": "none", "discountValue": 0, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "invoiceId": "4f163819-178d-470c-a246-d6768476a6ec", "kind": "line", "lineType": "product", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "position": 0, "pricingMode": "unit", "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113", "promotionId": "3eaf888b-516c-4eac-ac00-1312640986a2", "quantity": 0, "stockMode": "auto", "taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8", "title": "string", "unit": "string", "unitPrice": 0, "updatedAt": "2019-08-24T14:15:22Z", "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf", "vatRate": 0 } ], "linkedTaskIds": [ "7ce2dbb8-9c9b-43ac-83fd-8916c9bef936" ], "originalDisplayNumber": "string", "payment": { "amountCents": 0, "applicationFeeBps": 0, "applicationFeeCents": 0, "applicationFeeMode": "percentage", "canceledAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "currency": "string", "disputedAt": "2019-08-24T14:15:22Z", "failureCode": "string", "failureMessage": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "invoiceId": "4f163819-178d-470c-a246-d6768476a6ec", "method": "stripe", "note": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "paidAt": "2019-08-24T14:15:22Z", "receivedOn": "2019-08-24", "recordedBy": "9c78a77b-c2dd-4c4e-9413-535471632f3a", "reference": "string", "refundedAt": "2019-08-24T14:15:22Z", "status": "requires_payment_method", "stripeChargeId": "string", "stripeDestinationAccountId": "string", "stripePaymentIntentId": "string", "updatedAt": "2019-08-24T14:15:22Z" }, "payments": [ { "amountCents": 0, "applicationFeeBps": 0, "applicationFeeCents": 0, "applicationFeeMode": "percentage", "canceledAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "currency": "string", "disputedAt": "2019-08-24T14:15:22Z", "failureCode": "string", "failureMessage": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "invoiceId": "4f163819-178d-470c-a246-d6768476a6ec", "method": "stripe", "note": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "paidAt": "2019-08-24T14:15:22Z", "receivedOn": "2019-08-24", "recordedBy": "9c78a77b-c2dd-4c4e-9413-535471632f3a", "reference": "string", "refundedAt": "2019-08-24T14:15:22Z", "status": "requires_payment_method", "stripeChargeId": "string", "stripeDestinationAccountId": "string", "stripePaymentIntentId": "string", "updatedAt": "2019-08-24T14:15:22Z" } ], "statusHistory": [ { "actorUserId": "94141e08-adc7-44ce-bed3-45f031b9f36f", "createdAt": "2019-08-24T14:15:22Z", "fromStatus": "draft", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "invoiceId": "4f163819-178d-470c-a246-d6768476a6ec", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "reason": "string", "toStatus": "draft" } ], "stockPreview": [ { "availableQuantity": 0, "lineId": "e698cdee-c4ef-4d12-b0ea-7c98b2fc64a8", "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113", "requestedQuantity": 0, "shortQuantity": 1, "title": "string" } ]}