With Finix's instrument_updates
API, you can update the credit card information you have saved for customers without needing to contact each individual cardholder.
Related Guides: Account Updater
To update the card details of your customers, create an instrument_updates
resource. Include the Payment Instrument
IDs you want to update in a CSV.
Single instrument_update object
Error
Authentication information is missing or invalid
Forbidden
Not Acceptable
curl "https://finix.sandbox-payments-api.com/instrument_updates" \ -H "Content-Type: multipart/form-data" \ -H "Finix-Version: 2022-02-01" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e \ -X POST \ -F 'request={"merchant": "MUucec6fHeaWo3VHYoSkUySM","idempotency_id": "123xyz testing"}'
{- "id": "IUp9oSWhWUF31DPrJ8CojQeQ",
- "created_at": "2020-12-02T03:44:42.77Z",
- "updated_at": "2020-12-02T03:44:42.81Z",
- "idempotency_id": "F2022-08-12 15:05:19.211366",
- "merchant": "MUvQQt3RKe7FBZ6j9eMYoo3H",
- "state": "PENDING",
- "_links": {
}
}
Fetch a previously created instrument_updates
resource as a CSV.
To fetch the instrument_updates
resource in JSON, add ?format=json
to the request endpoint.
The updated Payment Instruments
will be returned in the following comma-separated format:
payment_instrument_original, | payment_instrument_new, | result |
---|---|---|
PIlkNdfZibF8a7Prd2teGB1 | PI3aQGaCM5nDMjqyTXcbUJzR | CARD_EXPIRATION_UPDATED |
PIJPXW0HZ9lpO1nb6sog5DiX | PIdBHpy7BBSxd2z81VdKpVbT | CARD_NOT_FOUND |
PI0ovZAS9yfEtgDrZnMaiLvi | PIhXS0jXNTmklyVk91EsohuZ | CONTACT_CARDHOLDER |
PInOrrKY3G1U33hGYTQJ8cIY | CLOSED_ACCOUNT | |
PIlkAOt5kTVhuuxxbmOi9qn | INVALID_CARD | |
PIiRLbbG4i5daypWNzIrq2xD | NO_CHANGE_FOUND | |
PIy5llZGt6VxlDqbcTgATqeH | UNKNOWN |
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl "https://finix.sandbox-payments-api.com/instrument_updates/IUd2Wzs6jxPJjteva3n19Amu/download" \ -H "Finix-Version: 2022-02-01" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e
"payment_instrument_original,payment_instrument_new,result PIlkNdfZibF8a7Prd2teGB1,PI3aQGaCM5nDMjqyTXcbUJzR,CARD_EXPIRATION_UPDATED PIJPXW0HZ9lpO1nb6sog5DiX,PIdBHpy7BBSxd2z81VdKpVbT,CARD_NOT_FOUND PIiRLbbG4i5daypWNzIrq2xD,,NO_CHANGE_FOUND PIy5llZGt6VxlDqbcTgATqeH,,UNKNOWN"
Fetch a specific instrument_update
from an instrument_updates
resource.
Single instrument_update object
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl "https://finix.sandbox-payments-api.com/instrument_updates/IUp9oSWhWUF31DPrJ8CojQeQ/" \ -H "Finix-Version: 2022-02-01" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e
{- "id": "IUp9oSWhWUF31DPrJ8CojQeQ",
- "created_at": "2020-12-02T03:44:42.77Z",
- "updated_at": "2020-12-02T03:44:42.81Z",
- "idempotency_id": "F2022-08-12 15:05:19.211366",
- "merchant": "MUvQQt3RKe7FBZ6j9eMYoo3H",
- "state": "PENDING",
- "_links": {
}
}