Skip to main content
POST
/
egp
/
collect
/
apply
EGP Collection Application
curl --request POST \
  --url https://uat-interface.haipay.asia/egp/collect/apply \
  --header 'Content-Type: application/json' \
  --data '
{
  "appId": 123,
  "orderId": "<string>",
  "name": "<string>",
  "phone": "<string>",
  "email": "jsmith@example.com",
  "amount": "<string>",
  "payType": "<string>",
  "inBankCode": "<string>",
  "callBackUrl": "<string>",
  "callBackFailUrl": "<string>",
  "subject": "<string>",
  "partnerUserId": "<string>",
  "sign": "<string>",
  "notifyUrl": "<string>",
  "body": "<string>"
}
'
{
  "status": "1",
  "error": "00000000",
  "msg": "",
  "data": {
    "orderId": "<string>",
    "orderNo": "<string>",
    "payUrl": "<string>",
    "bankNo": "<string>",
    "referenceCode": "<string>",
    "sign": "<string>"
  }
}

Secret Key & Private Key (Generate Signature)

Body

application/json
appId
integer
required

Business ID (obtained from backend, needs to pass the corresponding Business ID based on the currency in the URL)

orderId
string
required

Merchant order number

Maximum string length: 48
name
string
required

Payer name

phone
string
required

Recipient mobile number (please use +2 prefix mobile number format)

email
string<email>
required

Recipient email address

amount
string
required

Transaction amount (Unit: Egyptian Pound)

payType
string
required
inBankCode
string
required
callBackUrl
string<uri>
required

Redirect URL after successful payment

callBackFailUrl
string<uri>
required

Redirect URL after failed payment

subject
string
required

Payment remark (transaction title, product name, payment reason)

partnerUserId
string
required

Unique user identifier (e.g., userId), used for risk control system, must be valid, otherwise it will affect the transaction. Format: digits, letters, or symbols -~!@#$%&*()_

Pattern: ^[A-Za-z0-9\-~!@#$%&*()_]+$
sign
string
required

Signature

notifyUrl
string<uri>

Callback URL

body
string

Remark details

Response

200 - application/json
status
string
default:1

1: Normal, 0: Exception

error
string
default:00000000

Error code

msg
string
default:""

Error description

data
object
Last modified on April 10, 2026