Paystack

Paystack Betting API

The OpenAPI specification for creating a betting platform using the [Paystack API](https://paystack.com/docs/api/). Prerequisites 1. Sign up on…

Payments#openapi

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

The OpenAPI specification for creating a betting platform using the Paystack API.

Prerequisites

  1. Sign up on Paystack to get your secret API key
  1. Set your API key as an environment variable on Postman

We strongly recommend using the Bulk Transfer API for sending customers their winnings instead of using Single Transfers.

Endpoints 7

Transaction

  • POSTInitialize Transaction/transaction/initializeCreate a new transaction
  • POSTCharge Authorization/transaction/charge_authorizationCharge all authorizations marked as reusable with this endpoint whenever you need to receive payments
  • GETVerify Transaction/transaction/verify/:referenceVerify a previously initiated transaction using it's reference

Bank

  • GETResolve Account Number/bank/resolve?account_number=22728151&bank_code=63Resolve an account number to confirm the name associated with it

Transfer Recipient

  • GETList Transfer Recipients/transferrecipient?use_cursor=true&next=string&previous=string&per_page=0&page=0List transfer recipients available on your integration
  • POSTCreate Transfer Recipient/transferrecipientCreates a new recipient. A duplicate account number will lead to the retrieval of the existing record.

Transfer

  • POSTInitiate Bulk Transfer/transfer/bulkBatch multiple transfers in a single request. You need to disable the Transfers OTP requirement to use this endpoint.

API details

Base URL
https://api.paystack.co
Authentication
A bearer token in the Authorization header
Operations
7 operations on 6 pathsPOST 4GET 3
Main resources
Transaction 3Transfer Recipient 2Bank 1Transfer 1
Response formats
application/json
Description format
OpenAPI 3.0.1, API version 1.0.0

How to test the Paystack Betting API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Paystack Betting API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses A bearer token in the Authorization header. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Initialize Transaction” (POST /transaction/initialize), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Paystack Betting API?

The OpenAPI specification for creating a betting platform using the [Paystack API](https://paystack.com/docs/api/). Prerequisites 1. Sign up on… It is listed under Payments and has 7 endpoints.

Who publishes the Paystack Betting API?

It is listed from Paystack's public API description (an OpenAPI document), not published by Paystack on Swastik Codes. Anyone who controls paystack.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Paystack Betting API?

Requests go to https://api.paystack.co. Endpoint paths are added to this base URL.

How do I authenticate with the Paystack Betting API?

With A bearer token in the Authorization header.

How many endpoints does the Paystack Betting API have?

7 operations on 6 paths (4 POST, 3 GET). The largest groups are Transaction, Transfer Recipient, Bank, Transfer.

Is forking the Paystack Betting API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.