Payment profile info

GET
https://www.digicert.com/services/v2/finance/payment-profile/{{profile_id}}

Use this endpoint to get info about a saved payment profile.

cURL
curl -X GET \
  'https://www.digicert.com/services/v2/finance/payment-profile/{{profile_id}}' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}'
Python
import requests

url = "https://www.digicert.com/services/v2/finance/payment-profile/{{profile_id}}"

payload = ""
headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json"
    }

response = requests.request("GET", url, data=payload, headers=headers)

print(response.text)
Go
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://www.digicert.com/services/v2/finance/payment-profile/{{profile_id}}"

	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))

}
NodeJS
var request = require("request");

var options = { method: 'GET',
  url: 'https://www.digicert.com/services/v2/finance/payment-profile/{{profile_id}}',
  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);
});
200 OK
{
  "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": "Corporate Amex - 1234"
  },
  "billing_address": {
    "address": "123 Fake Street",
    "city": "Lehi",
    "state": "ut",
    "zip": "84043",
    "country": "us"
  },
  "billing_email": "john.fake@example.com"
}

URL query strings

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.

Response parameters

Name Type Description
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.