Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

119 lines (94 sloc) 2.988 kB
layout weight title seo navigation
page
0
Account Overview
robots
NOINDEX, FOLLOW
show
true

{% warning %} This feature is deprecated, please go to the Version 2 Reseller Account Overview page.
{% endwarning %}

View general account information regarding your customers, including billing cycle, current billing cycle, credit usage, package, overage credits, etc.

Parameter Required Requirements Description
task Yes Must be set to *overview*. The task that allows us to present the customers information.
user Yes Customer that is registered under your account. The customer

XML Call

{% requestblock %}

{% requesturl POST %}https://api.sendgrid.com/api/distributor.account.xml {% endrequesturl %}

{% requestdata Data POST %}api_user=your_sendgrid_username&api_key=your_sendgrid_password&task=overview&user=customer@example.com {% endrequestdata %}

{% endrequestblock %}

Response: Success

{% codeblock lang:xml %} <?xml version="1.0" encoding="ISO-8859-1"?>

100 50000 Silver Package 50000 100000 0 50000 2010-08-30 2010-09-29 2010-09-30

{% endcodeblock %}

Response: Error

{% codeblock lang:xml %} <?xml version="1.0" encoding="ISO-8859-1"?>

error ... error messages ... ...

{% endcodeblock %}

JSON Call

{% requestblock %}

{% requesturl POST %}https://api.sendgrid.com/api/distributor.account.json {% endrequesturl %}

{% requestdata Data POST %}api_user=your_sendgrid_username&api_key=your_sendgrid_password&task=overview&user=customer@example.com {% endrequestdata %}

{% endrequestblock %}

Response: Success

{% codeblock %} "reputation":100,"requests":500000,"package":"Silver Package","credits_allowed":50000,"credits_used":100000,"credits_remain":0,"credits_overage":50000,"billing_start_date":"2010-08-30","billing_end_date":"2010-09-29","billing_process_date":"2010-09-30" {% endcodeblock %}

Response: Error

{% codeblock lang:json %} { "message": "error", "errors": [ "...error messages..." ] } {% endcodeblock %}

Jump to Line
Something went wrong with that request. Please try again.