latestOpenAPI 3.0.02026-08-1056429755.6 KB

a6efafc1669c

Manage Offer (Synchronous API)

Deploy an offer

Deploys an offer.

post/v1/offers/{OfferId}/deploy

Path parameters

OfferIdnumber required

The identifier of the offer.

Headers

x-siteIdstring required

The site ID associated with the offer.

x-erid-as-oidstring

Set to true to use the external reference identifier (ERID) in the path instead of the offer identifier (offerId).

Response

Offer successfully deployed.

idstring

Identifier of an offer.

statusstring

Status of an offer.

namestring

Name of an offer.

descriptionstring

Description of an offer.

externalReferenceOfferIdstring

The external reference identifier of the offer.

siteIdstring

The site ID associated with the offer.

offerStartDatestring

Start date of an offer.

offerEndDatestring

End date of an offer. End date must be a future date.

creationDatestring

Date of creation of an offer.

modificationDatestring

Date of modification of an offer.

Example response

{
  "id": "36094662050499",
  "status": "Deployed",
  "name": "Offer_New_1",
  "description": "Offer_New_1",
  "externalReferenceOfferId": "Offer_New_1",
  "siteId": "paytest2",
  "offerStartDate": "2024-05-12T00:00:00.000Z",
  "offerEndDate": "2024-05-13T00:00:00.000Z",
  "creationDate": "2024-05-11T07:23:27.829Z",
  "modificationDate": "2024-05-11T07:23:27.829Z"
}