New Recharge API V3
    New Recharge API V3
    • GET Client Token
      GET
    • CANAL Check Account
      POST
    • CANAL Verify Renewal
      POST
    • Buy Data Package (Canal New Sale)
      POST
    • Buy Data Package (Canal Renew)
      POST
    • ATOM Buy epackage
      POST
    • Prepaid Gift Card buy epackage
      POST
    • Skynet buy epackage
      POST
    • Ooredoo Buy epackage
      POST
    • MPT Buy epackage
      POST
    • Buy Eload
      POST
    • Buy Epin
      POST
    • Get Products in Category Tree Form
      GET
    • Get Data Packages in Category Tree Form
      GET
    • Get Products in List Form
      GET
    • Get Data Packages in List Form
      GET
    • Get Product Stocks List
      GET
    • ATOM Enquiry Request
      GET
    • Skynet Enquiry Request
      GET
    • Get PrepaidGiftCard ProductList
      GET
    • Prepaid Gift Card Enquiry Price
      GET
    • Get Epin ProductDetailsShow
      GET
    • Get Order Status
      GET
    • Bill API getBillAmount
      GET
    • Bill API processCollection
      POST
    • Bill API checkTransaction
      POST

      Buy Data Package (Canal New Sale)

      POST
      https://newrecharge-api.getmya.io/recharge/api/transaction/buy
      Last modified:2025-06-24 04:11:48

      Request

      Header Params
      Authorization
      string 
      required
      Example:
      Bearer ezZsdXPjFRGXcd9mPkPaxRnKB2Tu3qjMUK482xij0mmlNp1buqGoVMi7aUxh
      Body Params application/json
      productType
      string 
      required
      supplierCode
      string 
      required
      payload
      object 
      required
      packageCode
      string 
      required
      merchOrderNo
      string 
      required
      phoneNumber
      string 
      required
      amount
      integer 
      required
      startDate
      string 
      required
      months
      integer 
      required
      Example
      {
          "productType":"EPACKAGE",
          "supplierCode":"CANALNEW",
          "payload":{
              "packageCode":"R1c44523-8745-74a9-4b00-6ta1d1d991ff",
              "merchOrderNo":"TEST0001000008000008",
              "phoneNumber":"0943107003",
              "amount":12900.0,
              "startDate":"2024-08-03",
              "months":1
          }
      }

      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://newrecharge-api.getmya.io/recharge/api/transaction/buy' \
      --header 'Authorization: Bearer ezZsdXPjFRGXcd9mPkPaxRnKB2Tu3qjMUK482xij0mmlNp1buqGoVMi7aUxh' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "productType":"EPACKAGE",
          "supplierCode":"CANALNEW",
          "payload":{
              "packageCode":"R1c44523-8745-74a9-4b00-6ta1d1d991ff",
              "merchOrderNo":"TEST0001000008000008",
              "phoneNumber":"0943107003",
              "amount":12900.0,
              "startDate":"2024-08-03",
              "months":1
          }
      }'

      Responses

      🟢200Success
      application/json
      Body
      code
      string 
      required
      success
      boolean 
      required
      message
      string 
      required
      data
      object 
      required
      orderNo
      string 
      required
      invoiceNumber
      null 
      required
      status
      string 
      required
      message
      string 
      required
      extra
      object 
      required
      Example
      {
          "code": "SUCCESS",
          "success": true,
          "message": "SUCCESS",
          "data": {
              "orderNo": "E20250624041126426165063",
              "invoiceNumber": null,
              "status": "success",
              "message": "success",
              "extra": {
                  "operator": "CANAL",
                  "packageCode": "R1c44523-8745-74a9-4b00-6ta1d1d991ff",
                  "sellingPrice": "12900",
                  "phone": "0943107003",
                  "result": "{\"smartCard\":\"\"}"
              }
          }
      }
      Modified at 2025-06-24 04:11:48
      Previous
      CANAL Verify Renewal
      Next
      Buy Data Package (Canal Renew)
      Built with