Activate or deactivate one of your own API credentials
const url = 'https://api-omni-vendors.linra.net/api/v1/credentials/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/active';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"isActive":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api-omni-vendors.linra.net/api/v1/credentials/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/active \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "isActive": true }'Sets a credential’s active state. A credential belonging to another vendor is reported as 404 — indistinguishable from a nonexistent one. Requires the Account capability.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The credential id.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Examplegenerated
{ "isActive": true}Responses
Section titled “Responses”The updated credential.
object
object
Never exposes a secret — the raw secret is only ever returned once, at generation time, via VendorCredentialGeneratedResponse.
object
A comma-separated combination of one or more granted capabilities: Offers, Stock, Cost,
Orders, Account. Account gates the Profile-update and Credentials-write endpoints on
this document; the other four gate the commercial (Offers/Cost/Stock/Orders/Webhooks)
endpoints as documented on each operation.
Example
{ "state": "SUCCESS", "payload": { "environment": "Production", "capabilities": "Offers, Cost" }}Your token doesn’t carry the capability this endpoint requires.
object
object
Examples
{ "state": "FORBIDDEN_CAPABILITY_NOT_GRANTED", "payload": null, "details": { "requiredCapability": "Orders" }}Unknown credential id, or one belonging to another vendor.
object
object
Examples
{ "state": "NOT_FOUND_VENDOR_CREDENTIAL", "payload": null, "details": {}}Too many requests. Retry after the Retry-After header (seconds).
object
object
Example
{ "state": "NOT_FOUND_VENDOR_OFFER"}Headers
Section titled “Headers”Seconds to wait before retrying.

