# Wallet ID provided is already in use by another customer when I have deleted all customers

**URL:** <https://community.rapyd.net/t/wallet-id-provided-is-already-in-use-by-another-customer-when-i-have-deleted-all-customers/22514>\
**Category:** ⚙️ API\
**Created:** [July 13, 2022, 5:31pm UTC](https://community.rapyd.net/t/wallet-id-provided-is-already-in-use-by-another-customer-when-i-have-deleted-all-customers/22514 "2022-07-13T17:31:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![castle](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@castle](https://community.rapyd.net/u/castle)\
**Post date:** [July 13, 2022, 5:31pm UTC](https://community.rapyd.net/t/wallet-id-provided-is-already-in-use-by-another-customer-when-i-have-deleted-all-customers/22514/1 "2022-07-13T17:31:40Z")

</div>

Hi,

Playing with postman running through some examples but I think that something has got mixed up.  
RUNNING {{base\_uri}}/customers?ending\_before=&limit=&starting\_after=

RESULTS: {“status”:{“error\_code”:“”,“status”:“SUCCESS”,“message”:“”,“response\_code”:“”,“operation\_id”:“d29233b8-3e5f-4fe6-9d1b-f3507bc61356”},“data”:}

When I try to create a customer and payment at the same time  
RUNNING: {{base\_uri}}/customers

RESULTS:

{  
“status”: {  
“error\_code”: “ERROR\_CREATE\_CUSTOMER”,  
“status”: “ERROR”,  
“message”: “The request tried to create or update a customer, but the wallet ID provided is already in use by another customer. The request was rejected. Corrective action: Create a new wallet.”,  
“response\_code”: “ERROR\_CREATE\_CUSTOMER”,  
“operation\_id”: “afe6e13e-1232-4418-87aa-ed240cf1140a”  
}  
}

is there a way to rest my sand box or does someone know what I might have done wrong here and how I can fix it?

---

<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:** [July 13, 2022, 8:11pm UTC](https://community.rapyd.net/t/wallet-id-provided-is-already-in-use-by-another-customer-when-i-have-deleted-all-customers/22514/2 "2022-07-13T20:11:36Z")

</div>

Thanks @castle, it seems like you already created a customer attached to the wallet you are requesting.

You can quickly create a new wallet with a new reference ID and then link that to the customer.

**Create Customer**  
Request

```auto
{
    "name": "Jane Doe",
    "business_vat_id": "123456666",
    "email": "janedoe6666@rapyd.net",
    "ewallet": "ewallet_d73a904be89168779ff281b7b117ebb7",
    "invoice_prefix": "JD-",
    "metadata": {
        "merchant_defined": true
    },
    "payment_method": {
        "type": "il_visa_card",
        "fields": {
            "number": "4111111111111111",
            "expiration_month": "10",
            "expiration_year": "23",
            "cvv": "123"
        }
    },
    "phone_number": "+14155556666"
}

```

Response

```auto
{
    "status": {
        "error_code": "",
        "status": "SUCCESS",
        "message": "",
        "response_code": "",
        "operation_id": "f0028b49-244b-4d3c-b5cc-7b6dd06f3795"
    },
    "data": {
        "id": "cus_8fe53e1651d82f861989c7fbe5343c7b",
        "delinquent": false,
        "discount": null,
        "name": "Jane Doe",
        "default_payment_method": "card_54916b70957d4836bb212823b2d28893",
        "description": "",
        "email": "janedoe6666@rapyd.net",
        "phone_number": "+14155556666",
        "invoice_prefix": "JD-",
        "addresses": [],
        "payment_methods": {
            "data": [
                {
                    "id": "card_54916b70957d4836bb212823b2d28893",
                    "type": "il_visa_card",
                    "category": "card",
                    "metadata": null,
                    "image": "https://iconslib.rapyd.netTEST",
                    "webhook_url": "",
                    "supporting_documentation": "",
                    "next_action": "3d_verification",
                    "name": null,
                    "last4": "1111",
                    "acs_check": "unchecked",
                    "cvv_check": "unchecked",
                    "bin_details": {
                        "type": null,
                        "brand": null,
                        "level": null,
                        "country": null,
                        "bin_number": "411111"
                    },
                    "expiration_year": "23",
                    "expiration_month": "10",
                    "fingerprint_token": "ocfp_2a694038316f52122bbbb3ae926cfda9",
                    "redirect_url": "https://sandboxcheckout.rapyd.net/3ds-payment?token=payment_9f29741b78d637072bf3e598ccd1b520"
                }
            ],
            "has_more": false,
            "total_count": 1,
            "url": "/v1/customers/cus_8fe53e1651d82f861989c7fbe5343c7b/payment_methods"
        },
        "subscriptions": null,
        "created_at": 1657743035,
        "metadata": {
            "merchant_defined": true
        },
        "business_vat_id": "123456666",
        "ewallet": "ewallet_d73a904be89168779ff281b7b117ebb7"
    }
}

```

---

<div class="post-metadata">

**Author:** ![castle](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@castle](https://community.rapyd.net/u/castle)\
**Post date:** [July 15, 2022, 1:27pm UTC](https://community.rapyd.net/t/wallet-id-provided-is-already-in-use-by-another-customer-when-i-have-deleted-all-customers/22514/3 "2022-07-15T13:27:10Z")

</div>

Yes I can think of a few reasons it would not delete the wallet when you delete a customer thanks
