BuckBus
API
API
  1. Payments
  • API Introduction
    • Introduction
    • References
    • Test store
    • Authorization
    • Processing of requests
    • Webhooks
  • APIs
    • Assets
      • List assets
    • Accounts
      • List accounts
    • Payments
      • Create payment
        POST
      • Create fiat payment
        POST
      • List payments
        GET
      • Payment details
        GET
      • List payment transactions
        GET
    • Dedicated addresses
      • Create dedicated address
      • Release dedicated address
    • Transfers
      • Create transfer
    • Withdrawals
      • Create withdrawal
      • Withdrawal details
    • Convert
      • Convert amount
  • Schemas
    • Payment
    • PaymentTransaction
    • Lang
    • Withdrawal
    • DedicatedAddress
    • Providers
    • Asset
    • Account
    • Accounts
API
API
  1. Payments

Create payment

POST
https://api.bucksbus.com/int/payment

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

🟠401Unauthorized
🟠422Unprocessible Entity
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.bucksbus.com/int/payment' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "payment_type": "FIXED_AMOUNT",
    "amount": 0,
    "asset_id": "string",
    "payment_asset_id": "string",
    "payer_email": "user@example.com",
    "payer_name": "string",
    "payer_lang": "ar",
    "description": "string",
    "custom": "string",
    "custom1": "string",
    "custom2": "string",
    "custom3": "string",
    "custom4": "string",
    "custom5": "string",
    "custom6": "string",
    "custom7": "string",
    "custom8": "string",
    "custom9": "string",
    "dedicate_id": "string",
    "webhook_url": "string",
    "success_url": "string",
    "cancel_url": "string",
    "timeout": 0
}'
Response Response Example
200 - Example 1
{
    "payment_id": "string",
    "account_id": "string",
    "payment_num": "string",
    "payment_type": "FIXED_AMOUNT",
    "payment_type_name": "string",
    "store_id": "string",
    "store_name": "string",
    "is_test": true,
    "amount": "string",
    "asset_id": "string",
    "paid_amount": "string",
    "payment_amount": "string",
    "payment_asset_id": "string",
    "rate": 0,
    "rate_date": "2019-08-24T14:15:22Z",
    "ip_amount": "string",
    "ip_asset_id": "string",
    "remain_amount": "string",
    "remain_asset_id": "string",
    "status": "string",
    "status_name": "string",
    "crypto_network": "string",
    "crypto_network_name": "string",
    "address_id": "string",
    "address": "string",
    "confirms": 0,
    "start_date": "2019-08-24T14:15:22Z",
    "end_date": "2019-08-24T14:15:22Z",
    "complete_date": "2019-08-24T14:15:22Z",
    "payment_url": "http://example.com",
    "qrcode_url": "http://example.com",
    "payer_email": "user@example.com",
    "payer_name": "string",
    "payer_lang": "ar",
    "description": "string",
    "custom": "string",
    "custom1": "string",
    "custom2": "string",
    "custom3": "string",
    "custom4": "string",
    "custom5": "string",
    "custom6": "string",
    "custom7": "string",
    "custom8": "string",
    "custom9": "string",
    "webhook_url": "http://example.com",
    "success_url": "http://example.com",
    "cancel_url": "http://example.com",
    "timeout": 0
}
Previous
List accounts
Next
Create fiat payment
Built with