Skip to main content
PUT
/
managed-accounts
/
{short_id}
Update Retailer Credentials
curl --request PUT \
  --url https://api.zinc.com/managed-accounts/{short_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "<string>",
  "password": "<string>",
  "retailer": "<string>",
  "totp_secret": "<string>",
  "retailer_config": {}
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "short_id": "<string>",
  "email": "<string>",
  "retailer": "<string>",
  "forwarding_email": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "has_totp": false,
  "has_forwarding": false,
  "retailer_config": {}
}
Update an existing managed account’s retailer credentials. Only provided fields are updated.

Path Parameters

  • short_id (required) - The short identifier of the credentials to update (e.g., zn_acct_a1b2c3d4)

Request Fields

All fields are optional. Only provided fields are updated.
  • email - New email address
  • password - New password (encrypted at rest)
  • retailer - New retailer association
  • totp_secret - Update the 2FA secret key (encrypted at rest)

Response

Returns the updated credential object.

Headers

authorization
string | null

Path Parameters

short_id
string
required

Body

application/json

Request model for updating retailer credentials.

email
string | null
password
string | null
retailer
string | null
totp_secret
string | null
retailer_config
Retailer Config · object

Response

Successful Response

Response model for retailer credentials.

id
string<uuid>
required
short_id
string
required
email
string
required
retailer
string | null
required
forwarding_email
string
required

Email address to forward retailer emails to for verification and 2FA code extraction.

created_at
string<date-time>
required
updated_at
string<date-time>
required
has_totp
boolean
default:false

Whether TOTP 2FA is configured for this account.

has_forwarding
boolean
default:false

Whether email forwarding has been verified for this account.

retailer_config
Retailer Config · object