Back to Aligni.com
Also see show action for detailed XML customer response example.

Create a new customer.

Examples

# request
curl -X POST -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d "
<customer>
  <name>Markus, Inc.</name>
  <email>boss@example.com</email>
  <discount>10.00</discount>
  <tax_identification_number>12-3456789</tax_identification_number>
  <account_number>1234</account_number>
  <credit_terms></credit_terms>
  <credit_limit></credit_limit>
  <payment_method></payment_method>
</customer>" \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/customer

# response (for detailed customer XML see show action)
<customer>
  ...
</customer>

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String