Update a voucher

patch

/crmRestApi/resources/11.13.18.05/loyMembers/{MemberNumber}/child/vouchers/{VoucherNumber}

Request

Path Parameters
  • The member number. This attribute is an alternative identifier for a loyalty member and is displayed in the UI. There is no default value, dependency, or limitation associated with this attribute.
  • 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 a parameter for the validateVoucherFinder finder. There is no default value, dependency, or limitation associated with this attribute.
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.
Supported Media Types
Request Body - application/json ()
The following table describes the body parameters in the request for this task.
Root Schema : schema
Type: object
Show Source
  • Title: Action Note
    Maximum Length: 1000
    The attribute indicates additional information pertaining to a voucher action for which the voucher was created. 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
    Maximum Length: 30
    This is a FND lookup value. To get the possible input values, the user needs to first invoke corresponding lovResourcepath URL: ../crmRestApi/resources/11.12.0.0/fndStaticLookups?finder=LookupTypeActiveEnabledOrBindCodeFinder%3BBindLookupType%3DORA_LOY_MEM_VOUC_BASIS 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 currency amount which signifies the value of the voucher based on currency. There is no default value, dependency, nor 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: 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: Voucher ID
    The primary key identifier which signifies unique value for a generated voucher record. There is no default value, dependency, nor 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 loyaltyMember 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: Organization Code
    Maximum Length: 18
    The organization code associated with the member voucher. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Product Number
    The identifier of the product for an existing voucher, that is used for specifying product information. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Quantity
    Default Value: 1
    The voucher quantity which shows how many vouchers are assigned by the transaction processing. There is no default value 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 can be obtained by invoking fndStaticLookups?finder=LookupTypeActiveEnabledOrBindCodeFinder%3BBindLookupType%3DORA_LOY_MEM_VOUC_STATUS. The StatusCode attribute can be changed from ORA_VOUC_STATUS_AVLBL to ORA_VOUC_STATUS_USED only through a PATCH request. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Transaction Item ID
    The transaction item identifier which signifies the transaction identifier assigned while processing the transaction. There is no default value, dependency, nor 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
    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.
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 : loyMembers-vouchers-item-response
Type: object
Show Source
  • Title: Action Note
    Maximum Length: 1000
    The attribute indicates additional information pertaining to a voucher action for which the voucher was created. 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 list of value meaning for the Basis code. There is no default value or limitation associated with this attribute.
  • Title: Voucher Basis
    Maximum Length: 30
    This is a FND lookup value. To get the possible input values, the user needs to first invoke corresponding lovResourcepath URL: ../crmRestApi/resources/11.12.0.0/fndStaticLookups?finder=LookupTypeActiveEnabledOrBindCodeFinder%3BBindLookupType%3DORA_LOY_MEM_VOUC_BASIS There is no default value, dependency, or limitation associated with this attribute.
  • Title: Redeemed Transaction Number
    Maximum Length: 30
    The transaction number that 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 a 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 currency amount which signifies the value of the voucher based on currency. There is no default value, dependency, nor 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 product as the VoucherType, 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, 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: 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 there are any changes to the voucher. There is no default value, dependency, or limitation associated with this attribute.
  • Links
  • Title: Voucher ID
    The primary key identifier which signifies unique value for a generated voucher record. There is no default value, dependency, nor 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 loyaltyMember 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 for which the voucher was created. There is no default value, dependency, or limitation associated with this attribute.
  • Title: Organization Code
    Maximum Length: 18
    The organization code associated with the member 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, that is used 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 that was applied to the transaction during transaction processing and that created this voucher.There is no default value, dependency, or limitation associated with this attribute.
  • Title: Quantity
    Default Value: 1
    The voucher quantity which shows how many vouchers are assigned by the transaction processing. There is no default value 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 can be obtained by invoking fndStaticLookups?finder=LookupTypeActiveEnabledOrBindCodeFinder%3BBindLookupType%3DORA_LOY_MEM_VOUC_STATUS. The StatusCode attribute can be changed from ORA_VOUC_STATUS_AVLBL to ORA_VOUC_STATUS_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 voucher status meaning which shows the voucher status as follows: Available, Expired, Used, and so on. There is no default value, dependency, nor limitation associated with this attribute.
  • Title: Transaction ID
    Read Only: true
    The transaction Identifier which led to the assignment of loyalty vouchers due to transaction processing. There is no default value or limitation associated with this attribute.
  • Title: Transaction Item ID
    The transaction item identifier which signifies the transaction identifier assigned while processing the transaction. There is no default value, dependency, nor limitation associated with this attribute.
  • Title: Transaction Number
    Read Only: true
    Maximum Length: 30
    The transaction number that shows the transaction processing that has assigned this voucher to member. There is no default value 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 list of value meaning for the voucher basis code, which signifies whether the voucher is absolute or percentage based. There is no default value, dependency, nor 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 a parameter for the validateVoucherFinder finder. There is no default value, dependency, or limitation associated with this attribute.
Back to Top