> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superlink.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Purchase History

## List Purchase History

Use this to list all domain purchases made by a user.

<CodeGroup>
  ```javascript javascript theme={null}
  // 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);
    }
  });
  ```

  ```go go theme={null}
  // 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)
  ```

  ```python python theme={null}
  # 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)
  ```
</CodeGroup>
