Skip to main content

List Purchase History

Use this to list all domain purchases made by a user.
// See documentation to set up the client first

let partnerApi = new superlink.PartnerApi();

partnerApi.partnerPurchases((error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
// See documentation to set up the client first

resp, r, err := apiClient.PartnerAPI.PartnerPurchases(context.Background()).Execute()
if err != nil {
    fmt.Fprintf(os.Stderr, "Error when calling `PartnerAPI.PartnerPurchases``: %v\n", err)
    fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}

fmt.Fprintf(os.Stdout, "Response from `PartnerAPI.PartnerPurchases`: %v\n", resp)
# See documentation to set up the client first

partner_api = superlink.PartnerApi(api_client)

try:
    api_response = partner_api.partner_purchases()
    print("The response of PartnerApi->partner_purchases:\n")
    pprint(api_response)
except Exception as e:
    print("Exception when calling PartnerApi->partner_purchases: %s\n" % e)