Get a purchased product

get

/services/rest/connect/v1.4/purchasedProducts/{id}

Request

Path Parameters
Back to Top

Response

Default Response

Body ()
Root Schema : purchasedProducts
Type: object
The information about a purchased product.
Show Source
  • The information on email marketing campaigns created in Oracle B2C Service Outreach Cloud Service. It is the reference to a resource in 'campaigns' collection. Only ID or lookupName can be provided to specify the resource.
  • Maximum Length: 1333
    The comments or notes associated with the line item.
  • The customers or end users of Oracle B2C Service site. A contact contains basic information such as a customer's name, email address, and phone number. It also contains information about customer service issues, opportunities, and marketing mailings subscription status. It is the reference to a resource in 'contacts' collection. Only ID or lookupName can be provided to specify the resource.
  • The date and time when the purchased product was created. This attribute is read-only.
  • The account represents a staff member in Oracle B2C Service. Examples of staff members are customer sales representatives, sales agents, site administrators, and so on. It is the reference to a resource in 'accounts' collection. Only ID or lookupName can be provided to specify the resource.
  • Minimum Value: 1
    Maximum Value: 9223372036854776000
    The unique identifier of the purchased product.
  • The end date of the license.
  • The start date of the license.
  • Maximum Length: 255
    The name used to look up the purchased product.
  • namedIDs-purchasedProducts-mailing
    An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
  • The information about a specific sale or a pending deal with a contact or an organization that is tracked and maintained in the Oracle B2C Service knowledge base. It is the reference to a resource in 'opportunities' collection. Only ID or lookupName can be provided to specify the resource.
  • The company, business unit of a large company, or government agency that has an organization record in the Oracle B2C Service knowledge base. It is the reference to a resource in 'organizations' collection. Only ID or lookupName can be provided to specify the resource.
  • purchasedProducts-price
    The monetary value that consists of currency, exchange rate, and value.
  • The date and time of the purchase.
  • The items or services sold by an organization. Sales products are available to customers through quotes and promotions. It is the reference to a resource in 'salesProducts' collection. Only ID or lookupName can be provided to specify the resource.
  • Maximum Length: 80
    Pattern: ^[^ ]*$
    The serial number of the purchased product.
  • The date and time when the purchased product was last updated. This attribute is read-only.
Nested Schema : namedIDs-purchasedProducts-mailing
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : purchasedProducts-price
Type: object
The monetary value that consists of currency, exchange rate, and value.
Show Source
Nested Schema : namedIDs-purchasedProducts-price-currency
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-purchasedProducts-price-exchangeRate
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Back to Top

Examples

Use GET with the following syntax to retrieve a specific purchased product:

https://your_site_interface/services/rest/connect/version/purchasedProducts/product_id

Request URI example

https://mysite.example.com/services/rest/connect/v1.4/purchasedProducts/6

Response body example

{
  "id": 6,
  "lookupName": "6",
  "campaign": null,
  "comment": null,
  "contact": null,
  "customFields": {
    "c": {}
  },
  "finalizedByAccount": null,
  "licenseEndTime": null,
  "licenseStartTime": null,
  "mailing": null,
  "opportunity": null,
  "organization": null,
  "price": {
    "currency": {
      "id": 1,
      "lookupName": "USD"
    },
    "exchangeRate": null,
    "value": 750
  },
  "purchaseTime": null,
  "salesProduct": {
    "links": [
      {
        "rel": "self",
        "href": "https://mysite.example.com/services/rest/connect/v1.4/salesProducts/4"
      },
      {
        "rel": "canonical",
        "href": "https://mysite.example.com/services/rest/connect/v1.4/salesProducts/4"
      },
      {
        "rel": "describedby",
        "href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/salesProducts",
        "mediaType": "application/schema+json"
      }
    ]
  },
  "serialNumber": "SN0007",
  "links": [
    {
      "rel": "self",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/purchasedProducts/6"
    },
    {
      "rel": "canonical",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/purchasedProducts/6"
    },
    {
      "rel": "describedby",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/purchasedProducts",
      "mediaType": "application/schema+json"
    }
  ]
}
Back to Top