Skip to content

Commit

Permalink
Feature/llo/ecbsv docs (#26)
Browse files Browse the repository at this point in the history
* ecbsv docs 
* added postman acollection 

---------

Co-authored-by: llo <[email protected]>
  • Loading branch information
lolliopps and llopps authored Nov 8, 2024
1 parent c40c616 commit 6d89f0b
Show file tree
Hide file tree
Showing 18 changed files with 1,413 additions and 90 deletions.
27 changes: 16 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
bigdecimal (3.1.8)
colorator (1.1.0)
concurrent-ruby (1.2.3)
concurrent-ruby (1.3.3)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
ffi (1.16.3)
ffi (1.17.0-arm64-darwin)
ffi (1.17.0-x86_64-linux-gnu)
forwardable-extended (2.6.0)
google-protobuf (4.26.1-arm64-darwin)
google-protobuf (4.27.3-arm64-darwin)
bigdecimal
rake (>= 13)
google-protobuf (4.26.1-x86_64-linux)
google-protobuf (4.27.3-x86_64-linux)
bigdecimal
rake (>= 13)
http_parser.rb (0.8.0)
i18n (1.14.4)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
jekyll (4.3.3)
addressable (~> 2.4)
Expand Down Expand Up @@ -60,14 +64,14 @@ GEM
mercenary (0.4.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (5.0.5)
rake (13.2.0)
public_suffix (6.0.1)
rake (13.2.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
rb-inotify (0.11.1)
ffi (~> 1.0)
rexml (3.3.2)
strscan
rouge (4.2.1)
rouge (4.3.0)
safe_yaml (1.0.5)
sass-embedded (1.77.8)
google-protobuf (~> 4.26)
Expand All @@ -79,6 +83,7 @@ GEM
webrick (1.8.1)

PLATFORMS
arm64-darwin-21
arm64-darwin-22
arm64-darwin-23
x86_64-linux
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,12 @@ The deployment GitHub Actions workflow is heavily based on GitHub's mixed-party
[MIT License]: https://en.wikipedia.org/wiki/MIT_License
[starter workflows]: https://github.com/actions/starter-workflows/blob/main/pages/jekyll.yml
[actions/starter-workflows]: https://github.com/actions/starter-workflows/blob/main/LICENSE

----

# zips

```bash
rm pps-*.zip
zip pps-public.postman_collection.zip pps-public-20241106.postman_collection.json
```
2 changes: 1 addition & 1 deletion _api/order/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Order
layout: api_ref
nav_order: 4
nav_order: 5
has_children: true
---
2 changes: 1 addition & 1 deletion _api/order/messagedef.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Message
layout: api_ref
nav_order: 4
nav_order: 89
parent: Order
datatable: true
---
Expand Down
160 changes: 90 additions & 70 deletions _api/order/order_detailedblj.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _api/order/order_irs8821transcript.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: IRS8821 Transcript
layout: api_ref
nav_order: 2
nav_order: 10
parent: Order
datatable: true
---
Expand Down
190 changes: 190 additions & 0 deletions _api/order/order_ssaform89ecbsv.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
---
title: SSAForm89 ECBSV
layout: api_ref
nav_order: 30
parent: Order
datatable: true
---
Stable
{: .label .label-green }

## Order

Ordering an SSAForm89ECBSV product.

{: .before_starting }
Get the URL from your Pitchpoint Account Representative of where you should be submitting your orders to.


```bash
url="https://api.pointservices.com/riskinsight-services-ws/resources/v1/sami/SSAForm89ECBSV/PDF-001"
# use the `base64` program to encode the pdf file in base64
file=$( base64 -i test-pdf.pdf )
data='{
"CorrelationID": "no-ein-sent-already-configured-on-product",
"Preferences": {
"Preference": [
{
"Key": "SignatureType",
"Value": "w"
}
]
},
"Terms": {
"Term": [
{
"Person": {
"FirstName": "Homer",
"MiddleName": "Jay",
"LastName": "Simpson",
"DOB": "05/12/1956",
"SSN": "111223333"
}
}
]
},
"Attachments": {
"Attachment": [
{
"Classifier": "ssaForm89ecbsv",
"ContentType": "application/pdf",
"Document": "%%FILE_DATA%%"
}
]
}
}
'
# Replace the place holder %%FILE_DATA%% with the actual base64 encoded bytes
data=$(echo "$data" | sed "s#%%FILE_DATA%%#$file#g")

curl -X POST "${url}"
-H "Authorization: Bearer your_access_token_here"
-H "Content-Type: application/json"
-H "Accept: application/json"
-d "${data}"
```

#### Header Properties
{% include_relative api_includes/header_properties_json.md %}


#### Request Data Properties
<div class="datatable-begin"></div>

| Property | Description | Type |
|---------------|-------------------------------------------------------------------------------------------------------|--------|
| Attachments | (mandatory) See section below for more details. | object |
| CorrelationID | (mandatory) A user-defined reference number to help identify the order. Does not need to be unique. | string |
| Preferences | (mandatory) See section below for more details. | object |
| Terms | (mandatory) See section below for more details. | object |

<div class="datatable-end"></div>

##### Attachments.Attachment
<div class="datatable-begin"></div>

| Property | Description | Type |
|-------------|-----------------------------------------------------------------------------------------|--------|
| Classifier | (mandatory) Must be the string `ssaForm89ecbsv` | string |
| ContentType | (mandatory) The mime-type for the input file. Typically this will be `application/pdf` | string |
| Document | (mandatory) The base64 encoded bytes of the file | string |

<div class="datatable-end"></div>

##### Preferences.Preference
<div class="datatable-begin"></div>

| Key | Description | Type |
|---------------|-----------------------------------------------------------------------------------|--------|
| SignatureType | (mandatory) Signature type. Must be one of `w` for wet-ink or `e` for electronic | string |
| EIN | (optional) Employer Identification Number | string |


<div class="datatable-end"></div>

##### Terms.Term.personOrPropertyOrParticipant
<div class="datatable-begin"></div>

| Property | Description | Type |
|-------------|------------------------------------------------------------------------------------------------------------------------------------|--------|
| Person | One of `Person` or `Participant` must be defined. See section below for more details. | object |

<div class="datatable-end"></div>

##### Terms.Term.personOrPropertyOrParticipant.Person
<div class="datatable-begin"></div>

| Property | Description | Type |
|------------------|-------------------------------------------------------------------------------------------|---------|
| DOB | (optional) Date of Birth -- in the `MM/DD/YYYY` format | string |
| FirstName | (mandatory) First name of the person | string |
| MiddleName | (optional) Middle name of the person | string |
| LastName | (mandatory) Last name of the person | string |
| HomePhone | (optional) Home phone number | string |
| SSN | (mandatory) Social Security Number of the person | string |
| | (mandatory) Residences.Residence | |
| CurrentIndicator | (mandatory) Indicates whether the address is the current place of residence. | boolean |
| | (mandatory) Residences.Residence.Address | |
| AddressLine1 | (mandatory) Line1 of the residence of a person | string |
| City | (mandatory) City of the residence of a person | string |
| State | (mandatory) State of the residence of a person. 2-character code indicating which state. | string |
| PostalCode | (mandatory) 5 digit zip code of the residence. | string |
| | (optional) ConsentTokens.ConsentToken | |
| Type | (optional) Consent token type | string |
| Value | (optional) Consent token value | string |

<div class="datatable-end"></div>


### Responses

200
{: .label .label-green }

The input data is echo-ed back with following additional fields:

<div class="datatable-begin"></div>

| Property | Description | Type |
|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|
| TransactionID | A Pitchpoint generated identifying string to uniquely identify this loan | string |
| | Messages.Message -- A list of messages regarding the result of the order | |
| Category | Typically one of `Info` or `Fault` to indicate whether or not this is an information message or an error message. | string |
| Code | Unique code for the `Message`. Typically, this is `I004` when an order has initially been submitted, as PPS is still processing the order. When the report has successfully been generated, you should see a value of `I001`. A value starting with `EXXX` generally indicates an error. | string |
| Description | Description of the message | string |
| Ref | The url to query to retrieve the results of the order | string |
| | Status -- An object that states the current status of the order as related to billing matters. | |
| Code | The status code. This will typically be `U001` during the ordering phase as Pitchpoint has not completed generating the reports. However once the report has been successfully generated this will typically become `S001` | string |
| Description | A description of the code | string |


<div class="datatable-end"></div>

Example:
```json
{
"TransactionID": "0000000000000134076",
"Messages": {
"Message": [
{
"Category": "Info",
"Code": "I004",
"Description": "Evaluation was delayed."
}
]
},
"Ref": "https://api.pointservices.com/riskinsight-services-ws/resources/v1/sami/0000000000000134076",
"Status": {
"Code": "U001",
"Description": "Unserviceable"
},
"(echoed input data)": ...,
}
```

For a complete list of possible [Message](/api/order/messagedef/)



2 changes: 1 addition & 1 deletion _api/order/query.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Query Orders
layout: api_ref
nav_order: 2
nav_order: 99
parent: Order
datatable: true
---
Expand Down
Loading

0 comments on commit 6d89f0b

Please sign in to comment.