Create Order (Bank Account)

Introduction

Create order for bank-account based transactions.

API Description

Request Method:POST

Request Path:open/api/transfer/payment

Parameters

Request Parameters

Parameter

Sign

Mandatory

Type

Length

Description

appId

Y

Y

string

64

AppId is unique for merchant

sign

N

Y

string

512

Sign

merchantOrderNo

Y

Y

string

64

Merchant order number (must be unique)

amount

Y

Y

string

20

Order amount (unit as fiat currency, 1=1.00) Mexican Peso: MXN (supports two decimal places)
Nigerian Naira: NGN (does not retain decimal places)
Zambia Kwacha:ZMW(supports two decimal places)
Bangladeshi Taka:BDT(supports two decimal places)
Brazil:BRL(supports two decimal places)
Vietnam:VND(does not retain decimal places)
Philippines:PHP(supports two decimal places)

currency

Y

Y

string

20

Fiat currency (unit of amount)

email

N

Y

string

64

User email

userId

Y

Y

string

64

Email/ Phone number

userIp

Y

Y

string

64

User IP

feeType

Y

Y

string

32

Outer buckle: OUTER_BUCKLE
User Buckle:USER_BUCKLE

callbackUrl

Y

Y

string

128

The address receiving order webhook

bankParam

N

N

object

1024

Bank account expend parameter

customParam

N

N

object

1024

Custom fields

remark

N

N

string

1024

Remark

PHP bankParam Expend Parameter

ParameterSignMandatoryTypeLengthDescription
productNumberYYString32Product no
bankCodeYYString32Bank code, refers to Bank Transfer Account Form api response
bankAccountNumberYYString32Bank Account Number/Card Number/E-Wallet Account Number

VND bankParam Expend Parameter

ParameterSignMandatoryTypeLengthDescription
typeYYString32ACCOUNT_NUMBER/CARD_NUMBER
bankCodeYYString32Bank code, refers to Bank Transfer Account Form api response
bankAccountNumberYYString32Bank Account Number/Card Number

NGN / MXN bankParam Expend Parameter

ParameterSignMandatoryTypeLengthDescription
bankCodeYYString32Bank code, refers to Bank Transfer Account Form api response
bankNameYYString32Bank name, refers to Bank Transfer Account Form api response
bankAccountNumberYYString32Bank Account Number (When user Choose NGN Opay, enter phone number, example:7012345678)

ZWM bankParam Expend Parameter

ParameterSignMandatoryTypeLengthDescription
mobileYYString32Mobile phone number(11-digit number)
payMethodYYString32BD_BKASH/BD_NAGAD

BRL bankParam Expend Parameter

ParameterSignMandatoryTypeLengthDescription
pixKeyYYString64CPF/CNPJ/Phone/Email/EVP

Request Parameter Example

{
  "appId": "TEST000001",
  "sign": "TEST000001",
  "merchantOrderNo": "11187",
  "amount": "10000",
  "currency": "NGN", //MSN,NGN,ZMW,BDT
  "feeType": "INNER_BUCKLE",
  "userId": "[email protected]",
  "userIp": "14.232.142.199",
  "email": "[email protected]",
  "callbackUrl": "http://127.0.0.1:8022/open/api/callback",
  "bankParam": {
    "bankCode": "123",
    "bankName": "Mock Bank",
    "bankAccountNumber": "032434**"
  }
}

Response Parameters

ParameterTypeDescription
successbooleanSuccess
errorbooleanError
codelongResponse code
msgstringResponse message
traceIdstringTrace id
modelobjectResponse content

Response Parameter Example

{
  "code": "0",
  "msg": "success",
  "model": {
    "amount": "6.45",
    "orderNo": "400017506670013450114"
  },
  "traceId": "68590ef3ef9bd17e8671b85313daf949",
  "success": true,
  "error": false
}