Use this endpoint to list payment profiles saved to your account.
curl -X GET \
https://www.digicert.com/services/v2/finance/payment-profile \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/finance/payment-profile"
payload = ""
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("GET", url, data=payload, headers=headers)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/finance/payment-profile"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-DC-DEVKEY", "{{api_key}}")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
var request = require("request");
var options = { method: 'GET',
url: 'https://www.digicert.com/services/v2/finance/payment-profile',
headers:
{ 'Content-Type': 'application/json',
'X-DC-DEVKEY': '{{api_key}}' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
{
"profiles": [
{
"id": 1001,
"is_default": true,
"status": "active",
"credit_card": {
"shortened_number": "1234",
"type": "amex",
"expiration_month": 1,
"expiration_year": 2055,
"cardholder_name": "John Fake",
"label": "Buisness Amex - 1234"
},
"billing_address": {
"address": "123 Fake Street",
"city": "Lehi",
"state": "ut",
"zip": "84043",
"country": "us"
},
"billing_email": "john.fake@example.com"
}
],
"page": {
"total": 1,
"limit": 1000,
"offset": 0
}
}
Name | Req/Opt | Type | Description |
---|---|---|---|
limit | optional | int | Start list at the specified number for pagination. |
offset | optional | int | Truncate list to the specified number for pagination. |
Name | Type | Description |
---|---|---|
profiles | array | List of saved payment profiles. |
.. id | int | Payment profile ID. |
.. is_default | bool | Specifies if it is the default payment profile. |
.. status | string |
Status of the payment profile. Possible values: active , inactive
|
.. credit_card | object | Details about the saved credit card. |
.. .. shortened_number | string | Last four digits of the saved credit card. |
.. .. type | string |
Credit card issuer. Possible values: amex , discover , mastercard , visa , other
|
.. .. expiration_month | int | Expiration month of the credit card. |
.. .. expiration_year | int | Expiration year of the credit card. |
.. .. cardholder_name | string | Name on the credit card. |
.. .. label | string | Short description of the card. |
.. billing_address | object | Details about the billing address for the saved payment profile. |
.. .. address | string | |
.. .. city | string | |
.. .. state | string | |
.. .. zip | string | |
.. .. country | string | |
.. billing_email | string | Email address for the saved payment profile. |
page | object |
Details about results. Modified using URL query strings. |