GET api/Customer/PurchaseOrders/{affiliateId}/{username}

Return all purchase orders details for customer

Request Information

URI Parameters

NameDescriptionTypeAdditional information
affiliateId

Affiliate Id

integer

Required

username

Customer name or email address

string

Required

v

The requested API version

string

Default value is 2.0

Body Parameters

None.

Response Information

Resource Description

Return all purchase orders details for customer

Collection of FilmFlex.Platform.Common.API.Contracts.V2.PurchaseOrderDTO
NameDescriptionTypeAdditional information
Id

Purchase Order Id

integer

None.

MerchantRef

Payment gateway Merchant reference

globally unique identifier

None.

CustomerId

Internal Customer Id

globally unique identifier

None.

Status

Purchase Order Status

FilmFlex.Platform.Common.API.Contracts.V2.PurchaseOrderStatusDTO

None.

OfferType

Gets or sets the type of the offer.

string

None.

CreateDate

Date created

date

None.

PurchaseOrderItemDtos

The associated purchase order items

Collection of FilmFlex.Platform.Common.API.Contracts.V2.PurchaseOrderItemDTO

None.

PaymentProvider

PaymentProvider

string

None.

PaymentProviderCustomerId

PaymentProviderCustomerId

string

None.

PaymentProviderTransactionId

Payment Provider Transaction Id

string

None.

PaymentProviderRefundTransId

Payment Provider Refund Transaction Id

string

None.

OfferTypeId

Gets or sets the offer type identifier.

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "MerchantRef": "746dcc8b-ef46-4be8-abf3-a9b2d2304dfb",
    "CustomerId": "1b01b296-1469-4c46-b14b-c46719621538",
    "Status": {
      "Id": 1,
      "Code": "sample string 2",
      "Name": "sample string 3"
    },
    "OfferType": "sample string 4",
    "CreateDate": "2025-09-04T07:11:51.697108+00:00",
    "PurchaseOrderItemDtos": [
      {
        "Id": 1,
        "PurchaseOrderId": 2,
        "OfferId": 3,
        "UnitPrice": 4.0,
        "SupplierRef": "sample string 5",
        "TimeOfFirstPlay": "2025-09-04T07:11:51.697108+00:00",
        "RentalTime": 1,
        "ViewTime": 1,
        "Title": "sample string 6",
        "BbfcRating": "sample string 7",
        "Duration": 8,
        "Deleted": true,
        "RequiresPreRoll": true,
        "PersistentLicenseIssued": true,
        "IsDtr": true,
        "SupportedDevices": "sample string 11",
        "ShippingIds": "sample string 12",
        "DrmProfile": "sample string 13",
        "LicenseAcknowledged": true,
        "EntitlementTypeId": 15,
        "CreatedDate": "2025-09-04T07:11:51.697108+00:00",
        "TimeUserFirstStreamed": "2025-09-04T07:11:51.697108+00:00",
        "TimeUserFirstDownloaded": "2025-09-04T07:11:51.697108+00:00",
        "DeviceIdOfFirstPlay": 1,
        "PaymentProvider": "sample string 17",
        "PaymentProviderTransactionId": "sample string 18",
        "Inherited": true
      },
      {
        "Id": 1,
        "PurchaseOrderId": 2,
        "OfferId": 3,
        "UnitPrice": 4.0,
        "SupplierRef": "sample string 5",
        "TimeOfFirstPlay": "2025-09-04T07:11:51.697108+00:00",
        "RentalTime": 1,
        "ViewTime": 1,
        "Title": "sample string 6",
        "BbfcRating": "sample string 7",
        "Duration": 8,
        "Deleted": true,
        "RequiresPreRoll": true,
        "PersistentLicenseIssued": true,
        "IsDtr": true,
        "SupportedDevices": "sample string 11",
        "ShippingIds": "sample string 12",
        "DrmProfile": "sample string 13",
        "LicenseAcknowledged": true,
        "EntitlementTypeId": 15,
        "CreatedDate": "2025-09-04T07:11:51.697108+00:00",
        "TimeUserFirstStreamed": "2025-09-04T07:11:51.697108+00:00",
        "TimeUserFirstDownloaded": "2025-09-04T07:11:51.697108+00:00",
        "DeviceIdOfFirstPlay": 1,
        "PaymentProvider": "sample string 17",
        "PaymentProviderTransactionId": "sample string 18",
        "Inherited": true
      }
    ],
    "PaymentProvider": "sample string 6",
    "PaymentProviderCustomerId": "sample string 7",
    "PaymentProviderTransactionId": "sample string 8",
    "PaymentProviderRefundTransId": "sample string 9",
    "OfferTypeId": 10
  },
  {
    "Id": 1,
    "MerchantRef": "746dcc8b-ef46-4be8-abf3-a9b2d2304dfb",
    "CustomerId": "1b01b296-1469-4c46-b14b-c46719621538",
    "Status": {
      "Id": 1,
      "Code": "sample string 2",
      "Name": "sample string 3"
    },
    "OfferType": "sample string 4",
    "CreateDate": "2025-09-04T07:11:51.697108+00:00",
    "PurchaseOrderItemDtos": [
      {
        "Id": 1,
        "PurchaseOrderId": 2,
        "OfferId": 3,
        "UnitPrice": 4.0,
        "SupplierRef": "sample string 5",
        "TimeOfFirstPlay": "2025-09-04T07:11:51.697108+00:00",
        "RentalTime": 1,
        "ViewTime": 1,
        "Title": "sample string 6",
        "BbfcRating": "sample string 7",
        "Duration": 8,
        "Deleted": true,
        "RequiresPreRoll": true,
        "PersistentLicenseIssued": true,
        "IsDtr": true,
        "SupportedDevices": "sample string 11",
        "ShippingIds": "sample string 12",
        "DrmProfile": "sample string 13",
        "LicenseAcknowledged": true,
        "EntitlementTypeId": 15,
        "CreatedDate": "2025-09-04T07:11:51.697108+00:00",
        "TimeUserFirstStreamed": "2025-09-04T07:11:51.697108+00:00",
        "TimeUserFirstDownloaded": "2025-09-04T07:11:51.697108+00:00",
        "DeviceIdOfFirstPlay": 1,
        "PaymentProvider": "sample string 17",
        "PaymentProviderTransactionId": "sample string 18",
        "Inherited": true
      },
      {
        "Id": 1,
        "PurchaseOrderId": 2,
        "OfferId": 3,
        "UnitPrice": 4.0,
        "SupplierRef": "sample string 5",
        "TimeOfFirstPlay": "2025-09-04T07:11:51.697108+00:00",
        "RentalTime": 1,
        "ViewTime": 1,
        "Title": "sample string 6",
        "BbfcRating": "sample string 7",
        "Duration": 8,
        "Deleted": true,
        "RequiresPreRoll": true,
        "PersistentLicenseIssued": true,
        "IsDtr": true,
        "SupportedDevices": "sample string 11",
        "ShippingIds": "sample string 12",
        "DrmProfile": "sample string 13",
        "LicenseAcknowledged": true,
        "EntitlementTypeId": 15,
        "CreatedDate": "2025-09-04T07:11:51.697108+00:00",
        "TimeUserFirstStreamed": "2025-09-04T07:11:51.697108+00:00",
        "TimeUserFirstDownloaded": "2025-09-04T07:11:51.697108+00:00",
        "DeviceIdOfFirstPlay": 1,
        "PaymentProvider": "sample string 17",
        "PaymentProviderTransactionId": "sample string 18",
        "Inherited": true
      }
    ],
    "PaymentProvider": "sample string 6",
    "PaymentProviderCustomerId": "sample string 7",
    "PaymentProviderTransactionId": "sample string 8",
    "PaymentProviderRefundTransId": "sample string 9",
    "OfferTypeId": 10
  }
]