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

      Prepaid Gift Card buy epackage

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

      Request

      Header Params
      Authorization
      string 
      required
      Example:
      Bearer {{client_token}}
      Body Params application/json
      productType
      string 
      required
      supplierCode
      string 
      required
      payload
      object 
      required
      packageCode
      string 
      required
      merchOrderNo
      string 
      required
      retailPrice
      number 
      required
      Example
      {
          "productType":"EPACKAGE",
          "supplierCode":"PREPAIDGIFTCARD",
          "payload":{
             "packageCode":"prepaidGiftCard.MobileLegends.2572",
             "merchOrderNo":"Tst2024101666668880004",
             "retailPrice": 5435.10
          }
      }

      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 ' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "productType":"EPACKAGE",
          "supplierCode":"PREPAIDGIFTCARD",
          "payload":{
             "packageCode":"prepaidGiftCard.MobileLegends.2572",
             "merchOrderNo":"Tst2024101666668880004",
             "retailPrice": 5435.10
          }
      }'

      Responses

      🟢200Success
      application/json
      Body
      code
      string 
      required
      success
      boolean 
      required
      message
      string 
      required
      data
      object 
      required
      orderNo
      string 
      required
      invoiceNumber
      string 
      required
      status
      string 
      required
      message
      string 
      required
      extra
      object 
      required
      Example
      {
          "code": "SUCCESS",
          "success": true,
          "message": "SUCCESS",
          "data": {
              "orderNo": "E20250624041509684742080",
              "invoiceNumber": "E20250624041509684742080",
              "status": "success",
              "message": "ok",
              "extra": {
                  "operator": "Infinity",
                  "packageCode": "prepaidGiftCard.MobileLegends.2572",
                  "sellingPrice": "5435.1",
                  "phone": null,
                  "result": "{\"invoiceNumber\":\"638863353101056112\",\"serialNumber\":\"638863353102312199\",\"pinNumber\":\"638863353102312200\",\"sellingPrice\":\"4514.40\",\"requestPrice\":5435.1}"
              }
          }
      }
      Modified at 2025-06-24 04:15:02
      Previous
      ATOM Buy epackage
      Next
      Skynet buy epackage
      Built with