Show Menu

Company Program Category

Company Program Category

This allows you to get a list of program categories and is used along with the program type and create new program.

post/API/v4/Programs/ProgramCategory

Header Parameters

Authorizationstring

bearer access_token

Content-typestring

application/json

Request Parameters

IssuerAccountNumberstring

String length: inclusive between 1 and 25

Paginationint

Specifies pagination information to limit the number of records to return. Allowed parameters are: RecordsToSkip—Number of records to skip. RecordsToTake—Number of records to return.

Response Parameters

ProgramCategoryDetailsstring

List of Program categories found. For each Program categories the following parameters are allowed: CategoryID—CategoryID
CategoryName—Category Name

PaginationTotalstring

Returned if successful Returned pagination result including total number of records available. Allowed parameters are: RecordsToSkip—Number of records skipped
RecordsToTake—Number of records returned
RecordsTotal—Total number of records in the underlying data set

OperationStatusstring

Always returned Indicates the status of the operation. Allowed parameters are:
Errors - Displays an error message if the Property name Obligation Definition/value operation was unsuccessful. For more information, see API Error Message Appendix.
Success—Indicates whether the operation was successful. Returns True if the action was successful or False if it was not successful.

Sample Request:

sandbox.xapi.xtrm.com/API/v4/Programs/ProgramCategory

{
    "GetProgramCategory": {
        "request": {
            "IssuerAccountNumber": "SPN Account Number",
            "Pagination": {
                "RecordsToSkip": 1,
                "RecordsToTake": 10
            }
        }
    }
}

						

Sample Response:


{
	"GetProgramCategoryResponse": {
		"ProgramCategoryResult": {
			"ProgramCategory": {
				"ProgramCategoryDetails": [
					{
						"CategoryID": 1,
						"CategoryName": "Promotional"
					},
					{
						"CategoryID": 2,
						"CategoryName": "Performance"
					},
					{
						"CategoryID": 7,
						"CategoryName": "Project"
					},
					{
						"CategoryID": 8,
						"CategoryName": "Other"
					}
				]
			},
			"OperationStatus": {
				"Success": true,
				"Errors": [
					""
				]
			},
			"PaginationTotal": {
				"RecordsToSkip": 1,
				"RecordsToTake": 10,
				"RecordsTotal": 4
			}
		}
	}
}