List all packages available to your account.

There are no extra parameters required for this call

Call

POST https://api.sendgrid.com/apiv2/reseller.packages.json
POST Data api_user=your_sendgrid_username&api_key=your_sendgrid_password

Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[
  {
    "name": "Basic Package",
    "price": 9.95,
    "description": "Basic Package description",
    "credits": 10000,
    "overage": 0.001,
    "has_reseller": false,
    "has_ip": false,
    "distributor_price": 50
  },
  {
    "name": "Silver Package",
    "price": 79.95,
    "description": "Silver Package description",
    "credits": 50000,
    "overage": 0.001,
    "has_reseller": false,
    "has_ip": true
  }
]

//error
{
  "message": "error",
  "errors": [
    "...error messages..."
  ]
}

Call

POST https://api.sendgrid.com/apiv2/reseller.packages.xml
POST Data api_user=your_sendgrid_username&api_key=your_sendgrid_password

Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="ISO-8859-1"?>

<result>
   <packages>
      <package>
         <name>Basic Package</name>
         <price>9.95</price>
         <description>Basic Package description</description>
         <credits>10000</credits>
         <overage>0.001</overage>
         <has_reseller>false</has_reseller>
         <has_ip>false</has_ip>
         <distributor_price>50</distributor_price>
      </package>
      <package>
         <name>Silver Package</name>
         <price>79.95</price>
         <description>Silver Package Description</description>
         <credits>50000</credits>
         <overage>0.001</overage>
         <has_reseller>false</has_reseller>
         <has_ip>false</has_ip>
         <distributor_price>50</distributor_price>
      </package>
   </packages>
</result>

<!-- error -->
<?xml version="1.0" encoding="ISO-8859-1"?>

<result>
   <message>error</message>
   <errors>
      ...
      <error>... error messages ...</error>
      ...
   </errors>
</result>