{
  "opencollection": "1.0.0",
  "info": {
    "name": "Deliverect Channel Accounts Customers API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://api.deliverect.com/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Customers",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Deliverect Create Customer",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.deliverect.com/crm/:accountId/customers",
            "params": [
              {
                "name": "accountId",
                "value": "5b71c6489f00290d4",
                "type": "path",
                "description": "The accountId value."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Endpoint used to register a new customer"
        },
        {
          "info": {
            "name": "Deliverect Lookup Customer by Email",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.deliverect.com/crm/:accountId/customers/lookup",
            "params": [
              {
                "name": "accountId",
                "value": "5b71c6489f00290d4",
                "type": "path",
                "description": "The accountId value."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Deliverect Lookup Customer by Email"
        },
        {
          "info": {
            "name": "Deliverect Customer Profile",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.deliverect.com/crm/:accountId/customers/:crmProfileId",
            "params": [
              {
                "name": "crmProfileId",
                "value": "609a1b2c3d4e5f6a7b8c9d0e",
                "type": "path",
                "description": "The crmProfileId value."
              },
              {
                "name": "accountId",
                "value": "5b71c6489f00290d4",
                "type": "path",
                "description": "The accountId value."
              }
            ]
          },
          "docs": "Deliverect Customer Profile"
        },
        {
          "info": {
            "name": "Deliverect Update Customer Profile",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.deliverect.com/crm/:accountId/customers/:crmProfileId",
            "params": [
              {
                "name": "crmProfileId",
                "value": "609a1b2c3d4e5f6a7b8c9d0e",
                "type": "path",
                "description": "The crmProfileId value."
              },
              {
                "name": "accountId",
                "value": "5b71c6489f00290d4",
                "type": "path",
                "description": "The accountId value."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Deliverect Update Customer Profile"
        },
        {
          "info": {
            "name": "Deliverect Update Customer Delivery Addresses",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.deliverect.com/crm/:accountId/customers/:crmProfileId/deliveryAddresses",
            "params": [
              {
                "name": "crmProfileId",
                "value": "609a1b2c3d4e5f6a7b8c9d0e",
                "type": "path",
                "description": "The crmProfileId value."
              },
              {
                "name": "accountId",
                "value": "5b71c6489f00290d4",
                "type": "path",
                "description": "The accountId value."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update the addresses stored on a customer's profile"
        },
        {
          "info": {
            "name": "Deliverect Update Customer Vehicles",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.deliverect.com/crm/:accountId/customers/:crmProfileId/vehicles",
            "params": [
              {
                "name": "crmProfileId",
                "value": "609a1b2c3d4e5f6a7b8c9d0e",
                "type": "path",
                "description": "The crmProfileId value."
              },
              {
                "name": "accountId",
                "value": "5b71c6489f00290d4",
                "type": "path",
                "description": "The accountId value."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update the addresses stored on a customer's profile"
        },
        {
          "info": {
            "name": "Deliverect Update Customer Favorites",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.deliverect.com/crm/:accountId/customers/:crmProfileId/favorites",
            "params": [
              {
                "name": "crmProfileId",
                "value": "609a1b2c3d4e5f6a7b8c9d0e",
                "type": "path",
                "description": "The crmProfileId value."
              },
              {
                "name": "accountId",
                "value": "5b71c6489f00290d4",
                "type": "path",
                "description": "The accountId value."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a customer's favorites"
        },
        {
          "info": {
            "name": "Deliverect Get Loyalty Customer",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.deliverect.com/loyalty/:channelLinkId/customer",
            "params": [
              {
                "name": "channelLinkId",
                "value": "5e8abc11dec0001a009b",
                "type": "path",
                "description": "The channelLinkId value."
              },
              {
                "name": "email",
                "value": "customer@example.com",
                "type": "query",
                "description": "email of the end customer"
              },
              {
                "name": "phoneNumber",
                "value": "+15555550123",
                "type": "query",
                "description": "phone number of the end customer in E164 format"
              },
              {
                "name": "providerId",
                "value": "609a1b2c3d4e5f6a7b8c9d0e",
                "type": "query",
                "description": "The customer's unique identifier within the loyalty provider's system, QR codes can also be passed via this parameter where supported on the Loyalty platform"
              }
            ]
          },
          "docs": "Deliverect Get Loyalty Customer"
        },
        {
          "info": {
            "name": "Deliverect Create Loyalty Customer",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.deliverect.com/loyalty/:channelLinkId/customer",
            "params": [
              {
                "name": "channelLinkId",
                "value": "5e8abc11dec0001a009b",
                "type": "path",
                "description": "The channelLinkId value."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Deliverect Create Loyalty Customer"
        }
      ]
    }
  ],
  "bundled": true
}