Customers
View as Markdown

Create or update a customer by your own id

Needs the customers:write scope, or a full-access key. About scopes

PUT
/api/v1/customers/by-external-id/{externalId}

Authorization

Authorization
Required
Bearer <token>

An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).

In: header

Request Body

application/jsonOptional

email
Required
string

Format: "email"

namestring

Maximum length: 200

currencystring

Value in: "USD" | "AUD" | "CAD" | "GBP" | "EUR" | "INR" | "NPR"

tax_idstring

Maximum length: 100

billing_addressobject

country (ISO alpha-2) and state drive tax selection.

metadataobject

Path Parameters

externalId
Required
string

Minimum length: 1Maximum length: 200
curl -X PUT "https://globalymint.com/api/v1/customers/by-external-id/ws_9f2k" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "user@example.com",
    "name": "string",
    "currency": "USD",
    "tax_id": "string",
    "billing_address": {
      "property1": null,
      "property2": null
    },
    "metadata": {
      "property1": null,
      "property2": null
    }
  }'

Updated.

{
  "data": {
    "property1": null,
    "property2": null
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}