Supported Formats

The Shopper and OAuth APIs supports request and response in XML and JSON formats. XML is the default for the Shopper APIs; JSON is the default for the OAuth API. You can override the default in the Accept header for both the OAuth and Shopper APIs. In the Shopper APIs, you can also override the default format using the format query parameter.

Accept Header Format for OAuth APIs

The following list shows the supported accept header formats for OAuth APIs.

  • Accept: application/json (default)
  • Accept: application/xml

Accept Header Format for Shopper APIs

The following list shows the supported accept header formats for Shopper APIs.

  • Accept: application/xml (default)
  • Accept: application/json

Query Parameter Format

The following GET request sets the format parameter format to json:

GET /shoppers/me/categories?format=json
Accept: */*
Authorization: bearer your_access_token

Supported Webhook Formats

The supported format is xml.