Create a bin number
Registers a set of leading digits against a card.
bin_number and card are both required. The digits must be exactly 6 or 8 characters long and made up entirely of digits, apart from the placeholder value reserved for Google Pay described under Accepted Digits in the section description.
The digits must not already be stored on another record. Deactivated records still hold their digits, so a value that was deactivated earlier is rejected as well — reactivate that record instead of creating a new one.
is_active is optional and defaults to true. The identifier is assigned by the server; a pk sent in the request body is ignored.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The body of a bin number create or full update request.
The leading digits of the card. Exactly 6 or 8 characters, digits only apart from the placeholder value reserved for Google Pay, and not already stored on another record.
The identifier of the card these digits belong to. The card must already exist.
Whether the record is in use. On create, omitting it stores the record as active. On a full update, omitting it keeps the state the record already has.
trueThe created bin number.
A bin number record — the leading digits of a card, bound to the card definition they belong to.
The unique identifier of the record.
The leading digits of the card. Exactly 6 or 8 characters, and unique across all records.
The identifier of the card these digits belong to.
Whether the record is in use. A deactivated record is still returned by the listing and retrieval endpoints.
The number of characters in bin_number, reported as text — "6" or "8".
The request was rejected. The digits are already stored on another record, they are not 6 or 8 characters long, they contain characters other than digits, the referenced card does not exist, or a required field is missing. The response names the field the complaint belongs to.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
POST /api/v1/remote/1/bin_numbers/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"bin_number": "454671",
"card": 7,
"is_active": true
}{
"pk": 41,
"bin_number": "454671",
"card": 7,
"is_active": true,
"bin_number_length": "6"
}Last updated
Was this helpful?

