Path: api/v1/cardfiles
This API is JSON:API compliant.
This endpoint supports the following methods:
GET PATCH
The resource type for this endpoint is CardFile
The identifier is cardno
The CardFile resource type attributes are as follows:
Path: api/v1/cardfiles?filter[Customer]=True&filter[CardCode][-like]TH
Supported Filters:
| ABN | Text | AccMng | Lookup | ACN | Text | Address | TextNoInverse | ||
| Branch | Lookup | CardCode | TextNoInverse | Company | Lookup | Contact | TextNoInverse | ContactType | TextNoInverse |
| Country | TextNoInverse | CustActive | Bool | Customer | Bool | CustPayTermNo | Lookup | CustType | Text |
| DelAddress | TextNoInverse | DelCountry | TextNoInverse | DelPostCode | TextNoInverse | DelState | TextNoInverse | DelSuburb | TextNoInverse |
| Department | TextNoInverse | DName | TextNoInverse | DOB | DateRange | FName | TextNoInverse | GLDept | Lookup |
| Groups | Group | HasWebLogon | Bool | JobTitle | TextNoInverse | LastModified | DateRange | LName | TextNoInverse |
| Name | TextNoInverse | ParentCard | TextNoInverse | PersActive | Bool | Personal | Bool | PostCode | TextNoInverse |
| PriceGroup | Lookup | ShipAddr | Bool | ShipAddrActive | Bool | Source | Lookup | SourceValue | Text |
| State | TextNoInverse | SubBranch | Lookup | Suburb | TextNoInverse | TypeValue | TextNoInverse | User | Bool |
| UserActive | Bool | UserGroups | Group | UserInitials | Text | VendActive | Bool | Vendor | Bool |
| VendPayTermNo | Lookup | WebLogon | TextNoInverse |
Operators:
| = | Equals |
| [-gte] | GreaterThanOrEqual |
| [-lte] | LessThanOrEqual |
| [-ne] | NotEqual |
| [-lt] | LessThan |
| [-gt] | GreaterThan |
| [-eq] | Equal |
| [-like] | Like |
Response:
{
"data": [{
"id": "10",
"type": "CardFile",
"attributes": {
"name": "User 1",
"address": {
"isAddressResidential": null,
"streetAddress": "",
"suburb": "",
"state": "",
"postCode": "",
"country": "Australia"
},
"delAddress": {
"isAddressResidential": null,
"streetAddress": "",
"suburb": "",
"state": "",
"postCode": "",
"country": "Australia"
}
},
"links": {
"self": "/api/v1/cardfiles/10"
}
},
{
"id": "11",
"type": "CardFile",
"attributes": {
"name": "Card 2",
"address": {
"isAddressResidential": null,
"streetAddress": "",
"suburb": "",
"state": "",
"postCode": "",
"country": "Australia"
},
"delAddress": {
"isAddressResidential": null,
"streetAddress": "",
"suburb": "",
"state": "",
"postCode": "",
"country": "Australia"
}
},
"links": {
"self": "/api/v1/cardfiles/11"
}
}
]
}
Path: api/v1/cardfiles/10
Response:
{
"data": {
"id": "10",
"type": "CardFile",
"attributes": {
"name": "User 1",
"address": {
"isAddressResidential": null,
"streetAddress": "",
"suburb": "",
"state": "",
"postCode": "",
"country": "Australia"
},
"delAddress": {
"isAddressResidential": null,
"streetAddress": "",
"suburb": "",
"state": "",
"postCode": "",
"country": "Australia"
}
},
"links": {
"self": "/api/v1/cardfiles/10"
}
}
}
Path: api/v1/cardfiles/10
Request:
{
"data": {
"type": "CardFile",
"id": "10",
"attributes": {
"address": {
"streetAddress": "street line 1\r\nstreet line 2",
"postcode": "9876",
"state": "STA",
"suburb": "the burbs",
"country": "Australia"
},
"delAddress": {
"streetAddress": "del street line 1\r\nstreet line 2",
"postcode": "8765",
"state": "DEL",
"suburb": "del the burbs",
"country": "Australia"
}
}
}
}
Response:
{
"data": {
"id": "10",
"type": "CardFile",
"attributes": {
"name": "User 1",
"address": {
"isAddressResidential": null,
"streetAddress": "street line 1\r\nstreet line 2",
"suburb": "the burbs",
"state": "STA",
"postCode": "9876",
"country": "Australia"
},
"delAddress": {
"isAddressResidential": null,
"streetAddress": "del street line 1\r\nstreet line 2",
"suburb": "del the burbs",
"state": "DEL",
"postCode": "8765",
"country": "Australia"
}
},
"links": {
"self": "/api/v1/cardfiles/10"
}
}
}