Overview
Customers
Funding Sources
Cards
Accounts
Authorizations
Transactions
Update Customer
Updates the specific customer by setting the values of the parameters provided. Only provided parameters will be changed.
curl --request PUT \
--url https://api.sandbox.sudo.cards/customers/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "individual",
"name": "<string>",
"phoneNumber": "<string>",
"emailAddress": "<string>",
"individual": {
"firstName": "<string>",
"lastName": "<string>",
"otherNames": "<string>",
"dob": "<string>",
"identity": {
"type": "BVN",
"number": "<string>"
},
"documents": {
"idFrontUrl": "<string>",
"idBackUrl": "<string>",
"incorporationCertificateUrl": "<string>",
"addressVerificationUrl": "<string>"
}
},
"company": {
"name": "<string>",
"identity": {
"type": "BVN",
"number": "<string>"
},
"officer": {
"firstName": "<string>",
"lastName": "<string>",
"otherNames": "<string>",
"dob": "<string>",
"identity": {
"type": "BVN",
"number": "<string>"
},
"documents": {
"idFrontUrl": "<string>",
"idBackUrl": "<string>",
"incorporationCertificateUrl": "<string>",
"addressVerificationUrl": "<string>"
}
},
"documents": {
"idFrontUrl": "<string>",
"idBackUrl": "<string>",
"incorporationCertificateUrl": "<string>",
"addressVerificationUrl": "<string>"
}
},
"status": "active",
"metadata": "<string>",
"billingAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>"
}
}'
"{}"
Authorizations
Path Parameters
The _id
of the customer you wish to update.
Body
This is the customer type.
individual
, company
The customer's full name.
This is the status of the customer.
active
, inactive
Customer's mobile phone number in international format.
Customer's email address.
Individual details. Required if customer type is individual
.
Customer's first name.
Customer's last name.
Customer's date of birth in the format YYYY/MM/DD
.
Customer's other names.
Customer's KYC documents.
ID Card front page url.
ID Card back page url.
Company incorporation certificate url.
Customer address verification document url.
Company details. Required if customer type is company
.
Company name.
Company officer information.
Customer's first name.
Customer's last name.
Customer's date of birth in the format YYYY/MM/DD
.
Customer's other names.
Customer's KYC documents.
ID Card front page url.
ID Card back page url.
Company incorporation certificate url.
Customer address verification document url.
Customer's KYC documents.
The customer metadata object in key-value
pair. This can be useful for storing additional information about the customer in a structured format
This is the billing address of the customer.
Response
The response is of type object
.
curl --request PUT \
--url https://api.sandbox.sudo.cards/customers/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "individual",
"name": "<string>",
"phoneNumber": "<string>",
"emailAddress": "<string>",
"individual": {
"firstName": "<string>",
"lastName": "<string>",
"otherNames": "<string>",
"dob": "<string>",
"identity": {
"type": "BVN",
"number": "<string>"
},
"documents": {
"idFrontUrl": "<string>",
"idBackUrl": "<string>",
"incorporationCertificateUrl": "<string>",
"addressVerificationUrl": "<string>"
}
},
"company": {
"name": "<string>",
"identity": {
"type": "BVN",
"number": "<string>"
},
"officer": {
"firstName": "<string>",
"lastName": "<string>",
"otherNames": "<string>",
"dob": "<string>",
"identity": {
"type": "BVN",
"number": "<string>"
},
"documents": {
"idFrontUrl": "<string>",
"idBackUrl": "<string>",
"incorporationCertificateUrl": "<string>",
"addressVerificationUrl": "<string>"
}
},
"documents": {
"idFrontUrl": "<string>",
"idBackUrl": "<string>",
"incorporationCertificateUrl": "<string>",
"addressVerificationUrl": "<string>"
}
},
"status": "active",
"metadata": "<string>",
"billingAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>"
}
}'
"{}"