Get all channel customer program checkbook balances

get

/fscmRestApi/cjmRest/channelCustomerProgramCheckbookBalances

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 : channelCustomerProgramCheckbookBalances
Match All
Show Source
Nested Schema : CollectionProperties
Type: object
Show Source
Nested Schema : channelCustomerProgramCheckbookBalances-allOf[1]
Type: object
Show Source
Nested Schema : Items
Type: array
Title: Items
The items in the collection.
Show Source
Nested Schema : channelCustomerProgramCheckbookBalances-item-response
Match All
Show Source
Nested Schema : channelCustomerProgramCheckbookBalances-item
Type: object
Show Source
Nested Schema : channelCustomerProgramCheckbookBalances-item-response-allOf[1]
Type: object
Back to Top

Examples

This example describes how to get channel customer program 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/resources/version/cjmRest/channelCustomerProgramCheckbookBalances"

Example 1

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

Example 1 cURL Command

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

curl -u username:password "https://servername/fscmRestApi/resources/version/cjmRest/channelCustomerProgramCheckbookBalances?DataForCode=ORA_CUSTOMER_BAL&ProgramId=300100562606570"

Example 1 Response Body

The following shows an example of the response body in JSON format.
{
    "items": [
        {
            "DataFor": "Customer Balances",
            "DataForCode": "ORA_CUSTOMER_BAL",
            "ProgramName": "Summer Special",
            "ProgramId": 300100562606570,
            "PromotionCode": "CR15010",
            "AccrueToCustomer": "Big Computers",
            "AccrueToAccountNumber": "10022",
            "AccrueToAccountId": 1001,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "ProgramCurrency": "US Dollar",
            "ProgramCurrencyCode": "USD",
            "EarnedAmountInProgramCurrency": 28109,
            "InProgressAmountInProgramCurrency": 401,
            "PaidAmountInProgramCurrency": 27708,
            "BalanceAmountInProgramCurrency": 0,
            "EarnedAmountInFunctionalCurrency": 28109,
            "InProgressAmountInFunctionalCurrency": 401,
            "PaidAmountInFunctionalCurrency": 27708,
            "BalanceAmountInFunctionalCurrency": 0,
            "BillToAccountNumber": null,
            "BillToCustomer": null,
            "BillToAccountId": null,
            "BillToSite": null,
            "BillToSiteUseId": null,
            "BillToSiteAddress": null
        },
        {
            "DataFor": "Customer Balances",
            "DataForCode": "ORA_CUSTOMER_BAL",
            "ProgramName": "Summer Special",
            "ProgramId": 300100562606570,
            "PromotionCode": "CR15010",
            "AccrueToCustomer": "Blue Semiconductor",
            "AccrueToAccountNumber": "10045",
            "AccrueToAccountId": 1290,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "ProgramCurrency": "US Dollar",
            "ProgramCurrencyCode": "USD",
            "EarnedAmountInProgramCurrency": 20433,
            "InProgressAmountInProgramCurrency": 0,
            "PaidAmountInProgramCurrency": 18607,
            "BalanceAmountInProgramCurrency": 1826,
            "EarnedAmountInFunctionalCurrency": 20433,
            "InProgressAmountInFunctionalCurrency": 0,
            "PaidAmountInFunctionalCurrency": 18607,
            "BalanceAmountInFunctionalCurrency": 1826,
            "BillToAccountNumber": null,
            "BillToCustomer": null,
            "BillToAccountId": null,
            "BillToSite": null,
            "BillToSiteUseId": null,
            "BillToSiteAddress": null
        },
        {
            "DataFor": "Customer Balances",
            "DataForCode": "ORA_CUSTOMER_BAL",
            "ProgramName": "Summer Special",
            "ProgramId": 300100562606570,
            "PromotionCode": "CR15010",
            "AccrueToCustomer": "Fantastic Laptops",
            "AccrueToAccountNumber": "10072",
            "AccrueToAccountId": 2580,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "ProgramCurrency": "US Dollar",
            "ProgramCurrencyCode": "USD",
            "EarnedAmountInProgramCurrency": 41032,
            "InProgressAmountInProgramCurrency": 580,
            "PaidAmountInProgramCurrency": 35644,
            "BalanceAmountInProgramCurrency": 4808,
            "EarnedAmountInFunctionalCurrency": 41032,
            "InProgressAmountInFunctionalCurrency": 580,
            "PaidAmountInFunctionalCurrency": 35644,
            "BalanceAmountInFunctionalCurrency": 4808,
            "BillToAccountNumber": null,
            "BillToCustomer": null,
            "BillToAccountId": null,
            "BillToSite": null,
            "BillToSiteUseId": null,
            "BillToSiteAddress": null
        },
        {
            "DataFor": "Customer Balances",
            "DataForCode": "ORA_CUSTOMER_BAL",
            "ProgramName": "Summer Special",
            "ProgramId": 300100562606570,
            "PromotionCode": "CR15010",
            "AccrueToCustomer": "First Software",
            "AccrueToAccountNumber": "20920",
            "AccrueToAccountId": 3347,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "ProgramCurrency": "US Dollar",
            "ProgramCurrencyCode": "USD",
            "EarnedAmountInProgramCurrency": 19234,
            "InProgressAmountInProgramCurrency": 501,
            "PaidAmountInProgramCurrency": 18382,
            "BalanceAmountInProgramCurrency": 351,
            "EarnedAmountInFunctionalCurrency": 19234,
            "InProgressAmountInFunctionalCurrency": 501,
            "PaidAmountInFunctionalCurrency": 18382,
            "BalanceAmountInFunctionalCurrency": 351,
            "BillToAccountNumber": null,
            "BillToCustomer": null,
            "BillToAccountId": null,
            "BillToSite": null,
            "BillToSiteUseId": null,
            "BillToSiteAddress": null
        },
        {
            "DataFor": "Customer Balances",
            "DataForCode": "ORA_CUSTOMER_BAL",
            "ProgramName": "Summer Special",
            "ProgramId": 300100562606570,
            "PromotionCode": "CR15010",
            "AccrueToCustomer": "Green Corp.",
            "AccrueToAccountNumber": "21392",
            "AccrueToAccountId": 6250,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "ProgramCurrency": "US Dollar",
            "ProgramCurrencyCode": "USD",
            "EarnedAmountInProgramCurrency": 30431,
            "InProgressAmountInProgramCurrency": 0,
            "PaidAmountInProgramCurrency": 29949,
            "BalanceAmountInProgramCurrency": 482,
            "EarnedAmountInFunctionalCurrency": 30431,
            "InProgressAmountInFunctionalCurrency": 0,
            "PaidAmountInFunctionalCurrency": 29949,
            "BalanceAmountInFunctionalCurrency": 482,
            "BillToAccountNumber": null,
            "BillToCustomer": null,
            "BillToAccountId": null,
            "BillToSite": null,
            "BillToSiteUseId": null,
            "BillToSiteAddress": null
        },

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

Example 2

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

Example 2 cURL Command

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

curl -u username:password "https://servername/fscmRestApi/resources/version/cjmRest/channelCustomerProgramCheckbookBalances?DataForCode=ORA_TOTAL_BAL&ProgramId=300100562606570"

Example 2 Response Body

The following shows an example of the response body in JSON format.
{
    "items": [
        {
            "DataFor": "Total Balances",
            "DataForCode": "ORA_TOTAL_BAL",
            "ProgramName": "Summer Special",
            "ProgramId": 300100562606570,
            "PromotionCode": "CR15010",
            "AccrueToCustomer": null,
            "AccrueToAccountNumber": null,
            "AccrueToAccountId": null,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "ProgramCurrency": "US Dollar",
            "ProgramCurrencyCode": "USD",
            "EarnedAmountInProgramCurrency": 139239,
            "InProgressAmountInProgramCurrency": 1482,
            "PaidAmountInProgramCurrency": 130290,
            "BalanceAmountInProgramCurrency": 7467,
            "EarnedAmountInFunctionalCurrency": 139239,
            "InProgressAmountInFunctionalCurrency": 1482,
            "PaidAmountInFunctionalCurrency": 130290,
            "BalanceAmountInFunctionalCurrency": 7467,
            "BillToAccountNumber": null,
            "BillToCustomer": null,
            "BillToAccountId": null,
            "BillToSite": null,
            "BillToSiteUseId": null,
            "BillToSiteAddress": null
        }
    ],
    "count": 1,
    "hasMore": false,
    "limit": 25,
    "offset": 0
}

Example 3

This example describes how to get Bill-to 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/resources/version/cjmRest/channelCustomerProgramCheckbookBalances?DataForCode=ORA_BILL_TO_BAL&ProgramId=300100562606570&AccrueToAccountIdFilter=1290"

Example 3 Response Body

The following shows an example of the response body in JSON format.
{
    "items": [
        {
            "DataFor": "Bill-to Balances",
            "DataForCode": "ORA_BILL_TO_BAL",
            "ProgramName": "Summer Special",
            "ProgramId": 300100562606570,
            "PromotionCode": "CR15010",
            "AccrueToCustomer": "Blue Semiconductor",
            "AccrueToAccountNumber": "10045",
            "AccrueToAccountId": 1290,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "ProgramCurrency": "US Dollar",
            "ProgramCurrencyCode": "USD",
            "EarnedAmountInProgramCurrency": 20433,
            "InProgressAmountInProgramCurrency": 0,
            "PaidAmountInProgramCurrency": 18607,
            "BalanceAmountInProgramCurrency": 1826,
            "EarnedAmountInFunctionalCurrency": 20433,
            "InProgressAmountInFunctionalCurrency": 0,
            "PaidAmountInFunctionalCurrency": 18607,
            "BalanceAmountInFunctionalCurrency": 1826,
            "BillToAccountNumber": "10045",
            "BillToCustomer": "Blue Semiconductor",
            "BillToAccountId": 1008,
            "BillToSite": "Foster City",
            "BillToSiteUseId": 1036,
            "BillToSiteAddress": "123 Rock Harbor Lane, Detroit, MI"
        }
    ],
    "count": 1,
    "hasMore": false,
    "limit": 25,
    "offset": 0
}

Example 4

This example describes how to get customer balances for a program when the customer is using a promotion code.

Example 4 cURL Command

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

curl -u username:password "https://servername/fscmRestApi/resources/version/cjmRest/channelCustomerProgramCheckbookBalances?DataForCode=ORA_CUSTOMER_BAL&PromotionCode='CR15010'&AccrueToAccountIdFilter=1290"

Example 4 Response Body

The following shows an example of the response body in JSON format.
{
    "items": [
        {
            "DataFor": "Customer Balances",
            "DataForCode": "ORA_CUSTOMER_BAL",
            "ProgramName": "Summer Special",
            "ProgramId": 300100562606570,
            "PromotionCode": "CR15010",
            "AccrueToCustomer": "Blue Semiconductor",
            "AccrueToAccountNumber": "10045",
            "AccrueToAccountId": 1290,
            "FunctionalCurrency": "US Dollar",
            "FunctionalCurrencyCode": "USD",
            "ProgramCurrency": "US Dollar",
            "ProgramCurrencyCode": "USD",
            "EarnedAmountInProgramCurrency": 20433,
            "InProgressAmountInProgramCurrency": 0,
            "PaidAmountInProgramCurrency": 18607,
            "BalanceAmountInProgramCurrency": 1826,
            "EarnedAmountInFunctionalCurrency": 20433,
            "InProgressAmountInFunctionalCurrency": 0,
            "PaidAmountInFunctionalCurrency": 18607,
            "BalanceAmountInFunctionalCurrency": 1826,
            "BillToAccountNumber": null,
            "BillToCustomer": null,
            "BillToAccountId": null,
            "BillToSite": null,
            "BillToSiteUseId": null,
            "BillToSiteAddress": null
        }
    ],
    "count": 1,
    "hasMore": false,
    "limit": 25,
    "offset": 0
}
Back to Top