Authorization API
API reference
Loan

Loan is an option with interest and default payment term 36 months. All future purchases with loan will be added to same account. Open debt is divided to installments and invoice will be sent to customer by email once a month. Customer has the possibility to pay out the existing amount anytime without extra costs.

Endpoint

POST /authorization/loan

Request

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

NameData TypeMandatory/Default ValueDescription
PaymentTermsIntMandatoryNumber of payments to repay the loan (i.e. duration of the Loan - 3, 6, 12, 24, 36, 48 or 72 months)
SendTermsAndConditionsBooleanOptional, falseIf set to true Avarda will send terms and conditions to the customer's email
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",
  "paymentTerms": 36,
  "sendTermsAndConditions" : true,
  "accountClassCode": 1784
}

Response

For the format and examples see responses for all credit authorizations