Skip to main content
POST
/
v1
/
payment
/
pin-attempt
JavaScript
import Benny from '@bennyapi/sdk';

const client = new Benny({
  subdomain: 'My-Subdomain',
  apiKey: process.env['BENNY_API_KEY'], // This is the default and can be omitted
});

const response = await client.payment.getPinAttemptCount({
  retrievalReferenceNumber: 'retrievalReferenceNumber',
});

console.log(response.count);
{
  "count": 123
}

Authorizations

api-key
string
header
required

API key authentication for public endpoints

Body

application/json
retrievalReferenceNumber
string
required

Response

200 - application/json
count
integer
required