Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Update Customer
Overview
This endpoint allows for updates in a customer record.
Endpoint Details
Definition | Description |
|---|---|
Endpoint | https://api.paas.sandbox.co.passportfintech.com/v1/customers/:customer_id |
Method | PATCH |
Headers | Content-Type: application/json, Authorization |
Authentication | Access Token (Bearer Token) |
Request Body
The following fields can be updated in a customer record:
Parameter | Type | Description |
|---|---|---|
id | String | The unique identifier of the customer object. |
business_name | String | The registered business name of customer. |
String | Customer's contact email address. | |
mobile_phone_number | String | Customer's mobile number. |
identification_number | String | Customer's Identification Number. |
merchant_category_code | String | The Merchant Category Code (MCC). |
The identification (id) is permanent and cannot be modified.
Example Request
Response
Example of Response
HTTP Status Code: 200 OK.
The response will contain its unique identifier.
Common Errors and Handling
HTTP Status Code | Meaning | Description |
|---|---|---|
400 | Bad Request | Validation failed (e.g., missing or invalid field). |
401 | Unauthorized | Missing or invalid bearer token. |
403 | Forbidden | Insufficient scope or access rights. |
404 | Not Found | Customer with given ID does not exist. |
Best Practices
Refresh OAuth tokens before they expire to avoid authentication failures.
Make sure the
entity_customer_idis correct.