# \[Discord\] Completing Create Wallet

**URL:** https://community.rapyd.net/t/discord-completing-create-wallet/11631
**Category:** ⚙️ API
**Tags:** wallet-api, postman
**Created:** [June 28, 2022, 4:17am UTC](https://community.rapyd.net/t/discord-completing-create-wallet/11631 "2022-06-28T04:17:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Community\_Team](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@Community\_Team](https://community.rapyd.net/u/Community_Team)
#### Post date: [June 28, 2022, 4:17am UTC](https://community.rapyd.net/t/discord-completing-create-wallet/11631/1 "2022-06-28T04:17:03Z")

</div>

1. I saw that [creating a valid wallet](https://docs.rapyd.net/build-with-rapyd/reference/wallet-object#create-wallet) requires that all information below are provided. are we expected to accept all data below from the user when creating wallet.

```auto
// Request URL: POST https://sandboxapi.rapyd.net/v1/user

// Message body:
{
    "first_name": "John",
    "last_name": "Doe",
    "ewallet_reference_id": "2021-10-28d",
    "metadata": {
        "merchant_defined": true
    },
    "type": "person",
    "contact": {
        "phone_number": "+14155551234",
        "email": "johndoe@rapyd.net",
        "first_name": "John",
        "last_name": "Doe",
        "mothers_name": "Jane Smith",
        "contact_type": "personal",
        "address": {
            "name": "John Doe",
            "line_1": "123 Main Street",
            "line_2": "",
            "line_3": "",
            "city": "Anytown",
            "state": "NY",
            "country": "US",
            "zip": "12345",
            "phone_number": "+14155551611",
            "metadata": {},
            "canton": "",
            "district": ""
        },
        "identification_type": "DL",
        "identification_number": "1234567890",
        "date_of_birth": "11/22/2000",
        "country": "US",
        "nationality": "US",
        "metadata": {
            "merchant_defined": true
        }
    }
}

```

I keep getting this error when creating a wallet using the rapyd postman collection. I try filling in the `ENV` variables from my rapyd acct dashboard, but nothin works.

```auto
{
    "status": {
        "error_code": "UNAUTHENTICATED_API_CALL",
        "status": "ERROR",
        "message": "access_key header is not valid",
        "response_code": "UNAUTHENTICATED_API_CALL",
        "operation_id": "eb8f7783-9b53-4d63-8793-d453ba017669"
    }
}

```

---

<div class="post-metadata">

### Author: ![Community\_Team](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@Community\_Team](https://community.rapyd.net/u/Community_Team)
#### Post date: [June 28, 2022, 4:18am UTC](https://community.rapyd.net/t/discord-completing-create-wallet/11631/2 "2022-06-28T04:18:12Z")

</div>

The above error has been fixed. I switched to sandbox mode from my dashboard. But now, it telling me.

```auto
{
    "status": {
        "error_code": "UNAUTHENTICATED_API_CALL",
        "status": "ERROR",
        "message": "The API received a request, but the signature did not match. The request was rejected. Corrective action: (1) Remove all whitespace that is not inside a string. (2) Remove trailing zeroes and decimal points, or wrap numbers in a string.",
        "response_code": "UNAUTHENTICATED_API_CALL",
        "operation_id": "2340866e-11f5-4a99-a4a9-8dae729f40cf"
    }
}

```

---

<div class="post-metadata">

### Author: ![Community\_Team](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@Community\_Team](https://community.rapyd.net/u/Community_Team)
#### Post date: [June 28, 2022, 4:28am UTC](https://community.rapyd.net/t/discord-completing-create-wallet/11631/3 "2022-06-28T04:28:27Z")

</div>

1. If you are working in Postman I would follow this video: [Make Your First API Call](https://www.youtube.com/watch?v=JmH7PmFlsyI).

- All you need to do is download the [Postman Collection](https://docs.rapyd.net/build-with-rapyd/docs/make-your-first-api-call#download-postman-collection), input your [Sandbox keys](https://docs.rapyd.net/client-portal/docs/developers) (not production) you are set to make calls without the `UNAUTHENTICATED_API_CALL` error.

If you are working in the hackathon, in Sandbox you do not need to verify your wallet account.

The Wallet example should work, just update the reference ID as needed.

You can also try this:

```auto
{
    "first_name": "Samson",
    "last_name": "Smith",
    "email": "",
    "ewallet_reference_id": "Samson-Smith-06227022",
    "metadata": {
        "merchant_defined": true
    },
    "phone_number": "",
    "type": "person",
    "contact": {
        "phone_number": "+14155551311",
        "email": "samson@rapyd.net",
        "first_name": "Samson",
        "last_name": "Smith",
        "mothers_name": "Jane Smith",
        "contact_type": "personal",
        "address": {
            "name": "Samson Smith",
            "line_1": "123 Main Street",
            "line_2": "",
            "line_3": "",
            "city": "Anytown",
            "state": "NY",
            "country": "US",
            "zip": "12345",
            "phone_number": "+14155551111",
            "metadata": {},
            "canton": "",
            "district": ""
        },
        "identification_type": "PA",
        "identification_number": "1234567890",
        "date_of_birth": "11/22/2000",
        "country": "US",
        "nationality": "US",
        "metadata": {
            "merchant_defined": true
        }
    }
}

```

Here’s a resource if you are working within Postman:

- [Set Your API Keys in Postman (Rapyd Sandbox Environment)](https://community.rapyd.net/t/set-your-api-keys-in-postman-rapyd-sandbox-environment/1055)

Here are some resources if you are working outside of Postman:

- [📺 Rapyd Integrations: Request Signatures and How to Calculate](https://community.rapyd.net/t/rapyd-integrations-request-signatures-and-how-to-calculate/1246)
- [How to verify Webhook Signature with PHP script](https://community.rapyd.net/t/how-to-verify-webhook-signature-with-php-script/1382)
- [Verify Webhook Signature?](https://community.rapyd.net/t/verify-webhook-signature/1383)
- [Calculation of Signature](https://community.rapyd.net/t/calculation-of-signature/288)

---

<div class="post-metadata">

### Author: ![salvosav](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/salvosav/32/4396_2.png) [@salvosav](https://community.rapyd.net/u/salvosav)
#### Post date: [June 29, 2022, 1:46am UTC](https://community.rapyd.net/t/discord-completing-create-wallet/11631/4 "2022-06-29T01:46:32Z")

</div>

I don’t know which language you are using, but be sure to parse the body properly before generating the signaure.

I had the same problem with PHP and I fixed it adding the JSON\_UNESCAPED\_SLASHES parametes to json\_encode.

`json_encode($body, JSON_UNESCAPED_SLASHES);`
