Create a Payin Request
POSThttps://api.cleverhub.co/api/v2/payins
To be able to successfully create a payin request you would need the following APIs in consideration:
- Step 1: Call the Get payin methods to retrieve the list of supported methods.
- Step 2: Call the Get payin required fields to get specific required fields for each method.
- Step 3: Create the payment using the method and required fields from the previous step.
- Step 4: On sandbox environment, you can call the Simulate payin to simulate the payment.
Note:
If the payin_method_name
is either jp_bank_jpy
or au_payid_npp_aud
, a pay_code
will be sent to the webhook after a certain period with the following fields:
- For
jp_bank_jpy
:bank_name
: The recipient's bank name.transfer_id
: The transfer identifier on the provider side.branch_code
: The code of the recipient's bank branch.branch_name
: The name of the recipient's bank branch.account_number
: The recipient's account number.account_name
: The recipient's account name.expired_timestamp
: The payment expiration time.account_type
: The recipient's account type.transfer_name
: The name associated with the transfer.
- For
au_payid_npp_aud
:payment_url
: The payment url to complete the payment.
If you use one of the following payin methods, please check the list of supported providers before proceeding:
sa_eft_zar
: View supportedmy_bank_fpx_myr
: View supportedth_qrpay_thb
: View supported
❗ Important:
For Step 3, if you choose mobile_money
as the payin method, as the PayIn method, refer to the instructions in the Mobile Money tab.
- For example:
gh_mobile_money_ghs
Request
- application/json
Body
Transaction currency. It has to be a valid ISO 4217 currency codes. For example, 'PHP' for Philippine Peso, 'AUD' for Australian Dollar.
Goods and Services Tax.
Amount. Optional with usdc_bank
's payin method name.
Customer name.
If required_contact == true
, this email must be the same email that was used to create the contact.
Custom ID.
Description.
Payin method name to be used for this payment. You will receive this from the Get payin methods API.
Payin method parameters. You will receive this from the Get payin’s required fields API.
webhook_notification object
Expired time of transaction. This datetime would be in the UTC timezone. Must set the schedule bigger 15 minutes from the current time.
Responses
- 200
- 400
- 401
- 422
Created
- application/json
- Schema
- Example (auto)
- AUD PayID
- PHP Bank Maya
- PHP EWallet GCash
- PHP Bank Transfer
- IDR Bank QRIS
- IDR EWallet DANA
- VND Other Viet QR
- VND Viet QR
- VND Momo Ewallet
- MYR Bank Duitnow
- MYR Bank FPX
- JPY Bank Transfer
- USDC Bank
- Interac CAD
- NGN Bank Transfer
- ZAR Instant EFT
- GHS Mobile Money
- KES Mobile Money
- XAF Mobile Money
- XOF Mobile Money
- BRL PIX
- THB ThaiQR
- KRW Bank Transfer
Schema
pending
: Your customer hasn't made the requested payment yet.received
: Your customer has paid successfully. the funds have been settled into the merchant's available balance.waiting
: Your customer has paid successfully. The funds are waiting to be settled into the merchant's available balance.expired
: The payment request has expired.return_pending
: A full refund or partial refund request has been triggered on the payment.return_received
: The refund has been transferred to the original payee.return_expired
: The refund request has expired. Expiration time is set to be 10 days.return_rejected
: A refund failed due to problems with the destination account. HelloClever will not retry again.
Status of the transaction:
pay_code object
webhook_notification object
{
"uuid": "string",
"name": "string",
"description": "string",
"email": "string",
"external_id": "string",
"status": "string",
"stage": "string",
"pay_code": {
"pay_url": "string"
},
"currency": "string",
"gst": true,
"amount": 0,
"gst_amount": 0,
"total": 0,
"paid_amount": 0,
"payment_method": "string",
"is_refundable": true,
"expired_at": "2024-07-29T15:51:28.071Z",
"pay_by": "2024-07-29T15:51:28.071Z",
"webhook_notification": {
"endpoint_url": "string",
"authorization_header": "string"
}
}
AUD PayID
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {},
"currency": "AUD",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "au_payid_npp_aud",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
PHP Bank Maya
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"pay_url": "https://api.cleverhub.co/v1/shorted_url?hash=ApvZIZ9"
},
"currency": "PHP",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "ph_bank_maya_php",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
PHP EWallet GCash
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"pay_url": "https://api.cleverhub.co/v1/shorted_url?hash=ApvZIZ9"
},
"currency": "PHP",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "ph_ewallet_gcash_php",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
PHP Bank Transfer
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"pay_url": "https://api.cleverhub.co/v1/shorted_url?hash=ApvZIZ9"
},
"currency": "PHP",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "ph_bank_php",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
IDR Bank QRIS
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"qr_string": "00020101021226590016ID.MOTIONPAY.WWW011693600816000006080208000001460303UME51440014ID.CO.QRIS.WWW0215ID20222015630170303UME520411115303360540820000.005802ID5912Flash Mobile6013Jakarta Barat61051148062620618Additonalinfolabel0709Product160232024050109475222483922163043F7D"
},
"currency": "IDR",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "id_bank_qris_idr",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
IDR EWallet DANA
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"pay_url": "https://api.cleverhub.co/v1/shorted_url?hash=ApvZIZ9"
},
"currency": "IDR",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "id_ewallet_dana_idr",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
VND Other Viet QR
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"pay_url": "https://api.cleverhub.co/v1/shorted_url?hash=ApvZIZ9"
},
"currency": "VND",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "vn_other_vietqr_vnd",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
VND Viet QR
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"qr_string": "00020101021238580010A000000727012800069704220114VQRQY1795046470208QRIBFTTA53037045405100005802VN62250107NPS68690810Test Payin63043E02"
},
"currency": "VND",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "vn_vietqr_vnd",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
VND Momo Ewallet
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"pay_url": "https://api.cleverhub.co/v1/shorted_url?hash=ApvZIZ9"
},
"currency": "VND",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "vn_ewallet_momo_vnd",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
MYR Bank Duitnow
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"pay_url": "https://api.cleverhub.co/v1/shorted_url?hash=ApvZIZ9"
},
"currency": "VND",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "my_bank_duitnow_myr",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
MYR Bank FPX
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"payment_url": "https://api.cleverhub.co/v1/shorted_url?hash=ApvZIZ9"
},
"currency": "MYR",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "my_bank_fpx_myr",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
JPY Bank Transfer
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {},
"currency": "JPY",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "jp_bank_jpy",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
USDC Bank
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"payment_url": "https://api.cleverhub.co/transactions/re?i=ef798336-1550-472b-a271-8601b6728117",
"html_form": null,
"original_amount": "100.0",
"original_currency": "USD",
"network_surcharge": "4.30622009569378",
"exchange_rate": "0.999000999000999",
"customer_id": "customer_UHQKU3WB",
"transaction_fee": "0.0"
},
"currency": "USDC",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "usdc_bank",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
Interac CAD
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"payment_url": "https://api.cleverhub.co/transactions/re?i=ef798336-1550-472b-a271-8601b6728117"
},
"currency": "CAD",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "ca_interac_cad",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
NGN Bank Transfer
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"bank_name": "Test Bank",
"bank_code": "000",
"account_name": "GET",
"account_number": "5824128041"
},
"currency": "NGN",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "ng_bank_ngn",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
ZAR Instant EFT
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"redirect_url": "https://api.cleverhub.co/transactions/re?i=ef798336-1550-472b-a271-8601b6728117"
},
"currency": "ZAR",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "sa_eft_zar",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
GHS Mobile Money
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"stage": "authorize_otp",
"status": "pending",
"pay_code": {
"message": "You will receive an otp on mobile number. Kindly enter the otp to proceed",
"phone": "+233240000000"
},
"currency": "GHS",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "gh_mobile_money_ghs",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
KES Mobile Money
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"stage": "authorize_stk",
"status": "pending",
"pay_code": {
"message": "You will receive a pin prompt on your mobile number +254700000000 for KES 1000. Kindly enter your wallet PIN to authorize the payment",
"phone": "+254700000000"
},
"currency": "KES",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "ke_mobile_money_kes",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
XAF Mobile Money
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"stage": "authorize_otp",
"status": "pending",
"pay_code": {
"message": "You will receive an otp on mobile number. Kindly enter the otp to proceed",
"phone": "+237600000000"
},
"currency": "XAF",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "cm_mobile_money_xaf",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
XOF Mobile Money
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"stage": "authorize_otp",
"status": "pending",
"pay_code": {
"message": "You will receive an otp on mobile number. Kindly enter the otp to proceed",
"phone": "+22500000000000"
},
"currency": "XOF",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "ci_mobile_money_xof",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
BRL PIX
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"payment_url": "https://api.cleverhub.co/transactions/re?i=ef798336-1550-472b-a271-8601b6728117"
},
"currency": "BRL",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "br_pix_brl",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
THB ThaiQR
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"payment_url": "https://api.cleverhub.co/transactions/re?i=ef798336-1550-472b-a271-8601b6728117"
},
"currency": "THB",
"gst": true,
"amount": "1000.0",
"gst_amount": "100.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "th_qrpay_thb",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
}
}
KRW Bank Transfer
{
"uuid": "VMMAOTFQ",
"name": "Hello Clever",
"description": "description",
"email": "test@helloclever.co",
"external_id": "123456",
"status": "pending",
"pay_code": {
"virtual_bank_code": "001",
"virtual_account_number": "1234567890",
"virtual_bank_name": "Korea Bank",
"user_name": "Jeongyeon Kim"
},
"currency": "KRW",
"amount": "1000.0",
"total": "1100.0",
"paid_amount": "0",
"payment_method": "kr_bank_krw",
"is_refundable": "false",
"expired_at": "2021-12-23T06:00:00.000+0000",
"pay_by": "2021-12-23T06:00:00.000+0000",
"webhook_notification": {
"endpoint_url": "https://yourserver.co/notifications",
"authorization_header": "****"
},
"gst": true,
"gst_amount": "100.0",
"sender_details": null,
"stage": "normal_stage"
}
Bad Request
Unauthorized
- application/json
- Schema
- Example (auto)
- Example
Schema
errors object
{
"errors": {
"code": "string",
"message": "string"
}
}
{
"errors": {
"code": "REQUIRE_LOGIN",
"message": "Not Authorised"
}
}
Unprocessable Entity
- application/json
- Schema
- Example (auto)
- Example
Schema
errors object
{
"errors": {
"amount": "string"
}
}
{
"errors": {
"amount": "can't be blank"
}
}
Callbacks
- POST myEvent
POST{$request.body#/webhook_notification/endpoint_url}
If the merchant specifies values for the webhook_notification
object during the Create payment request invocation, then a notification will be sent to the merchant's system when its status has changed to received
or return_received
.
The event will use webhook_notification.endpoint_url
as endpoint and webhook_notification.authorization_header
as Authorization
header. We strongly recommend to use a different value for authorization_header
on each payment request to increase the level of security.
This call is made by Hello Clever on the best effort basis. Hello Clever will implement retry mechanisms to ensure transient network failures do not affect the ability to call this endpoint. Hello Clever may call this endpoint more than once with the same payload so the merchant must ensure that the endpoint is implemented with idempotent behaviour always returning a 200 OK
response even after subsequent calls.
If the target endpoint does not return HTTP 200
, Hello Clever will retry the webhook call 3 times with 15 minutes delay per call.
- application/json
Bodyrequired
Unique Id for the order created by Hello Clever system
VMMAOTFQ
Customer name.
Luyx.
Customer email.
Luyx@helloclever.co.
Custom ID.
123456
Status of Payin.
received
pay_code object
GST for merchant.
true,
Currency payin.
PHP
Amount.
1000.0
GST amount.
100.0
Total amount.
1100.0
Paid Amount.
1100.0
Description
The message that you want to send to the payee.
Available refund.
false,
Expired time of payment. This datetime would be in the UTC timezone. Must set the schedule bigger 15 minutes from the current time.
2021-12-23T06:00:00.000+0000
Pay by time of payment. This datetime would be in the UTC timezone. Must set the schedule bigger 15 minutes from the current time.
2021-12-23T06:00:00.000+0000
webhook_notification object
Callbacks Responses
- 200
The merchant's server should return this code
Authorization: app-id
name: app-idtype: apiKeydescription: The app-id is registered and secured inside Hello Clever system and only required when client has initiated or in the middle of the transaction.in: header
name: secret-keytype: apiKeydescription: The secret-key is our client's secret of the source. Required if a publishable key is used to retrieve the source.in: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.cleverhub.co/api/v2/payins");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("app-id", "<app-id>");
request.Headers.Add("secret-key", "<app-id>");
var content = new StringContent("{\n \"currency\": \"string\",\n \"gst\": true,\n \"amount\": 0,\n \"name\": \"string\",\n \"email\": \"string\",\n \"external_id\": \"string\",\n \"description\": \"string\",\n \"payin_method_name\": \"string\",\n \"payin_method_params\": {},\n \"webhook_notification\": {\n \"endpoint_url\": \"https://example.org\",\n \"authorization_header\": \"SECRET\"\n },\n \"expired_at\": \"string\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());