Get a loyalty transaction voucher assigned during transaction processing

get

/crmRestApi/resources/11.13.18.05/loyTransactions/{LoyTransactionId}/child/Vouchers/{LoyMemVchrId}

Request

Path Parameters
  • The primary key to identify a loyalty voucher. Oracle Loyalty Cloud generates this attribute value when it assigns a voucher action or the value can be provided as input when creating a voucher using the resource. There is no default value, dependency, or limitation associated with this attribute.
  • The primary key to identify a transaction. Oracle Loyalty Cloud generates this attribute value during the creation of a transaction record. There is no default value, dependency, or limitation associated with this attribute.
Query Parameters
  • This parameter specifies dependencies which are fields that are set before and rolled back after generating the response. Generally they are used to preview the effects of an attribute change. The fields specified in this parameter are always set in the resource instance in question. When a child resource collection is requested and the parameter is set, the fields will be set in the parent resource instance before generating the resource collection payload. The value of this query parameter is a set of dependency fields. Example: dependency=ProductId=2

    Format: <attr1>=<val1>,<attr2>=<value2>
  • When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". More than one child can be specified using comma as a separator. Example: ?expand=Employees,Localizations. Nested children can also be provided following the format "Child.NestedChild" (Example: ?expand=Employees.Managers). If a nested child is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?expand=Employees.Managers" is the same as "?expand=Employees,Employees.Managers" (which will expand Employees and Managers).
  • This parameter filters the resource fields. Only the specified fields are returned, which means that if no fields are specified, no fields are returned (useful to get only the links). If an indirect child resource is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?fields=Employees.Managers:Empname" is the same as "?fields=;Employees:;Employees.Managers:Empname" (which will only return the "Empname" field for Managers). the value of this query parameter is a list of resource fields. The attribute can be a direct (Example: Employees) or indirect (Example: Employees.Managers) child. It cannot be combined with expand query parameter. If both are provided, only fields will be considered.

    Format: ?fields=Attribute1,Attribute2

    Format for fields in child resource: ?fields=Accessor1:Attribute1,Attribute2
  • This parameter can be used to show only certain links while accessing a singular resource or a resource collection. The parameter value format is a comma-separated list of : <link_relation>

    Example:
    self,canonical
  • The resource item payload will be filtered in order to contain only data (no links section, for example).
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.

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.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : loyTransactions-Vouchers-item-response
Type: object
Show Source
  • Title: Action Note
    Maximum Length: 1000
    The attribute indicates additional information pertaining to the voucher action that resulted in the creation of the voucher. There is no default value or limitation associated with this attribute.
  • The date used by Oracle Loyalty Cloud to fetch a valid voucher for a given activity date. The ActivityDate attribute is a parameter used in the availableVoucherFinder and the validateVoucherFinder finders. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Voucher Basis Meaning
    Read Only: true
    Maximum Length: 80
    The attribute represents the list of value meaning for the basis code and the value displays the reason why the member received the voucher. The accepted values are: Accrual, Redemption and Tier Reward. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Voucher Basis
    Maximum Length: 30
    The voucher assignment based on the transaction type. The accepted values are ORA_VOUC_BASIS_ACC, ORA_VOUC_BASIS_TIER, and so on. This attribute is set to ORA_VOUC_BASIS_ACC for accrual transactions and ORA_VOUC_BASIS_RED for redemption transactions. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Redeemed Transaction Number
    Maximum Length: 30
    The transaction number which used this voucher. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    The details of who created the voucher. Oracle Loyalty Cloud generates this attribute value during the creation of new voucher. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Creation Date
    Read Only: true
    The date when the voucher was created. Oracle Loyalty Cloud generates this attribute value during the creation of a new voucher. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Currency Exchange Date
    The currency exchange date associated with the voucher. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Voucher Discount Value
    The attribute specifies the currency amount. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Currency Code
    Maximum Length: 15
    The currency code associated with the voucher. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Type
    Read Only: true
    Maximum Length: 240
    The product description for the voucher. The user enters the description of the product as the VoucherType attribute, which is displayed as the product description on the Loyalty Voucher UI page. Oracle Loyalty Cloud assigns the ProdId attribute value with the identifier of the product when the user inputs the product description. There is no default value, dependency, or limitation associated with this attribute.
  • Read Only: true
    The voucher discount value. If the DiscountType attribute of a voucher is set to Percentage, the value of discount must be a positive integer. This value is provided as an input value from a user when creating the voucher. There is no default value or limitation associated with this attribute.
  • Title: Expiration Date
    The expiration date of the voucher. Oracle Loyalty Cloud generates this attribute value when it assigns a voucher action or the attribute value can be provided as an input when creating a voucher using the resource. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Inventory Organization ID
    The unique identifier of the organization that provides the inventory when the user is redeeming the vouchers. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Change Date
    Read Only: true
    The date when the voucher was last updated. Oracle Loyalty Cloud generates this attribute value and updates it whenever there are any changes to the voucher. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Changed By
    Read Only: true
    Maximum Length: 64
    The user who last updated the voucher. Oracle Loyalty Cloud generates this attribute value, and updates it whenever any changes to the voucher take place. There is no default value, dependency, or limitation associated with this attribute.
  • Links
  • Title: Voucher ID
    The primary key to identify a loyalty voucher. Oracle Loyalty Cloud generates this attribute value when it assigns a voucher action or the value can be provided as input when creating a voucher using the resource. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Member ID
    The primary key of the member to whom the voucher is assigned. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Member Number
    The member number of the loyMember attribute to whom the voucher is assigned. The MemberNumber attribute is used when assigning a voucher or creating a voucher using the resource. The MemberNumber attribute is also used as a parameter in the availableVoucherFinder finder. There is no default value or dependency associated with this attribute.
  • Title: Promotion
    Read Only: true
    Maximum Length: 50
    The attribute indicates the name of the promotion that resulted in the creation of the voucher. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Organization Code
    Maximum Length: 18
    The organization code associated with the voucher. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Original Voucher Number
    Maximum Length: 30
    The original voucher number associated with the voucher. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Primary Contact ID
    Read Only: true
    The attribute indicates the primary contact identifier of the member for whom the voucher was created. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Product Number
    The identifier of the product for an existing voucher for specifying product information. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Promotion Number
    Maximum Length: 30
    The promotion number which applied to the transaction and created this voucher. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Quantity
    Default Value: 1
    The attribute specifies the number of vouchers. There is no default value, dependency or limitation associated with this attribute.
  • Title: Status
    Maximum Length: 30
    Default Value: ORA_VOUC_STATUS_AVLBL
    The attribute indicates the status of the voucher. The accepted values are ORA_VOUC_STATUS_AVLBL, ORA_VOUC_STATUS_USED, ORA_VOUC_STATUS_CANC, and so on. The VoucherStatus attribute can be changed from Available to Used only through a PATCH request. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Voucher Status Meaning
    Read Only: true
    Maximum Length: 80
    The attribute represents the list of values meaning for status code of the voucher. The accepted values are: Available, Used, Cancelled, and so on. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Transaction ID
    Read Only: true
    The attribute is the foreign key of the transaction which uniquely identifies the transaction that caused the voucher to be assigned to a member. There is no default value, dependency or limitation associated with this attribute.
  • Title: Transaction Item ID
    The transaction item identifier attribute displays the details that caused the voucher to be generated. There is no default value, dependency or limitation associated with this attribute.
  • Title: Transaction Number
    Read Only: true
    Maximum Length: 30
    The transaction number attribute is an alternate key that uniquely identifies a transaction to which the voucher belongs. There is no default value, dependency or limitation associated with this attribute.
  • Title: Used Date
    The date when a valid voucher that is available is changed to the Used status. This date gets assigned when the voucher status is changed from Available to Used status through a PATCH request. There is no default value, dependency, or limitation associated with this attribute.
  • The date when a valid voucher that is available is changed to the Used status. This date gets assigned when the voucher status is changed from Available to Used status through a PATCH request. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Discount Type Meaning
    Read Only: true
    Maximum Length: 80
    The attribute represents the list of value meaning for voucher basis code. The attribute indicates the discount type that the voucher offers. The accepted values are: Absolute Value or Percentage. It is provided as input from a user when creating the voucher. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Discount Type
    Maximum Length: 30
    The attribute indicates the discount type that the voucher offers. Accepted values are ORA_VOUC_BASIS_ABSOLUTE or ORA_VOUC_BASIS_PERCENTAGE. It is provided as input from a user when creating the voucher. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Voucher Discount Value
    The voucher discount value. If the DiscountType attribute of a voucher is set to Percentage, then the value of discount must be a positive integer. This value is provided as an input value from a user when creating the voucher. There is no default value or limitation associated with this attribute.
  • Title: Start Date
    The date when the voucher is in effect. This date is assigned during an Assign Voucher action or when the voucher is created using the resource. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Voucher Number
    Maximum Length: 30
    The alternative way to identify a voucher. The UI shows the voucher number but the VoucherNumber attribute is used in the URI to update a voucher record using the resource. The VoucherNumber attribute can also be used as parameter for the validateVoucherFinder finder. There is no default value, dependency, or limitation associated with this attribute.
Back to Top