BETCORE Aggregator
Provider IntegrationCasino Integration
Provider IntegrationCasino Integration
Visit Betcore website
Follow Betcore on Instagram
Follow Betcore on LinkedIn
Follow Betcore on Youtube
  1. Payments
  • Getting Started
  • Integrate BETCORE Games (Casino)
    • Integrate BETCORE Gems (Casino)
    • WebFrame Connection
    • Aggregator API for Casino
      • Authentication
        • Verify
        • Jwks
        • Token
      • Payments
        • Accept
      • Cashback
        • Accept
    • Casino API for Aggregator
      • Users
        • Auth
        • Data
      • Payments
        • Info
          POST
        • Make
          POST
        • Make-list
          POST
        • Close
          POST
      • 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. Payments

Close

POST
/payments/close

Overview#

The Close endpoint is used to communicate the final state of a bet by sending a flag that indicates whether the bet is closed or open. Essentially, this method informs that no further transactional operations are expected for the bet once it is closed. Conversely, if additional transactions need to occur, the bet can be reopened before eventually being closed again.
The main objectives of the Close method are:
Bet Status Update: The primary goal of the /payments/close method is to update the current status of a bet. The Partner can signal that a bet has been finalized (closed) or reactivated (open) by sending the appropriate flag in the request.
Synchronization of Bet Lifecycle: By using this endpoint, both the Partner and BETCORE can maintain consistent, up-to-date information about the bet's state. This synchronization is essential to prevent further transactions from being processed on a bet that has already reached its final state.
Control over Transaction Flow: Closing a bet ensures that no additional transaction requests (such as bet adjustments or extra payments) will be sent for that particular bet. If there's a need to process further transactions on a previously closed bet, BETCORE can transition its status to open, process the necessary operations, and then close the bet again afterward.
In summary, the Close endpoint is crucial for managing the lifecycle of a bet within the BETCORE Partners API by updating its status, ensuring synchronized record-keeping, and controlling the flow of related transactions.

Request Parameters#

ParameterData typeDescriptionRequired
JWT payload
datajson stringRequest data.Yes
 BetIdstringBet ID.Yes
 ClosedbooleanTarget state of bet closing (bool), where:
true - bet is closed
false - bet is open
Yes

Request

Authorization
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************

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 --location --request POST 'https://mock.apidog.com/m1/820627-0-default/payments/close'

Responses

🟢200Success
application/json
Body
ErrorCode
number 
required
Error code of the response.
Message
string 
required
Code description.
Example
{
    "ErrorCode": 200,
    "Message": "Success"
}
⚪103752Invalid request parameters
⚪103811JWT token validation failed
⚪103799General API Error
Previous
Make-list
Next
Make
Built with