Update a customer
Changed onUpdates an existing customer's details. Changes propagate to the documents linked to this customer.
Request
- Base URLhttps://app.getswipe.in/api/partner
- URLhttps://app.getswipe.in/api/partner/v2/customer
- AuthHTTP bearer
Request body
Example request
{
"customer_id": "123",
"name": "TATA RATAN",
"email": "reddi@reddi.reddi",
"cc_emails": "a@example.com,b@example.com",
"discount": 10,
"gstin": "27AARCS7202C1ZD",
"company_name": "GSTN",
"opening_balance": "1245",
"credit_limit": 200,
"billing_address": [
{
"addr_id": 1,
"addr_id_v2": "addr1",
"pincode": "500075",
"state": "State Name",
"country": "India"
}
],
"shipping_address": [
{
"addr_id": 1,
"addr_id_v2": "addr1",
"pincode": "500075",
"state": "State Name",
"country": "India"
}
],
"opening_balance_type": 1,
"dial_code": "91",
"pan": "ABCD1234F",
"notes": "Testing api",
"custom_fields": [
{
"label": "Custom Field 1",
"value": "Value 1"
}
],
"visibility": 1
}Response
Success
Example response
{
"success": true,
"data": {
"message": "No data found!"
}
}Changes
- breaking
removed the enum value
KoreaNorthof the request property// - breaking
removed the enum value
KoreaNorthof the request property// - breaking
removed the enum value
KoreaSouthof the request property// - breaking
removed the enum value
KoreaSouthof the request property// - info
api operation id
v2_put_customerremoved and replaced withput_customer - info
added the new optional request property
- info
added the new
LADAKH(NEWLY ADDED)enum value to the request property// - info
added the new
LADAKH(NEWLY ADDED)enum value to the request property// - info
added the new
Republic of Korea (South Korea)enum value to the request property// - info
added the new
Republic of Korea (South Korea)enum value to the request property// - info
removed the pattern
^(|[0-9A-Z]{15})$from the request property - info
removed the pattern
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+(\.[a-zA-Z]{2,5})+$from the request property
- breaking