cURL
curl --request POST \ --url https://nini.monieswitch.com/checkout/initialize \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data '{ "amount": 1000, "email": "[email protected]", "redirectURL": "http://google.com", "bearer": "account", "subaccountId": "0bf36656-0d95-4390-aff8-487acc4d46b0", "currency": "NGN", "channel": [ "BANK" ] }'
{ "status": true, "message": "Operation is successful", "data": { "checkout": { "id": "cc2c7639-0779-40b8-8e69-1853d8ef4b92", "code": "wGOQclyVduY9TyDW", "link": "https://checkout.monieswitch.com/wGOQclyVduY9TyDW" } } }
Checkout Initialize with link
Set value to 'Bearer {{MERCHANT_SECRET_KEY}}'
The response is of type object.
object