Minted Connect
  1. Customers
Minted Connect
E-Commerce API
  • Partner
  • E-Commerce API
  • Catalog
    • Products
      GET
    • Get Product
      GET
    • Prices
      GET
    • Categories
      GET
  • Customers
    • Create Customer
      POST
    • Update Customer
      PATCH
    • Remove Customer Id
      DELETE
    • Get Customer
      GET
  • Customer Address
    • Customer Address - List
      GET
    • Customer Address - Delete
      DELETE
    • Customer Address - Create (Shipping)
      POST
    • Customer Address - Create (Billing)
      POST
    • Customer Address - Create Multiple
      POST
  • Checkout
    • Get Basket
      GET
    • Get Incomplete Baskets
      GET
    • Add to Basket (New basket)
      POST
    • Add to Basket (Existing Basket)
      POST
    • Set Existing Address
      PATCH
    • Set Custom Address
      PATCH
    • Update Item
      PATCH
    • Delete Item
      DELETE
    • Clear Basket (Delete Items)
      DELETE
    • Payment Get All Types
      GET
    • Complete Basket
      PUT
    • Get Orders
      GET
    • Get Order
      POST
  • Legal
    • Legal Types
    • Partner Legal PDF
  1. Customers

Update Customer

Testing
Testing Env
https://api.staging.mintedconnect.com
Testing Env
https://api.staging.mintedconnect.com
PATCH
https://api.staging.mintedconnect.com
/partner/customer/{{external_customer_id}}
Last modified:2024-08-07 15:13:51
Maintainer:Not configured
Method will be update existing customer

Request

Authorization
Provide your encrypted digest scheme data in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Digest username=guest, realm="test", nonce="2", uri="/uri", response="***"
Header Params
api-version
string 
optional
Example:
2
x-client-id
string 
required
Default value: web
Default:
web
Accept-Language
string 
optional
Default:
tr
Body Params application/json
firstname
string 
required
>= 3 characters<= 40 characters
middlename
string 
optional
>= 3 characters<= 40 characters
lastname
string 
required
>= 3 characters<= 40 characters
email
string <email>
optional
phone
string 
required
Example (+905001112233)
gender
enum<string> 
optional
Allowed values:
MF
identity_number
string 
required
>= 3 characters
birthdate
string <date>
optional
Example (1988-01-01)
Match pattern:
^[9999-99-99]$
Example
{
    "external_id": "{% faker datatype.uuid %}",
    "firstname": "John",
    "middlename": "",
    "lastname": "Due",
    "email": "[email protected]",
    "phone": "+905071112233",
    "gender": "M",
    "identity_number": "12345677938",
    "birthdate": "1970-01-31"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PATCH 'https://api.staging.mintedconnect.com/partner/customer/MTD0018232' \
--header 'api-version: 2' \
--header 'api-version;' \
--header 'x-client-id;' \
--header 'Accept-Language: tr' \
--header 'Content-Type: application/json' \
--data-raw '{
    "external_id": "{% faker datatype.uuid %}",
    "firstname": "John",
    "middlename": "",
    "lastname": "Due",
    "email": "[email protected]",
    "phone": "+905071112233",
    "gender": "M",
    "identity_number": "12345677938",
    "birthdate": "1970-01-31"
}'

Responses

🟢200OK
application/json
Body
data
object 
required
external_id
string 
required
>= 1 characters<= 110 characters
firstname
string 
required
middlename
string 
optional
lastname
string 
required
fullname
string 
optional
email
string 
optional
phone
string 
required
gender
enum<string> 
optional
Allowed values:
MF
identity_number
string 
required
birthdate
string 
year-month-day
optional
Example:
1970-01-01
success
boolean 
required
code
integer 
required
message
string 
required
Example
{
    "data": {
        "external_id": "MDT123233",
        "firstname": "John",
        "middlename": "",
        "lastname": "Due",
        "fullname": "John Due",
        "email": "[email protected]",
        "phone": "+905071112233",
        "gender": "M",
        "identity_number": "1234567888",
        "birthdate": "1970-01-31"
    },
    "success": true,
    "code": 0,
    "message": ""
}
🟠401Unauthorized
🟠422Parameter Error
🟠404Record Not Found
Previous
Create Customer
Next
Remove Customer Id
Built with