Customer V2

Get customer details

Changed on

Returns one customer's details by your customer_id.

get/v2/customer/{customer_id}

Request

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

Path parameters

customer_idstring required

The customer ID to be fetched

Response

Success

successboolean

Success flag

messagestring

Response message

error_codestring

Error Code

errorsobject

Errors

Example response

{
  "success": true,
  "data": [
    {
      "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
    }
  ]
}

Changes

    • breaking

      the response's property type changed from object to array for status

    • warning

      removed the optional property / from the response with the status

    • info

      api operation id v2_get_customer removed and replaced with get_customer