API confirm
The confirm API is used to confirm a transaction and create a financing authorization. The transaction must be authorized by banking institutions to be confirmable. Depending on the captureMode field value, this call has two behaviors.
- "captureMode":"Validate" which create a financing authorization that is valid for a limited time;
- "captureMode":"Immediate" which trigger the following:
- Creation of the financing authorization;
- Initialization of the customer payment schedule for direct debits;
- Validation of the financing and payment to the partner;
| ResponseCode | ResponseMessage | Comment |
|---|---|---|
| 000 | API Success | |
| 003 | Transaction Key is not an accepted transaction | |
| 004 | Transaction Key has already been confirmed | Call already done for this transaction |
| 005 | Transaction Key not in to_confirm status | |
| 022 | TransactionKey does not exist | The pair “merchantTransactionID”, “merchantTransactionDate” does not exist for this partner |
| 904 / 912 / 913 | Technical error - unable to confirm transaction | A technical error on Cofidis side prevented the confirm call to run properly |