PUT
/
v2
/
customer
curl --request PUT \
  --url https://app.getswipe.in/api/partner/v2/customer \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_id": "123",
  "name": "TATA RATAN",
  "phone": "1234567890",
  "email": "reddi@reddi.reddi",
  "discount": 10,
  "gstin": "27AARCS7202C1ZD",
  "company_name": "GSTN",
  "opening_balance": "1245",
  "credit_limit": 200,
  "billing_address": [
    {
      "addr_id": -1,
      "address_line1": "",
      "address_line2": "",
      "pincode": "500075",
      "city": "",
      "state": "State Name",
      "country": "India"
    }
  ],
  "shipping_address": [
    {
      "addr_id": -1,
      "address_line1": "",
      "address_line2": "",
      "pincode": "500075",
      "city": "",
      "state": "State Name",
      "country": "India"
    }
  ],
  "opening_balance_type": 1,
  "dial_code": "91",
  "profile_image": "",
  "pan": "ABCD1234F",
  "notes": "Testing api",
  "cc_emails": "reddi@reddi.reddi,acb.a@bcd.con",
  "status": "Active"
}'
{
  "success": true,
  "message": "",
  "error_code": "",
  "errors": {},
  "data": {
    "message": "No data found!"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Customer name

billing_address
object[]

List of billing addresses

cc_emails
string

CC email addresses

company_name
string

Company name

credit_limit
integer

Credit limit

customer_id
string

Your Customer ID

dial_code
string

Dial code

discount
integer

Discount

email
string

Email address

gstin
string

GSTIN

notes
string

Notes

opening_balance
string

Opening balance

opening_balance_type
integer

Credit[0] / Debit[1]

pan
string

PAN

phone
string

Phone number

profile_image
string

Profile image URL

shipping_address
object[]

List of shipping addresses

status
string

Status

Response

200 - application/json
data
object
error_code
string

Error Code

errors
object

Errors

message
string

Response message

success
boolean

Success flag