Customers

postCustomers

POST
/customers

Create a Customer record to store data about a particular customer of a Merchant, and to associate payment data to the Customer and for other API features.

Authorization

APIKEY<token>

In: header

Header Parameters

token?string

A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.

request-token?string

A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.

Request Body

application/json

Create Customer Request

Create Customer Request

login*string

The ID of the Login that owns this resource.

merchant?|

The ID of the Merchant associated with this Customer.

entity?|

The ID of the Entity that owns this resource.

first?string

The first name associated with this Customer.

middle?string

The middle name associated with this Customer.

last?string

The last name associated with this Customer.

company?string

The name of the company associated with this Customer.

email?string

The email address of this Customer.

shippingFirst?string

The first name associated with this Customer's shipping information.

shippingMiddle?string

The middle name associated with this Customer's shipping information.

shippingLast?string

The last name associated with this Customer's shipping information.

shippingCompany?string

The name of the company associated with this Customer's shipping information.

shippingAddress1?string

The first line of the address associated with this Customer's shipping information. This field is stored as a text string and must be between 1 and 500 characters long.

shippingAddress2?string

The second line of the address associated with this Customer's shipping information. This field is stored as a text string and must be between 1 and 500 characters long.

shippingCity?string

The name of the city associated with this Customer's shipping information. This field is stored as a text string and must be between 1 and 500 characters long.

shippingState?string

The U.S. state or Canadian province relevant to the address provided here. If the location is within the U.S. and Canada, specify the 2-character postal abbreviation for the state. If the location is outside of the U.S. and Canada, provide the full state name. This field is stored as a text string and must be between 2 and 100 characters long.

  • AK - Alaska (US)

  • AR - Arkansas (US)

  • AL - Alabama (US)

  • AZ - Arizona (US)

  • CA - California (US)

  • CO - Colorado (US)

  • CT - Connecticut (US)

  • DE - Delaware (US)

  • FL - Florida (US)

  • GA - Georgia (US)

  • HI - Hawaii (US)

  • IA - Iowa (US)

  • ID - Idaho (US)

  • IL - Illinois (US)

  • IN - Indiana (US)

  • KY - Kentucky (US)

  • KS - Kansas (US)

  • LA - Louisiana (US)

  • MA - Massachusetts (US)

  • MD - Maryland (US)

  • ME - Maine (US)

  • MI - Michigan (US)

  • MN - Minnesota (US)

  • MO - Missouri (US)

  • MS - Mississippi (US)

  • MT - Montana (US)

  • NC - North Carolina (US)

  • ND - North Dakota (US)

  • NE - Nebraska (US)

  • NH - New Hampshire (US)

  • NJ - New Jersey (US)

  • NM - New Mexico (US)

  • NV - Nevada (US)

  • NY - New York (US)

  • OH - Ohio (US)

  • OK- Oklahoma (US)

  • OR - Oregon (US)

  • PA - Pennsylvania (US)

  • RI - Rhode Island (US)

  • SC- South Carolina (US)

  • SD - South Dakota (US)

  • TN - Tennessee (US)

  • TX - Texas (US)

  • UT - Utah (US)

  • VA - Virginia (US)

  • VT - Vermont (US)

  • WA - Washington (US)

  • WI - Wisconsin (US)

  • WV - West Virginia (US)

  • WY - Wyoming (US)

  • AB - Alberta (CAN)

  • BC - British Columbia (CAN)

  • MB - Manitoba (CAN)

  • ON - Ontario (CAN)

  • NS - Nova Scotia (CAN)

  • NB - New Brunswick (CAN)

  • NL - Newfoundland and Labrador (CAN)

  • NT - Northwest Territories (CAN)

  • NU - Nunavut (CAN)

  • PE - Prince Edward Island (CAN)

  • QC - Quebec (CAN)

  • SK - Saskatchewan (CAN)

  • YT - Yukon (CAN)

shippingZip?string

The ZIP code associated with this Customer's shipping information. This field is stored as a text string and must be between 1 and 20 characters long.

shippingCountry?country

The country associated with this Customer's shipping information. Valid values for this field is the 3-letter ISO code for the country.

Value in

  • "ABW"
  • "AFG"
  • "AGO"
  • "AIA"
  • "ALA"
  • "ALB"
  • "AND"
  • "ARE"
  • "ARG"
  • "ARM"
  • "ASM"
  • "ATA"
  • "ATF"
  • "ATG"
  • "AUS"
  • "AUT"
  • "AZE"
  • "BDI"
  • "BEL"
  • "BEN"
  • "BES"
  • "BFA"
  • "BGD"
  • "BGR"
  • "BHR"
  • "BHS"
  • "BIH"
  • "BLM"
  • "BLR"
  • "BLZ"
  • "BMU"
  • "BOL"
  • "BRA"
  • "BRB"
  • "BRN"
  • "BTN"
  • "BVT"
  • "BWA"
  • "CAF"
  • "CAN"
  • "CCK"
  • "CHE"
  • "CHL"
  • "CHN"
  • "CIV"
  • "CMR"
  • "COD"
  • "COG"
  • "COK"
  • "COL"
  • "COM"
  • "CPV"
  • "CRI"
  • "CUB"
  • "CUW"
  • "CXR"
  • "CYM"
  • "CYP"
  • "CZE"
  • "DEU"
  • "DJI"
  • "DMA"
  • "DNK"
  • "DOM"
  • "DZA"
  • "ECU"
  • "EGY"
  • "ERI"
  • "ESH"
  • "ESP"
  • "EST"
  • "ETH"
  • "FIN"
  • "FJI"
  • "FLK"
  • "FRA"
  • "FRO"
  • "FSM"
  • "GAB"
  • "GBR"
  • "GEO"
  • "GGY"
  • "GHA"
  • "GIB"
  • "GIN"
  • "GLP"
  • "GMB"
  • "GNB"
  • "GNQ"
  • "GRC"
  • "GRD"
  • "GRL"
  • "GTM"
  • "GUF"
  • "GUM"
  • "GUY"
  • "HKG"
  • "HMD"
  • "HND"
  • "HRV"
  • "HTI"
  • "HUN"
  • "IDN"
  • "IMN"
  • "IND"
  • "IOT"
  • "IRL"
  • "IRN"
  • "IRQ"
  • "ISL"
  • "ISR"
  • "ITA"
  • "JAM"
  • "JEY"
  • "JOR"
  • "JPN"
  • "KAZ"
  • "KEN"
  • "KGZ"
  • "KHM"
  • "KIR"
  • "KNA"
  • "KOR"
  • "KWT"
  • "LAO"
  • "LBN"
  • "LBR"
  • "LBY"
  • "LCA"
  • "LIE"
  • "LKA"
  • "LSO"
  • "LTU"
  • "LUX"
  • "LVA"
  • "MAC"
  • "MAF"
  • "MAR"
  • "MCO"
  • "MDA"
  • "MDG"
  • "MDV"
  • "MEX"
  • "MHL"
  • "MKD"
  • "MLI"
  • "MLT"
  • "MMR"
  • "MNE"
  • "MNG"
  • "MNP"
  • "MOZ"
  • "MRT"
  • "MSR"
  • "MTQ"
  • "MUS"
  • "MWI"
  • "MYS"
  • "MYT"
  • "NAM"
  • "NCL"
  • "NER"
  • "NFK"
  • "NGA"
  • "NIC"
  • "NIU"
  • "NLD"
  • "NOR"
  • "NPL"
  • "NRU"
  • "NZL"
  • "OMN"
  • "PAK"
  • "PAN"
  • "PCN"
  • "PER"
  • "PHL"
  • "PLW"
  • "PNG"
  • "POL"
  • "PRI"
  • "PRK"
  • "PRT"
  • "PRY"
  • "PSE"
  • "PYF"
  • "QAT"
  • "REU"
  • "ROU"
  • "RUS"
  • "RWA"
  • "SAU"
  • "SDN"
  • "SEN"
  • "SGP"
  • "SGS"
  • "SHN"
  • "SJM"
  • "SLB"
  • "SLE"
  • "SLV"
  • "SMR"
  • "SOM"
  • "SPM"
  • "SRB"
  • "SSD"
  • "STP"
  • "SUR"
  • "SVK"
  • "SVN"
  • "SWE"
  • "SWZ"
  • "SXM"
  • "SYC"
  • "SYR"
  • "TCA"
  • "TCD"
  • "TGO"
  • "THA"
  • "TJK"
  • "TKL"
  • "TKM"
  • "TLS"
  • "TON"
  • "TTO"
  • "TUN"
  • "TUR"
  • "TUV"
  • "TWN"
  • "TZA"
  • "UGA"
  • "UKR"
  • "UMI"
  • "URY"
  • "USA"
  • "UZB"
  • "VAT"
  • "VCT"
  • "VEN"
  • "VGB"
  • "VIR"
  • "VNM"
  • "VUT"
  • "WLF"
  • "WSM"
  • "XXK"
  • "YEM"
  • "ZAF"
  • "ZMB"
  • "ZWE"
shippingPhone?string

The phone number associated with this Customer's shipping information. This field is stored as a text string and must be between 10 and 15 characters long.

shippingFax?string

The fax number associated with this Customer's shipping information. This field is stored as a text string and must be between 10 and 15 characters long.

custom?string

Custom, free-form field for client-supplied text, must be between 0 and 1,000 characters long.

address1?string

The first line of the address associated with this Customer. This field is stored as a text string and must be between 1 and 500 characters long.

address2?string

The second line of the address associated with this Customer. This field is stored as a text string and must be between 1 and 500 characters long.

city?string

The name of the city in the address associated with this Customer. This field is stored as a text string and must be between 1 and 500 characters long.

state?string

The U.S. state or Canadian province relevant to the address provided here. If the location is within the U.S. and Canada, specify the 2-character postal abbreviation for the state. If the location is outside of the U.S. and Canada, provide the full state name. This field is stored as a text string and must be between 2 and 100 characters long.

  • AK - Alaska (US)

  • AR - Arkansas (US)

  • AL - Alabama (US)

  • AZ - Arizona (US)

  • CA - California (US)

  • CO - Colorado (US)

  • CT - Connecticut (US)

  • DE - Delaware (US)

  • FL - Florida (US)

  • GA - Georgia (US)

  • HI - Hawaii (US)

  • IA - Iowa (US)

  • ID - Idaho (US)

  • IL - Illinois (US)

  • IN - Indiana (US)

  • KY - Kentucky (US)

  • KS - Kansas (US)

  • LA - Louisiana (US)

  • MA - Massachusetts (US)

  • MD - Maryland (US)

  • ME - Maine (US)

  • MI - Michigan (US)

  • MN - Minnesota (US)

  • MO - Missouri (US)

  • MS - Mississippi (US)

  • MT - Montana (US)

  • NC - North Carolina (US)

  • ND - North Dakota (US)

  • NE - Nebraska (US)

  • NH - New Hampshire (US)

  • NJ - New Jersey (US)

  • NM - New Mexico (US)

  • NV - Nevada (US)

  • NY - New York (US)

  • OH - Ohio (US)

  • OK- Oklahoma (US)

  • OR - Oregon (US)

  • PA - Pennsylvania (US)

  • RI - Rhode Island (US)

  • SC- South Carolina (US)

  • SD - South Dakota (US)

  • TN - Tennessee (US)

  • TX - Texas (US)

  • UT - Utah (US)

  • VA - Virginia (US)

  • VT - Vermont (US)

  • WA - Washington (US)

  • WI - Wisconsin (US)

  • WV - West Virginia (US)

  • WY - Wyoming (US)

  • AB - Alberta (CAN)

  • BC - British Columbia (CAN)

  • MB - Manitoba (CAN)

  • ON - Ontario (CAN)

  • NS - Nova Scotia (CAN)

  • NB - New Brunswick (CAN)

  • NL - Newfoundland and Labrador (CAN)

  • NT - Northwest Territories (CAN)

  • NU - Nunavut (CAN)

  • PE - Prince Edward Island (CAN)

  • QC - Quebec (CAN)

  • SK - Saskatchewan (CAN)

  • YT - Yukon (CAN)

zip?string

The ZIP code in the address associated with this Customer. This field is stored as a text string and must be between 1 and 20 characters long.

country?country

The country associated with this Customer. Valid values for this field is the 3-letter ISO code for the country.

Value in

  • "ABW"
  • "AFG"
  • "AGO"
  • "AIA"
  • "ALA"
  • "ALB"
  • "AND"
  • "ARE"
  • "ARG"
  • "ARM"
  • "ASM"
  • "ATA"
  • "ATF"
  • "ATG"
  • "AUS"
  • "AUT"
  • "AZE"
  • "BDI"
  • "BEL"
  • "BEN"
  • "BES"
  • "BFA"
  • "BGD"
  • "BGR"
  • "BHR"
  • "BHS"
  • "BIH"
  • "BLM"
  • "BLR"
  • "BLZ"
  • "BMU"
  • "BOL"
  • "BRA"
  • "BRB"
  • "BRN"
  • "BTN"
  • "BVT"
  • "BWA"
  • "CAF"
  • "CAN"
  • "CCK"
  • "CHE"
  • "CHL"
  • "CHN"
  • "CIV"
  • "CMR"
  • "COD"
  • "COG"
  • "COK"
  • "COL"
  • "COM"
  • "CPV"
  • "CRI"
  • "CUB"
  • "CUW"
  • "CXR"
  • "CYM"
  • "CYP"
  • "CZE"
  • "DEU"
  • "DJI"
  • "DMA"
  • "DNK"
  • "DOM"
  • "DZA"
  • "ECU"
  • "EGY"
  • "ERI"
  • "ESH"
  • "ESP"
  • "EST"
  • "ETH"
  • "FIN"
  • "FJI"
  • "FLK"
  • "FRA"
  • "FRO"
  • "FSM"
  • "GAB"
  • "GBR"
  • "GEO"
  • "GGY"
  • "GHA"
  • "GIB"
  • "GIN"
  • "GLP"
  • "GMB"
  • "GNB"
  • "GNQ"
  • "GRC"
  • "GRD"
  • "GRL"
  • "GTM"
  • "GUF"
  • "GUM"
  • "GUY"
  • "HKG"
  • "HMD"
  • "HND"
  • "HRV"
  • "HTI"
  • "HUN"
  • "IDN"
  • "IMN"
  • "IND"
  • "IOT"
  • "IRL"
  • "IRN"
  • "IRQ"
  • "ISL"
  • "ISR"
  • "ITA"
  • "JAM"
  • "JEY"
  • "JOR"
  • "JPN"
  • "KAZ"
  • "KEN"
  • "KGZ"
  • "KHM"
  • "KIR"
  • "KNA"
  • "KOR"
  • "KWT"
  • "LAO"
  • "LBN"
  • "LBR"
  • "LBY"
  • "LCA"
  • "LIE"
  • "LKA"
  • "LSO"
  • "LTU"
  • "LUX"
  • "LVA"
  • "MAC"
  • "MAF"
  • "MAR"
  • "MCO"
  • "MDA"
  • "MDG"
  • "MDV"
  • "MEX"
  • "MHL"
  • "MKD"
  • "MLI"
  • "MLT"
  • "MMR"
  • "MNE"
  • "MNG"
  • "MNP"
  • "MOZ"
  • "MRT"
  • "MSR"
  • "MTQ"
  • "MUS"
  • "MWI"
  • "MYS"
  • "MYT"
  • "NAM"
  • "NCL"
  • "NER"
  • "NFK"
  • "NGA"
  • "NIC"
  • "NIU"
  • "NLD"
  • "NOR"
  • "NPL"
  • "NRU"
  • "NZL"
  • "OMN"
  • "PAK"
  • "PAN"
  • "PCN"
  • "PER"
  • "PHL"
  • "PLW"
  • "PNG"
  • "POL"
  • "PRI"
  • "PRK"
  • "PRT"
  • "PRY"
  • "PSE"
  • "PYF"
  • "QAT"
  • "REU"
  • "ROU"
  • "RUS"
  • "RWA"
  • "SAU"
  • "SDN"
  • "SEN"
  • "SGP"
  • "SGS"
  • "SHN"
  • "SJM"
  • "SLB"
  • "SLE"
  • "SLV"
  • "SMR"
  • "SOM"
  • "SPM"
  • "SRB"
  • "SSD"
  • "STP"
  • "SUR"
  • "SVK"
  • "SVN"
  • "SWE"
  • "SWZ"
  • "SXM"
  • "SYC"
  • "SYR"
  • "TCA"
  • "TCD"
  • "TGO"
  • "THA"
  • "TJK"
  • "TKL"
  • "TKM"
  • "TLS"
  • "TON"
  • "TTO"
  • "TUN"
  • "TUR"
  • "TUV"
  • "TWN"
  • "TZA"
  • "UGA"
  • "UKR"
  • "UMI"
  • "URY"
  • "USA"
  • "UZB"
  • "VAT"
  • "VCT"
  • "VEN"
  • "VGB"
  • "VIR"
  • "VNM"
  • "VUT"
  • "WLF"
  • "WSM"
  • "XXK"
  • "YEM"
  • "ZAF"
  • "ZMB"
  • "ZWE"
phone?string

The phone number associated with this Transaction. This field is stored as a text string and must be between 10 and 15 characters long.

fax?string

The fax number associated with this Customer. This field is stored as a text string and must be between 10 and 15 characters long.

frozen?frozen

Whether this resource is marked as frozen.

  • 0 - Not Frozen
  • 1 - Frozen

Value in

  • 0
  • 1
inactive?inactive

Whether this resource is marked as inactive.

  • 0 - Active
  • 1 - Inactive

Value in

  • 0
  • 1
invoices?array<>
tokens?array<>

Response Body

application/json

application/json

curl -X POST "https://example.com/customers" \  -H "Content-Type: application/json" \  -d '{    "login": "t1_log_0089616d2294ec86ba6076c",    "merchant": "t1_mer_00415e924c58c616f8a119b",    "first": "John",    "middle": "M",    "last": "Doe",    "company": "Doe Enterprises",    "email": "somename@emaol.com",    "fax": "+11234567845",    "phone": "+11324567845",    "country": "USA",    "zip": "75001",    "state": "TX",    "city": "Shelbyville",    "address2": "Apt 4B",    "address1": "456 Secondary Ave",    "inactive": 0,    "frozen": 0,    "shippingFirst": "John",    "shippingMiddle": "M",    "shippingLast": "Doe",    "shippingCompany": "Doe Shipping Co.",    "shippingAddress1": "123 Main st.",    "shippingAddress2": "Apt 4B",    "shippingCity": "Shelbyville",    "shippingState": "TX",    "shippingZip": "75001",    "shippingCountry": "USA",    "shippingPhone": "+11234567845",    "shippingFax": "+11234567845",    "custom": "Customer\'s custom data",    "entity": "t1_ent_64415e922e9000ef8bf3c1d"  }'
{  "response": {    "data": [      {        "id": "t1_cus_67a527f32862c3e51bcce51",        "created": "2025-02-06 16:21:55.1821",        "modified": "2025-02-06 16:21:55.1821",        "creator": "t1_log_62fd0aa37c3d8ec3a9dcea8",        "modifier": "t1_log_62fd0aa37c3d8ec3a9dcea8",        "login": "t1_log_6789616d2294ec86ba6076c",        "merchant": "t1_mer_64415e924c58c616f8a119b",        "first": "John",        "middle": "M",        "last": "Doe",        "company": "Doe Enterprises",        "email": "somename@emaol.com",        "fax": "+11234567845",        "phone": "+11324567845",        "country": "USA",        "zip": "75001",        "state": "TX",        "city": "Shelbyville",        "address2": "Apt 4B",        "address1": "456 Secondary Ave",        "inactive": 0,        "frozen": 0,        "shippingFirst": "John",        "shippingMiddle": "M",        "shippingLast": "Doe",        "shippingCompany": "Doe Shipping Co.",        "shippingAddress1": "123 Main st.",        "shippingAddress2": "Suite 100",        "shippingCity": "Springfield",        "shippingState": "TX",        "shippingZip": "62701",        "shippingCountry": "USA",        "shippingPhone": "+11234567845",        "shippingFax": "+11234567845",        "custom": "Customer's custom data",        "authTokenCustomer": "912ae8b2f7e868eb6abb8b1a23b967ff",        "entity": "t1_ent_64415e922e9000ef8bf3c1d"      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}