Download OpenAPI specification:Download
Transaction API Schema
List all transactions
sort | string optional sort order string, such as descending, denoted by "-" |
page[offset] | integer <int32> number of records to skip when paging |
page[limit] | integer <int32> [ 0 .. 50 ] maximum number of records to return when paging |
[- {
- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "transaction",
- "attributes": {
- "transactionNumber": "L-2021-012",
- "materialDirection": "IN",
- "materialToBeReturned": true,
- "group": "string",
- "transactionType": "Loan",
- "otherIdentifiers": [
- "P18-PJDHS",
- "84784629058-129037"
], - "status": "string",
- "purpose": "string",
- "openedDate": "2019-08-24",
- "closedDate": "2019-08-24",
- "dueDate": "2019-08-24",
- "remarks": "string",
- "shipment": {
- "contentRemarks": "string",
- "value": "string",
- "currency": "str",
- "itemCount": 0,
- "shippedOn": "2019-08-24",
- "status": "string",
- "packingMethod": "string",
- "trackingNumber": "string",
- "shipmentRemarks": "string",
- "address": {
- "receiverName": "string",
- "companyName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "provinceState": "string",
- "zipCode": "string",
- "country": "string"
}
}, - "agentRoles": [
- {
- "agent": "3d89cfbb-a519-49d4-bc6b-9af8fb0f1fd2",
- "roles": [
- [
- "Owner",
- "Borrower",
- "Prepared By"
]
], - "date": "2019-08-24",
- "remarks": "string"
}
], - "managedAttributes": {
- "property1": "string",
- "property2": "string"
}, - "createdBy": "test user",
- "createdOn": "1985-04-12T23:20:50.52Z"
}, - "relationships": {
- "materialSamples": {
- "data": [
- {
- "type": "material-sample",
- "id": "11121721-21ba-4b90-bf17-f9d8ea67044d"
}
]
}, - "attachment": {
- "data": [
- {
- "type": "metadata",
- "id": "de30ad6a-64a0-4425-9d2f-50230c06a209"
}
]
}, - "involvedAgents": {
- "data": [
- {
- "type": "person",
- "id": "83a511da-3fc0-4fa3-8d9f-eda5757d3929"
}
]
}
}
}
}
]
Add a Transaction
Transaction to add
required | object |
{- "data": {
- "type": "transaction",
- "attributes": {
- "transactionNumber": "L-2021-012",
- "materialDirection": "IN",
- "materialToBeReturned": true,
- "group": "string",
- "transactionType": "Loan",
- "otherIdentifiers": [
- "P18-PJDHS",
- "84784629058-129037"
], - "status": "string",
- "purpose": "string",
- "openedDate": "2019-08-24",
- "closedDate": "2019-08-24",
- "dueDate": "2019-08-24",
- "remarks": "string",
- "shipment": {
- "contentRemarks": "string",
- "value": "string",
- "currency": "str",
- "itemCount": 0,
- "shippedOn": "2019-08-24",
- "status": "string",
- "packingMethod": "string",
- "trackingNumber": "string",
- "shipmentRemarks": "string",
- "address": {
- "receiverName": "string",
- "companyName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "provinceState": "string",
- "zipCode": "string",
- "country": "string"
}
}, - "agentRoles": [
- {
- "agent": "3d89cfbb-a519-49d4-bc6b-9af8fb0f1fd2",
- "roles": [
- [
- "Owner",
- "Borrower",
- "Prepared By"
]
], - "date": "2019-08-24",
- "remarks": "string"
}
], - "managedAttributes": {
- "property1": "string",
- "property2": "string"
}
}, - "relationships": {
- "materialSamples": {
- "data": [
- {
- "type": "material-sample",
- "id": "11121721-21ba-4b90-bf17-f9d8ea67044d"
}
]
}, - "attachment": {
- "data": [
- {
- "type": "metadata",
- "id": "de30ad6a-64a0-4425-9d2f-50230c06a209"
}
]
}
}
}
}
{- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "transaction",
- "attributes": {
- "transactionNumber": "L-2021-012",
- "materialDirection": "IN",
- "materialToBeReturned": true,
- "group": "string",
- "transactionType": "Loan",
- "otherIdentifiers": [
- "P18-PJDHS",
- "84784629058-129037"
], - "status": "string",
- "purpose": "string",
- "openedDate": "2019-08-24",
- "closedDate": "2019-08-24",
- "dueDate": "2019-08-24",
- "remarks": "string",
- "shipment": {
- "contentRemarks": "string",
- "value": "string",
- "currency": "str",
- "itemCount": 0,
- "shippedOn": "2019-08-24",
- "status": "string",
- "packingMethod": "string",
- "trackingNumber": "string",
- "shipmentRemarks": "string",
- "address": {
- "receiverName": "string",
- "companyName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "provinceState": "string",
- "zipCode": "string",
- "country": "string"
}
}, - "agentRoles": [
- {
- "agent": "3d89cfbb-a519-49d4-bc6b-9af8fb0f1fd2",
- "roles": [
- [
- "Owner",
- "Borrower",
- "Prepared By"
]
], - "date": "2019-08-24",
- "remarks": "string"
}
], - "managedAttributes": {
- "property1": "string",
- "property2": "string"
}, - "createdBy": "test user",
- "createdOn": "1985-04-12T23:20:50.52Z"
}, - "relationships": {
- "materialSamples": {
- "data": [
- {
- "type": "material-sample",
- "id": "11121721-21ba-4b90-bf17-f9d8ea67044d"
}
]
}, - "attachment": {
- "data": [
- {
- "type": "metadata",
- "id": "de30ad6a-64a0-4425-9d2f-50230c06a209"
}
]
}, - "involvedAgents": {
- "data": [
- {
- "type": "person",
- "id": "83a511da-3fc0-4fa3-8d9f-eda5757d3929"
}
]
}
}
}
}
Return a single Transaction
Id required | string <uuid> ID of Transaction to return |
{- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "transaction",
- "attributes": {
- "transactionNumber": "L-2021-012",
- "materialDirection": "IN",
- "materialToBeReturned": true,
- "group": "string",
- "transactionType": "Loan",
- "otherIdentifiers": [
- "P18-PJDHS",
- "84784629058-129037"
], - "status": "string",
- "purpose": "string",
- "openedDate": "2019-08-24",
- "closedDate": "2019-08-24",
- "dueDate": "2019-08-24",
- "remarks": "string",
- "shipment": {
- "contentRemarks": "string",
- "value": "string",
- "currency": "str",
- "itemCount": 0,
- "shippedOn": "2019-08-24",
- "status": "string",
- "packingMethod": "string",
- "trackingNumber": "string",
- "shipmentRemarks": "string",
- "address": {
- "receiverName": "string",
- "companyName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "provinceState": "string",
- "zipCode": "string",
- "country": "string"
}
}, - "agentRoles": [
- {
- "agent": "3d89cfbb-a519-49d4-bc6b-9af8fb0f1fd2",
- "roles": [
- [
- "Owner",
- "Borrower",
- "Prepared By"
]
], - "date": "2019-08-24",
- "remarks": "string"
}
], - "managedAttributes": {
- "property1": "string",
- "property2": "string"
}, - "createdBy": "test user",
- "createdOn": "1985-04-12T23:20:50.52Z"
}, - "relationships": {
- "materialSamples": {
- "data": [
- {
- "type": "material-sample",
- "id": "11121721-21ba-4b90-bf17-f9d8ea67044d"
}
]
}, - "attachment": {
- "data": [
- {
- "type": "metadata",
- "id": "de30ad6a-64a0-4425-9d2f-50230c06a209"
}
]
}, - "involvedAgents": {
- "data": [
- {
- "type": "person",
- "id": "83a511da-3fc0-4fa3-8d9f-eda5757d3929"
}
]
}
}
}
}
Update a Transaction
Id required | string <uuid> Transaction id to patch |
Transaction to add
required | object |
{- "data": {
- "type": "transaction",
- "attributes": {
- "transactionNumber": "L-2021-012",
- "materialDirection": "IN",
- "materialToBeReturned": true,
- "group": "string",
- "transactionType": "Loan",
- "otherIdentifiers": [
- "P18-PJDHS",
- "84784629058-129037"
], - "status": "string",
- "purpose": "string",
- "openedDate": "2019-08-24",
- "closedDate": "2019-08-24",
- "dueDate": "2019-08-24",
- "remarks": "string",
- "shipment": {
- "contentRemarks": "string",
- "value": "string",
- "currency": "str",
- "itemCount": 0,
- "shippedOn": "2019-08-24",
- "status": "string",
- "packingMethod": "string",
- "trackingNumber": "string",
- "shipmentRemarks": "string",
- "address": {
- "receiverName": "string",
- "companyName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "provinceState": "string",
- "zipCode": "string",
- "country": "string"
}
}, - "agentRoles": [
- {
- "agent": "3d89cfbb-a519-49d4-bc6b-9af8fb0f1fd2",
- "roles": [
- [
- "Owner",
- "Borrower",
- "Prepared By"
]
], - "date": "2019-08-24",
- "remarks": "string"
}
], - "managedAttributes": {
- "property1": "string",
- "property2": "string"
}
}, - "relationships": {
- "materialSamples": {
- "data": [
- {
- "type": "material-sample",
- "id": "11121721-21ba-4b90-bf17-f9d8ea67044d"
}
]
}, - "attachment": {
- "data": [
- {
- "type": "metadata",
- "id": "de30ad6a-64a0-4425-9d2f-50230c06a209"
}
]
}
}
}
}
{- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "transaction",
- "attributes": {
- "transactionNumber": "L-2021-012",
- "materialDirection": "IN",
- "materialToBeReturned": true,
- "group": "string",
- "transactionType": "Loan",
- "otherIdentifiers": [
- "P18-PJDHS",
- "84784629058-129037"
], - "status": "string",
- "purpose": "string",
- "openedDate": "2019-08-24",
- "closedDate": "2019-08-24",
- "dueDate": "2019-08-24",
- "remarks": "string",
- "shipment": {
- "contentRemarks": "string",
- "value": "string",
- "currency": "str",
- "itemCount": 0,
- "shippedOn": "2019-08-24",
- "status": "string",
- "packingMethod": "string",
- "trackingNumber": "string",
- "shipmentRemarks": "string",
- "address": {
- "receiverName": "string",
- "companyName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "provinceState": "string",
- "zipCode": "string",
- "country": "string"
}
}, - "agentRoles": [
- {
- "agent": "3d89cfbb-a519-49d4-bc6b-9af8fb0f1fd2",
- "roles": [
- [
- "Owner",
- "Borrower",
- "Prepared By"
]
], - "date": "2019-08-24",
- "remarks": "string"
}
], - "managedAttributes": {
- "property1": "string",
- "property2": "string"
}, - "createdBy": "test user",
- "createdOn": "1985-04-12T23:20:50.52Z"
}, - "relationships": {
- "materialSamples": {
- "data": [
- {
- "type": "material-sample",
- "id": "11121721-21ba-4b90-bf17-f9d8ea67044d"
}
]
}, - "attachment": {
- "data": [
- {
- "type": "metadata",
- "id": "de30ad6a-64a0-4425-9d2f-50230c06a209"
}
]
}, - "involvedAgents": {
- "data": [
- {
- "type": "person",
- "id": "83a511da-3fc0-4fa3-8d9f-eda5757d3929"
}
]
}
}
}
}
By passing in query string, user can get available managed attributes authorised
filter[rsql] | string pass an optional search string for looking up the managed attributes |
sort | string optional sort string, can have sort order such as descending denoted by "-" |
page[offset] | integer <int32> number of records to skip when paging |
page[limit] | integer <int32> [ 0 .. 50 ] maximum number of records to return when paging |
[- {
- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "managed-attribute",
- "attributes": {
- "createdBy": "string",
- "createdOn": "1985-04-12T23:20:50.52Z",
- "name": "string",
- "group": "string",
- "key": "string",
- "vocabularyElementType": "STRING",
- "acceptedValues": [
- "dorsal",
- 1
], - "multilingualDescription": {
- "descriptions": [
- {
- "lang": "string",
- "desc": "string"
}
]
}
}
}
}
]
Add a managed attribute
Managed attribute to add
required | object |
{- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "managed-attribute",
- "attributes": {
- "name": "string",
- "group": "string",
- "key": "string",
- "vocabularyElementType": "STRING",
- "acceptedValues": [
- "dorsal",
- 1
], - "multilingualDescription": {
- "descriptions": [
- {
- "lang": "string",
- "desc": "string"
}
]
}
}
}
}
Return a single managed attribute
Id required | string <uuid> ID of managed attribute to return |
{- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "managed-attribute",
- "attributes": {
- "createdBy": "string",
- "createdOn": "1985-04-12T23:20:50.52Z",
- "name": "string",
- "group": "string",
- "key": "string",
- "vocabularyElementType": "STRING",
- "acceptedValues": [
- "dorsal",
- 1
], - "multilingualDescription": {
- "descriptions": [
- {
- "lang": "string",
- "desc": "string"
}
]
}
}
}
}
Update a managed attribute
Id required | string <uuid> managed attribute id to patch |
managed attribute to add
required | object |
{- "data": {
- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "type": "managed-attribute",
- "attributes": {
- "name": "string",
- "group": "string",
- "key": "string",
- "vocabularyElementType": "STRING",
- "acceptedValues": [
- "dorsal",
- 1
], - "multilingualDescription": {
- "descriptions": [
- {
- "lang": "string",
- "desc": "string"
}
]
}
}
}
}