diff --git a/modules/mobile/app/controllers/mobile/v0/threads_controller.rb b/modules/mobile/app/controllers/mobile/v0/threads_controller.rb new file mode 100644 index 00000000000..e6fcc429c52 --- /dev/null +++ b/modules/mobile/app/controllers/mobile/v0/threads_controller.rb @@ -0,0 +1,24 @@ +# frozen_string_literal: true + +module Mobile + module V0 + class ThreadsController < MessagingController + def index + resource = client.get_folder_threads( + params[:folder_id].to_s, + params[:page_size], + params[:page], + params[:sort_field], + params[:sort_order] + ) + + raise Common::Exceptions::RecordNotFound, params[:folder_id] if resource.blank? + + render json: resource.data, + serializer: CollectionSerializer, + each_serializer: MyHealth::V1::ThreadsSerializer, + meta: resource.metadata + end + end + end +end diff --git a/modules/mobile/config/routes.rb b/modules/mobile/config/routes.rb index 5ff0275c4cd..89684c5441b 100644 --- a/modules/mobile/config/routes.rb +++ b/modules/mobile/config/routes.rb @@ -65,6 +65,7 @@ resources :folders, only: %i[index show create destroy], defaults: { format: :json } do resources :messages, only: [:index], defaults: { format: :json } + resources :threads, only: %i[index] end resources :messages, only: %i[show create destroy], defaults: { format: :json } do diff --git a/modules/mobile/docs/index.html b/modules/mobile/docs/index.html index 527939e167a..27b997f9322 100644 --- a/modules/mobile/docs/index.html +++ b/modules/mobile/docs/index.html @@ -2216,7 +2216,7 @@
-{- "data": [
- {
- "type": "messages",
- "id": "123789",
- "attributes": {
- "messageId": 123789,
- "category": "MEDICATIONS",
- "subject": "Medication Inquiry",
- "body": 2,
- "attachment": false,
- "sentDate": "2017-09-01T16:09:56.000Z",
- "senderId": 541200,
- "senderName": "DOE, JANE",
- "recipientId": 399955,
- "recipientName": "ROE, RICHARD",
- "readReceipt": "READ",
- "triageGroupName": "Triage_Group_5",
- "proxySenderName": "SMITH, JOHN"
},
}
], - "meta": {
- "sort": {
- "sentDate": "DESC"
}, - "pagination": {
- "currentPage": 1,
- "perPage": 10,
- "totalPages": 2,
- "totalEntries": 15
}
}
}
List of threads in a secure messaging folder
+folderId required | string The id of the folder that threads are being retrieved from + |
pageSize, | string The size of the pagination you want. Defaults to 10 + |
page, | string The page number to get based on your page size + |
sortField, | string Enum: "SENDER_NAME" "RECIPIENT_NAME" "SENT_DATE" "DRAFT_DATE" The field to sort the results by + |
sortOrder, | string Enum: "ASC" "DESC" The order to sort the results by + |
{- "data": [
- {
- "id": 0,
- "type": "message_threads",
- "attributes": {
- "threadId": 1234567,
- "folderId": 0,
- "messageId": 1234567,
- "threadPageSize": 123,
- "messageCount": 123,
- "category": "MEDICATIONS",
- "subject": "Medication Inquiry",
- "triageGroupName": "Triage_Group_5",
- "sentDate": "2017-09-01T16:09:56.000Z",
- "draftDate": "2017-09-01T16:09:56.000Z",
- "senderId": 541200,
- "senderName": "DOE, JANE",
- "recipientId": 399955,
- "recipientName": "ROE, RICHARD",
- "proxySenderName": "SMITH, JOHN",
- "hasAttachment": false,
- "unsentDrafts": false,
- "unreadMessages": true
},
}
]
}
Save a new draft message
recipient_id required | integer The message recipient. This must be a valid recipient id that is assigned to the user. The list of valid recipients for a user can be obtained from the /v0/messaging/health/recipientsendpoint. |
category required | string Message category. This must be one of the values returned by the @@ -2621,12 +2631,12 @@ |
{- "recipient_id": 1763526,
- "category": "OTHER",
- "body": "What is the proper dosage and how long should I take this medication?",
- "subject": "Question about my medication",
- "draft_id": 0
}
{- "recipient_id": 1763526,
- "category": "OTHER",
- "body": "What is the proper dosage and how long should I take this medication?",
- "subject": "Question about my medication",
- "draft_id": 0
}
{- "recipient_id": 1763526,
- "category": "OTHER",
- "body": "What is the proper dosage and how long should I take this medication?",
- "subject": "Question about my medication",
- "draft_id": 0
}
{- "recipient_id": 1763526,
- "category": "OTHER",
- "body": "What is the proper dosage and how long should I take this medication?",
- "subject": "Question about my medication",
- "draft_id": 0
}
Update an existing draft message
id required | string The id of the draft that is to be updated |
{- "body": "the updated message"
}
{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
Save a new draft message as a reply to an existing message
+{- "body": "the updated message"
}
{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
Save a new draft message as a reply to an existing message
reply_id required | string The id of the message that will be replied to |
recipient_id required | integer The message recipient. This must be a valid recipient id that is assigned to the user. The list of valid recipients for a user can be obtained from the /v0/messaging/health/recipientsendpoint. @@ -2636,13 +2646,13 @@ |
{- "recipient_id": 1763526,
- "category": "OTHER",
- "body": "What is the proper dosage and how long should I take this medication?",
- "subject": "Question about my medication",
- "draft_id": 0
}
{- "recipient_id": 1763526,
- "category": "OTHER",
- "body": "What is the proper dosage and how long should I take this medication?",
- "subject": "Question about my medication",
- "draft_id": 0
}
Edit a draft message that was a reply to an existing message
+{- "recipient_id": 1763526,
- "category": "OTHER",
- "body": "What is the proper dosage and how long should I take this medication?",
- "subject": "Question about my medication",
- "draft_id": 0
}
{- "recipient_id": 1763526,
- "category": "OTHER",
- "body": "What is the proper dosage and how long should I take this medication?",
- "subject": "Question about my medication",
- "draft_id": 0
}
Edit a draft message that was a reply to an existing message
reply_id required | string The id of the message that will be replied to |
draft_id required | string The id of the draft that is to be updated |
{- "body": "the updated message"
}
{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
{- "body": "the updated message"
}
{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
{- "recipient_id": 1763526,
- "category": "OTHER",
- "body": "What is the proper dosage and how long should I take this medication?",
- "subject": "Question about my medication",
- "draft_id": 0
}
{- "type": "messages",
- "id": "123789",
- "attributes": {
- "messageId": 123789,
- "category": "MEDICATIONS",
- "subject": "Medication Inquiry",
- "body": "Your prescription is ready for refill\r\nThanks,\r\n,Dr. Doe",
- "attachment": true,
- "sentDate": "2017-09-01T16:09:56.000Z",
- "senderId": 541200,
- "senderName": "DOE, JANE",
- "recipientId": 399955,
- "recipientName": "ROE, RICHARD",
- "readReceipt": "READ",
- "triageGroupName": "Triage_Group_5",
- "proxySenderName": "SMITH, JOHN"
}, - "relationships": {
- "attachments": {
- "data": [
- {
- "id": "7775443",
- "type": "attachments"
}
]
}
}, - "included": [
- {
- "id": 7775443,
- "type": "attachments",
- "attributes": {
- "name": "bb_report.pdf",
- "messageId": 123789,
- "attachmentSize": 225457
},
}
]
}
{- "recipient_id": 1763526,
- "category": "OTHER",
- "body": "What is the proper dosage and how long should I take this medication?",
- "subject": "Question about my medication",
- "draft_id": 0
}
{- "type": "messages",
- "id": "123789",
- "attributes": {
- "messageId": 123789,
- "category": "MEDICATIONS",
- "subject": "Medication Inquiry",
- "body": "Your prescription is ready for refill\r\nThanks,\r\n,Dr. Doe",
- "attachment": true,
- "sentDate": "2017-09-01T16:09:56.000Z",
- "senderId": 541200,
- "senderName": "DOE, JANE",
- "recipientId": 399955,
- "recipientName": "ROE, RICHARD",
- "readReceipt": "READ",
- "triageGroupName": "Triage_Group_5",
- "proxySenderName": "SMITH, JOHN"
}, - "relationships": {
- "attachments": {
- "data": [
- {
- "id": "7775443",
- "type": "attachments"
}
]
}
}, - "included": [
- {
- "id": 7775443,
- "type": "attachments",
- "attributes": {
- "name": "bb_report.pdf",
- "messageId": 123789,
- "attachmentSize": 225457
},
}
]
}
List available message categories
{- "data": {
- "id": "0",
- "type": "categories",
- "attributes": {
- "messageCategoryType": [
- "OTHER",
- "COVID",
- "APPOINTMENTS",
- "MEDICATIONS",
- "TEST_RESULTS",
- "EDUCATION"
]
}
}
}
Gets user message signature preferences
{- "data": {
- "type": "messageSignature",
- "id": "abe3f152-90b0-45cb-8776-4958bad0e0ef",
- "attributes": {
- "signatureName": "My Signature Name",
- "includeSignature": true,
- "signatureTitle": "My Signature Title"
}
}
}
{- "data": {
- "type": "messageSignature",
- "id": "abe3f152-90b0-45cb-8776-4958bad0e0ef",
- "attributes": {
- "signatureName": "My Signature Name",
- "includeSignature": true,
- "signatureTitle": "My Signature Title"
}
}
}
Moves a secure message to the "Deleted" folder
id required | string The id of the message that is to be deleted |
{- "errors": [
- {
- "code": "SM114",
- "detail": "Unable to move message",
- "status": "400",
- "title": "Operation failed"
}
]
}
Get a secure message and mark the message as read.
NOTES:
{- "type": "messages",
- "id": "123789",
- "attributes": {
- "messageId": 123789,
- "category": "MEDICATIONS",
- "subject": "Medication Inquiry",
- "body": "Your prescription is ready for refill\r\nThanks,\r\n,Dr. Doe",
- "attachment": true,
- "sentDate": "2017-09-01T16:09:56.000Z",
- "senderId": 541200,
- "senderName": "DOE, JANE",
- "recipientId": 399955,
- "recipientName": "ROE, RICHARD",
- "readReceipt": "READ",
- "triageGroupName": "Triage_Group_5",
- "proxySenderName": "SMITH, JOHN"
}, - "relationships": {
- "attachments": {
- "data": [
- {
- "id": "7775443",
- "type": "attachments"
}
]
}
}, - "included": [
- {
- "id": 7775443,
- "type": "attachments",
- "attributes": {
- "name": "bb_report.pdf",
- "messageId": 123789,
- "attachmentSize": 225457
},
}
]
}
{- "type": "messages",
- "id": "123789",
- "attributes": {
- "messageId": 123789,
- "category": "MEDICATIONS",
- "subject": "Medication Inquiry",
- "body": "Your prescription is ready for refill\r\nThanks,\r\n,Dr. Doe",
- "attachment": true,
- "sentDate": "2017-09-01T16:09:56.000Z",
- "senderId": 541200,
- "senderName": "DOE, JANE",
- "recipientId": 399955,
- "recipientName": "ROE, RICHARD",
- "readReceipt": "READ",
- "triageGroupName": "Triage_Group_5",
- "proxySenderName": "SMITH, JOHN"
}, - "relationships": {
- "attachments": {
- "data": [
- {
- "id": "7775443",
- "type": "attachments"
}
]
}
}, - "included": [
- {
- "id": 7775443,
- "type": "attachments",
- "attributes": {
- "name": "bb_report.pdf",
- "messageId": 123789,
- "attachmentSize": 225457
},
}
]
}
Moves a secure message to a specified folder
id required | string The id of the message that is to be moved |
folder_id, required | string The id of the folder that the message is to be moved to |
{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
Get a secure message attachment content as a direct binary download. Secure messaging supports the following file types/extensions: doc, docx, gif, jpg, pdf, png, rtf, txt, xls, xlsx.
+{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
Get a secure message attachment content as a direct binary download. Secure messaging supports the following file types/extensions: doc, docx, gif, jpg, pdf, png, rtf, txt, xls, xlsx.
id required | integer ID of the message that we are retrieving attachments of |
{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
Send reply to a secure message
NOTE: If including file attachments, this request must be sent as multipart/form-data
File attachment restrictions (as imposed by MHV):
{- "recipient_id": 1112233,
- "category": "TEST",
- "subject": "My Test Results",
- "body": "Dear provider, please clarify my test results. Thank you.",
- "draft_id": 0
}
{- "type": "messages",
- "id": "123789",
- "attributes": {
- "messageId": 123789,
- "category": "MEDICATIONS",
- "subject": "Medication Inquiry",
- "body": "Your prescription is ready for refill\r\nThanks,\r\n,Dr. Doe",
- "attachment": true,
- "sentDate": "2017-09-01T16:09:56.000Z",
- "senderId": 541200,
- "senderName": "DOE, JANE",
- "recipientId": 399955,
- "recipientName": "ROE, RICHARD",
- "readReceipt": "READ",
- "triageGroupName": "Triage_Group_5",
- "proxySenderName": "SMITH, JOHN"
}, - "relationships": {
- "attachments": {
- "data": [
- {
- "id": "7775443",
- "type": "attachments"
}
]
}
}, - "included": [
- {
- "id": 7775443,
- "type": "attachments",
- "attributes": {
- "name": "bb_report.pdf",
- "messageId": 123789,
- "attachmentSize": 225457
},
}
]
}
Gets a list of message summaries that are related to the message of the passed id and older than the message of +
{- "recipient_id": 1112233,
- "category": "TEST",
- "subject": "My Test Results",
- "body": "Dear provider, please clarify my test results. Thank you.",
- "draft_id": 0
}
{- "type": "messages",
- "id": "123789",
- "attributes": {
- "messageId": 123789,
- "category": "MEDICATIONS",
- "subject": "Medication Inquiry",
- "body": "Your prescription is ready for refill\r\nThanks,\r\n,Dr. Doe",
- "attachment": true,
- "sentDate": "2017-09-01T16:09:56.000Z",
- "senderId": 541200,
- "senderName": "DOE, JANE",
- "recipientId": 399955,
- "recipientName": "ROE, RICHARD",
- "readReceipt": "READ",
- "triageGroupName": "Triage_Group_5",
- "proxySenderName": "SMITH, JOHN"
}, - "relationships": {
- "attachments": {
- "data": [
- {
- "id": "7775443",
- "type": "attachments"
}
]
}
}, - "included": [
- {
- "id": 7775443,
- "type": "attachments",
- "attributes": {
- "name": "bb_report.pdf",
- "messageId": 123789,
- "attachmentSize": 225457
},
}
]
}
Gets a list of message summaries that are related to the message of the passed id and older than the message of the id provided. Does not include the message of the passed id itself.
{- "data": [
- {
- "type": "messages",
- "id": "123789",
- "attributes": {
- "messageId": 123789,
- "category": "MEDICATIONS",
- "subject": "Medication Inquiry",
- "body": 2,
- "attachment": false,
- "sentDate": "2017-09-01T16:09:56.000Z",
- "senderId": 541200,
- "senderName": "DOE, JANE",
- "recipientId": 399955,
- "recipientName": "ROE, RICHARD",
- "readReceipt": "READ",
- "triageGroupName": "Triage_Group_5",
- "proxySenderName": "SMITH, JOHN"
},
}
], - "meta": {
- "sort": {
- "sentDate": "DESC"
}, - "pagination": {
- "currentPage": 1,
- "perPage": 10,
- "totalPages": 2,
- "totalEntries": 15
}
}
}
Gets a list of message summaries that are related to the message of the passed id regardless of their age in +
{- "data": [
- {
- "type": "messages",
- "id": "123789",
- "attributes": {
- "messageId": 123789,
- "category": "MEDICATIONS",
- "subject": "Medication Inquiry",
- "body": 2,
- "attachment": false,
- "sentDate": "2017-09-01T16:09:56.000Z",
- "senderId": 541200,
- "senderName": "DOE, JANE",
- "recipientId": 399955,
- "recipientName": "ROE, RICHARD",
- "readReceipt": "READ",
- "triageGroupName": "Triage_Group_5",
- "proxySenderName": "SMITH, JOHN"
},
}
], - "meta": {
- "sort": {
- "sentDate": "DESC"
}, - "pagination": {
- "currentPage": 1,
- "perPage": 10,
- "totalPages": 2,
- "totalEntries": 15
}
}
}
Gets a list of message summaries that are related to the message of the passed id regardless of their age in relation to the message of the id provided. Does not include the message of the passed id itself.
{- "data": [
- {
- "type": "messages",
- "id": "123789",
- "attributes": {
- "messageId": 123789,
- "category": "MEDICATIONS",
- "subject": "Medication Inquiry",
- "body": 2,
- "attachment": false,
- "sentDate": "2017-09-01T16:09:56.000Z",
- "senderId": 541200,
- "senderName": "DOE, JANE",
- "recipientId": 399955,
- "recipientName": "ROE, RICHARD",
- "readReceipt": "READ",
- "triageGroupName": "Triage_Group_5",
- "proxySenderName": "SMITH, JOHN",
- "messageBody": 2,
- "threadId": 1234567,
- "folderId": 0,
- "draftDate": "2017-09-01T16:09:56.000Z",
- "toDate": "2017-09-01T16:09:56.000Z",
- "hasAttachment": false
},
}
], - "meta": {
- "sort": {
- "sentDate": "DESC"
}, - "pagination": {
- "currentPage": 1,
- "perPage": 10,
- "totalPages": 2,
- "totalEntries": 15
}
}
}
{- "data": [
- {
- "type": "messages",
- "id": "123789",
- "attributes": {
- "messageId": 123789,
- "category": "MEDICATIONS",
- "subject": "Medication Inquiry",
- "body": 2,
- "attachment": false,
- "sentDate": "2017-09-01T16:09:56.000Z",
- "senderId": 541200,
- "senderName": "DOE, JANE",
- "recipientId": 399955,
- "recipientName": "ROE, RICHARD",
- "readReceipt": "READ",
- "triageGroupName": "Triage_Group_5",
- "proxySenderName": "SMITH, JOHN",
- "messageBody": 2,
- "threadId": 1234567,
- "folderId": 0,
- "draftDate": "2017-09-01T16:09:56.000Z",
- "toDate": "2017-09-01T16:09:56.000Z",
- "hasAttachment": false
},
}
], - "meta": {
- "sort": {
- "sentDate": "DESC"
}, - "pagination": {
- "currentPage": 1,
- "perPage": 10,
- "totalPages": 2,
- "totalEntries": 15
}
}
}
List available recipients to which messages may be sent
{- "data": [
- {
- "id": 855912,
- "type": "triage_teams",
- "attributes": {
- "triageTeamId": 855912,
- "name": "RADIOLOGY_TRIAGE_GROUP_1",
- "relationType": "PATIENT"
}
}
], - "meta": {
- "sort": {
- "name": "ASC"
}
}
}
{- "data": {
- "type": "militaryInformation",
- "id": "abe3f152-90b0-45cb-8776-4958bad0e0ef",
- "attributes": {
- "serviceHistory": [
- {
- "branchOfService": "United States Army",
- "beginDate": "1997-09-17",
- "endDate": "2002-12-31",
- "formattedBeginDate": "September 17, 1997",
- "formattedEndDate": "December 31, 2002"
}
]
}
}
}
{- "data": {
- "type": "militaryInformation",
- "id": "abe3f152-90b0-45cb-8776-4958bad0e0ef",
- "attributes": {
- "serviceHistory": [
- {
- "branchOfService": "United States Army",
- "beginDate": "1997-09-17",
- "endDate": "2002-12-31",
- "formattedBeginDate": "September 17, 1997",
- "formattedEndDate": "December 31, 2002"
}
]
}
}
}
{- "data": [
- {
- "type": "paymentHistory",
- "id": "abe3f152-90b0-45cb-8776-4958bad0e0ef",
- "attributes": {
- "amount": "$350.00",
- "date": "2022-15-01",
- "paymentMethod": "Direct Deposit",
- "paymentType": "Compensation & Pension - Recurring",
- "bank": "PACIFIC PREMIER BANK",
- "account": "************6464"
}
}
], - "meta": {
- "errors": [ ],
- "pagination": {
- "currentPage": 1,
- "perPage": 10,
- "totalPages": 1,
- "totalEntries": 7
}, - "availableYears": [
- 2019,
- 2018,
- 2017,
- 2016,
- 2015
]
}
}
{- "data": [
- {
- "type": "paymentHistory",
- "id": "abe3f152-90b0-45cb-8776-4958bad0e0ef",
- "attributes": {
- "amount": "$350.00",
- "date": "2022-15-01",
- "paymentMethod": "Direct Deposit",
- "paymentType": "Compensation & Pension - Recurring",
- "bank": "PACIFIC PREMIER BANK",
- "account": "************6464"
}
}
], - "meta": {
- "errors": [ ],
- "pagination": {
- "currentPage": 1,
- "perPage": 10,
- "totalPages": 1,
- "totalEntries": 7
}, - "availableYears": [
- 2019,
- 2018,
- 2017,
- 2016,
- 2015
]
}
}
{- "type": "paymentInformation",
- "id": "abe3f152-90b0-45cb-8776-4958bad0e0ef",
- "attributes": {
- "accountControl": {
- "canUpdateAddress": true,
- "corpAvailIndicator": true,
- "corpRecFoundIndicator": true,
- "hasNoBdnPaymentsIndicator": true,
- "identityIndicator": true,
- "indexIndicator": true,
- "isCompetentIndicator": true,
- "noFiduciaryAssignedIndicator": true,
- "notDeceasedIndicator": true,
- "canUpdatePayment": true
}, - "paymentAccount": {
- "accountNumber": "************6464",
- "accountType": "Savings",
- "financialInstitutionName": "PACIFIC PREMIER BANK",
- "financialInstitutionRoutingNumber": "948529982"
}
}
}
{- "type": "paymentInformation",
- "id": "abe3f152-90b0-45cb-8776-4958bad0e0ef",
- "attributes": {
- "accountControl": {
- "canUpdateAddress": true,
- "corpAvailIndicator": true,
- "corpRecFoundIndicator": true,
- "hasNoBdnPaymentsIndicator": true,
- "identityIndicator": true,
- "indexIndicator": true,
- "isCompetentIndicator": true,
- "noFiduciaryAssignedIndicator": true,
- "notDeceasedIndicator": true,
- "canUpdatePayment": true
}, - "paymentAccount": {
- "accountNumber": "************6464",
- "accountType": "Savings",
- "financialInstitutionName": "PACIFIC PREMIER BANK",
- "financialInstitutionRoutingNumber": "948529982"
}
}
}
Returns updated direct deposit payment info
New direct deposit info
accountNumber required | string |
accountType required | string Enum: "Savings" "Checking" |
financialInstitutionName required | string |
financialInstitutionRoutingNumber required | string |
{- "accountNumber": "12345678901",
- "accountType": "Savings",
- "financialInstitutionName": "PACIFIC PREMIER BANK",
- "financialInstitutionRoutingNumber": "021000021"
}
{- "type": "paymentInformation",
- "id": "abe3f152-90b0-45cb-8776-4958bad0e0ef",
- "attributes": {
- "accountControl": {
- "canUpdateAddress": true,
- "corpAvailIndicator": true,
- "corpRecFoundIndicator": true,
- "hasNoBdnPaymentsIndicator": true,
- "identityIndicator": true,
- "indexIndicator": true,
- "isCompetentIndicator": true,
- "noFiduciaryAssignedIndicator": true,
- "notDeceasedIndicator": true,
- "canUpdatePayment": true
}, - "paymentAccount": {
- "accountNumber": "************6464",
- "accountType": "Savings",
- "financialInstitutionName": "PACIFIC PREMIER BANK",
- "financialInstitutionRoutingNumber": "948529982"
}
}
}
{- "accountNumber": "12345678901",
- "accountType": "Savings",
- "financialInstitutionName": "PACIFIC PREMIER BANK",
- "financialInstitutionRoutingNumber": "021000021"
}
{- "type": "paymentInformation",
- "id": "abe3f152-90b0-45cb-8776-4958bad0e0ef",
- "attributes": {
- "accountControl": {
- "canUpdateAddress": true,
- "corpAvailIndicator": true,
- "corpRecFoundIndicator": true,
- "hasNoBdnPaymentsIndicator": true,
- "identityIndicator": true,
- "indexIndicator": true,
- "isCompetentIndicator": true,
- "noFiduciaryAssignedIndicator": true,
- "notDeceasedIndicator": true,
- "canUpdatePayment": true
}, - "paymentAccount": {
- "accountNumber": "************6464",
- "accountType": "Savings",
- "financialInstitutionName": "PACIFIC PREMIER BANK",
- "financialInstitutionRoutingNumber": "948529982"
}
}
}
Get the user's push notification preferences
endpointSid required | string device endpointSid provided by the register endpoint |
{- "data": {
- "type": "pushGetPrefs",
- "id": "A3646A8D40C5B7319416179833809496",
- "attributes": {
- "preferences": [
- {
- "preferenceId": "appointment_reminders",
- "preferenceName": "Appointment Reminders",
- "value": true
}
]
}
}
}
{- "data": {
- "type": "pushGetPrefs",
- "id": "A3646A8D40C5B7319416179833809496",
- "attributes": {
- "preferences": [
- {
- "preferenceId": "appointment_reminders",
- "preferenceName": "Appointment Reminders",
- "value": true
}
]
}
}
}
Set the user's push notification preferences
endpointSid required | string device endpointSid provided by the register endpoint |
Push notification preferences
preference required | string Enum: "appointment_reminders" "secure_message_alerts" |
enabled required | boolean |
{- "preference": "appointment_reminders",
- "enabled": true
}
{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
{- "preference": "appointment_reminders",
- "enabled": true
}
{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
Allows a new app install to register to receive push notifications
Device information
deviceToken required | string |
osName required | string Enum: "ios" "android" |
deviceName | string |
appName required | string |
debug | boolean Flag to switch between sandbox and non-sandbox app sid. Lower envs only |
{- "deviceToken": "740f4707bebcf74f9b7c25d48e3358945f6aa01da5ddb387462c7eaf61bb78ad",
- "osName": "ios",
- "deviceName": "Galaxy 8",
- "appName": "va_mobile_app",
- "debug": true
}
{- "data": {
- "type": "pushRegister",
- "id": "va_mobile_app",
- "attributes": {
- "endpointSid": "F1DC67487F5CE0227516037291336983"
}
}
}
Allows client to trigger specified push notification to be sent to specified endpoint
+{- "deviceToken": "740f4707bebcf74f9b7c25d48e3358945f6aa01da5ddb387462c7eaf61bb78ad",
- "osName": "ios",
- "deviceName": "Galaxy 8",
- "appName": "va_mobile_app",
- "debug": true
}
{- "data": {
- "type": "pushRegister",
- "id": "va_mobile_app",
- "attributes": {
- "endpointSid": "F1DC67487F5CE0227516037291336983"
}
}
}
Allows client to trigger specified push notification to be sent to specified endpoint
Template id, endpoint sid, and personalization for template
appName required | string |
templateId required | string |
required | object |
debug | boolean Flag to switch between sandbox and non-sandbox app sid. Lower envs only |
{- "appName": "va_mobile_app",
- "templateId": "0EF7C8C9390847D7B3B521426EFF5814",
- "personalization": {
- "%APPOINTMENT_DATE%": "DEC 14",
- "%APPOINTMENT_TIME%": "10:00"
}, - "debug": true
}
{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
Returns the user profile, including the user's addresses and the services the user has the requisite ids to access. Meta data for this endpoint returns all the services available in the API.
+{- "appName": "va_mobile_app",
- "templateId": "0EF7C8C9390847D7B3B521426EFF5814",
- "personalization": {
- "%APPOINTMENT_DATE%": "DEC 14",
- "%APPOINTMENT_TIME%": "10:00"
}, - "debug": true
}
{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
Returns the user profile, including the user's addresses and the services the user has the requisite ids to access. Meta data for this endpoint returns all the services available in the API.
X-Key-Inflection | string Example: camel Allows the API to return camelCase keys rather than snake_case. |
{- "data": {
- "id": "abe3f152-90b0-45cb-8776-4958bad0e0ef",
- "type": "user",
- "attributes": {
- "profile": {
- "firstName": "John",
- "middleName": "A",
- "lastName": "Smith",
- "contactEmail": {
- "id": 42,
- "emailAddress": "person42@example.com"
}, - "signinEmail": "john.a.smith@domain.com",
- "residentialAddress": {
- "id": 157032,
- "addressLine1": "1493 Martin Luther King Rd",
- "addressLine2": null,
- "addressLine3": null,
- "addressPou": "RESIDENCE/CHOICE",
- "addressType": "DOMESTIC",
- "city": "Fulton",
- "countryCode": "US",
- "internationalPostalCode": null,
- "province": null,
- "stateCode": "NY",
- "zipCode": "97062",
- "zipCodeSuffix": "1234"
}, - "mailingAddress": {
- "id": 157032,
- "addressLine1": "1493 Martin Luther King Rd",
- "addressLine2": null,
- "addressLine3": null,
- "addressPou": "RESIDENCE/CHOICE",
- "addressType": "DOMESTIC",
- "city": "Fulton",
- "countryCode": "US",
- "internationalPostalCode": null,
- "province": null,
- "stateCode": "NY",
- "zipCode": "97062",
- "zipCodeSuffix": "1234"
}, - "homePhoneNumber": {
- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}, - "mobilePhoneNumber": {
- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}, - "workPhoneNumber": {
- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}, - "faxPhoneNumber": {
- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}, - "signinService": "IDME"
}, - "authorizedServices": [
- "appeals",
- "directDepositBenefits",
- "militaryServiceHistory",
- "directDepositBenefitsUpdate",
- "scheduleAppointments"
], - "health": {
- "isCernerPatient": true,
- "facilities": [
- {
- "facilityId": "979",
- "isCerner": false,
- "facilityName": "Cheyenne VA Medical Center"
}
]
}
}
}, - "meta": {
- "availableServices": [
- "appeals",
- "appointments",
- "claims",
- "directDepositBenefits",
- "disabilityRating",
- "lettersAndDocuments",
- "militaryServiceHistory",
- "paymentHistory",
- "userProfileUpdate",
- "secureMessaging",
- "scheduleAppointments",
- "prescriptions"
]
}
}
Returns the user profile, including the user's addresses and the services the user has the requisite ids to access. Meta data for this endpoint returns all the services available in the API. v1 includes LOGINGOV as login type.
+{- "data": {
- "id": "abe3f152-90b0-45cb-8776-4958bad0e0ef",
- "type": "user",
- "attributes": {
- "profile": {
- "firstName": "John",
- "middleName": "A",
- "lastName": "Smith",
- "contactEmail": {
- "id": 42,
- "emailAddress": "person42@example.com"
}, - "signinEmail": "john.a.smith@domain.com",
- "residentialAddress": {
- "id": 157032,
- "addressLine1": "1493 Martin Luther King Rd",
- "addressLine2": null,
- "addressLine3": null,
- "addressPou": "RESIDENCE/CHOICE",
- "addressType": "DOMESTIC",
- "city": "Fulton",
- "countryCode": "US",
- "internationalPostalCode": null,
- "province": null,
- "stateCode": "NY",
- "zipCode": "97062",
- "zipCodeSuffix": "1234"
}, - "mailingAddress": {
- "id": 157032,
- "addressLine1": "1493 Martin Luther King Rd",
- "addressLine2": null,
- "addressLine3": null,
- "addressPou": "RESIDENCE/CHOICE",
- "addressType": "DOMESTIC",
- "city": "Fulton",
- "countryCode": "US",
- "internationalPostalCode": null,
- "province": null,
- "stateCode": "NY",
- "zipCode": "97062",
- "zipCodeSuffix": "1234"
}, - "homePhoneNumber": {
- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}, - "mobilePhoneNumber": {
- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}, - "workPhoneNumber": {
- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}, - "faxPhoneNumber": {
- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}, - "signinService": "IDME"
}, - "authorizedServices": [
- "appeals",
- "directDepositBenefits",
- "militaryServiceHistory",
- "directDepositBenefitsUpdate",
- "scheduleAppointments"
], - "health": {
- "isCernerPatient": true,
- "facilities": [
- {
- "facilityId": "979",
- "isCerner": false,
- "facilityName": "Cheyenne VA Medical Center"
}
]
}
}
}, - "meta": {
- "availableServices": [
- "appeals",
- "appointments",
- "claims",
- "directDepositBenefits",
- "disabilityRating",
- "lettersAndDocuments",
- "militaryServiceHistory",
- "paymentHistory",
- "userProfileUpdate",
- "secureMessaging",
- "scheduleAppointments",
- "prescriptions"
]
}
}
Returns the user profile, including the user's addresses and the services the user has the requisite ids to access. Meta data for this endpoint returns all the services available in the API. v1 includes LOGINGOV as login type.
X-Key-Inflection | string Example: camel Allows the API to return camelCase keys rather than snake_case. |
{- "data": {
- "id": "abe3f152-90b0-45cb-8776-4958bad0e0ef",
- "type": "user",
- "attributes": {
- "profile": {
- "firstName": "Johnny",
- "preferredName": "John",
- "middleName": "A",
- "lastName": "Smith",
- "contactEmail": {
- "id": 42,
- "emailAddress": "person42@example.com"
}, - "signinEmail": "john.a.smith@domain.com",
- "genderIdentity": "M",
- "residentialAddress": {
- "id": 157032,
- "addressLine1": "1493 Martin Luther King Rd",
- "addressLine2": null,
- "addressLine3": null,
- "addressPou": "RESIDENCE/CHOICE",
- "addressType": "DOMESTIC",
- "city": "Fulton",
- "countryCode": "US",
- "internationalPostalCode": null,
- "province": null,
- "stateCode": "NY",
- "zipCode": "97062",
- "zipCodeSuffix": "1234"
}, - "mailingAddress": {
- "id": 157032,
- "addressLine1": "1493 Martin Luther King Rd",
- "addressLine2": null,
- "addressLine3": null,
- "addressPou": "RESIDENCE/CHOICE",
- "addressType": "DOMESTIC",
- "city": "Fulton",
- "countryCode": "US",
- "internationalPostalCode": null,
- "province": null,
- "stateCode": "NY",
- "zipCode": "97062",
- "zipCodeSuffix": "1234"
}, - "homePhoneNumber": {
- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}, - "mobilePhoneNumber": {
- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}, - "workPhoneNumber": {
- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}, - "signinService": "IDME"
}, - "authorizedServices": [
- "appeals",
- "directDepositBenefits",
- "militaryServiceHistory",
- "directDepositBenefitsUpdate",
- "scheduleAppointments"
], - "health": {
- "isCernerPatient": true,
- "facilities": [
- {
- "facilityId": "979",
- "isCerner": false,
- "facilityName": "Cheyenne VA Medical Center"
}
]
}
}
}, - "meta": {
- "availableServices": [
- "appeals",
- "appointments",
- "claims",
- "directDepositBenefits",
- "disabilityRating",
- "lettersAndDocuments",
- "militaryServiceHistory",
- "paymentHistory",
- "userProfileUpdate",
- "secureMessaging",
- "scheduleAppointments",
- "prescriptions"
]
}
}
{- "data": {
- "id": "abe3f152-90b0-45cb-8776-4958bad0e0ef",
- "type": "user",
- "attributes": {
- "profile": {
- "firstName": "Johnny",
- "preferredName": "John",
- "middleName": "A",
- "lastName": "Smith",
- "contactEmail": {
- "id": 42,
- "emailAddress": "person42@example.com"
}, - "signinEmail": "john.a.smith@domain.com",
- "genderIdentity": "M",
- "residentialAddress": {
- "id": 157032,
- "addressLine1": "1493 Martin Luther King Rd",
- "addressLine2": null,
- "addressLine3": null,
- "addressPou": "RESIDENCE/CHOICE",
- "addressType": "DOMESTIC",
- "city": "Fulton",
- "countryCode": "US",
- "internationalPostalCode": null,
- "province": null,
- "stateCode": "NY",
- "zipCode": "97062",
- "zipCodeSuffix": "1234"
}, - "mailingAddress": {
- "id": 157032,
- "addressLine1": "1493 Martin Luther King Rd",
- "addressLine2": null,
- "addressLine3": null,
- "addressPou": "RESIDENCE/CHOICE",
- "addressType": "DOMESTIC",
- "city": "Fulton",
- "countryCode": "US",
- "internationalPostalCode": null,
- "province": null,
- "stateCode": "NY",
- "zipCode": "97062",
- "zipCodeSuffix": "1234"
}, - "homePhoneNumber": {
- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}, - "mobilePhoneNumber": {
- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}, - "workPhoneNumber": {
- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}, - "signinService": "IDME"
}, - "authorizedServices": [
- "appeals",
- "directDepositBenefits",
- "militaryServiceHistory",
- "directDepositBenefitsUpdate",
- "scheduleAppointments"
], - "health": {
- "isCernerPatient": true,
- "facilities": [
- {
- "facilityId": "979",
- "isCerner": false,
- "facilityName": "Cheyenne VA Medical Center"
}
]
}
}
}, - "meta": {
- "availableServices": [
- "appeals",
- "appointments",
- "claims",
- "directDepositBenefits",
- "disabilityRating",
- "lettersAndDocuments",
- "militaryServiceHistory",
- "paymentHistory",
- "userProfileUpdate",
- "secureMessaging",
- "scheduleAppointments",
- "prescriptions"
]
}
}
Deletes a user's address
X-Key-Inflection | string Example: camel Allows the API to return camelCase keys rather than snake_case. |
A domestic, internation, or military address
id required | integer |
addressLine1 required | string |
addressLine2 required | string, null |
addressLine3 required | string, null |
addressPou required | string Enum: "RESIDENCE/CHOICE" "CORRESPONDENCE" |
addressType required | string Enum: "DOMESTIC" "INTERNATIONAL" "MILITARY" |
city required | string |
countryCode required | string |
internationalPostalCode required | string, null |
province required | string, null |
stateCode required | string |
zipCode required | string |
zipCodeSuffix required | string, null |
{- "id": 157032,
- "addressLine1": "1493 Martin Luther King Rd",
- "addressLine2": null,
- "addressLine3": null,
- "addressPou": "RESIDENCE/CHOICE",
- "addressType": "DOMESTIC",
- "city": "Fulton",
- "countryCode": "US",
- "internationalPostalCode": null,
- "province": null,
- "stateCode": "NY",
- "zipCode": "97062",
- "zipCodeSuffix": "1234"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "async_transaction_vet360_address_transactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::AddressTransaction",
- "metadata": [ ]
}
}
}
Creates a new residential or mailing address for a user. Calling this endpoint is the second step in adding a new address for a user. The first step is to call the address validation endpoint to check if an address is valid. If it is valid you'll receive a 'addressMetaData' object back with the addresses confidence score. This object should then be included along with the new address in the request body. If the user wishes to continue with an 'invalid' address then the 'validationKey' should be passed along with the new address in the request body. This lets the underlying service know that an invalid address be passed through.
+{- "id": 157032,
- "addressLine1": "1493 Martin Luther King Rd",
- "addressLine2": null,
- "addressLine3": null,
- "addressPou": "RESIDENCE/CHOICE",
- "addressType": "DOMESTIC",
- "city": "Fulton",
- "countryCode": "US",
- "internationalPostalCode": null,
- "province": null,
- "stateCode": "NY",
- "zipCode": "97062",
- "zipCodeSuffix": "1234"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "async_transaction_vet360_address_transactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::AddressTransaction",
- "metadata": [ ]
}
}
}
Creates a new residential or mailing address for a user. Calling this endpoint is the second step in adding a new address for a user. The first step is to call the address validation endpoint to check if an address is valid. If it is valid you'll receive a 'addressMetaData' object back with the addresses confidence score. This object should then be included along with the new address in the request body. If the user wishes to continue with an 'invalid' address then the 'validationKey' should be passed along with the new address in the request body. This lets the underlying service know that an invalid address be passed through.
X-Key-Inflection | string Example: camel Allows the API to return camelCase keys rather than snake_case. |
A domestic, internation, or military address
{- "addressLine1": "1493 Martin Luther King Rd",
- "addressPou": "RESIDENCE/CHOICE",
- "addressType": "DOMESTIC",
- "city": "Fulton",
- "countryCodeIso3": "USA",
- "countryName": "United States",
- "stateCode": "MS",
- "validationKey": -1206619807,
- "zipCode": "38843"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "async_transaction_vet360_address_transactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::AddressTransaction",
- "metadata": [ ]
}
}
}
Updates a user's residential or mailing address. Calling this endpoint is the second step in adding a new address for a user. The first step is to call the address validation endpoint to check if an address is valid. If it is valid you'll receive a 'addressMetaData' object back with the addresses confidence score. This object should then be included along with the new address in the request body. If the user wishes to continue with an 'invalid' address then the 'validationKey' should be passed along with the new address in the request body. This lets the underlying service know that an invalid address be passed through.
+{- "addressLine1": "1493 Martin Luther King Rd",
- "addressPou": "RESIDENCE/CHOICE",
- "addressType": "DOMESTIC",
- "city": "Fulton",
- "countryCodeIso3": "USA",
- "countryName": "United States",
- "stateCode": "MS",
- "validationKey": -1206619807,
- "zipCode": "38843"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "async_transaction_vet360_address_transactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::AddressTransaction",
- "metadata": [ ]
}
}
}
Updates a user's residential or mailing address. Calling this endpoint is the second step in adding a new address for a user. The first step is to call the address validation endpoint to check if an address is valid. If it is valid you'll receive a 'addressMetaData' object back with the addresses confidence score. This object should then be included along with the new address in the request body. If the user wishes to continue with an 'invalid' address then the 'validationKey' should be passed along with the new address in the request body. This lets the underlying service know that an invalid address be passed through.
X-Key-Inflection | string Example: camel Allows the API to return camelCase keys rather than snake_case. |
A domestic, internation, or military address
{- "addressLine1": "1493 Martin Luther King Rd",
- "addressPou": "RESIDENCE/CHOICE",
- "addressType": "DOMESTIC",
- "city": "Fulton",
- "countryCodeIso3": "USA",
- "countryName": "United States",
- "id": 181513,
- "stateCode": "MS",
- "validationKey": -1206619807,
- "zipCode": "38843"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "async_transaction_vet360_address_transactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::AddressTransaction",
- "metadata": [ ]
}
}
}
Validates a residential or mailing address for a user. Calling this endpoint is the first step in adding a new address for a user. If the address is valid you'll receive a 'addressMetaData' object back with the addresses confidence score. This object should then be included along with the new address in the request body. If the user wishes to continue with an 'invalid' address then the 'validationKey' should be passed along with the new address in the request body. This lets the underlying service know that an invalid address be passed through.
+{- "addressLine1": "1493 Martin Luther King Rd",
- "addressPou": "RESIDENCE/CHOICE",
- "addressType": "DOMESTIC",
- "city": "Fulton",
- "countryCodeIso3": "USA",
- "countryName": "United States",
- "id": 181513,
- "stateCode": "MS",
- "validationKey": -1206619807,
- "zipCode": "38843"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "async_transaction_vet360_address_transactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::AddressTransaction",
- "metadata": [ ]
}
}
}
Validates a residential or mailing address for a user. Calling this endpoint is the first step in adding a new address for a user. If the address is valid you'll receive a 'addressMetaData' object back with the addresses confidence score. This object should then be included along with the new address in the request body. If the user wishes to continue with an 'invalid' address then the 'validationKey' should be passed along with the new address in the request body. This lets the underlying service know that an invalid address be passed through.
X-Key-Inflection | string Example: camel Allows the API to return camelCase keys rather than snake_case. |
A domestic, internation, or military address
{- "addressLine1": "51 W Weber Rd",
- "addressPou": "CORRESPONDENCE",
- "addressType": "DOMESTIC",
- "city": "Columbus",
- "countryCodeIso3": "USA",
- "countryName": "United States",
- "stateCode": "OH",
- "type": "DOMESTIC",
- "zipCode": "43202"
}
{- "data": [
- {
- "type": "appointment",
- "id": "167525",
- "attributes": {
- "appointmentType": "va",
- "cancelId": "MzA4OzIwMjAxMTAzLjA5MDAwMDs0NDI7Q0hZIFBDIEtJTFBBVFJJQ0s=",
- "comment": "Please arrive 20 minutes before the start of your appointment",
- "healthcareProvider": null,
- "healthcareService": "Blind Rehabilitation Center",
- "location": {
- "name": "VA Long Beach Healthcare System",
- "address": {
- "street": "5901 East 7th Street, Building 166",
- "city": "Long Beach",
- "state": "CA",
- "zipCode": "90822"
}, - "lat": 33.7700504,
- "long": -118.1937395,
- "phone": {
- "areaCode": "562",
- "number": "826-8000",
- "extension": "5696"
}, - "url": null,
- "code": null
}, - "minutesDuration": 60,
- "phoneOnly": false,
- "startDateLocal": "2019-04-20T14:15:00.000-04:00",
- "startDateUtc": "2019-04-20T18:15:00.000Z",
- "status": "CANCELLED",
- "statusDetail": "CANCELLED BY PATIENT",
- "timeZone": "America/Los_Angeles",
- "vetextId": "308;20210106.140000",
- "reason": "Follow-up/Routine: Reason 1",
- "is_covid_vaccine": false,
- "is_pending": false,
- "proposed_times": null,
- "type_of_care": null,
- "patient_phone_number": null,
- "patient_email": null,
- "best_time_to_call": null,
- "friendly_location_name": null
}
}
], - "meta": {
- "errors": null
}
}
{- "addressLine1": "51 W Weber Rd",
- "addressPou": "CORRESPONDENCE",
- "addressType": "DOMESTIC",
- "city": "Columbus",
- "countryCodeIso3": "USA",
- "countryName": "United States",
- "stateCode": "OH",
- "type": "DOMESTIC",
- "zipCode": "43202"
}
{- "data": [
- {
- "type": "appointment",
- "id": "167525",
- "attributes": {
- "appointmentType": "va",
- "cancelId": "MzA4OzIwMjAxMTAzLjA5MDAwMDs0NDI7Q0hZIFBDIEtJTFBBVFJJQ0s=",
- "comment": "Please arrive 20 minutes before the start of your appointment",
- "healthcareProvider": null,
- "healthcareService": "Blind Rehabilitation Center",
- "location": {
- "name": "VA Long Beach Healthcare System",
- "address": {
- "street": "5901 East 7th Street, Building 166",
- "city": "Long Beach",
- "state": "CA",
- "zipCode": "90822"
}, - "lat": 33.7700504,
- "long": -118.1937395,
- "phone": {
- "areaCode": "562",
- "number": "826-8000",
- "extension": "5696"
}, - "url": null,
- "code": null
}, - "minutesDuration": 60,
- "phoneOnly": false,
- "startDateLocal": "2019-04-20T14:15:00.000-04:00",
- "startDateUtc": "2019-04-20T18:15:00.000Z",
- "status": "CANCELLED",
- "statusDetail": "CANCELLED BY PATIENT",
- "timeZone": "America/Los_Angeles",
- "vetextId": "308;20210106.140000",
- "reason": "Follow-up/Routine: Reason 1",
- "is_covid_vaccine": false,
- "is_pending": false,
- "proposed_times": null,
- "type_of_care": null,
- "patient_phone_number": null,
- "patient_email": null,
- "best_time_to_call": null,
- "friendly_location_name": null
}
}
], - "meta": {
- "errors": null
}
}
Deletes a user's email address
X-Key-Inflection | string Example: camel Allows the API to return camelCase keys rather than snake_case. |
The email address to delete
id required | integer |
emailAddress required | string |
{- "emailAddress": "person42@example.com",
- "id": "42,"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "asyncTransactionVet360EmailTransactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::EmailTransaction",
- "metadata": [ ]
}
}
}
{- "emailAddress": "person42@example.com",
- "id": "42,"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "asyncTransactionVet360EmailTransactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::EmailTransaction",
- "metadata": [ ]
}
}
}
Creates a new email address
X-Key-Inflection | string Example: camel Allows the API to return camelCase keys rather than snake_case. |
The new email address
{- "emailAddress": "person42@example.com"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "asyncTransactionVet360EmailTransactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::EmailTransaction",
- "metadata": [ ]
}
}
}
{- "emailAddress": "person42@example.com"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "asyncTransactionVet360EmailTransactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::EmailTransaction",
- "metadata": [ ]
}
}
}
Updates a user's email address
X-Key-Inflection | string Example: camel Allows the API to return camelCase keys rather than snake_case. |
The new email address
id required | integer |
emailAddress required | string |
{- "emailAddress": "person42@example.com",
- "id": "42,"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "asyncTransactionVet360EmailTransactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::EmailTransaction",
- "metadata": [ ]
}
}
}
Updates a user's gender identity. Only id.me or login.gov users may use this
+{- "emailAddress": "person42@example.com",
- "id": "42,"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "asyncTransactionVet360EmailTransactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::EmailTransaction",
- "metadata": [ ]
}
}
}
Updates a user's gender identity. Only id.me or login.gov users may use this
X-Key-Inflection | string Example: camel Allows the API to return camelCase keys rather than snake_case. |
The new gender identity key
code required | string |
{- "code": "B"
}
{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
Retrieves a list of valid gender identity keys. Note that this endpoint does not use the camel case key inflection header like most other mobile endpoints to keep the keys upcase. Only id.me or login.gov users may use this
+{- "code": "B"
}
{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
Retrieves a list of valid gender identity keys. Note that this endpoint does not use the camel case key inflection header like most other mobile endpoints to keep the keys upcase. Only id.me or login.gov users may use this
{- "data": {
- "id": "23fe358d-6e82-4541-804c-ce7562ba28f4",
- "type": "GenderIdentityOptions",
- "attributes": {
- "options": {
- "M": "Man",
- "B": "Non-binary",
- "TM": "Transgender man",
- "TF": "Transgender woman",
- "F": "Woman",
- "N": "Prefer not to answer",
- "O": "A gender not listed here"
}
}
}
}
Logs the user out by revoking their access token from the IAM SSOe OAuth service and destroying the IAM user, user identity, and session objects from Redis.
+{- "data": {
- "id": "23fe358d-6e82-4541-804c-ce7562ba28f4",
- "type": "GenderIdentityOptions",
- "attributes": {
- "options": {
- "M": "Man",
- "B": "Non-binary",
- "TM": "Transgender man",
- "TF": "Transgender woman",
- "F": "Woman",
- "N": "Prefer not to answer",
- "O": "A gender not listed here"
}
}
}
}
Logs the user out by revoking their access token from the IAM SSOe OAuth service and destroying the IAM user, user identity, and session objects from Redis.
X-Key-Inflection | string Example: camel Allows the API to return camelCase keys rather than snake_case. |
{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
Updates a user's preferred name. Only id.me or login.gov users may use this
+{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
Updates a user's preferred name. Only id.me or login.gov users may use this
X-Key-Inflection | string Example: camel Allows the API to return camelCase keys rather than snake_case. |
The new preferred name
text required | string |
{- "text": "New Preferred Name"
}
{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
{- "text": "New Preferred Name"
}
{- "errors": [
- {
- "title": "string",
- "detail": "string",
- "code": "string",
- "status": "string",
- "source": "string",
- "meta": {
- "messages": [
- {
- "key": "string",
- "severity": "string",
- "text": "string"
}
]
}
}
]
}
Deletes one of a user's phone numbers
X-Key-Inflection | string Example: camel Allows the API to return camelCase keys rather than snake_case. |
The phone number to delete
id required | integer |
areaCode required | string |
countryCode required | string |
phoneNumber required | string |
phoneType required | string Enum: "HOME" "FAX" "MOBILE" "WORK" |
extension required | string |
{- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "asyncTransactionVet360PhoneTransactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::PhoneTransaction",
- "metadata": [ ]
}
}
}
{- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "asyncTransactionVet360PhoneTransactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::PhoneTransaction",
- "metadata": [ ]
}
}
}
Creats a phone number for a user
X-Key-Inflection | string Example: camel Allows the API to return camelCase keys rather than snake_case. |
The new phone number
id | integer |
areaCode required | string |
countryCode required | string |
phoneNumber required | string |
phoneType required | string Enum: "HOME" "FAX" "MOBILE" "WORK" |
extension required | string |
{- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "asyncTransactionVet360PhoneTransactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::PhoneTransaction",
- "metadata": [ ]
}
}
}
{- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "asyncTransactionVet360PhoneTransactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::PhoneTransaction",
- "metadata": [ ]
}
}
}
Updates a user's phone number
X-Key-Inflection | string Example: camel Allows the API to return camelCase keys rather than snake_case. |
The new phone number
id required | integer |
areaCode required | string |
countryCode required | string |
phoneNumber required | string |
phoneType required | string Enum: "HOME" "FAX" "MOBILE" "WORK" |
extension required | string |
{- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "asyncTransactionVet360PhoneTransactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::PhoneTransaction",
- "metadata": [ ]
}
}
}
{- "id": 157032,
- "areaCode": "704",
- "countryCode": "1",
- "phoneNumber": "7749069",
- "phoneType": "HOME",
- "extension": "4567"
}
{- "data": {
- "id": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "type": "asyncTransactionVet360PhoneTransactions",
- "attributes": {
- "transactionId": "3be0c7de-bfe1-4101-a326-5567bcd98b63",
- "transactionStatus": "COMPLETED_SUCCESS",
- "type": "AsyncTransaction::VAProfile::PhoneTransaction",
- "metadata": [ ]
}
}
}
Returns a paginated list of immunization records for given user
{- "data": [
- {
- "type": "immunization",
- "id": "I2-3JYDMXC6RXTU4H25KRVXATSEJQ000000",
- "attributes": {
- "cvxCode": 140,
- "date": "2009-03-19T12:24:55Z",
- "doseNumber": "Booster",
- "doseSeries": 1,
- "groupName": "FLU",
- "manufacturer": "nil",
- "note": "Dose #45 of 101 of Influenza seasonal injectable preservative free vaccine administered.",
- "shortDescription": "Influenza seasonal injectable preservative free",
- "reaction": "Swelling"
}, - "relationships": {
- "location": {
- "data": {
- "id": "I2-4KG3N5YUSPTWD3DAFMLMRL5V5U000000",
- "type": "location"
}, - "links": {
- "related": "staging-api.va.gov/mobile/v0/health/locations/I2-2FPCKUIXVR7RJLLG34XVWGZERM000000"
}
}
}
}
], - "meta": {
- "pagination": {
- "currentPage": 1,
- "perPage": 10,
- "totalPages": 2,
- "totalEntries": 15
}
}
}
{- "data": [
- {
- "type": "immunization",
- "id": "I2-3JYDMXC6RXTU4H25KRVXATSEJQ000000",
- "attributes": {
- "cvxCode": 140,
- "date": "2009-03-19T12:24:55Z",
- "doseNumber": "Booster",
- "doseSeries": 1,
- "groupName": "FLU",
- "manufacturer": "nil",
- "note": "Dose #45 of 101 of Influenza seasonal injectable preservative free vaccine administered.",
- "shortDescription": "Influenza seasonal injectable preservative free",
- "reaction": "Swelling"
}, - "relationships": {
- "location": {
- "data": {
- "id": "I2-4KG3N5YUSPTWD3DAFMLMRL5V5U000000",
- "type": "location"
}, - "links": {
- "related": "staging-api.va.gov/mobile/v0/health/locations/I2-2FPCKUIXVR7RJLLG34XVWGZERM000000"
}
}
}
}
], - "meta": {
- "pagination": {
- "currentPage": 1,
- "perPage": 10,
- "totalPages": 2,
- "totalEntries": 15
}
}
}