Payments
Update a Processor Key
Rename a key, change its payment types, make it the default, or replace the key itself
PATCH
Update a Processor Key
Send only the fields you want to change. At least one is required.merchant_ref is not accepted — see Tags cannot change.
Make a key the default
Promoting a key (is_default: true) swaps it with the current default for the same rail_scope, if there is one. That key becomes an ordinary untagged key; nothing else about it changes.
Only untagged keys can be promoted. A tagged key is reached by naming its tag, and making it the default would send untagged borrowers to a merchant account you set aside for tagged ones — the request is rejected with 400. To serve borrowers enrolled without a tag, add or promote an untagged key.
Demoting (is_default: false) needs no replacement. A payment type the demoted key covered falls back to a default both key if you have one; only when no other default covers it are borrowers enrolled without a tag skipped on that type, until you set a new default — GET /v1/payment_connections shows any gap in missing_default_rails.
Replace a key
To rotate credentials, send the newapi_key on its own. The label, tag and payment types stay as they are, key_last4 changes, and the previous key is revoked as soon as the new one is stored. If the new key cannot be stored, the previous one stays in place.
For a webhook, send credentials: {"url": "..."} with the URL, changed or not. The response carries a new signing_secret, returned only this once. Every batch from then on is signed with it, so update your endpoint as soon as you have it.
Tags cannot change
merchant_ref is fixed when the key is added. Borrowers already enrolled under a tag would silently move to a different merchant account if it could change, so a request that includes merchant_ref is rejected with 400.
When a request is rejected
Authorizations
Authentication to the API is performed via Bearer Token Authentication. Provide your API key as the bearer token in the Authorization header.
All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.
Body
application/json
Send only the fields to change. At least one is required. merchant_ref is
not accepted — a tag is fixed when the key is added.
Response
The key as it is now.
The key as added or updated. For a webhook whose credentials were just set,
it also carries the signing_secret.
