Update Customer

Overview

This endpoint allows for updates in a customer record.

Endpoint Details

DefinitionDescription
Endpointhttps://api.paas.sandbox.co.passportfintech.com/v1/customers/:customer_id
MethodPATCH
HeadersContent-Type: application/json, Authorization
AuthenticationAccess Token (Bearer Token)

Request Body

The following fields can be updated in a customer record:

ParameterTypeDescription
idStringThe unique identifier of the customer object.
business_nameStringThe registered business name of customer.
emailStringCustomer's contact email address.
mobile_phone_numberStringCustomer's mobile number.
identification_numberStringCustomer's Identification Number.
merchant_category_codeStringThe Merchant Category Code (MCC).

The identification (id) is permanent and cannot be modified.

Example Request

JSON
Copy

Response

Example of Response

  • HTTP Status Code: 200 OK.
  • The response will contain its unique identifier.
JSON
Copy

Common Errors and Handling

HTTP Status CodeMeaningDescription
400Bad RequestValidation failed (e.g., missing or invalid field).
401UnauthorizedMissing or invalid bearer token.
403ForbiddenInsufficient scope or access rights.
404Not FoundCustomer with given ID does not exist.

Best Practices

  • Refresh OAuth tokens before they expire to avoid authentication failures.
  • Make sure the entity_customer_id is correct.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard