GuidesAPI Reference
API Reference

Companies

The Companies endpoint allows merchants to retrieve information about the company associated with a Credit Key customer.

This endpoint is typically used after a customer has completed financing or when your application needs to display or synchronize company information stored by Credit Key.



When to Use This Endpoint

Use the Companies endpoint when your application needs to:

  • Retrieve a customer's company information
  • Display company details within your application
  • Synchronize company records with your CRM or ERP
  • Verify company information associated with a Credit Key account

Most merchants use this endpoint after a customer has been approved for financing or when viewing an existing customer profile.


Path Parameters

ParameterTypeDescription
company_idstringThe unique identifier of the company to retrieve.

Example Request

curl --request GET \
  --url https://api.creditkey.com/v2/companies/{company_id} \
  --header "Authorization: Bearer YOUR_ACCESS_TOKEN"

Example Response

{
  "id": "cmp_123456",
  "name": "Acme Manufacturing",
  "status": "ACTIVE",
  "phone": "555-555-5555",
  "email": "[email protected]",
  "billing_address": {
    "street": "123 Main Street",
    "city": "New York",
    "state": "NY",
    "postal_code": "10001",
    "country": "US"
  }
}

Response Fields

FieldDescription
idCredit Key company identifier
nameCompany name
statusCurrent company status
phoneCompany phone number
emailPrimary company email address
billing_addressCompany's billing address

Refer to the API reference for the complete response schema.


Common Use Cases

Typical uses for the Companies endpoint include:

  • Displaying company information within a customer portal
  • Populating CRM records
  • Synchronizing ERP customer accounts
  • Verifying company information before creating internal records

Error Handling

Common responses include:

StatusMeaning
200Company retrieved successfully
401Authentication failed
403Not authorized to access the company
404Company not found
500Internal server error

Refer to the API reference for complete error details.


What's Next

After retrieving company information, you can continue working with the customer's Credit Key account by performing checkout operations, managing orders, or synchronizing additional customer data.

Continue to Hosted Checkout to learn how to create a checkout session and launch the Credit Key checkout experience.