POST
/
api
/
v1
/
payment
/
sandbox
/
intent
curl --request POST \
  --url http://api.fenanpay.com/api/v1/payment/sandbox/intent \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "amount": 123,
  "items": [
    {
      "name": "<string>",
      "description": "<string>",
      "image": "<string>",
      "quantity": 2,
      "type": "SERVICE",
      "price": 123
    }
  ],
  "currency": "USD",
  "paymentIntentUniqueId": "<string>",
  "paymentLinkUniqueId": "<string>",
  "methods": [
    "TELE_BIRR"
  ],
  "splitPayment": [
    {
      "amount": 123,
      "bank": "<string>",
      "splitType": "PERCENTAGE",
      "creditAccount": "<string>"
    }
  ],
  "returnUrl": "<string>",
  "expireIn": 31,
  "callbackUrl": "<string>",
  "commissionPaidByCustomer": true,
  "customerInfo": {
    "email": "<string>",
    "phone": "<string>",
    "name": "<string>"
  }
}'
{
  "status": 123,
  "message": "<string>",
  "content": {}
}

Authorizations

apikey
string
header
required

Body

application/json
currency
enum<string>
required
Available options:
USD,
ETB
paymentIntentUniqueId
string
required
methods
enum<string>[]
required
Available options:
TELE_BIRR,
CBE,
ETS_SWITCH,
M_PESA
returnUrl
string
required
expireIn
integer
required
Required range: x > 30
commissionPaidByCustomer
boolean
required
amount
number
items
object[]
splitPayment
object[]
callbackUrl
string
customerInfo
object

Response

200
application/json
OK
status
integer
message
string
content
object