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_TransactionID returned in IPN payload. Ref to IPN

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.

<>0: Failed, refer Table of errors

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

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)

Response

Key
Type
Description

neo_ResponseCode

Number

0: Successful.

<>0: Failed, refer Table of errors

neo_ResponseData

Object

{

transId: <Refund ID>

}

neo_ResponseMsg

String

Error message

Last updated

Was this helpful?