Contracts
A contract represents an identifier that allows XPay to save the pairing between the customer and the payment card used. Contracts are used in OneClick and recurring payments.
A contract is encoded in the APIs through the 'contractId' parameter, which must be generated during the first payment in the following solutions when you want to tokenize a card for subsequent OneClick and recurring payments:
The APIs made available for contract management are presented below.
- Search contract (GET /contracts/customers/{customerId}): returns the contracts associated with a customer.
- Contract deactivation (POST /contracts/{contractId}/deactivation): deactivate a contract. Once deactivated, it will no longer be possible to make OneClick or recurring payments on the contract.