Skip to main content
POST
/
managed-accounts
Create Retailer Credentials
curl --request POST \
  --url https://api.zinc.com/managed-accounts \
  --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": {}
}
Create new retailer credentials for order processing. Credentials are encrypted and stored securely.

Request Fields

  • email (required) - The email address for the retailer account
  • password - The password for the retailer account (encrypted at rest)
  • retailer - Retailer name (e.g., amazon). If omitted, applies as default credentials
  • totp_secret - TOTP secret key for two-factor authentication (encrypted at rest)
If your retailer account has 2FA enabled, you must provide the totp_secret to avoid verification issues during order processing. See the Managed Accounts guide for details on finding your TOTP key.

Response

Returns the created credential object with:
  • id - Unique identifier (UUID)
  • short_id - Short identifier used in URLs (e.g., zn_acct_a1b2c3d4)
  • email - Retailer account email
  • retailer - Retailer name, or null if default credentials
  • has_totp - Whether TOTP 2FA is configured
  • has_forwarding - Whether email forwarding has been verified
  • created_at - Creation timestamp
  • updated_at - Last update timestamp
Passwords and TOTP secrets are never returned in API responses. The has_totp field indicates whether 2FA is configured.

Headers

authorization
string | null

Body

application/json

Request model for creating retailer credentials.

email
string
required
password
string | null
retailer
string | null

Retailer name (e.g., 'amazon'). If null, applies as default credentials.

totp_secret
string | null

TOTP secret key for 2FA (will be encrypted at rest).

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