Create a customer

Changed on
post/customers

Request

  • Base URL
    https://api.notchpay.co
  • URL
    https://api.notchpay.co/customers
  • Auth
    • API key in header Authorization
    • or API key in header X-Sync

Request body

OR

Example request

{
  "email": "john@example.com",
  "name": "John Doe",
  "company_name": "ACME Inc",
  "address": {
    "country": "CM",
    "city": "Douala",
    "address_line1": "123 Main St"
  },
  "billing": {
    "country": "CM",
    "city": "Douala",
    "address_line1": "123 Main St"
  }
}

Response

Customer created

codeinteger required
statusstring required
messagestring required
customerCustomer required(unresolved $ref)

Changes

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status