# S2S Virtual account (GHS)

| Authorization | Set to Bearer PUBLIC\_KEY       |
| ------------- | ------------------------------- |
| Content-type  | Set value to `application/json` |

{% hint style="info" %}
The public key can be gotten from the 'Settings' page on your Startbutton&#x20;

dashboard.
{% endhint %}

Post a request to the URL below, where the base URL is determined by the environment you are in.

<details>

<summary>BaseUrls</summary>

PROD : <https://api.startbutton.tech&#x20>;

DEV/ Staging: <https://api-dev.startbutton.tech>

</details>

{% tabs %}
{% tab title="Endpoint" %}
POST: `{{baseurl}}/transaction/initialize-s2s`
{% endtab %}
{% endtabs %}

Here is a sample request below:

<pre><code>{
    "amount": 50000,
    "currency": "GHS",
    "email": "test-pms@customer.com",
    <a data-footnote-ref href="#user-content-fn-1">"reference": "ref-102ssss"</a>
}
</code></pre>

{% hint style="info" %}
The amount should be in fractional units.
{% endhint %}

Here is a sample response:

```
{
    "success": true,
    "message": "VA initiated",
    "data": {
        "accountNumber": "900xxxxxxxxxx",
        "expiryTime": "2024-09-06T11:57:32.082Z",
        "reference": "4fxxxxxxxxx",
        "bankName": "StartButton Bank",
        "accountName": "StartButton Merchant",
        "shortCode": "shc-jqzv2ktl2f"
    }
}
```

[^1]: this is an optional field.
