API Documentation
NeoX documents
NeoX documents
  • Introduction
  • NeoX App
    • E-Wallet
    • eKYC
    • Functionality
  • Payment Gateway
    • Payment Methods
    • Integrations
      • Hosted Checkout
        • Plugin/Extenstion
        • iOS SDK
        • Android SDK
        • React Native SDK
        • Web SDK
        • APIs
      • Direct API
        • Tokenization
      • Refund
        • APIs
        • IPN
    • Transaction Management
      • Query DR
      • Cancel
      • IPN
      • Error Codes
      • Refund on portal
    • Reconciliation
    • Settlement
  • Disbursement
    • Integration
      • Introduction
      • How To Register
      • Security Method
      • Generate token API
      • Get merchant profile API
      • Request disbursement API
      • Get disbursement transaction API
      • Get exchange rate API
      • Inquiry bank account API
      • Currency conversion API
      • Event Notification
      • Response Data Structure
      • Error codes
    • Disbursement Account
    • Disbursement request
    • Transaction Management
      • Query Request/Transaction
      • Webhook
      • Error Codes
    • Reconciliation
  • Collections
    • Integration
      • Introduction
      • How To Register
      • Security Method
      • API authenPlatform
      • API upload file
      • APIs for virtual accounts management
        • API create list of virtual accounts
        • API update KYC virtual account information
        • API update Virtual Account transaction data from merchant
        • API set active/inactive Virtual Account
        • API get list virtual accounts
        • API get detail virtual account
      • APIs for transactions management
        • API update transaction documents
        • API get list transactions
        • API get detail transaction
      • APIs for refund requests management
        • API create refund request
        • API get list refund requests
        • API get detail refund request
      • APIs for withdraw requests management
        • API get list withdraw banks
        • API create withdraw request
        • API get list withdraw requests
        • API get detail withdraw request
      • Event Notification
      • SFTP upload document file of collection transaction
      • Error Codes
    • Virtual Account Management
      • Virtual Account
      • Virtual Account Status
      • Webhook
    • Transaction Management
      • Webhook
    • Transaction Status Management
      • Webhook
    • Refund Request Management
      • Webhook
    • Withdraw Request Management
      • Webhook
    • Reconciliation
    • Settlement
  • Merchant Portal
    • Onboarding
    • Payment Gateway
      • Reconciliation
      • Withdraw
    • Disbursement
      • Reports
    • Collections
      • Reports
      • Withdraw
Powered by GitBook
On this page
  • 1. Get payment list API
  • Request
  • Response
  • 2. Refund request API
  • Request
  • Response

Was this helpful?

  1. Payment Gateway
  2. Integrations
  3. Refund

APIs

sFirst, obtain the payment information, then create a refund request.

1. Get payment list API

Path: /api/v1/paygate/neopay

Method: POST

Request

Parameter
Data type
Required
Description

neo_Command

String

Y

"QUERY_PT"

neo_MerchantCode

String

Y

The merchant code is provided by NeoX

neo_TransactionID

String

Y

neo_Version

String

Y

Version of API, "1" as default

neo_SecureHash

String

Y

Use SHA256 to hash the above parameters (sort the key by Alphabet order) + Secret Key (is provided by NeoX after actual integrating)

With the secret key: 311235E7043244EC8306F96720748C56

{
  neo_Command: "QUERY_PT"
  neo_MerchantCode: "UFLIYL"
  neo_TransactionID: "240830080146NDTISR"
  neo_Version: "1"
  neo_SecureHash: "df594d1e467bd327a30fa45ce259987718a68bd54cc67afe74d1e15e255182a4"
}

Response

Key
Type
Description

neo_ResponseCode

Number

0: Successful.

neo_ResponseData

Object

Array of payments: [{

id: NeoX's PaymentID

status: SUCCESS | FAILED | PROCESSING

amount: Refund amount, paymentMethod: QR | ATM | CC

refundedAmount: Total refunded amount

}]

neo_ResponseMsg

String

Error message

{
  "neo_ResponseCode": 0,
  "neo_ResponseData": [
      {
          "id": "1439209",
          "status": "PROCESSING",
          "amount": 20000000,
          "refundedAmount": 0,
          "paymentMethod": "CC"
      },
      {
          "id": "1439211",
          "status": "SUCCESS",
          "amount": 20000000,
          "refundedAmount": 100000,
          "paymentMethod": "QR"
      }
  ],
  "neo_ResponseMsg": "Successful"
}

2. Refund request API

Path: /api/v1/paygate/neopay

Method: POST

Request

Parameter
Data type
Required
Description

neo_Command

String

Y

“REFUND”

neo_MerchantCode

String

Y

The merchant code is provided by NeoX

neo_RequestID

String

Y

Unique - The merchant transaction ID is provided by merchant

neo_PaymentID

String

Y

Payment ID, Ref

neo_Amount

Number

Y

Refund amount

neo_Receiver

String

N

Require beneficiary information if the user pays using the QR method.

Encode base64 follow Jsonformat: {"accountName":"value", "accountNumber": "1234567", "swiftCode": "ASCBVNVX"} => neo_Receiver: eyJhY2NvdW50TmFtZSI6InZhbHVlIiwiYWNjb3VudE51bWJlciI6ICIxMjM0NTY3Iiwic3dpZnRDb2RlIjoiQVNDQlZOVlgifQ==

neo_Version

String

Y

Version of API, "1" as default

neo_SecureHash

String

Y

Use SHA256 to hash the above parameters (sort the key by Alphabet order) + Secret Key (is provided by NeoX after actual integrating)

{
  neo_MerchantCode: "UFLIYL"
  neo_Command: "REFUND"
  neo_RequestID: "a68de39f-ea76-43fb-848f-b605b4aaf44e"
  neo_PaymentID: "1439211"
  neo_Amount: 10000
  neo_Version: "1"
  neo_Receiver: "eyJhY2NvdW50TmFtZSI6Ik5HVVlFTiBWQU4gQSIsImFjY291bnROdW1iZXIiOiIxMjM0NTY3ODkiLCJzd2lmdENvZGUiOiJBU0NCVk5WWCJ9"
  neo_SecureHash: "88cafbc3bc1312a4dbae11dedf17819ea6462b85a218298417a917f1797597fa"
}

Response

Key
Type
Description

neo_ResponseCode

Number

0: Successful.

neo_ResponseData

Object

{

transId: <Refund ID>

}

neo_ResponseMsg

String

Error message

{
    "neo_ResponseCode": 0,
    "neo_ResponseData": {
        "transId": "5SYNM1OELUND"
    },
    "neo_ResponseMsg": "Successful"
}
PreviousRefundNextIPN

Last updated 7 months ago

Was this helpful?

neo_TransactionID returned in IPN payload. Ref to

<>0: Failed, refer

<>0: Failed, refer

IPN
Table of errors
Table of errors