Get all channel customer checkbook balances

get

/fscmRestApi/cjmRest/channelCustomerCheckbookBalances

Request

Query Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Body ()
Root Schema : channelCustomerCheckbookBalances
Match All
Show Source
Nested Schema : CollectionProperties
Type: object
Show Source
Nested Schema : channelCustomerCheckbookBalances-allOf[1]
Type: object
Show Source
Nested Schema : Items
Type: array
Title: Items
The items in the collection.
Show Source
Nested Schema : channelCustomerCheckbookBalances-item-response
Match All
Show Source
Nested Schema : channelCustomerCheckbookBalances-item
Type: object
Show Source
Nested Schema : channelCustomerCheckbookBalances-item-response-allOf[1]
Type: object
Back to Top

Examples

These examples describe how to get all channel customer checkbook balances.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -u username:password "https://servername/fscmRestApi/cjmRest/channelCustomerCheckbookBalances"

Example 1

This example describes how to get all channel customer checkbook balances for each customer.

Example 1 cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -u username:password "https://servername/fscmRestApi/cjmRest/channelCustomerCheckbookBalances?DataForCode=ORA_CUSTOMER_BAL&BusinessUnit=Vision Operations&GLCalendarYear=2022&MyProgramFlag=true"

Example 1 Response Body

The following example includes the contents of the response body in JSON format:
{
    "items": [
        {
            "DataFor": "Customer Balances",
            "DataForCode": "ORA_CUSTOMER_BAL",
            "BusinessUnit": "Vision Operations",
            "BusinessUnitId": 204,
            "GLCalendarYear": 2022,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "AccrueToCustomer": "Big Computers",
            "AccrueToAccountNumber": "10022",
            "AccrueToAccountId": 6832,
            "ProgramName": null,
            "ProgramId": null,
            "PromotionCode": null,
            "ProgramType": null,
            "ProgramTypeId": null,
            "ProgramCurrency": null,
            "ProgramCurrencyCode": null,
            "EarnedAmountInProgramCurrency": null,
            "InProgressAmountInProgramCurrency": null,
            "PaidAmountInProgramCurrency": null,
            "BalanceAmountInProgramCurrency": null,
            "EarnedAmountInFunctionalCurrency": 157290,
            "InProgressAmountInFunctionalCurrency": 3412,
            "PaidAmountInFunctionalCurrency": 151292,
            "BalanceAmountInFunctionalCurrency": 2586
        },
        {
            "DataFor": "Customer Balances",
            "DataForCode": "ORA_CUSTOMER_BAL",
            "BusinessUnit": "Vision Operations",
            "BusinessUnitId": 204,
            "GLCalendarYear": 2022,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "AccrueToCustomer": "Blue Semiconductor",
            "AccrueToAccountNumber": "10045",
            "AccrueToAccountId": 6860,
            "ProgramName": null,
            "ProgramId": null,
            "PromotionCode": null,
            "ProgramType": null,
            "ProgramTypeId": null,
            "ProgramCurrency": null,
            "ProgramCurrencyCode": null,
            "EarnedAmountInProgramCurrency": null,
            "InProgressAmountInProgramCurrency": null,
            "PaidAmountInProgramCurrency": null,
            "BalanceAmountInProgramCurrency": null,
            "EarnedAmountInFunctionalCurrency": 143200,
            "InProgressAmountInFunctionalCurrency": 630,
            "PaidAmountInFunctionalCurrency": 139293,
            "BalanceAmountInFunctionalCurrency": 3277
        },
        {
            "DataFor": "Customer Balances",
            "DataForCode": "ORA_CUSTOMER_BAL",
            "BusinessUnit": "Vision Operations",
            "BusinessUnitId": 204,
            "GLCalendarYear": 2022,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "AccrueToCustomer": "Fantastic Laptops",
            "AccrueToAccountNumber": "10072",
            "AccrueToAccountId": 4564,
            "ProgramName": null,
            "ProgramId": null,
            "PromotionCode": null,
            "ProgramType": null,
            "ProgramTypeId": null,
            "ProgramCurrency": null,
            "ProgramCurrencyCode": null,
            "EarnedAmountInProgramCurrency": null,
            "InProgressAmountInProgramCurrency": null,
            "PaidAmountInProgramCurrency": null,
            "BalanceAmountInProgramCurrency": null,
            "EarnedAmountInFunctionalCurrency": 140293,
            "InProgressAmountInFunctionalCurrency": 790,
            "PaidAmountInFunctionalCurrency": 138290,
            "BalanceAmountInFunctionalCurrency": 1213
        },
        {
            "DataFor": "Customer Balances",
            "DataForCode": "ORA_CUSTOMER_BAL",
            "BusinessUnit": "Vision Operations",
            "BusinessUnitId": 204,
            "GLCalendarYear": 2022,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "AccrueToCustomer": "First Software",
            "AccrueToAccountNumber": "20920",
            "AccrueToAccountId": 4567,
            "ProgramName": null,
            "ProgramId": null,
            "PromotionCode": null,
            "ProgramType": null,
            "ProgramTypeId": null,
            "ProgramCurrency": null,
            "ProgramCurrencyCode": null,
            "EarnedAmountInProgramCurrency": null,
            "InProgressAmountInProgramCurrency": null,
            "PaidAmountInProgramCurrency": null,
            "BalanceAmountInProgramCurrency": null,
            "EarnedAmountInFunctionalCurrency": 139239,
            "InProgressAmountInFunctionalCurrency": 1482,
            "PaidAmountInFunctionalCurrency": 130290,
            "BalanceAmountInFunctionalCurrency": 7467
        },
        {
            "DataFor": "Customer Balances",
            "DataForCode": "ORA_CUSTOMER_BAL",
            "BusinessUnit": "Vision Operations",
            "BusinessUnitId": 204,
            "GLCalendarYear": 2022,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "AccrueToCustomer": "Green Corp.",
            "AccrueToAccountNumber": "21392",
            "AccrueToAccountId": 2580,
            "ProgramName": null,
            "ProgramId": null,
            "PromotionCode": null,
            "ProgramType": null,
            "ProgramTypeId": null,
            "ProgramCurrency": null,
            "ProgramCurrencyCode": null,
            "EarnedAmountInProgramCurrency": null,
            "InProgressAmountInProgramCurrency": null,
            "PaidAmountInProgramCurrency": null,
            "BalanceAmountInProgramCurrency": null,
            "EarnedAmountInFunctionalCurrency": 130400,
            "InProgressAmountInFunctionalCurrency": 0,
            "PaidAmountInFunctionalCurrency": 130400,
            "BalanceAmountInFunctionalCurrency": 0
        },
        {
            "DataFor": "Customer Balances",
            "DataForCode": "ORA_CUSTOMER_BAL",
            "BusinessUnit": "Vision Operations",
            "BusinessUnitId": 204,
            "GLCalendarYear": 2022,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "AccrueToCustomer": "Large and Associates",
            "AccrueToAccountNumber": "20272",
            "AccrueToAccountId": 6764,
            "ProgramName": null,
            "ProgramId": null,
            "PromotionCode": null,
            "ProgramType": null,
            "ProgramTypeId": null,
            "ProgramCurrency": null,
            "ProgramCurrencyCode": null,
            "EarnedAmountInProgramCurrency": null,
            "InProgressAmountInProgramCurrency": null,
            "PaidAmountInProgramCurrency": null,
            "BalanceAmountInProgramCurrency": null,
            "EarnedAmountInFunctionalCurrency": 128190,
            "InProgressAmountInFunctionalCurrency": 4903,
            "PaidAmountInFunctionalCurrency": 113452,
            "BalanceAmountInFunctionalCurrency": 9835
        },
        {
            "DataFor": "Customer Balances",
            "DataForCode": "ORA_CUSTOMER_BAL",
            "BusinessUnit": "Vision Operations",
            "BusinessUnitId": 204,
            "GLCalendarYear": 2022,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "AccrueToCustomer": "Seven Corporation",
            "AccrueToAccountNumber": "21494",
            "AccrueToAccountId": 3347,
            "ProgramName": null,
            "ProgramId": null,
            "PromotionCode": null,
            "ProgramType": null,
            "ProgramTypeId": null,
            "ProgramCurrency": null,
            "ProgramCurrencyCode": null,
            "EarnedAmountInProgramCurrency": null,
            "InProgressAmountInProgramCurrency": null,
            "PaidAmountInProgramCurrency": null,
            "BalanceAmountInProgramCurrency": null,
            "EarnedAmountInFunctionalCurrency": 119223,
            "InProgressAmountInFunctionalCurrency": 5589,
            "PaidAmountInFunctionalCurrency": 110094,
            "BalanceAmountInFunctionalCurrency": 3540
        }
    ],
    "count": 7,
    "hasMore": false,
    "limit": 25,
    "offset": 0
}

Example 2

This example describes how to get the total channel customer checkbook balances.

Example 2 cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -u username:password "https://servername/fscmRestApi/cjmRest/channelCustomerCheckbookBalances?DataForCode=ORA_TOTAL_BAL&BusinessUnitId=204&GLCalendarYear=2022"

Example 2 Response Body

The following example includes the contents of the response body in JSON format:
{
    "items": [
        {
            "DataFor": "Total Balances",
            "DataForCode": "ORA_TOTAL_BAL",
            "BusinessUnit": "Vision Operations",
            "BusinessUnitId": 204,
            "GLCalendarYear": 2022,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "AccrueToCustomer": null,
            "AccrueToAccountNumber": null,
            "AccrueToAccountId": null,
            "ProgramName": null,
            "ProgramId": null,
            "PromotionCode": null,
            "ProgramType": null,
            "ProgramTypeId": null,
            "ProgramCurrency": null,
            "ProgramCurrencyCode": null,
            "EarnedAmountInProgramCurrency": null,
            "InProgressAmountInProgramCurrency": null,
            "PaidAmountInProgramCurrency": null,
            "BalanceAmountInProgramCurrency": null,
            "EarnedAmountInFunctionalCurrency": 957835,
            "InProgressAmountInFunctionalCurrency": 16806,
            "PaidAmountInFunctionalCurrency": 913111,
            "BalanceAmountInFunctionalCurrency": 27918
        }
    ],
    "count": 1,
    "hasMore": false,
    "limit": 25,
    "offset": 0
}

Example 3

This example describes how to get program balances for a customer.

Example 3 cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -u username:password "https://servername/fscmRestApi/cjmRest/channelCustomerCheckbookBalances?DataForCode=ORA_PROGRAM_BAL&BusinessUnit=Vision Operations&GLCalendarYear=2022&AccrueToCustomerFilter=First Software"

Example 3 Response Body

The following example includes the contents of the response body in JSON format:
{
    "items": [
        {
            "DataFor": "Program Balances",
            "DataForCode": "ORA_PROGRAM_BAL",
            "BusinessUnit": "Vision Operations",
            "BusinessUnitId": 204,
            "GLCalendarYear": 2022,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "AccrueToCustomer": "First Software",
            "AccrueToAccountNumber": "20920",
            "AccrueToAccountId": 4567,
            "ProgramName": "Program 1",
            "ProgramId": 300100562692478,
            "PromotionCode": "CR14024",
            "ProgramType": "Customer Rebate",
            "ProgramTypeId": 300100562725304,
            "ProgramCurrency": "US Dollar",
            "ProgramCurrencyCode": "USD",
            "EarnedAmountInProgramCurrency": 28109,
            "InProgressAmountInProgramCurrency": 401,
            "PaidAmountInProgramCurrency": 27708,
            "BalanceAmountInProgramCurrency": 0,
            "EarnedAmountInFunctionalCurrency": 28109,
            "InProgressAmountInFunctionalCurrency": 401,
            "PaidAmountInFunctionalCurrency": 27708,
            "BalanceAmountInFunctionalCurrency": 0
        },
        {
            "DataFor": "Program Balances",
            "DataForCode": "ORA_PROGRAM_BAL",
            "BusinessUnit": "Vision Operations",
            "BusinessUnitId": 204,
            "GLCalendarYear": 2022,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "AccrueToCustomer": "First Software",
            "AccrueToAccountNumber": "20920",
            "AccrueToAccountId": 4567,
            "ProgramName": "Program 2",
            "ProgramId": 300100562648337,
            "PromotionCode": "CR15021",
            "ProgramType": "Customer Rebate",
            "ProgramTypeId": 300100562725304,
            "ProgramCurrency": "US Dollar",
            "ProgramCurrencyCode": "USD",
            "EarnedAmountInProgramCurrency": 20433,
            "InProgressAmountInProgramCurrency": 0,
            "PaidAmountInProgramCurrency": 18607,
            "BalanceAmountInProgramCurrency": 1826,
            "EarnedAmountInFunctionalCurrency": 20433,
            "InProgressAmountInFunctionalCurrency": 0,
            "PaidAmountInFunctionalCurrency": 18607,
            "BalanceAmountInFunctionalCurrency": 1826
        },
        {
            "DataFor": "Program Balances",
            "DataForCode": "ORA_PROGRAM_BAL",
            "BusinessUnit": "Vision Operations",
            "BusinessUnitId": 204,
            "GLCalendarYear": 2022,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "AccrueToCustomer": "First Software",
            "AccrueToAccountNumber": "20920",
            "AccrueToAccountId": 4567,
            "ProgramName": "Program 3",
            "ProgramId": 300100562648481,
            "PromotionCode": "CR15082",
            "ProgramType": "Customer Rebate",
            "ProgramTypeId": 300100562725304,
            "ProgramCurrency": "US Dollar",
            "ProgramCurrencyCode": "USD",
            "EarnedAmountInProgramCurrency": 41032,
            "InProgressAmountInProgramCurrency": 580,
            "PaidAmountInProgramCurrency": 35644,
            "BalanceAmountInProgramCurrency": 4808,
            "EarnedAmountInFunctionalCurrency": 41032,
            "InProgressAmountInFunctionalCurrency": 580,
            "PaidAmountInFunctionalCurrency": 35644,
            "BalanceAmountInFunctionalCurrency": 4808
        },
        {
            "DataFor": "Program Balances",
            "DataForCode": "ORA_PROGRAM_BAL",
            "BusinessUnit": "Vision Operations",
            "BusinessUnitId": 204,
            "GLCalendarYear": 2022,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "AccrueToCustomer": "First Software",
            "AccrueToAccountNumber": "20920",
            "AccrueToAccountId": 4567,
            "ProgramName": "Program 4",
            "ProgramId": 300100562648417,
            "PromotionCode": "CR15060",
            "ProgramType": "Customer Rebate",
            "ProgramTypeId": 300100562725304,
            "ProgramCurrency": "US Dollar",
            "ProgramCurrencyCode": "USD",
            "EarnedAmountInProgramCurrency": 19234,
            "InProgressAmountInProgramCurrency": 501,
            "PaidAmountInProgramCurrency": 18382,
            "BalanceAmountInProgramCurrency": 351,
            "EarnedAmountInFunctionalCurrency": 19234,
            "InProgressAmountInFunctionalCurrency": 501,
            "PaidAmountInFunctionalCurrency": 18382,
            "BalanceAmountInFunctionalCurrency": 351
        },
        {
            "DataFor": "Program Balances",
            "DataForCode": "ORA_PROGRAM_BAL",
            "BusinessUnit": "Vision Operations",
            "BusinessUnitId": 204,
            "GLCalendarYear": 2022,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "AccrueToCustomer": "First Software",
            "AccrueToAccountNumber": "20920",
            "AccrueToAccountId": 4567,
            "ProgramName": "Program 5",
            "ProgramId": 300100562606570,
            "PromotionCode": "CR15010",
            "ProgramType": "Customer Rebate",
            "ProgramTypeId": 300100562725304,
            "ProgramCurrency": "US Dollar",
            "ProgramCurrencyCode": "USD",
            "EarnedAmountInProgramCurrency": 30431,
            "InProgressAmountInProgramCurrency": 0,
            "PaidAmountInProgramCurrency": 29949,
            "BalanceAmountInProgramCurrency": 482,
            "EarnedAmountInFunctionalCurrency": 30431,
            "InProgressAmountInFunctionalCurrency": 0,
            "PaidAmountInFunctionalCurrency": 29949,
            "BalanceAmountInFunctionalCurrency": 482
        },

    ],
    "count": 5,
    "hasMore": false,
    "limit": 25,
    "offset": 0
}
Back to Top