Create an additional account for the authenticated user
const url = 'https://api.pingram.io/accounts';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","plan":{"tier":"budget_20","sourceBillingAccountId":"example"},"memberEmails":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.pingram.io/accounts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "plan": { "tier": "budget_20", "sourceBillingAccountId": "example" }, "memberEmails": [ "example" ] }'Authorizations
Request Bodyrequired
Request body for POST /accounts (create additional account).
object
Billing to copy onto a new additional account.
object
Account whose saved payment method is copied onto the new account. The caller must be an owner of this account.
Emails to add or invite to the new account. Existing members of any account the caller belongs to are added directly; everyone else is invited.
Responses
200
Successful response
Response for POST /accounts
object
Example
{ "status": "verified", "subscriptionStatus": "active"}400
Bad Request - validation errors, invalid input
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}401
Unauthorized
402
Payment Required - usage limits exceeded
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}500
Internal Server Error
502
Bad Gateway - provider error
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}