All Versions

Version 1
Version 2


Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Adds a member to our system and sets their basic demographic information.

Endpoint Path

POST /members

Authentication

This endpoint requires Authentication.

Response Type

The response status will be 201: Created on success, or an appropriate Error Response.

Request Parameters

This request requires an appropriately encoded request body with the data elements marked for POST on the Members resource. Be sure to specify the Content-Version header matching the version of the resource being provided.

All POST-able fields must be included in the request body. A value of null may be used for any optional data elements.

Examples

UI Tabs


UI Tab
titlePython


No Format
import requests
import json

uri = https://supplier-api.cmix.com/api/v2/members/M68674
headers = {
  "Authorization": "Basic Y3JpdGljYWxtaXg6dG9wc2VjcmV0",
  "Accept": "application/json",
  "Accept-Version": "1.0"
}
payload = {
  "memberId": "M343648",
  "email": "user@example.com",
  "language": "EN",
  "firstName": "John",
  "lastName": "Snow",
  "birthDate": "1989/01/20",
  "address": {
    "country": "US",
    "postalcode": null,
    "streetAddress": null
  }
}
response = requests.post(uri, headers=headers, json=payload)




 

Excerpt
hiddentrue

Returns basic information about a member