Structure and Design
As noted, this API utilizes a RESTful architecture. SwervePay services are utilized through stateless client-server communication utilizing standard HTTP 1.1 requests and responses.
Request
Requests are made utilizing HTTP methods available to the given resource (e.g., GET, POST, PUT, DELETE). The utilization of these request methods will be defined in detail for every available resource.
ALL HTTP client requests will be provided by utilizing the application/x-www-form-urlencoded
encoded Content-Type.
Response
Responses from the server will utilize either JSON (application/json
) or XML (application/xml
) encoding depending on the value specified in the Accept
header (JSON will be provided by default or in the case of an unaccepted requested type).
The SwervePay REST API is served exclusively over HTTPS; unencrypted HTTP is not supported.
Updated over 2 years ago