Merchant API Contracts

Unlike the standard API where you initiate requests, in Merchant Contracts, AutoPay queries your server to perform critical operations in real-time.

This section documents the endpoints your infrastructure must expose to enable automated charges and status synchronization.

Configuration and Base URL

Services to Implement

To ensure a complete integration, you must expose the following contracts:

Resource
Method
Function
POST
Exclusive for Variable Charge. Allows us to query the amount to charge in each cycle. Necessary if using TOTAL_BALANCE or MINIMUM_BALANCE models.
POST
Required. Final confirmation of the approved payment so you can register/settle it in your internal systems.
POST
Required. Notification channel to receive status updates (creation, cancellation) and charge results.

Technical Requirements

Your API must comply with the following standards:

1. Security (Basic Auth)

AutoPay will authenticate by sending an Authorization header. You define the credentials (username and password) and must validate them on every incoming request.

2. Format and Transport

  • Protocol: Strict HTTPS.
  • Format: JSON (Content-Type: application/json).
  • Performance: Responding in less than 3 seconds is recommended to avoid timeouts.