activateCustomerByReference

Activate Customer

Remove a customer from blacklist status for the authenticated business using the customer reference.

Endpoint

POST https://atlas.tryduplo.com/api/v1/customer/activate

Headers

Authorization

BearerAuth

AuthorizationBearer

In: header

Request Body

{
  "reference": "string"
}

Response Body

200 application/json

{
  "requestId": "abcd1234-5678-90ef-ghij-1234567890kl",
  "requestTimestamp": "2025-07-16 09:15:00",
  "message": "Customer removed from blacklist.",
  "statusCode": 200,
  "data": {
    "id": "019a1639-ce25-70b7-ab20-16fcb2bac023",
    "firstName": "Laurianne",
    "lastName": "MacGyver",
    "email": "Bianka_Cole@yahoo.com",
    "phoneNumber": "+2347009069130",
    "reference": "dp_cust_iovciv7ovnw1qcx",
    "businessState": "TEST",
    "isBlacklisted": false,
    "hasWallet": true,
    "wallet": {
      "wallet_id": "469e02df-43ae-46e7-8ebc-0b0ab5e19303",
      "currency": "NGN",
      "wallet_type": "customer",
      "account_number": "6754358291",
      "account_name": "dp_pay/wilkinson, sawayn and sch/wilkinson, sawayn and schroeder ltd",
      "provider": "duplo"
    },
    "status": "ACTIVE",
    "source": "API",
    "createdAt": "2025-10-24 12:37:58"
  }
}

400 application/json

{
  "message": "Invalid request data.",
  "statusCode": 400
}

401 application/json

{
  "requestId": "f006ad7b-096c-4254-8c7e-2d23a55b0b0e",
  "requestTimestamp": "2025-09-04 11:49:40",
  "message": "Unauthenticated.",
  "statusCode": 401
}

404 application/json

{
  "requestId": "f006ad7b-096c-4254-8c7e-2d23a55b0b0e",
  "requestTimestamp": "2025-09-04 11:49:40",
  "message": "Customer not found.",
  "statusCode": 404
}

422 application/json

{
  "requestId": "f006ad7b-096c-4254-8c7e-2d23a55b0b0e",
  "requestTimestamp": "2025-09-04 11:49:40",
  "message": "The given data was invalid.",
  "errors": {
    "phone": ["The phone field must be a valid phone number."]
  },
  "statusCode": 422
}

500 application/json

{
  "requestId": "f006ad7b-096c-4254-8c7e-2d23a55b0b0e",
  "requestTimestamp": "2025-09-04 11:49:40",
  "message": "An error occurred while processing your request.",
  "statusCode": 500
}

Feedback

How is this guide?

Good / Bad

Last updated on 5/27/2026