Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejson
{
    "request_ref": "{{request-ref}}",
    "request_type": "open_account",
    "auth": {
        "type": null,
        "secure": null,
        "auth_provider": "DemoProvider",
        "route_mode": null
    },
    "transaction": {
        "mock_mode": "live",
        "transaction_ref": "{{transaction-ref}}",
        "transaction_desc": "Open Account",
        "transaction_ref_parent": null,
        "amount": 0,
        "customer": {
            "customer_ref": "{{$randomPhoneNumber}}",
            "firstname": "Victor",
            "surname": "Irechukwu",
            "email": "akin@onepipe.io",
            "mobile_no": "2349066778900"
        },
        "meta": {
            "dynamic_account":true
        },
        "details": {
            "name_on_account": "{{$randomFullName}}",
            "middlename": null,
            "dob": null,
            "gender": null,
            "title": null,
            "address_line_1": null,
            "address_line_2": null,
            "city": null,
            "state": null,
            "country": null
        }
    }
}
Info

transaction.meta.dynamic_account should be set to true so the account can be useful on the simulator

Simulator

Once you’ve gotten your account number on a successful open account, go to https://onepipesimulator.herokuapp.com/ type the account number and click on the forward arrow button to get the amount field, type the amount and continue. If account exists, you should get a callback on your webhook.

...