Vettig API
v2
  • v1
  • v2
  1. Refinancing
Vettig API
v2
  • v1
  • v2
  • Factoring
    • Refinancing
      • Finance Invoice
        POST
    • Invoices
      • Upload invoice
    • Onboarding
      • Start onboarding
      • Get onboarding
    • Events
      • Events
  • OAuth 2.0 Authorize
    POST
  • Schemas
    • Event
    • Invoice
  1. Refinancing

Finance Invoice

POST
/v2/factoring/finance
Finance a new invoice for the given organisation.

Request

Authorization
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
    "invoiceType": "Invoice",
    "organizationNumber": "5569455701",
    "invoiceNumber": "string",
    "debitInvoiceNumbers": [
        "string"
    ],
    "invoiceDate": "2020-08-28",
    "dueDate": "2020-09-28",
    "deliveryDate": "2022-10-14",
    "debtorOrderNumber": "string",
    "clientOrderNumber": "string",
    "debtorReference": "string",
    "clientReference": "string",
    "paymentTerms": "string",
    "originalInvoice": "string",
    "invoiceItems": [
        {
            "articleId": "55012",
            "description": "Fönsterram KP537",
            "quantity": 4,
            "unit": "st",
            "unitPrice": 99.99,
            "discountType": "Percentage",
            "totalDiscount": 25.5,
            "vatPercentage": 25,
            "totalVat": 0,
            "totalExclVat": 0,
            "total": 399.96
        }
    ],
    "debtor": {
        "name": "Erik Conveyer Systems AB",
        "organizationNumber": "558659-1231",
        "email": "john.doe@domain.com",
        "phone": "+46704864172",
        "invoiceAddress": {
            "name": "Eriks Conveyor Systems AB",
            "address1": "Mariedalsgatan 77",
            "address2": "string",
            "address3": "string",
            "postalCode": "50338",
            "city": "Borås"
        }
    },
    "totals": {
        "taxReduction": 0,
        "totalExclVat": 0,
        "totalVat": 0,
        "total": 0,
        "totalRoundOff": 0,
        "totalToPay": 0
    }
}

Responses

🟢201Created
application/json
Body

Example
{
    "invoiceId": "01JN3HRX9EHAVK1RMJDQPATD1Z"
}
🟠401Unauthorized - Invalid API key
🟠404Record Not Found
🟠409Conflict - Duplicate Invoice Number
Next
Upload invoice
Built with