Ministry Sync Developer Resources
Menu
Xml Api / Actions / Select States

SelectStates

Returns a list of Countries for a profile in Ministry Sync

POST https://secure.ministrysync.com/ministrysync/api/post.php

POST Parameters

Param Length Type Required Description
APIUsername 36 string Yes Assigned by Ministry Sync
APIPassword 36 string Yes Assigned by Ministry Sync
APIKey 36 string Yes Assigned by Ministry Sync
Action 36 string Yes SelectStates
CountryID 11 int no Filter state list by Country ID. Without this field, it will return a complete list of every state in all countries

Expected Response Structure

<Root>
<Status>
<ErrorCode></ErrorCode>
<Description></Description>
</Status>
<States>
<State>
<ID></ID>
<Name></Name>
<Abbreviation></Abbreviation>
<CountryID></CountryID>
</State>
</States>
</Root>

Possible Error Values

Error Code	Description
0 Success
-1000 Invalid Login Credentials
-1001 Invalid Action

Field Definitions

Field Name Type Description
ID int Unique ID of State
Name string Name of State
Abbreviation string Abbreviation of State
CountryID int Unique ID of Country. Use Select Countries to get a list of available countries.
Copyright © 2019 Ministry Sync. All rights reserved.