Owostack
CoreApi reference

Add a customer alias

Makes an additional external ID resolve to the canonical customer that owns the billing history and credits. Aliases take precedence over legacy external-ID rows.

POST
/v1/customers/alias

Authorization

bearerAuth

Request Body

application/json

customer*string
Length1 <= length
alias*string
Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.owostack.com/v1/customers/alias" \  -H "Content-Type: application/json" \  -d '{    "customer": "string",    "alias": "string"  }'
{
  "success": true,
  "id": "string",
  "externalId": "string",
  "aliases": [
    "string"
  ],
  "email": "user@example.com",
  "name": "string",
  "metadata": {
    "property1": null,
    "property2": null
  },
  "billing": {
    "overageLimit": {
      "maxOverageAmount": 0,
      "onLimitReached": "block",
      "createdAt": 0,
      "updatedAt": 0
    },
    "featureConfigs": [
      {
        "feature": {
          "id": "string",
          "slug": "string",
          "name": "string"
        },
        "overage": "block",
        "maxOverageUnits": 0,
        "createdAt": 0,
        "updatedAt": 0
      }
    ]
  },
  "created": true,
  "matchedBy": "externalId",
  "matchedByEmail": true,
  "createdAt": 0,
  "updatedAt": 0,
  "property1": null,
  "property2": null
}
{
  "success": true,
  "error": "string",
  "code": "string",
  "message": "string",
  "property1": null,
  "property2": null
}
{
  "success": true,
  "error": "string",
  "code": "string",
  "message": "string",
  "property1": null,
  "property2": null
}
{
  "success": true,
  "error": "string",
  "code": "string",
  "message": "string",
  "property1": null,
  "property2": null
}
{
  "success": true,
  "error": "string",
  "code": "string",
  "message": "string",
  "property1": null,
  "property2": null
}
{
  "success": true,
  "error": "string",
  "code": "string",
  "message": "string",
  "property1": null,
  "property2": null
}

Ask about owostack

Ready

Start a new chat below.

Powered by Cull