PAYIN
Create PAYIN

Create PAYIN

Endpoint

  • Method: POST
  • Path: /v1/payins
  • Purpose: Create a pay-in transaction
  • Optional Header: Idempotency-Key

Request Payload

FieldTypeRequiredDescription
amountstring (numeric)YesTransaction amount
paymentMethodCodestringYesExample: BKASH
customerobjectYesCustomer info object
customer.namestringYesCustomer name
customer.emailstringYesCustomer email
customer.phonestringYesCustomer phone
customer.deviceIdstringYesDevice id
goodsInfoobjectYesProduct info object
goodsInfo.namestringYesProduct name
goodsInfo.idstringYesProduct/order id
goodsInfo.pricestring (numeric)YesProduct price

Example Payload

{
  "amount": "500",
  "paymentMethodCode": "BKASH",
  "customer": {
    "name": "Test Customer",
    "email": "customer@example.com",
    "phone": "01712345678",
    "deviceId": "device-123"
  },
  "goodsInfo": {
    "name": "Test Product",
    "id": "prod-1",
    "price": "500"
  }
}

Response

Success (200)

FieldTypeDescription
transactionIdstringTransaction identifier
statusstringUsually pending initially
amountstringRequested amount
platformOrderIdstringPlatform order reference
paymentInfoobjectPayment details for customer
expiresAtstring (ISO datetime)Expiry timestamp
{
  "transactionId": "uuid-here",
  "status": "pending",
  "amount": "500",
  "platformOrderId": "platform-order-id",
  "paymentInfo": {},
  "expiresAt": "2025-03-09T00:00:00.000Z"
}