customers

Resource: customer

This link relationship returns a collection of customers. You can paginate through this collection using the hypermedia links provided and the link relationships of first, prev, next, and last.

Required Scopes

Full store_full_access
Read customers_read
Write customers_write

Collection Resource

customer

Actions

GET View a list of customers
POST Create a new customer
HEAD Get just the header response
OPTIONS Get a response explaining which HTTP methods are supported

Properties (5)

_embedded Object · Read-only

Contains fx:customers[] — array of customer resources

total_items String · Read-only

Total number of resources in this collection.

returned_items Number · Read-only

Number of resources returned in this page.

limit Number · Read-only

Maximum number of resources per page.

offset Number · Read-only

Number of resources skipped.

Link Relations (5)

self This Collection
first First Page of this Collection
prev Previous Page of this Collection
next Next Page of this Collection
last Last Page of this Collection
https://api.foxycart.com/stores/{store_id}/customers
Available via fx:customers on store

Example Representation

{
  "_links": {
    "curies": [
      {
        "name": "fx",
        "href": "https://api.foxycart.com/rels/{rel}",
        "templated": true
      }
    ],
    "self": {
      "href": "https://api.foxycart.com/stores/123/customers",
      "title": "This Collection"
    },
    "first": {
      "href": "https://api.foxycart.com/stores/123/customers?offset=0",
      "title": "First Page of this Collection"
    },
    "prev": {
      "href": "https://api.foxycart.com/stores/123/customers?offset=0",
      "title": "Previous Page of this Collection"
    },
    "next": {
      "href": "https://api.foxycart.com/stores/123/customers?offset=20",
      "title": "Next Page of this Collection"
    },
    "last": {
      "href": "https://api.foxycart.com/stores/123/customers?offset=20",
      "title": "Last Page of this Collection"
    }
  },
  "_embedded": {
    "fx:customers": [
      {
        "_links": {
          "curies": [
            {
              "name": "fx",
              "href": "https://api.foxycart.com/rels/{rel}",
              "templated": true
            }
          ],
          "self": {
            "href": "https://api.foxycart.com/customers/456",
            "title": "This Customer"
          },
          "fx:attributes": {
            "href": "https://api.foxycart.com/customers/123/attributes",
            "title": "Attributes for this Customer"
          },
          "fx:store": {
            "href": "https://api.foxycart.com/stores/456",
            "title": "This Store"
          },
          "fx:default_billing_address": {
            "href": "https://api.foxycart.com/customers/123/default_billing_address",
            "title": "Default Billing Address for this Customer"
          },
          "fx:default_shipping_address": {
            "href": "https://api.foxycart.com/customers/123/default_shipping_address",
            "title": "Default Shipping Address for this Customer"
          },
          "fx:default_payment_method": {
            "href": "https://api.foxycart.com/customers/123/default_payment_method",
            "title": "Default Payment Method for this Customer"
          },
          "fx:transactions": {
            "href": "https://api.foxycart.com/stores/456/transactions?customer_id=123",
            "title": "Transactions for this Customer"
          },
          "fx:subscriptions": {
            "href": "https://api.foxycart.com/stores/456/subscriptions?customer_id=123",
            "title": "Subscriptions for this Customer"
          },
          "fx:send_webhooks": {
            "href": "https://api.foxycart.com/customers/123/send_webhooks",
            "title": "Refeed webhooks v2 for this Customer"
          },
          "fx:customer_addresses": {
            "href": "https://api.foxycart.com/customers/123/addresses",
            "title": "Addresses for this Customer"
          }
        },
        "last_login_date": null,
        "first_name": "Test",
        "last_name": "User",
        "email": "luke.stokes+apitest998@example.com",
        "password_salt": null,
        "password_hash": "4443fe50df6b177ba84b78dd91f0958a",
        "password_hash_type": "md5",
        "password_hash_config": null,
        "forgot_password": "blah",
        "forgot_password_timestamp": "2013-08-16T14:13:54-0700",
        "is_anonymous": false,
        "date_created": null,
        "date_modified": "2013-08-16T14:13:54-0700"
      }
    ]
  },
  "total_items": 1,
  "returned_items": 1,
  "limit": 20,
  "offset": 0
}