For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update a bin number

Fully updates a bin number.

bin_number and card are both required. The digits must stay unique across all records, deactivated ones included; digits that belong to another record are rejected.

is_active is optional even here: leaving it out keeps the state the record already has rather than resetting it. To put a deactivated record back into use, send is_active as true.

put
/bin_numbers/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the bin number record.

Body

The body of a bin number create or full update request.

bin_numberstring · max: 8Required

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.

cardintegerRequired

The identifier of the card these digits belong to. The card must already exist.

is_activebooleanOptional

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.

Default: true
Responses
200

The updated bin number.

application/json

A bin number record — the leading digits of a card, bound to the card definition they belong to.

pkintegerRead-onlyOptional

The unique identifier of the record.

bin_numberstring · max: 8Optional

The leading digits of the card. Exactly 6 or 8 characters, and unique across all records.

cardintegerOptional

The identifier of the card these digits belong to.

is_activebooleanOptional

Whether the record is in use. A deactivated record is still returned by the listing and retrieval endpoints.

bin_number_lengthstringRead-onlyOptional

The number of characters in bin_number, reported as text — "6" or "8".

put/bin_numbers/{id}/
PUT /api/v1/remote/1/bin_numbers/{id}/ 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?