Overview#
The /cashback-payments/accept endpoint is used to send the final outcome of cashback transactions.While/payments/accept
handles standard betting transactions,/cashback-payments/accept
is tailored specifically for the nuances of cashback transactions.It is recommended to implement a mechanism for resending requests in case of a network error occurred during a request or in case of receiving a response with an error.The/cashback-payments/accept
request must be sent within 30 seconds after receiving the/cashback-payments/make
request from BETCORE.
The main objectives of the /cashback-payments/accept method are:Transaction Outcome Communication: It communicates whether a transaction (such as bet acceptance, cash flow, or other related operations) has been successfully processed or if errors occurred. The method returns structured information, including an error code and descriptive messages.
Asynchronous Processing Coordination: Since the transaction processing might be completed asynchronously on the Partner's side, the method ensures that BETCORE receives the result promptly – typically within 30 seconds of the original transaction request.
Data Consistency and System Updates: By sending transaction details – including identifiers like BetId, PartnerTransactionId, transaction type, amounts, and any applicable taxes – the endpoint helps maintain system integrity and ensures that both parties’ records are synchronized.
Error Handling and Recovery: In cases where the transaction fails or an issue is detected (e.g., duplicate transactions, incorrect amounts, or processing errors), the endpoint provides specific error codes. This allows BETCORE to trigger appropriate error handling procedures and, if necessary, enable a re-submission of the transaction.
Possible values for ErrorCode parameter sent in the body#
Error Code | Description |
---|
200 | Success |
102145 | User not found |
103801 | Incorrect amount |
102823 | Error adding transaction |
103779 | User blocked |
103804 | Transaction already exists |
103753 | Request data error |
In case error 103804 was received, please pass the contents of Value.