Path: api/v1/cardfilecreate
Method:POST
Summary:Creates a new CardFile
Description:Use this endpoint as a simple means of creating a CardFile
Query Parameters:
Queue | Optional | Set to true, 1, or t to queue the request via the Jim2 eBusiness Queue. If specified the response will be 202 Accepted and the B2B request number will be returned. Leave out, or set to false, 0, or f to process the request immediately. |
SubmitRefId | Optional | A unique reference ID for the request. This is used to prevent duplicate requests when the Queue parameter is also passed. If a SubmitRefId is passed via this
query parameter and within the request content (see submitRefId in JSON content) then the two values must be the same. A check for duplication due to re-processing
on the B2B queue is NOT performed unless the SubmitRefId is included in the request body (ie not passing the SubmitRefId in the message body allows an item on the
B2B queue to be reprocessed and potentially creating a duplicate object). The Queue parameter must also be specified if SubmitRefId is specified. Note that the SubmitRefId must be unique to Jim2, so if multiple systems are making calls care must be taken to avoid clashes in SubmitRefIds between systems. |
Request content:
Response content:
Request:
{ "cardCode": "EXAMPLE1", "name": "Example card file", "customer": { }, "ship": true, "address": { "streetAddress": "street address line 1 street address line 2", "suburb": "theBurbs", "state": "nsw", "postcode": "1234", "country": "Australia" }, "deliveryAddress": { "streetAddress": "del street address line 1 del street address line 2", "suburb": "delBurbs", "state": "qld", "postcode": "4321", "country": "Australia" }, "ACN": "ACN here", "ABN": "Put ABN here", "contacts": [ { "tile": "Dr", "firstName": "firstname1", "middleName": "middlename1", "lastName": "lastname1", "displayName": "Disp. Name 1", "jobTitle": "Guru!", "department": "theDept", "dob": "2001-12-31", "details": [ { "type": "EMail", "value": "someone@nowehere.local", "comment": "some comment" }, { "type": "phonE", "value": "99999999", "comment": "some comment" } ] }, { "primary": true, "tile": "Mr", "firstName": "fname2", "middleName": "mname2", "lastName": "lname3", "displayName": "Primary Contact", "jobTitle": "Boss", "department": "Dept2", "dob": "2002-11-30", "details": [ { "type": "EMail", "value": "someone2@nowehere.local", "comment": "some comment" }, { "type": "phonE", "value": "99999998", "comment": "some comment" } ] }, { "displayName": "A third contact" } ], "groups": { "rl1": "cf-1-1", "rl2": "cf-2-1", "rl3": "cf-3-1", "rl4": "cf-4-1", "rl5": "cf-5-1", "nonRL": [ "cf-nr1", "cf-nr2" ], "region": "cf-region2" } }
Response:
{ "cardNo": 1234, "cardCode": "EXAMPLE1" }