Create
Create a customer
post/v1/customers
Create a new customer
Body Parameters
namestring
This will be truncated to 160 characters if the provided name is longer.
billing_configobject
optional
custom_fieldsmap
optional
customer_billing_provider_configurationsarray of object
optional
external_idstring
optional
(deprecated, use ingest_aliases instead) an alias that can be used to refer to this customer in usage events
minLength1
maxLength128
ingest_aliasesarray of string
optional
Aliases that can be used to refer to this customer in usage events
Returns
dataidstringexternal_idstringingest_aliasesarray of stringnamestringcustom_fieldsmapCustomer
curl https://api.metronome.com/v1/customers \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $METRONOME_BEARER_TOKEN" \
-d '{
"name": "Example, Inc."
}'
200 Example
{
"data": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"external_id": "external_id",
"ingest_aliases": [
"string"
],
"name": "name",
"custom_fields": {
"foo": "string"
}
}
}