Test environment

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.

GET /orders HTTP/1.1
Accept: application/vnd.aplazame.sandbox.v1+json
Authorization: Bearer api_private_key
Host: api.aplazame.com
Header Mode Value
Accept tests application/vnd.aplazame.sandbox.v1+json
Accept production application/vnd.aplazame.v1+json

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.v1

Test data

You can use the following data to simulate different statuses of the financing request in test mode.

Use the following card to validate the payment method of the financing request:

Field Value Expiry date CVV
Card 4111 1111 1111 1111 11/25 123

España

Use the following documents to obtain different results for the financing request:

Field Value Result Description
DNI 99999998 T KO Does not pass Aplazame’s admission criteria
DNI 99999995 C Pending You must complete the identity validation challenge
DNI Another valid combination OK The credit is accepted

Identity validation challenge

Field Value Result Description
FRONT front-id-card-correct OK Valid ID image
BACK back-id-card-correct OK Valid ID image
FRONT front-id-card-incorrect KO Invalid ID image
BACK back-id-card-incorrect KO Invalid ID image