You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 4 Next »
All API endpoints require an authentication header to be included with the request. See API Authentication
End-point
Method
Description
https://secure.gotobilling.com/api/customers
GET
Returns a collection of customers
Parameters that can be included in the query string of the request when using the GET /api/customers endpoint.
GET /api/customers
Parameter
Type
id
int or Array Filter
OmniFund assigned Customer ID
customerRef
string
Merchant provided customer reference ID
firstName
Customer first name
lastName
Customer last name
company
Company name
email
Customer email address
GET /api/customers?id[]=23143879&id[]=21879654
{ "@context": "/api/contexts/customers", "@id": "/api/customers", "@type": "hydra:Collection", "hydra:member": [ { "@id": "/api/customers/23143879", "@type": "customers", "id": 23143879, "customerRef": "sw-1234", "company": "Cloud City", "firstName": "Lando", "lastName": "Calrissian", "email": "test@email.com", "displayAs": "company", "address1": "123 main st", "address2": "", "city": "Somewhere", "state": "Co", "zip": "55555", "phone": "(800) 555-4578", }, { "@id": "/api/customers/21879654", "@type": "customers", "id": 21879654, "customerRef": "sw-1235", "company": "", "firstName": "Han", "lastName": "Solo", "email": "test@email.com", "displayAs": "contact", "address1": "123 main st", "address2": "", "city": "Somewhere", "state": "Co", "zip": "55555", "phone": "(800) 555-4578" } ], "hydra:totalItems": 2 }
Return a single customer resource based on the ID provided
https://secure.gotobilling.com/api/customers/{id}
Return a single customer resource based on the ID provide
GET https://secure.gotobilling.com/api/customers/2613558
Content-Type application/ld+json; charset=utf-8 { "@context": "/api/contexts/customers", "@id": "/api/customers/2613558", "@type": "customers", "id": 2613558, "customerRef": "123456", "company": "123 Company", "firstName": "", "lastName": "", "email": "test@email.com", "displayAs": "contact", "address1": "123 main st", "address2": "", "city": "Somewhere", "state": "Co", "zip": "55555", "phone": "(800) 555-4578" }
POST
Create a new customer resource
Required. Merchant provided customer reference ID.
Customer email address. Either customerRef or email is required.
displayAs
Valid options: contact, company
contact
address1
Address line 1
address2
Address line 2
city
City
state
string (2)
Two-characater State abbreviation
zip
Zip code
phone
Phone number
POST https://secure.gotobilling.com/api/customers Content-Type application/json { "customerRef": "test-1234", "type": "individual", "firstName": "Test", "lastName": "Account", "company": "Acme Widgets", "email": "test@email.com" }
Content-Type application/ld+json; charset=utf-8 { "@context": "/api/contexts/customers", "@id": "/api/customers/2970583", "@type": "customers", "id": 2970583, "customerRef": "test-1234", "company": "Acme Widgets", "firstName": "Test", "lastName": "Account", "email": "test@email.com", "displayAs": "contact", "address1": "", "address2": "", "city": "", "state": "", "zip": "", "phone": "" }