Authorization API
API reference
Direct Invoice

Direct Invoice is a product with fixed payment term (eg. 30 days). Invoice is sent to customer by email after the order is captured. An updated invoice is sent for partial deliveries or returns. Possibility to part pay the invoice and transfer the balance to loan

Endpoint

POST /authorization/direct-invoice

Request

In addition to credit authorization common properties the request body contains following direct invoice specific properties:

NameData TypeMandatory/Default ValueDescription
AccountClassCodeIntOptionalThe account to be used if partner has multiple accounts. If not specified an account set as primary in the Partner configuration is used.

Example

{
  "customer": {
    "identificationNumber": 193404016234,
    "userLanguageCode": 246,
    "phone": "0705485413",
    "email": "ove@abc.se"
  },
   "invoicingAddress": {
     "firstName": "Ove",
     "lastName": "Lindahl",
     "addressLine1": "Åsögatan 56",
     "city": "Stockholm",
     "zip": "11829"
   },
   "deliveryAddress": {
     "firstName": "Parvaneh",
     "lastName": "Kourosh",
     "addressLine1": "Åsögatan 58",
     "city": "Stockholm",
     "zip": "11830",
     "country": "Sweeden"
  },
  "items": [
    {
      "description": "Beach shirt",
      "amount": 100,
      "taxAmount": 12
    },
    {
      "description": "Travel shorts",
      "amount": 200,
      "taxAmount": 24
    }
  ],
  "useDifferentDeliveryAddress": true,
  "orderReference": "ST-3242-239",
  "posId": "A35",
  "idValidationCallbackUrl" : "http://beachware.com/api/id-validation",
  "accountClassCode": 1785
}

Response

For the format and examples see responses for all credit authorizations