Skip to main content

3.1 Create PayIn

POST /api/v1/payins

Request

ParameterTypeRequiredDescription
X-API-KeystringYesAPI key.
X-TimestampstringYesRequest time (ISO-8601 or UNIX sec).
X-SignaturestringYesHMAC-SHA256(timestamp + body, secret).
Content-TypestringYesapplication/json.

Example request

{
"external_id": "PIN-BDT-001",
"amount": "5000.00",
"currency": "BDT",
"shop_code": "your_bdt_shop",
"merchant_user_id": "merchant-user-001",
"merchant_user_ip": "203.0.113.10",
"callback_url": "https://merchant.example.com/webhooks/payin"
}

Response

Response fields

Fields with null values and empty paymentData are omitted from the response.

ParameterTypeDescription
idnumberPayfield operation ID.
statusstringCurrent payin status.
external_idstringUnique payin identifier from the request.
amountstringPayin amount.
currencystringPayin currency.
shop_codestringShop code used for routing.
merchant_user_idstringMerchant user identifier from the request.
merchant_user_ipstringUser IP from the request.
callback_urlstringCallback URL from the request, when provided.
paymentData.payment_linkstringPayment link for completing the payin.
transaction_typestringAlways payin.
created_atstringCreation timestamp.
updated_atstringLast update timestamp.
finalization_datestringReturned when the payin reaches a final status.

Example response

{
"id": 12345,
"status": "pending",
"external_id": "PIN-BDT-001",
"amount": "5000.00",
"currency": "BDT",
"shop_code": "your_bdt_shop",
"merchant_user_id": "merchant-user-001",
"merchant_user_ip": "203.0.113.10",
"callback_url": "https://merchant.example.com/webhooks/payin",
"paymentData": {
"payment_link": "https://pay.example.com/bdt/PIN-BDT-001"
},
"transaction_type": "payin",
"created_at": "2025-12-05T10:00:00.000000Z",
"updated_at": "2025-12-05T10:00:00.000000Z"
}