Tinka

Eligibility Check Request

Api description for Eligibility Check Request.

URL

POST /merchant-api/v2/eligibility-check


HTTP response codes

  • 200 - Successful operation
  • 401 - Unauthorized, maybe the credentials are missing. For more information, see security
  • 403 - Forbidden, the HMAC may be wrong or out of date. For more information, see security

Request

AttributeTypeLengthDescription
invoiceAddress requiredAddress
applicant requiredApplicant

Response

AttributeTypeLengthDescription
isCustomerEligibleForInvoice requiredBoolean

Type: Applicant

AttributeTypeLengthDescription
emailAddress requiredString320The email address of the customer.
We don`t validate if an email address is valid or not.

Type: Address

AttributeTypeLengthDescription
countryCode requiredEnum String10The country code of the address.
For now this should always be NL
houseNumber requiredString10The house number of the given address.
houseNumberAdditionString10The addition to the house number.
postalCode requiredString10The (official) postcode of the address.
The postal code requires the format NNNNAA or NNNN AA for Dutch postal codes.
Example: 8011NW
street requiredString50The name of the street.
city requiredString50The name of the city.

Example

Request

fetch('https://....../merchant-api/v2/eligibility-check', {
  method: 'POST',
  headers: {
    Authorization: 'Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    'X-Authorization': 'hmac example:xxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxx/xxx=:nonce:xxxxxxxxxx',
    'Content-Type': 'application/json'
  },
  body: {
    applicant: {
      emailAddress: '[email protected]',
    }
    invoiceAddress: {
      countryCode: 'NL',
      houseNumber: '81',
      houseNumberAddition: null,
      postalCode: '4006EA'
      street: 'Dodewaardlaan',
      city: 'Tiel',
    },
  }
})

Response

{
  isCustomerEligibleForInvoice: true;
}

© 2024 Tinka. All Rights Reserved. All trademarks, service marks and trade names used in this material are the property of their respective owners.