4Poch API Dokiman
Notice pou Devlopè
1. Kreye yon kont sou: https://sandboxv1.4poch.com/
2. Kontakte sipΓ² teknik la sou: https://tawk.to/4POCH pou aktive kont biznis ou.
3. Apre kont biznis ou fin aktive, vizite: https://sandboxv1.4poch.com/business pou wè detay kont biznis ou.
1. POCH Payment
MethΓ²d:
URL:
POST URL:
https://4poch.com/api/poch_payment
Paramèt Rechèch:
apiKey (string): Kle API biznis la (egzanp:4poch_sXDImOZKLy4ve7DDfVuEhSxphe3VXeEV)amount (numeric): Kantite lajan ki dwe peye (minimΓ²m:0.01, egzanp:5)currency (string): Lajan pou peman an (egzanp:USD)method (string): MetΓ²d peman an (egzanp:4poch)
Repons:
status (boolean): Estati jesyon callback la.message (string): Mesaj sou jesyon callback la.callbackUrl (string): URL redireksyon pou pwochen aksyon.
Egzanp Rechèch:
curl --location 'https://4poch.com/api/poch_payment' \
--form 'apiKey="4poch_sXDImOZKLy4ve7DDfVuEhSxphe3VXeEV"' \
--form 'amount="5"' \
--form 'currency="USD"' \
--form 'method="4poch"'
2. User Verification API
MethΓ²d:
URL:
POST URL:
https://4poch.com/api/user-verification
Paramèt Rechèch:
recordId (string): Id dosye a (egzanp:26)email (string): Imèl itilizatè a (egzanp:abc@gmail.com)password (string): Modpas itilizatè a (egzanp:123409877)
Repons:
status (boolean): Estati jesyon callback la.message (string): Mesaj sou callback la ak verifikasyon OTP a.paymentUrl (string): URL pou redireksyon pou verifye OTP.
Egzanp Rechèch:
curl --location 'https://4poch.com/api/user-verification' \
--form 'recordId="26"' \
--form 'email="abc@gmail.com"' \
--form 'password="123409877"'
3. Otp Verification API
MethΓ²d:
URL:
POST URL:
https://4poch.com/api/verify-otp-with-amount
Paramèt Rechèch:
recordId (string): Id dosye a (egzanp:26)otp (string): OTP ou te resevwa a (egzanp:594240)
Repons:
status (boolean): Estati API a.message (string): Mesaj siksè.
Egzanp Rechèch:
curl --location 'https://4poch.com/api/verify-otp-with-amount' \
--form 'recordId="26"' \
--form 'otp="594240"'
4. Pay By Business To User
MethΓ²d:
URL:
POST URL:
https://4poch.com/api/pay-by-business
Paramèt Rechèch:
apiKey (string): Kle API biznis la (egzanp:4poch_c3UxiE1MQNRHg9zsq8zxpY0YRq1PaDDQ)receiver_email (string): Imèl moun k ap resevwa a (egzanp:jaybeeskizy@gmail.com)amount (numeric): Kantite lajan an (egzanp:2)
Repons:
status (boolean): Estati jesyon callback la.message (string): Mesaj sou jesyon callback la.callbackUrl (string): URL redireksyon pou pwochen aksyon.
Egzanp Rechèch:
curl --location 'https://4poch.com/api/pay-by-business' \
--form 'apiKey="4poch_c3UxiE1MQNRHg9zsq8zxpY0YRq1PaDDQ"' \
--form 'receiver_email="jaybeeskizy@gmail.com"' \
--form 'amount="2"'