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

      ATOM Buy epackage

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

      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
      customerId
      string 
      required
      amount
      string 
      required
      devices
      string 
      required
      productId
      string 
      required
      serviceType
      string 
      required
      Example
      {
          "productType":"EPACKAGE",
          "supplierCode":"ATOM",
          "payload":{
             "packageCode":"ftth",
             "merchOrderNo":"Tst2024101666668880002",
             "customerId":"5002397", 
             "amount": "38000", 
             "devices": "3YGN236006192", 
             "productId": "555",
             "serviceType":"ftth"
          }
      }

      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":"ATOM",
          "payload":{
             "packageCode":"ftth",
             "merchOrderNo":"Tst2024101666668880002",
             "customerId":"5002397", 
             "amount": "38000", 
             "devices": "3YGN236006192", 
             "productId": "555",
             "serviceType":"ftth"
          }
      }'

      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": "E20250624041427723570151",
              "invoiceNumber": "E20250624041427723570151",
              "status": "success",
              "message": "ok",
              "extra": {
                  "operator": "ATOM",
                  "packageCode": "ftth",
                  "sellingPrice": "38000",
                  "phone": null,
                  "result": "{\"CustomerID\":\"5002397\",\"Amount\":\"38000\",\"devices\":\"3YGN236006192\",\"product_id\":\"555\"}"
              }
          }
      }
      Modified at 2025-06-24 04:14:09
      Previous
      Buy Data Package (Canal Renew)
      Next
      Prepaid Gift Card buy epackage
      Built with