Customer

v1 is deprecated — use the v2 endpoint instead. Returns one customer's details by your customer_id.

get/v1/customer/{customer_id}

Request

  • Base URL
    https://app.getswipe.in/api/partner
  • URL
    https://app.getswipe.in/api/partner/v1/customer/{customer_id}
  • Auth
    HTTP bearer

Path parameters

customer_idstring required

The customer ID to be fetched

Response

Success

successboolean

Success flag

Example response

{
  "success": true,
  "customer_details": {
    "customer_id": "123",
    "name": "TATA RATAN",
    "email": "reddi@reddi.reddi",
    "discount": 10,
    "gstin": "27AARCS7202C1ZD",
    "company_name": "GSTN",
    "opening_balance": "1245",
    "credit_limit": 200,
    "billing_address": [
      {
        "pincode": "500075",
        "state": "State Name",
        "country": "India"
      }
    ],
    "shipping_address": [
      {
        "pincode": "500075",
        "state": "State Name",
        "country": "India"
      }
    ],
    "opening_balance_type": 1,
    "dial_code": "91",
    "pan": "ABCD1234F",
    "notes": "Testing api",
    "cc_emails": "reddi@reddi.reddi,acb.a@bcd.con"
  }
}

Changes