Hi Everyone!
I’ve been trying to add some contacts to a wallet I created recently. Currently, I’m using sandbox environment.
Following the documentation here, I am repeatedly getting this error response:
{
    "status": {
        "error_code": "MISSING_EWALLET_CONTACT_TYPE",
        "status": "ERROR",
        "message": "The request tried to create or update a wallet contact, but the 'contact_type' was missing. The request was rejected. Corrective action: Set 'contact_type' to one of the following values: 'personal', 'business'",
        "response_code": "MISSING_EWALLET_CONTACT_TYPE",
        "operation_id": "fdc9b277-ddde-4fad-b3eb-df8113b59f1c"
    }
}
For the API call, this is my url:
/v1/ewallets/${ewalletId}/contacts
ewalletId is a variable that was created by calling create wallet API.
And, this is the body:
{
      "first_name": "Jane",
      "last_name": "Doe",
      "middle_name": "",
      "second_last_name": "",
      "mothers_name": "Jane Smith",
      "gender": "female",
      "marital_status": "single",
      "house_type": "lease",
      "contact_type": "personal",
      "phone_number": "+14155551233",
      "email": "jane200@rapyd.net",
      "identification_type": "PA",
      "identification_number": "1233242424",
      "date_of_birth": "11/22/2000",
      "country": "US",
      "nationality": "FR",
      "address": {
          "name": "Jane Doe",
          "line_1": "123 Lake Forest Drive",
          "line_2": "",
          "line_3": "",
          "city": "Anytown",
          "state": "NY",
          "zip": "12345",
          "phone_number": "+14155551234",
          "metadata": {
              "merchant_defined": true
          },
          "canton": "",
          "district": ""
      },
      "metadata": {
          "merchant_defined": true
      }
  }
I’ve checked the signature and other header fields. I was able to create a wallet, do a test API call on the fetching list of countries as given in the documentation.
Please let me know how to fix this. Thanks!!