Read Ordinances for a person
This example request illustrates how to read temple ordinance information for a person. If the current user doesn't have permission to access the temple ordinance information, a 403 Forbidden
error will be returned.
JSON
Request
GET /platform/ordinances/persons/ordinances?pid=PPPP-111 Accept: application/x-gedcomx-v1+json Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
HTTP/1.1 200 OK
Content-type: application/x-gedcomx-v1+json
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-cache, no-store, no-transform, must-revalidate, max-age=0
Transfer-encoding: chunked
{
"links" : {
"http://oauth.net/core/2.0/endpoint/token" : {
"href" : "https://api.familysearch.org/oauth2/v3/token?flag=fsh"
},
"http://oauth.net/core/2.0/endpoint/authorize" : {
"href" : "https://api.familysearch.org/oauth2/v3/authorization?flag=fsh"
},
"ordinances-policy" : {
"href" : "https://api.familysearch.org/platform/ordinances/policy?flag=fsh"
}
},
"persons" : [ {
"id" : "PPPP-111",
"ordinances" : [ {
"type" : "http://churchofjesuschrist.org/Baptism",
"status" : "http://familysearch.org/v1/Completed",
"templeCode" : "Salt Lake",
"completeDate": {
"formal": "+1990-04-25"
}
}, {
"type" : "http://churchofjesuschrist.org/Confirmation",
"status" : "http://familysearch.org/v1/Ready"
}, {
"type" : "http://churchofjesuschrist.org/SealingToSpouse",
"status" : "http://familysearch.org/v1/NotAvailable",
"statusReasons" : [ "http://familysearch.org/v1/CoupleRelationshipMissing" ]
} ]
} ]
}
XML
Request
GET /platform/ordinances/persons/ordinances?pid=PPPP-111 Accept: application/x-gedcomx-v1+xml Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
HTTP/1.1 200 OK
Content-type: application/x-gedcomx-v1+xml
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-cache, no-store, no-transform, must-revalidate, max-age=0
Transfer-encoding: chunked
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<gedcomx xmlns:fs="http://familysearch.org/v1/" xmlns="http://gedcomx.org/v1/" xmlns:atom="http://www.w3.org/2005/Atom">
<link rel="http://oauth.net/core/2.0/endpoint/authorize" href="https://api.familysearch.org/oauth2/v3/authorization?flag=fsh"/>
<link rel="http://oauth.net/core/2.0/endpoint/token" href="https://api.familysearch.org/oauth2/v3/token?flag=fsh"/>
<link rel="ordinances-policy" href="https://api.familysearch.org/platform/ordinances/policy?flag=fsh"/>
<person id="PPPP-111">
<fs:ordinance type="http://churchofjesuschrist.org/Baptism" status="http://familysearch.org/v1/Completed">
<fs:templeCode>Salt Lake</fs:templeCode>
<fs:completeDate>
<formal>+1990-04-25</formal>
</fs:completeDate>
</fs:ordinance>
<fs:ordinance type="http://churchofjesuschrist.org/Confirmation" status="http://familysearch.org/v1/Ready"/>
<fs:ordinance type="http://churchofjesuschrist.org/SealingToSpouse" status="http://familysearch.org/v1/NotAvailable">
<fs:statusReason>http://familysearch.org/v1/CoupleRelationshipMissing</fs:statusReason>
</fs:ordinance>
</person>
</gedcomx>
Sending...
Feedback was sent.
Can't send feedback. Retry in 5 seconds.