Customers
The Customer Object
Attributes
Address Attributes
API Endpoints
Create a Customer
Creates a new customer with the given data.
SDK Functions
Ruby
Returns
Returns the Customer
object upon successful creation. It’s recommended to store the returned customer ID in your own system for future reference and operations.
Retrieve a Customer
Retrieves a customer by its internal and/or external IDs.
SDK Functions
Ruby
Returns
Returns the up-to-date Customer
object for a valid identifier. Raises an error if parameters are invalid (e.g. specifying an invalid internal/external customer IDs.
List all Customers
Retrieves all customers associated with your organization.
Ruby
Returns
Returns the up-to-date list of Customer
objects.
Update a Customer
Updates an existing customer by its internal and/or external IDs.
SDK Functions
Ruby
Returns
Returns the updated Customer
if the update succeeded. Raises an error if update parameters are invalid (e.g. specifying an invalid customer ID)
Delete a Customer
Deletes a customer by its internal and/or external IDs.
SDK Functions
Ruby
Error Handling
The API uses conventional HTTP response codes to indicate the success or failure of requests:
2xx
range indicates success4xx
range indicates an error that failed given the information provided5xx
range indicates an error with Paid’s servers