BETCORE Aggregator
Provider IntegrationCasino Integration
Provider IntegrationCasino Integration
Visit Betcore website
Follow Betcore on Instagram
Follow Betcore on LinkedIn
Follow Betcore on Youtube
  1. Cashback
  • Getting Started
  • Integrate BETCORE Games (Casino)
    • Integrate BETCORE Gems (Casino)
    • WebFrame Connection
    • Aggregator API for Casino
      • Authentication
        • Verify
        • Jwks
        • Token
      • Payments
        • Accept
      • Cashback
        • Accept
          POST
    • Casino API for Aggregator
      • Users
        • Auth
        • Data
      • Payments
        • Info
        • Make
        • Make-list
        • Close
      • Cashback
        • Make
  • Integrate as Games Provider
    • Integrate as Games Provider
    • Provider API for Aggregator
      • Games
        • Games
        • Launch
    • Aggregator API for Provider
      • Get Balance
        • Balance
      • Bets
        • PayIn
        • PayOut
        • PayInOut
        • Refund
  • Feed
    • Feed Integration
    • REST API
      • Authorization
        • Token
      • Games
        • Info
        • Translations
      • Jackpot
        • Accumulated
    • Websocket
      • SubOnWholeGamesInfo
  • SubOnWholeGamesInfo
  1. Cashback

Accept

POST
/mis-api/api/v2/cashback-payments/accept

Overview#

The /cashback-payments/accept endpoint is used to send the final outcome of cashback transactions.
While/payments/accepthandles standard betting transactions,/cashback-payments/acceptis 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/acceptrequest must be sent within 30 seconds after receiving the/cashback-payments/makerequest 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 CodeDescription
200Success
102145User not found
103801Incorrect amount
102823Error adding transaction
103779User blocked
103804Transaction already exists
103753Request data error
📌
In case error 103804 was received, please pass the contents of Value.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
ErrorCode
number 
required
Error code of the response.
Message
string 
required
Code description.
Value
object 
required
Request parameters.
Amount
string 
required
Amount in player's currency
TaxAmount
string 
optional
Tax Amount.
The TaxAmount field will be included in the request if the "Tax On/Off" setting is enabled in the BETCORE Backoffice.
TransactionType
number 
required
Transaction type:
1 - cashback payment
-1 - cashback payment cancellation
CashbackId
number 
required
Cashback ID in BETCORE.
PartnerUserId
string 
required
Partner's user ID.
PartnerTransactionId
string 
required
Transaction ID.
Examples
/*Example of a request when a transaction was processed successfully*/
{
  "ErrorCode": 200,
  "Message": "Success",
  "Value": {
    "CashbackId": 480,
    "PartnerUserId": "188509"
    "PartnerTransactionId": "480-120730817",
    "TransactionType": 1,
    "Amount": 1000,
    "TaxAmount": 0
  }
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST 'https://mock.apidog.com/m1/820627-0-default/mis-api/api/v2/cashback-payments/accept' \
--header 'Content-Type: application/json' \
--data-raw '/*Example of a request when a transaction was processed successfully*/
{
  "ErrorCode": 200,
  "Message": "Success",
  "Value": {
    "CashbackId": 480,
    "PartnerUserId": "188509"
    "PartnerTransactionId": "480-120730817",
    "TransactionType": 1,
    "Amount": 1000,
    "TaxAmount": 0
  }
}'

Responses

🟢200Success
application/json
Body
ErrorCode
number 
required
Error code of the response.
Message
string 
required
Code description.
Examples
{
    "ErrorCode": 200,
    "Message": "Success"
}
⚪103752Incorrect request parameters
⚪102823Error accepting transaction
Previous
Accept
Next
Casino API for Aggregator
Built with