API Reference

Fetch a customer

GET/customers/{id}

Find the details of an existing customer by its unique ID.

Query Parameters

idstring

ID or Reference

Request

curl
curl -u TEST:TEST https://gateway.pmnts-sandbox.io/v1.0/customers/071-C-JE34F66V

Response

200cURL
json
{
  "successful": true,
  "response": {
  "id": "071-C-JE34F66V",
  "email": "jim@citizen.com",
  "reference": "CUST-98198",
  "first_name": "Jim",
  "last_name": "Smith",
  "created_at": "2017-12-04T21:51:11+11:00",
  "address": {
    "address": "1 Citizen Road",
    "city": "Sydney",
    "state": "NSW",
    "postcode": "2000",
    "country": "Australia"
  },
  "card_token": "fke89s3v",
  "card_number": "400555XXXXXX0001",
  "bank_account": null,
  "metadata": {}
  },
  "errors": [],
  "test": true
}