All URIs are relative to https://api.sandbox.zipmoney.com.au/merchant/v1
| Method | HTTP request | Description |
|---|---|---|
| customers_get | GET /customers/{id} | Retrieve customer |
| customers_list | GET /customers | List customers |
customers_get(id)
Retrieve customer
Retrieves the details of a customer by id. This will only return customer details for customers who have transacted previously via the zip Merchant API.
# load the gem
require 'zip_money'
api_instance = ZipMoney::CustomersApi.new
id = "id_example" # String |
begin
#Retrieve customer
api_instance.customers_get(id)
rescue ZipMoney::ApiError => e
puts "Exception when calling CustomersApi->customers_get: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
nil (empty response body)
No authorization required
- Content-Type: application/javascript
- Accept: application/javascript
customers_list
List customers
Returns a list of all customers who have transacted previously with your merchant account.
# load the gem
require 'zip_money'
api_instance = ZipMoney::CustomersApi.new
begin
#List customers
api_instance.customers_list
rescue ZipMoney::ApiError => e
puts "Exception when calling CustomersApi->customers_list: #{e}"
endThis endpoint does not need any parameter.
nil (empty response body)
No authorization required
- Content-Type: application/javascript
- Accept: application/javascript