Partially update a bin number
Updates one or more fields of a bin number. Only the fields included in the request body are changed; everything left out keeps its current value, the digits included.
When bin_number is included it must stay unique across all records, deactivated ones included, and it has to be a value the create endpoint would accept. Sending it as null is rejected and leaves the record untouched — leave the field out instead when it is not the one being changed.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the bin number record.
The body of a bin number partial update request. Only the fields included in the body are changed; every field is optional.
The leading digits of the card. Omitting it keeps the current digits; sending it as null is rejected. Exactly 6 or 8 characters, and not already stored on another record.
The identifier of the card these digits belong to. Omitting it keeps the current card.
Whether the record is in use. Omitting it keeps the current state.
The updated 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.
No bin number exists with the given identifier. Deactivated records are still retrievable, so this answer means the record does not exist at all.
PATCH /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: 41
{
"bin_number": "454671",
"is_active": false
}{
"pk": 41,
"bin_number": "454671",
"card": 7,
"is_active": true,
"bin_number_length": "6"
}Last updated
Was this helpful?

