Search…
Supported OAuth and Commerce API formats
Learn about supported OAuth and Commerce API formats
The Commerce API and OAuth support requests and responses in XML and JSON formats. XML is the default for the Commerce API; JSON is the default for the OAuth API. You can override the default in the Accept header for both the OAuth and Commerce API. In the Commerce API, you can also override the default format using the format query parameter.

Accept header format for OAuth

The following list shows the supported accept header formats for the OAuth resource.
Request Header
1
Accept: application/json (default)
2
Accept: application/xml
Copied!

Accept header format for Commerce API

The following list shows the supported accept header formats for Shopper resource.
Request Header
1
Accept: application/xml (default)
2
Accept: application/json
Copied!

Query parameter format

The following GET request sets the format parameter format to json:
Request Header
1
GET /shoppers/me/categories?format=json
2
Accept: */*
3
Authorization: bearer your_access_token
Copied!

Supported webhook formats

Digital River supports the XML format for webhooks.
Last modified 1yr ago