Skip to main content

Nexway Connect (1.0)

Download OpenAPI specification:Download

Nexway Connect API

Catalog

Get all categories and subcategories of Nexway products

Get all categories and subcategories of Nexway products

Authorizations:
Bearer
path Parameters
language
required
string

Categories description language

header Parameters
secret
required
string

Access secret

Responses

Response samples

Content type
application/json
{
  • "responseCode": 0,
  • "responseMessage": "OK",
  • "categoryList": [
    ]
}

Get all operating systems of Nexway products

Get all operating systems of Nexway products

Authorizations:
Bearer
header Parameters
secret
required
string

Access secret

Responses

Response samples

Content type
application/json
{
  • "responseCode": 0,
  • "responseMessage": "OK",
  • "osList": [
    ]
}

Order

Create a new order

Create a new order entry

Authorizations:
Bearer
header Parameters
secret
required
string

Access secret

Request Body schema: application/json
required

CreateOrderRequest

partnerOrderNumber
required
string

Your unique order number

orderDate
required
string

The date of the order, must respect the ISO 8601 format. Example: 2004-02-12T15:19:21+00:00

marketingProgramId
string

Allows the marketing department to find the order

currency
required
string

The currency used for the transaction, must respect the ISO 4217 format. Example: EUR

required
Array of objects (OrderLines)

The details of products in the order

required
object (Customer)

Contains information about the customer

object (Payment)

Contains payment information.

Array of objects (Discount)

Allows to set one or many discounts

Array of objects (OrderMetadata)

Allows to set various type of data

Responses

Request samples

Content type
application/json
{
  • "partnerOrderNumber": "XXXXXXXXXXXXX",
  • "orderDate": "2004-02-12T15:19:21+00:00",
  • "marketingProgramId": "XXXXXXXXXXXXX",
  • "currency": "EUR",
  • "orderLines": [
    ],
  • "customer": {
    },
  • "payment": {
    },
  • "discounts": [
    ],
  • "metadata": [
    ]
}

Response samples

Content type
application/json
{
  • "partnerOrderNumber": "XXXXXXXX",
  • "orderNumber": 12345678,
  • "orderLines": [
    ],
  • "responseCode": 0,
  • "responseMessage": "OK"
}

Cancel an order

Cancel an order by updating it

Authorizations:
Bearer
header Parameters
secret
required
string

Access secret

Request Body schema: application/json
required

CancelOrderRequest

partnerOrderNumber
required
string

Your unique order number as string

reasonCode
required
integer <int32>

The reason of cancellation. Possible values - 2: Order Cancelled, 3: Unsatisfied customer, 4: Double Order, 5: Product Error, 6: Incompatible product, 16: Fraud/Charge back

comment
string

A text in complement of the reason

Responses

Request samples

Content type
application/json
{
  • "partnerOrderNumber": "XXXXXXXXXX",
  • "reasonCode": 2,
  • "comment": "XXXXXX"
}

Response samples

Content type
application/json
{
  • "partnerOrderNumber": "XXXXXXXXX",
  • "orderNumber": "54654",
  • "responseCode": 0,
  • "responseMessage": "OK",
  • "subscriptionStatusCode": 200,
  • "subscriptionStatus": "Subscription cancelled"
}

Update download time of an order

Update download time of an order

Authorizations:
Bearer
header Parameters
secret
required
string

Access secret

Request Body schema: application/json
required

UpdateDownloadTimeRequest

partnerOrderNumber
required
string

Your unique order number

value
required
string

The date value for new download expiry date. Example: P1Y4M3D

Responses

Request samples

Content type
application/json
{
  • "partnerOrderNumber": "XXXXXXXXXXXX",
  • "value": "P1Y4M3D"
}

Response samples

Content type
application/json
{
  • "partnerOrderNumber": "GMFSERZ30071981",
  • "newDownloadEndDate": "2011-05-27",
  • "responseCode": 0,
  • "responseMessage": "OK"
}

Get an order data

Get an order information

Authorizations:
Bearer
header Parameters
secret
required
string

Access secret

Responses

Response samples

Content type
application/json
{
  • "partnerOrderNumber": "XXXXXXXX",
  • "orderNumber": 65464,
  • "orderLines": [
    ],
  • "responseCode": 0,
  • "responseMessage": "OK"
}

Get download information of an order

Get download information related to an order

Authorizations:
Bearer
header Parameters
secret
required
string

Access secret

Responses

Response samples

Content type
application/json
{
  • "partnerOrderNumber": "XXXXXXXXXXX",
  • "downloadEndDate": "2011-04-20",
  • "orderLines": [
    ],
  • "responseCode": 0,
  • "responseMessage": "OK"
}

Product

Get stock info for products

Get stock info for products

Authorizations:
Bearer
header Parameters
secret
required
string

Access secret

Request Body schema: application/json
required

GetStockStatusRequest

productRefs
required
Array of integers <int32> [ items <int32 > ]

List of productRef numbers

Responses

Request samples

Content type
application/json
{
  • "productRefs": [
    ]
}

Response samples

Content type
application/json
{
  • "stockStatusList": [
    ]
}

Get cross-/up-sell products for order

Get cross-/up-sell products for order

Authorizations:
Bearer
header Parameters
secret
required
string

Access secret

Request Body schema: application/json
required

GetCrossUpSellRequest

language
required
string

Languages list (use ISO 3166-1-alpha-2 format). This method accepts one language or list of languages separated with a comma. Example: EN,FR,PT

required
Array of objects (Product)

List of products with product refs and quantities

Responses

Request samples

Content type
application/json
{
  • "language": "EN,FR,PT",
  • "products": [
    ]
}

Response samples

Content type
application/json
{
  • "productsReturn": [
    ],
  • "responseCode": 0,
  • "responseMessage": "OK"
}

Subscription

Cancel Subscription

Cancel Subscription

Authorizations:
Bearer
header Parameters
secret
required
string

Access secret

Request Body schema: application/json
required

SubscriptionRequest

partnerOrderNumber
required
string

Your unique order number

subscriptionId
required
integer <int32>

An ID corresponding to subscription in given order

Responses

Request samples

Content type
application/json
{
  • "partnerOrderNumber": "XXXXXXXXXX",
  • "subscriptionId": 0
}

Response samples

Content type
application/json
{
  • "partnerOrderNumber": "XXXXXXXXX",
  • "orderNumber": "54654",
  • "subscriptionId": 54654,
  • "responseCode": 0,
  • "responseMessage": "OK"
}

Get subscription status

Get subscription status

Authorizations:
Bearer
header Parameters
secret
required
string

Access secret

Request Body schema: application/json
required

SubscriptionRequest

partnerOrderNumber
required
string

Your unique order number

subscriptionId
required
integer <int32>

An ID corresponding to subscription in given order

Responses

Request samples

Content type
application/json
{
  • "partnerOrderNumber": "XXXXXXXXXX",
  • "subscriptionId": 0
}

Response samples

Content type
application/json
{
  • "subscriptionId": 0,
  • "productRef": 0,
  • "period": "XXXXXXXX",
  • "generation": 0,
  • "technicalStatus": "XXXXXXXX",
  • "currency": "EUR",
  • "amount": 0,
  • "code": 200,
  • "message": "Success",
  • "creationDatetime": "string",
  • "updateDatetime": "string",
  • "update_datetime": "string",
  • "expirationDatetime": "string",
  • "nextStatusChangeDatetime": "string"
}

Renew subscription

Renew subscription of an order

Authorizations:
Bearer
header Parameters
secret
required
string

Access secret

Request Body schema: application/json
required

SubscriptionRequest

partnerOrderNumber
required
string

Your unique order number

subscriptionId
required
integer <int32>

An ID corresponding to subscription in given order

Responses

Request samples

Content type
application/json
{
  • "partnerOrderNumber": "XXXXXXXXXX",
  • "subscriptionId": 0
}

Response samples

Content type
application/json
{
  • "partnerOrderNumber": "XXXXXXXX",
  • "subscriptionId": 0,
  • "period": "XXXXXXXX",
  • "code": 0,
  • "message": "Subscription renewed"
}