Skip to main content

Test mode

Aplazame provides a test mode to facilitate the integration process before moving to production or to make changes without using real orders. It must be specified under the Accept header, just before the version.

  $ curl "https://api.aplazame.com/orders" \
-H "Accept: application/vnd.aplazame.sandbox.v4+json" \
-H "Authorization: Bearer api_private_key"
HEaderModeValue
Accepttestapplication/vnd.aplazame.sandbox.v4+json
Acceptproductionapplication/vnd.aplazame.v4+json
tip

The response indicates the format returned under the Content-Type standard header and the API version in the X-Defer Me-Media-Type header

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
X-Aplazame-Media-Type: aplazame.v4