REST API response headers

These response headers are returned for all of the SPE REST APIs.

Table 1. REST API response headers
Parameter Required or Optional Description
JSESSIONSPE Optional Provided by SPE and used with the REST API that connects Sterling B2B Integrator and SPE. A cookie that is returned after successful authentication. The JSESSIONSPE is included with subsequent REST API calls in the same user session to conserve server-side resources.
Content-Type Required Defines the content type of the API session.

Valid values: application/json and application/xml.

Accept Required Accepts a DocId or other input as provided in the document list from the previous create or read job.
Example response header:

Content-Type:application/json;charset=UTF-8