openapi: 3.0.3 info: title: Promotion Engine description: > This API is built on HTTP and is a RESTful API. This API is developed for merchants to be able to manage orders. The API services are published on HTTPS and use OAUTH2 protocol. All calls need to have an API key. # Definitions ### Product A product is the stock keeping unit (SKU), the item to sale. The attributes of a product could include manufacturer, material, service, warranty terms. The PIM is the repository of all products used by the different services of the solution ### Offer An offer is a set of products and represents the commercial agreements sent by the merchant. An offer can have: - one or many products - Prices - Additional services - A publication period, during this period the offer is active and can be ordered ### Order An order contains information allowing to purchase some offers. An order has one or several order lines, and each order line is for an offer. The order has mandatory information such as amounts, payments, and addresses. ### Dates All Gridbees services use UTC datetime and the default format is: yyyy-MM-dd'T'HH:mm:ss.SSSZ. version: v1 x-konfig-ignore: object-with-no-properties: true servers: - url: https://mock.gridbees.com tags: - name: Customer Service - name: Booking Service - description: | List of services to manage promotions. name: Promotion Service - description: > A merchant needs to pull the offers list to sell. Each offer has a publication period (offer.startdate, offer.enddate). During this period, the merchant can sell the offer depending the availability. name: Offer Service - name: MasterData Service - name: Product Service - description: > The pricing service is used to check and guarantee all prices and services inside the submitted basket. name: Pricing Service paths: /contact/search: post: tags: - Customer Service operationId: CustomerService_getContacts description: > This service is used to retrieve contacts. The total number of contacts in the response is a parameter of the service. Contact your administrator to know or modify this value. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: content: application/json: examples: Retail: value: contactid: b731a80266fe4244b740add6439eeb64 requestcontext: queryprojection: - contactid - trackingdata - person - customdata - loyaltycards schema: $ref: '#/components/schemas/ContactRequest' required: true responses: '200': description: List contacts content: application/json: examples: Retail: value: - contactid: 99a6da096155410c96fa972cb5b4c4b6 tenantid: a6ca93d74c284a1bad47c04191af1188 unicitykey: '00000000125' structure: blcode: B2T marketcode: EEMA identifier: externalnumid: CE0015224437 person: persontype: PRIVATE countrycode: FR languagecode: fr civility: MR lastname: Alpha firstname: Omega birthdate: '1971-05-16T00:00:00.000Z' emails: - usage: BIL uid: e289e7ef5fd34afaa7512e81d539265d isprincipal: true emailvalue: gridbees@gmail.com phones: - uid: ffd711971aec4134ba945136b42cea19 isprincipal: false prefix: '+33' phonevalue: '75332939' - usage: BIL uid: 23495ce25dc34089906173fd4662693d isprincipal: true phonevalue: '+34658912939' addresses: - usage: BIL uid: 5e9b347270c44dddb66cf902e97bb90e externalnumid: '5644990042' isactive: true streetname: BD Marechaux N.2 city: Paris postalcode: '75012' countrycode: FR additionalinfo: - attribute: CompanyName value: My Little Company identitydocuments: - usage: PASSPORT numid: 43358431A emittercountrylocation: FR isvalidated: true isexternal: true customdata: - attribute: gdpr value: '1' - attribute: loyalty value: '1' - attribute: shoporigin value: '610' loyaltycards: - externalnumid: GB01536637 loyalties: - loyaltyid: '56371334' unicitykey: Club Gridbees label: Club Gridbees tiers: - code: Entry Level label: Entry Level (< 5 € Cash) level: '1.0' - code: Redeemable Level label: Redeemable Level level: '2.0' createdate: '2023-06-01T12:48:44.434Z' schema: $ref: '#/components/schemas/Contact' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /contact/stream: post: tags: - Customer Service operationId: CustomerService_getContactsStream description: | This service is used to retrieve contacts. The response is a stream. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: content: application/json: examples: Retail: value: contactid: b731a80266fe4244b740add6439eeb64 requestcontext: queryprojection: - contactid - trackingdata - person - customdata - loyaltycards schema: $ref: '#/components/schemas/ContactRequest' required: true responses: '200': description: List Contacts (stream results) content: application/json: examples: Retail: value: - contactid: 99a6da096155410c96fa972cb5b4c4b6 tenantid: a6ca93d74c284a1bad47c04191af1188 unicitykey: '00000000125' structure: blcode: B2T marketcode: EEMA identifier: externalnumid: CE0015224437 person: persontype: PRIVATE countrycode: FR languagecode: fr civility: MR lastname: Alpha firstname: Omega birthdate: '1971-05-16T00:00:00.000Z' emails: - usage: BIL uid: e289e7ef5fd34afaa7512e81d539265d isprincipal: true emailvalue: gridbees@gmail.com phones: - uid: ffd711971aec4134ba945136b42cea19 isprincipal: false prefix: '+33' phonevalue: '75332939' - usage: BIL uid: 23495ce25dc34089906173fd4662693d isprincipal: true phonevalue: '+34658912939' addresses: - usage: BIL uid: 5e9b347270c44dddb66cf902e97bb90e externalnumid: '5644990042' isactive: true streetname: BD Marechaux N.2 city: Paris postalcode: '75012' countrycode: FR additionalinfo: - attribute: CompanyName value: My Little Company identitydocuments: - usage: PASSPORT numid: 43358431A emittercountrylocation: FR isvalidated: true isexternal: true customdata: - attribute: gdpr value: '1' - attribute: loyalty value: '1' - attribute: shoporigin value: '610' loyaltycards: - externalnumid: GB01536637 loyalties: - loyaltyid: '56371334' unicitykey: Club Gridbees label: Club Gridbees tiers: - code: Entry Level label: Entry Level (< 5 € Cash) level: '1.0' - code: Redeemable Level label: Redeemable Level level: '2.0' createdate: '2023-06-01T12:48:44.434Z' schema: $ref: '#/components/schemas/CustomerServiceGetContactsStreamResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /contact/set: post: tags: - Customer Service operationId: CustomerService_createNewContact description: | This service is used to create a new contact. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: > Contact to create. Technical fields (contactid, uid, create and update date, ..) will be discarded if filled in the request body. unicitikey will be autotically generated, if not supplied. During the creation process, the service will check : - if structure is in the request body, blcode must be filled - if legalentity is in the request body,commercialname and companyname must be filled - for each address,countrycode, postalcode, streetname must be filled - if email is defined, emailvalue must be filled - if phone is defined, phonevalue must be filled content: application/json: examples: Retail: value: structure: blcode: B2T marketcode: EEMA identifier: externalnumid: CE0015224437 person: persontype: PRIVATE countrycode: FR languagecode: fr civility: MR lastname: Alpha firstname: Omega birthdate: '1971-05-16T00:00:00.000Z' emails: - usage: BIL isprincipal: true emailvalue: gridbees@gmail.com phones: - isprincipal: false prefix: '+33' phonevalue: '75332939' - usage: BIL isprincipal: true phonevalue: '+34658912939' addresses: - usage: BIL externalnumid: '5644990042' isactive: true streetname: BD Marechaux N.2 city: Paris postalcode: '75012' countrycode: FR additionalinfo: - attribute: CompanyName value: My Little Company identitydocuments: - usage: PASSPORT numid: 43358431A emittercountrylocation: FR isvalidated: true isexternal: true customdata: - attribute: gdpr value: '1' - attribute: loyalty value: '1' - attribute: shoporigin value: '610' loyaltycards: - externalnumid: GB01536637 loyalties: - loyaltyid: '56371334' unicitykey: Club Gridbees label: Club Gridbees tiers: - code: Entry Level label: Entry Level (< 5 € Cash) level: '1.0' - code: Redeemable Level label: Redeemable Level level: '2.0' schema: $ref: '#/components/schemas/Contact' required: true responses: '200': description: Contact created content: application/json: examples: Retail: value: contactid: 99a6da096155410c96fa972cb5b4c4b6 tenantid: a6ca93d74c284a1bad47c04191af1188 unicitykey: '00000000125' structure: blcode: B2T marketcode: EEMA identifier: externalnumid: CE0015224437 person: persontype: PRIVATE countrycode: FR languagecode: fr civility: MR lastname: Alpha firstname: Omega birthdate: '1971-05-16T00:00:00.000Z' emails: - usage: BIL uid: e289e7ef5fd34afaa7512e81d539265d isprincipal: true emailvalue: gridbees@gmail.com phones: - uid: ffd711971aec4134ba945136b42cea19 isprincipal: false prefix: '+33' phonevalue: '75332939' - usage: BIL uid: 23495ce25dc34089906173fd4662693d isprincipal: true phonevalue: '+34658912939' addresses: - usage: BIL uid: 5e9b347270c44dddb66cf902e97bb90e externalnumid: '5644990042' isactive: true streetname: BD Marechaux N.2 city: Paris postalcode: '75012' countrycode: FR additionalinfo: - attribute: CompanyName value: My Little Company identitydocuments: - usage: PASSPORT numid: 43358431A emittercountrylocation: FR isvalidated: true isexternal: true customdata: - attribute: gdpr value: '1' - attribute: loyalty value: '1' - attribute: shoporigin value: '610' loyaltycards: - externalnumid: GB01536637 loyalties: - loyaltyid: '56371334' unicitykey: Club Gridbees label: Club Gridbees tiers: - code: Entry Level label: Entry Level (< 5 € Cash) level: '1.0' - code: Redeemable Level label: Redeemable Level level: '2.0' createdate: '2023-06-01T12:48:44.434Z' schema: $ref: '#/components/schemas/Contact' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /contact/upsert: post: tags: - Customer Service operationId: CustomerService_upsertContact description: | This service is used to create or modify a contact. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: >- Contact to create or update. if contactid or unicikey is filled and exists, the contact will be updated otherwise created. For array lists, like address, email, phone, if uid field is given, the entry will be updated, otherwise created. content: application/json: examples: Retail: value: contactid: 99a6da096155410c96fa972cb5b4c4b6 tenantid: a6ca93d74c284a1bad47c04191af1188 unicitykey: '00000000125' structure: blcode: B2T marketcode: EEMA identifier: externalnumid: CE0015224437 person: persontype: PRIVATE countrycode: FR languagecode: fr civility: MR lastname: Alpha firstname: Omega birthdate: '1971-05-16T00:00:00.000Z' emails: - usage: BIL uid: e289e7ef5fd34afaa7512e81d539265d isprincipal: true emailvalue: gridbees@gmail.com phones: - uid: ffd711971aec4134ba945136b42cea19 isprincipal: false prefix: '+33' phonevalue: '75332939' - usage: BIL uid: 23495ce25dc34089906173fd4662693d isprincipal: true phonevalue: '+34658912939' addresses: - usage: BIL uid: 5e9b347270c44dddb66cf902e97bb90e externalnumid: '5644990042' isactive: true streetname: BD Marechaux N.2 city: Paris postalcode: '75012' countrycode: FR additionalinfo: - attribute: CompanyName value: My Little Company identitydocuments: - usage: PASSPORT numid: 43358431A emittercountrylocation: FR isvalidated: true isexternal: true customdata: - attribute: gdpr value: '1' - attribute: loyalty value: '1' - attribute: shoporigin value: '610' loyaltycards: - externalnumid: GB01536637 loyalties: - loyaltyid: '56371334' unicitykey: Club Gridbees label: Club Gridbees tiers: - code: Entry Level label: Entry Level (< 5 € Cash) level: '1.0' - code: Redeemable Level label: Redeemable Level level: '2.0' createdate: '2023-06-01T12:48:44.434Z' schema: $ref: '#/components/schemas/Contact' required: true responses: '200': description: Contact created content: application/json: examples: Retail: value: contactid: 99a6da096155410c96fa972cb5b4c4b6 tenantid: a6ca93d74c284a1bad47c04191af1188 unicitykey: '00000000125' structure: blcode: B2T marketcode: EEMA identifier: externalnumid: CE0015224437 person: persontype: PRIVATE countrycode: FR languagecode: fr civility: MR lastname: Alpha firstname: Omega birthdate: '1971-05-16T00:00:00.000Z' emails: - usage: BIL uid: e289e7ef5fd34afaa7512e81d539265d isprincipal: true emailvalue: gridbees@gmail.com phones: - uid: ffd711971aec4134ba945136b42cea19 isprincipal: false prefix: '+33' phonevalue: '75332939' - usage: BIL uid: 23495ce25dc34089906173fd4662693d isprincipal: true phonevalue: '+34658912939' addresses: - usage: BIL uid: 5e9b347270c44dddb66cf902e97bb90e externalnumid: '5644990042' isactive: true streetname: BD Marechaux N.2 city: Paris postalcode: '75012' countrycode: FR additionalinfo: - attribute: CompanyName value: My Little Company identitydocuments: - usage: PASSPORT numid: 43358431A emittercountrylocation: FR isvalidated: true isexternal: true customdata: - attribute: gdpr value: '1' - attribute: loyalty value: '1' - attribute: shoporigin value: '610' loyaltycards: - externalnumid: GB01536637 loyalties: - loyaltyid: '56371334' unicitykey: Club Gridbees label: Club Gridbees tiers: - code: Entry Level label: Entry Level (< 5 € Cash) level: '1.0' - code: Redeemable Level label: Redeemable Level level: '2.0' createdate: '2023-06-01T12:48:44.434Z' schema: $ref: '#/components/schemas/Contact' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /contact/get/{contactid}: get: tags: - Customer Service operationId: CustomerService_getContact description: | This service is used to retrieve a given contact. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string responses: '200': description: Contact created content: application/json: examples: Retail: value: contactid: 99a6da096155410c96fa972cb5b4c4b6 tenantid: a6ca93d74c284a1bad47c04191af1188 unicitykey: '00000000125' structure: blcode: B2T marketcode: EEMA identifier: externalnumid: CE0015224437 person: persontype: PRIVATE countrycode: FR languagecode: fr civility: MR lastname: Alpha firstname: Omega birthdate: '1971-05-16T00:00:00.000Z' emails: - usage: BIL uid: e289e7ef5fd34afaa7512e81d539265d isprincipal: true emailvalue: gridbees@gmail.com phones: - uid: ffd711971aec4134ba945136b42cea19 isprincipal: false prefix: '+33' phonevalue: '75332939' - usage: BIL uid: 23495ce25dc34089906173fd4662693d isprincipal: true phonevalue: '+34658912939' addresses: - usage: BIL uid: 5e9b347270c44dddb66cf902e97bb90e externalnumid: '5644990042' isactive: true streetname: BD Marechaux N.2 city: Paris postalcode: '75012' countrycode: FR additionalinfo: - attribute: CompanyName value: My Little Company identitydocuments: - usage: PASSPORT numid: 43358431A emittercountrylocation: FR isvalidated: true isexternal: true customdata: - attribute: gdpr value: '1' - attribute: loyalty value: '1' - attribute: shoporigin value: '610' loyaltycards: - externalnumid: GB01536637 loyalties: - loyaltyid: '56371334' unicitykey: Club Gridbees label: Club Gridbees tiers: - code: Entry Level label: Entry Level (< 5 € Cash) level: '1.0' - code: Redeemable Level label: Redeemable Level level: '2.0' createdate: '2023-06-01T12:48:44.434Z' schema: $ref: '#/components/schemas/Contact' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /contact/delete/{contactid}: delete: tags: - Customer Service operationId: CustomerService_deleteContact description: | This service is used to delete a contact. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/ResultCode' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /contact/addattributes: post: tags: - Customer Service operationId: CustomerService_addContactAttribute description: > This service is used to add a custom attribute with its value to a contact. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: >- Adding an attribute to an existing contact is made using contact's unicitykey and attributes to add are a label/value pair contained in the customdata array. New attributes with an existing label on that contact will be inserted, unless that label allready contains the new value. content: application/json: examples: Retail: value: unicitykey: '00000626500' customdata: - attribute: labelName value: aboutThisLabel schema: $ref: '#/components/schemas/ContactAttributeRequest' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/ResultCode' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /contact/deleteattributes: post: tags: - Customer Service operationId: CustomerService_deleteAttribute description: > This service is used to delete a custom attribute with its value from a contact. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: >- Deleting an attribute of an existing contact is made using contact's unicitykey. Attributes are a label/value pair in the customdata array. Attributes of a contact will be deleted only if both the label and its value matches. No effect if no match. content: application/json: examples: Retail: value: unicitykey: '00000626500' customdata: - attribute: labelName value: aboutThisLabel schema: $ref: '#/components/schemas/ContactAttributeRequest' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/ResultCode' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /webaccount/activate: post: tags: - Customer Service operationId: CustomerService_activateUser description: | This service is used to activate an user. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Activates an user using his login and an optionnal marketcode. content: application/json: schema: $ref: '#/components/schemas/WebaccountRequest' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/ResultCode' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /webaccount/check: post: tags: - Customer Service operationId: CustomerService_checkUserExist description: | This service is used to check if an user exist. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: >- Checks if an user exist using his or her login and an optionnal marketcode. content: application/json: schema: $ref: '#/components/schemas/WebaccountRequest' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/ResultCode' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /webaccount/delete: delete: tags: - Customer Service operationId: CustomerService_deleteWebAccount description: | This service is used to delete an web account. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Deletes a web account using his or her webaccountid and his contactid. content: application/json: schema: $ref: '#/components/schemas/WebaccountDeleteRequest' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/ResultCode' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /webaccount/get/{webaccountid}: get: tags: - Customer Service operationId: CustomerService_getWebAccountDetails description: | This service is used to get details of an web account. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/WebAccount' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /webaccount/login: post: tags: - Customer Service operationId: CustomerService_logWebAccount description: | This service is used to log a web account. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Logs a web account. content: application/json: schema: $ref: '#/components/schemas/WebaccountLoginRequest' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/ResultCode' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /webaccount/resetpassword: post: tags: - Customer Service operationId: CustomerService_resetWebAccountPassword description: | This service is used to reset the password of a web account. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Reset the password of a web account. content: application/json: schema: $ref: '#/components/schemas/WebaccountResetPasswordRequest' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/ResultCode' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /webaccount/search: post: tags: - Customer Service operationId: CustomerService_searchWebAccount description: | This service is used to search web accounts. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Finds web accounts by various criterias. content: application/json: schema: $ref: '#/components/schemas/WebAccount' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/CustomerServiceSearchWebAccountResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /webaccount/set: post: tags: - Customer Service operationId: CustomerService_createWebAccount description: | This service is used to create a web account. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Creates a web account. Login and password in clear is mandatory. content: application/json: schema: $ref: '#/components/schemas/WebAccount' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/CustomerServiceCreateWebAccountResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /webaccount/stream: post: tags: - Customer Service operationId: CustomerService_getWebAccountsStream description: | This service is used to retrieve web accounts. The response is a stream. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Retrieves web accounts by various criterias. content: application/json: schema: $ref: '#/components/schemas/WebAccount' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: >- #/components/schemas/CustomerServiceGetWebAccountsStreamResponse '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /webaccount/update: post: tags: - Customer Service operationId: CustomerService_updateWebAccount description: | This service replaces a web account by the provided web account object. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: >- Replace a web account by the provided web account object. The login is mandatory. content: application/json: schema: $ref: '#/components/schemas/WebAccount' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/CustomerServiceUpdateWebAccountResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /supplier/delete: delete: tags: - Customer Service operationId: CustomerService_deleteSupplier description: | This service is used to delete a supplier. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Deletes a supplier using his supplier ID (mandatory). content: application/json: schema: $ref: '#/components/schemas/SupplierRequest' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/ResultCode' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /supplier/get/{supplierid}: get: tags: - Customer Service operationId: CustomerService_getSupplierDetails description: | This service is used to get details of a supplier. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/WebAccount' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /supplier/search: post: tags: - Customer Service operationId: CustomerService_searchSuppliers description: | This service is used to search suppliers. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Finds suppliers by various criterias. content: application/json: schema: $ref: '#/components/schemas/Supplier' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/CustomerServiceSearchSuppliersResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /supplier/set: post: tags: - Customer Service operationId: CustomerService_createSupplier description: | This service is used to create a new supplier. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Supplier to create content: application/json: schema: $ref: '#/components/schemas/Supplier' required: true responses: '200': description: Supplier created content: application/json: schema: $ref: '#/components/schemas/Supplier' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /supplier/stream: post: tags: - Customer Service operationId: CustomerService_getSuppliersStream description: | This service is used to retrieve suppliers. The response is a stream. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Retrieves suppliers by various criterias. content: application/json: schema: $ref: '#/components/schemas/Supplier' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/CustomerServiceGetSuppliersStreamResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /supplier/upsert: post: tags: - Customer Service operationId: CustomerService_modifySupplier description: | This service is used to modify a supplier. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: >- Supplier to update. unicikey must be filled. For array lists, like address, email, phone, if uid field is given, the entry will be updated, otherwise created. content: application/json: schema: $ref: '#/components/schemas/Supplier' required: true responses: '200': description: Supplier upserted content: application/json: schema: $ref: '#/components/schemas/Supplier' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /mail/delete: delete: tags: - Customer Service operationId: CustomerService_mailDelete description: | This service is used to delete a mail. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: >- Deletes a mail using his mail ID and contact ID of recipients (mandatory). content: application/json: schema: $ref: '#/components/schemas/MailDeleteRequest' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/ResultCode' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /mail/get/{mailid}: get: tags: - Customer Service operationId: CustomerService_getMailDetails description: | This service is used to get details of a mail. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/Mail' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /mail/receive: post: tags: - Customer Service operationId: CustomerService_receiveMail description: | This service is used to receive mails. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Receives mails content: application/json: schema: $ref: '#/components/schemas/MailRequest' required: true responses: '200': description: Mail received content: application/json: schema: $ref: '#/components/schemas/CustomerServiceReceiveMailResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /mail/reprocess: post: tags: - Customer Service operationId: CustomerService_reprocessMail description: | This service is used to reprocess mails. The response is a stream. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Retrieves mails by various criterias and reprocesses them. content: application/json: schema: $ref: '#/components/schemas/MailRequest' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/CustomerServiceReprocessMailResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /mail/search: post: tags: - Customer Service operationId: CustomerService_mailSearch description: | This service is used to search mails by various criterias. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Finds mails by various criterias. content: application/json: schema: $ref: '#/components/schemas/MailRequest' required: true responses: '200': description: Mail found content: application/json: schema: $ref: '#/components/schemas/CustomerServiceMailSearchResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /mail/send: post: tags: - Customer Service operationId: CustomerService_createMail description: | This service is used to create and send a new mail. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Creates and send a mail. From, to and subject are mandatory fields. content: application/json: schema: $ref: '#/components/schemas/Mail' required: true responses: '200': description: Mail sent content: application/json: schema: $ref: '#/components/schemas/Mail' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /mail/set: post: tags: - Customer Service operationId: CustomerService_createNewMail description: | This service is used to create a new mail. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Creates a mail. From, to and subject are mandatory fields. content: application/json: schema: $ref: '#/components/schemas/Mail' required: true responses: '200': description: Mail set content: application/json: schema: $ref: '#/components/schemas/Mail' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /mail/stream: post: tags: - Customer Service operationId: CustomerService_getMailStream description: | This service is used to retrieve mails. The response is a stream. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Retrieves mails by various criterias. content: application/json: schema: $ref: '#/components/schemas/Mail' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/CustomerServiceGetMailStreamResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /mail/upsert: post: tags: - Customer Service operationId: CustomerService_modifyMail description: | This service is used to modify a mail. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: >- Mail to update. mailid must be filled. For array lists, like address, email, phone, if uid field is given, the entry will be updated, otherwise created. content: application/json: schema: $ref: '#/components/schemas/Mail' required: true responses: '200': description: Mail upserted content: application/json: schema: $ref: '#/components/schemas/Mail' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /template/delete: delete: tags: - Customer Service operationId: CustomerService_deleteMailTemplate description: | This service is used to delete a mail template. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Deletes a mail template using his mailtemplateid (mandatory). content: application/json: schema: $ref: '#/components/schemas/MailTemplateRequest' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/ResultCode' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /template/get/{mailtemplateid}: get: tags: - Customer Service operationId: CustomerService_getMailTemplateDetails description: | This service is used to get details of a mail template. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/MailTemplate' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /template/search: post: tags: - Customer Service operationId: CustomerService_searchMailTemplate description: | This service is used to search templates of mail by various criterias. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Finds templates of mail by various criterias. content: application/json: schema: $ref: '#/components/schemas/MailTemplateRequest' required: true responses: '200': description: Template of mail found content: application/json: schema: $ref: '#/components/schemas/CustomerServiceSearchMailTemplateResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /template/set: post: tags: - Customer Service operationId: CustomerService_createMailTemplate description: | This service is used to create a new mail template. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Creates a template of mail. content: application/json: schema: $ref: '#/components/schemas/MailTemplate' required: true responses: '200': description: Mail template set content: application/json: schema: $ref: '#/components/schemas/MailTemplate' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /template/stream: post: tags: - Customer Service operationId: CustomerService_getMailTemplateStream description: > This service is used to retrieve mail templates. The response is a stream. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Retrieves mail templates by various criterias. content: application/json: schema: $ref: '#/components/schemas/MailTemplateRequest' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: >- #/components/schemas/CustomerServiceGetMailTemplateStreamResponse '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /template/upsert: post: tags: - Customer Service operationId: CustomerService_modifyMailTemplate description: | This service is used to modify a mail template. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: >- Modifies a template of mail. mailtemplateid is a mandatory field. For array lists, like address, email, phone, if uid field is given, the entry will be updated, otherwise created. content: application/json: schema: $ref: '#/components/schemas/MailTemplate' required: true responses: '200': description: Mail template set content: application/json: schema: $ref: '#/components/schemas/MailTemplate' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /notification/delete: delete: tags: - Customer Service operationId: CustomerService_deleteNotification description: | This service is used to delete a notification. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Deletes a notification using his notificationid (mandatory). content: application/json: schema: $ref: '#/components/schemas/NotificationRequest' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/ResultCode' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /notification/get/{notificationid}: get: tags: - Customer Service operationId: CustomerService_getNotificationDetails description: | This service is used to get details of a notification. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/Notification' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /notification/search: post: tags: - Customer Service operationId: CustomerService_searchNotificationByCriteria description: | This service is used to search notifications by various criterias. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Finds notifications by various criterias. content: application/json: schema: $ref: '#/components/schemas/NotificationRequest' required: true responses: '200': description: Notification found content: application/json: schema: $ref: >- #/components/schemas/CustomerServiceSearchNotificationByCriteriaResponse '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /notification/set: post: tags: - Customer Service operationId: CustomerService_createNotification description: | This service is used to create a new notification. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Creates a notification. content: application/json: schema: $ref: '#/components/schemas/Notification' required: true responses: '200': description: Notification set content: application/json: schema: $ref: '#/components/schemas/Notification' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /notification/stream: post: tags: - Customer Service operationId: CustomerService_getNotificationsStream description: > This service is used to retrieve notifications. The response is a stream. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Retrieves notifications by various criterias. content: application/json: schema: $ref: '#/components/schemas/NotificationRequest' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: >- #/components/schemas/CustomerServiceGetNotificationsStreamResponse '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /notification/upsert: post: tags: - Customer Service operationId: CustomerService_modifyNotification description: | This service is used to modify a notification. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: >- Modifies a notification. unicitykey is a mandatory field. For array lists, like address, email, phone, if uid field is given, the entry will be updated, otherwise created. content: application/json: schema: $ref: '#/components/schemas/Notification' required: true responses: '200': description: Notification modified content: application/json: schema: $ref: '#/components/schemas/Notification' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /wallet/delete: delete: tags: - Customer Service operationId: CustomerService_deleteWallet description: | This service is used to delete a wallet. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Deletes a wallet using his walletid (mandatory). content: application/json: schema: $ref: '#/components/schemas/WalletDetailRequest' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/ResultCode' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /wallet/get/{walletid}: get: tags: - Customer Service operationId: CustomerService_getWalletDetails description: | This service is used to get details of a wallet. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/WalletDetail' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /wallet/search: post: tags: - Customer Service operationId: CustomerService_searchWalletByCriteria description: | This service is used to search wallets by various criterias. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Finds wallets by various criterias. content: application/json: schema: $ref: '#/components/schemas/WalletDetailRequest' required: true responses: '200': description: Wallets found content: application/json: schema: $ref: >- #/components/schemas/CustomerServiceSearchWalletByCriteriaResponse '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /wallet/set: post: tags: - Customer Service operationId: CustomerService_createNewWallet description: | This service is used to create a new wallet. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Creates a wallet. content: application/json: schema: $ref: '#/components/schemas/WalletDetail' required: true responses: '200': description: Wallet set content: application/json: schema: $ref: '#/components/schemas/WalletDetail' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /wallet/stream: post: tags: - Customer Service operationId: CustomerService_getWalletStream description: | This service is used to retrieve wallets. The response is a stream. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Retrieves wallets by various criterias. content: application/json: schema: $ref: '#/components/schemas/WalletDetailRequest' required: true responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/CustomerServiceGetWalletStreamResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /wallet/upsert: post: tags: - Customer Service operationId: CustomerService_modifyWallet description: | This service is used to modify a wallet. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: >- Modifies a wallet. walletid is a mandatory field. For array lists, like address, email, phone, if uid field is given, the entry will be updated, otherwise created. content: application/json: schema: $ref: '#/components/schemas/WalletDetail' required: true responses: '200': description: Wallet modified content: application/json: schema: $ref: '#/components/schemas/WalletDetail' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /offer/set: post: tags: - Offer Service operationId: OfferService_createNewOffer description: | This service is used to create a new offer. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Offer to create content: application/json: examples: Minor: value: title: Ice Cream Sandwich Chocolate Pack 4 pcs. 199.- unicitykey: '577' unicitycode: '1164' offertype: FOOD codification: vendorcode: SW structure: companycode: TDG countrycode: th products: - items: - productcode: '702871' quantity: 1 properties: customdata: - attribute: tag value: ICECREAM - attribute: shop value: '456' - attribute: shop value: '906' pricing: currencycode: THB pricetype: RETAIL sellingprice: 199 medias: - url: >- https://1112.minorcdn.com/1112one/public/images/products/SW/659115.jpg rank: 1 islocalisable: false status: Published schema: $ref: '#/components/schemas/Offer' required: true responses: '200': description: Offer created content: application/json: examples: Minor: value: title: Ice Cream Sandwich Chocolate Pack 4 pcs. 199.- unicitykey: '577' unicitycode: '1164' offertype: FOOD codification: vendorcode: SW structure: companycode: TDG countrycode: th products: - items: - productcode: '702871' quantity: 1 properties: customdata: - attribute: tag value: ICECREAM - attribute: shop value: '456' - attribute: shop value: '906' pricing: currencycode: THB pricetype: RETAIL sellingprice: 199 medias: - url: >- https://1112.minorcdn.com/1112one/public/images/products/SW/659115.jpg rank: 1 islocalisable: false status: Published schema: $ref: '#/components/schemas/OfferServiceCreateNewOfferResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /offer/upsert: post: tags: - Offer Service operationId: OfferService_createOrUpdateOffer description: > This service is used to create or update a new offer. Based on unicitykey, the service checks if the offer already exists or not. If exists, the offer is updated otherwise is created. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Offer to create content: application/json: examples: Minor: value: title: Ice Cream Sandwich Chocolate Pack 4 pcs. 199.- unicitykey: '577' unicitycode: '1164' offertype: FOOD codification: vendorcode: SW structure: companycode: TDG countrycode: th products: - items: - productcode: '702871' quantity: 1 properties: customdata: - attribute: tag value: ICECREAM - attribute: shop value: '456' - attribute: shop value: '906' pricing: currencycode: THB pricetype: RETAIL sellingprice: 199 medias: - url: >- https://1112.minorcdn.com/1112one/public/images/products/SW/659115.jpg rank: 1 islocalisable: false status: Published schema: $ref: '#/components/schemas/Offer' required: true responses: '200': description: Offer created content: application/json: examples: Minor: value: title: Ice Cream Sandwich Chocolate Pack 4 pcs. 199.- offerid: 1d3c922e67904d48a8bf7ff121b869ad unicitykey: '577' unicitycode: '1164' offertype: FOOD codification: vendorcode: SW structure: companycode: TDG countrycode: th products: - items: - productcode: '702871' quantity: 1 properties: customdata: - attribute: tag value: ICECREAM - attribute: shop value: '456' - attribute: shop value: '906' pricing: currencycode: THB pricetype: RETAIL sellingprice: 199 medias: - url: >- https://1112.minorcdn.com/1112one/public/images/products/SW/659115.jpg rank: 1 islocalisable: false status: Published createdate: '2022-06-16T20:31:43.276Z' updatedate: '2022-06-16T22:03:59.610Z' schema: $ref: '#/components/schemas/OfferServiceCreateOrUpdateOfferResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /offer/publish: post: tags: - Offer Service operationId: OfferService_pullPublishOffer description: | This service is used to pull offers to publish or unpublish. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Offer request object content: application/json: examples: Retail: value: offertype: FOOD Streaming: value: offertype: STREAMING schema: $ref: '#/components/schemas/OfferRequest' required: true responses: '200': description: List of published offers content: application/json: examples: Retail: value: - title: en-US: Mango Oak-Rong-Thong 3 lbs. th-TH: ไอศกรีมเค้กมะม่วงอกร่องทอง 3 ปอนด์ offerid: 1abb93f0d5c3474480bd9781bc9d47f8 unicitykey: '577' unicitycode: '1164' offertype: FOOD structure: countrycode: th companycode: TDG codification: vendorcode: SW platformcode: OTT_APP products: - items: - productcode: '1164' quantity: 1 properties: options: - minquantity: 1 maxquantity: 1 rank: 15332 optiondetails: - unicitykey: '576' unicitycode: '641081' rank: 1 adjustedprice: 0 pricing: currencycode: THB pricetype: RETAIL sellingprice: 899 medias: - url: >- https://1112.minorcdn.com/1112one/public/images/products/SW/651047_3.jpg rank: 1 islocalisable: false status: Published createdate: '2022-06-24T05:13:42.800Z' updatedate: '2022-06-28T05:49:36.974Z' offerdescription: en-US: >- Ice cream cake 3 lbs. with Mango Oak-Rong-Thong flavor decorated with pandan sticky rice, almond, white chocolate flakes and look choop. th-TH: >- ไอศกรีมเค้ก 3 ปอนด์ รสมะม่วงอกร่องทอง ท็อปด้วยข้าวเหนียวใบเตยหอมและลูกชุบมะม่วงหอมกลิ่นอบควันเทียน พร้อมอร่อยกรุบกรอบกับอัลมอนด์และไวท์ช็อกโกแลต Streaming: value: - title: en: True 5G Xclusive th: ทรู 5G เอ็กซ์คลูซีฟ description: - lines: - line: th: รายเดือน en: Monthly - lines: - line: th: >- ตัดเงินอัตโนมัติ 99 บาท/เดือน สามารถยกเลิกได้ตลอดเวลา en: You will be charged ฿99/month. Cancel anytime. unicitykey: 5GXCLUSIVE_TRIAL6M_BPN_RC_EVG_REG offertype: STREAMING objecttype: SUBSCRIPTION products: - items: - productcode: 5GXCLUSIVE_TRIAL6M_BPN_RC_EVG_REG productgroup: 5GXCLUSIVE pricing: prices: - currencycode: THB crossedoutprice: 0 sellingprice: 9900 paymentmode: dcb platformcode: android - currencycode: THB crossedoutprice: 0 sellingprice: 9900 paymentmode: wallet platformcode: android - currencycode: THB crossedoutprice: 0 sellingprice: 9900 paymentmode: card platformcode: android medias: - url: >- https://cms.dmpcdn.com/subscription/V1/5GXclusive3_L.jpg languagecode: en - url: >- https://cms.dmpcdn.com/subscription/V1/5GXclusive3_M.jpg languagecode: en - url: >- https://cms.dmpcdn.com/subscription/V1/5GXclusive3_S.jpg languagecode: en - url: >- https://cms.dmpcdn.com/subscription/V1/5GXclusive3_L.jpg languagecode: th - url: >- https://cms.dmpcdn.com/subscription/V1/5GXclusive3_M.jpg languagecode: th - url: >- https://cms.dmpcdn.com/subscription/V1/5GXclusive3_S.jpg languagecode: th status: Published startdate: '2022-03-02T03:20:19.000Z' enddate: '2032-01-05T03:00:00.000Z' createdate: '2022-10-20T18:42:33.924Z' updatedate: '2022-10-20T18:42:33.924Z' offerid: 1a1a1d89300f47bd90d2f04db4db4230 subscription: ispublic: false isactive: true isaddon: false isautorenewable: false allowedplatforms: [] applicationcodes: - HBTV - LG_SMTV - OTT_ANRDTV_APP - OTT_APP - PARTNER_ORDER - SAMSUNG_SMTV - TRUEID_APP - TRUEID_IOS_APP - TRUEID_WEB - TRUEID_HARMONYOS_APP contentid: X4vlge8E2d95 contenttype: collection contentcode: X4vlge8E2d95 sequence: 2 mincontractperiod: period: '99' typology: 'Y' trialperiod: period: '6' typology: M contractperiod: period: '99' typology: 'Y' partnercode: TDG groupname: 5GXCLUSIVE maxtickets: 0 serviceperiod: 30 billingperiod: M customergroup: - all category: livetv benefits: - sequence: 1 lines: - line: th: รับชมคอนเทนต์พิเศษมากมาย ราคาพิเศษ en: Exclusive contents Special price - line: th: คอนเทนต์เอ็กซ์คลูซีฟหลากหลายจากศิลปินดัง en: Famous stars and original contents - sequence: 2 lines: - line: th: ทรู 5G อิมเมอร์ซีฟ XR/VR 360° en: True 5G Immersive XR/VR 360° View - line: th: >- ประสบการณ์รับชมใหม่บนทรูไอดีแอพพลิเคชั่นและเว็ปไซต์ en: >- Enjoy new experience on TrueID Application & Website schema: $ref: '#/components/schemas/OfferServicePullPublishOfferResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /offer/delete/{offerid}: post: tags: - Offer Service operationId: OfferService_deleteOffer description: | This service is used to delete an offer. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string - description: Offer identifier name: offerid in: path required: true schema: type: string responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/ResultCode' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /product/publish: post: tags: - Product Service operationId: ProductService_pullPublishProduct description: | This service is used to pull products to publish. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Product request object content: application/json: examples: Product Code: value: unicitykey: TVSTID Simple Products: value: typology: simple Group Products: value: typology: grouped Studios: value: studios: - Tiga schema: $ref: '#/components/schemas/ProductRequest' required: true responses: '200': description: List of published product content: application/json: examples: Product: value: - title: en: TVS product subscriptkon th: TVS product subscription description: en: >- Level up your enjoy with cartoon, variety show, documentary unicitykey: TVSTID status: Published structure: countrycode: TH partnercode: TDG merchandcode: TDG properties: collection: ONLINE sequence: '2' ranking: 0 groupcode: EPL accountingcode: '0640000022' content: maxccu: 2 ispublic: false sequence: 2 productid: b27a0b3a0e314eb0a38beb499683845a highlightshelf: image: 98isoejr trailer: jfs9fjoi termcond: image: https://cms.dmpcdn.com/subscription/V1/NowPre_S.jpg pdf: https://cms.dmpcdn.com/subscription/V1/NowPre_L.jpg privatepolicy: 8si712ij banner: portrait: https://cms.dmpcdn.com/subscription/V1/NowPre_S.jpg landscape: https://cms.dmpcdn.com/subscription/V1/NowPre_L.jpg benfefits: - lines: - line: th: Level up your enjoy - line: en: UCL/LaLiga/LIGUE - lines: - line: en: Enjoy EPL Matches - line: en: >- Level up your enjoy with cartoon, variety show, documentary - lines: - line: en: '380' logo: sizes: https://cms.dmpcdn.com/subscription/V1/NowPre_S.jpg sizel: https://cms.dmpcdn.com/subscription/V1/NowPre_L.jpg ispublic: true Group: value: - title: en: True Visions Now th: ทรูวิชันส์ นาว productid: df8e91fd5c3b4b4e9313a2292b2e4cff unicitykey: TVSNOW status: Published codification: typology: grouped properties: sequence: 3 baseprice: 119 content: isactive: true benefits: - lines: - line: th: '3 แพ็กเกจ: Lite/ Standard/ Premium' en: '3 packages: Lite Standard Premium' - lines: - line: th: ดูสด UCL Laliga หนัง ซีรีส์ การ์ตูน en: Live UCL /Movies Series/ Cartoon - title: en: Combo th: คอมโบ productid: e9bbcfd732714cbbb119f52731df17e8 unicitykey: TIDTVS status: Published codification: typology: grouped properties: sequence: 10 content: isactive: true benefits: - lines: - line: th: ช่องรายการดังและคอนเทนต์หลากหลาย en: Live TV + On demand - lines: - line: th: มากกว่า 2, 000 โปรแกรมให้เลือกดู en: + 2, 000 Hit Content schema: $ref: '#/components/schemas/ProductServicePullPublishProductResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} /promotion/upsert: post: tags: - Promotion Service operationId: PromotionService_upsertPromotion description: > This service is used to create or update a promotion. If the promotionid field is filled, the service will search the concerned promotion and update it. In case of update, the promotion stored is the database is replaced by the input promotion is the request. No merge is done. If pomotionid is not filled or filled but not found, a new promotion is created. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Request query object content: application/json: examples: Telecom: description: > Promotion for any basket having an offer EPL-LIVETV, will get a 20% Off on this offer. value: title: EPL Early birds during ECL finals promotionid: d6489a5bcd4b4ae69b80a23ff2a1886e unicitykey: EPL Early birds usagelimit: Voucher startdate: '2020-05-14T22:00:00.000Z' enddate: '2020-06-30T21:59:00.000Z' status: Published rules: - description: EPLLive-Rule ruleID: 47df9560-49be-4185-812b-9025b4cf82d3 salience: 6567 conditions: - conditionid: 0d44bc4c-506a-43c1-bb68-019d5091f11a conditionlabel: EPL Live parameter1: Offer parameter8: - attribute: offercode value: EPL-LIVETV quantity: 1 behaviours: - behaviourid: 7715175a-fa2e-4360-adaf-40e74fc86cd8 behaviourlabel: 20OFF parameter1: LineDiscountPercent parameter2: '20' priority: 140 combinablepromo: false combinablecop: false commissiondiscountprice: false salience: 6567 Retail: description: > Promotion for a basket containing offer code = 2WS1, once the purchase is done, use the template EMAIL-FOODTHAI-VOUCHER to email a single-use code of the campaign FOOD33PERCENT value: title: Promotion - Send a coupon for 2WS1 promotionid: 0e173f52135f484a83f597f78332f87a tenantid: a6ca93d74c284a1bad47c04191af1188 voucherIdCode: a4490432ba52412e910c8da50bd08a84 startdate: '2019-10-31T23:00:00.000Z' enddate: '2020-05-30T16:19:00.000Z' status: Published rules: - description: YearlyPayment ruleID: 14e3b5ba-dff6-468a-9f6f-1b1d7db207de salience: 3467 conditions: - conditionid: 9744d16a-8885-4bd5-87bc-da07bc5f1424 conditionlabel: 2WS1 Offer parameter1: Offer parameter8: - attribute: offercode value: 2WS1 quantity: 1 behaviours: - behaviourid: e5aeff12-cf57-45a7-91be-fe4ec690a18e behaviourlabel: Send Coupon parameter1: DeferredEmailTemplate parameter2: FOOD33PERCENT parameter3: EMAIL-FOODTHAI-VOUCHER priority: 1 combinablepromo: true combinablecop: false commissiondiscountprice: false salience: 3467 schema: $ref: '#/components/schemas/Promotion' required: true responses: '200': description: . content: application/json: examples: Telecom: description: > Promotion for any basket having an offer EPL-LIVETV, will get a 20% Off on this offer. value: title: EPL Early birds during ECL finals promotionid: d6489a5bcd4b4ae69b80a23ff2a1886e unicitykey: EPL Early birds usagelimit: Voucher startdate: '2020-05-14T22:00:00.000Z' enddate: '2020-06-30T21:59:00.000Z' status: Published rules: - description: EPLLive-Rule ruleID: 47df9560-49be-4185-812b-9025b4cf82d3 salience: 6567 conditions: - conditionid: 0d44bc4c-506a-43c1-bb68-019d5091f11a conditionlabel: EPL Live parameter1: Offer parameter8: - attribute: offercode value: EPL-LIVETV quantity: 1 behaviours: - behaviourid: 7715175a-fa2e-4360-adaf-40e74fc86cd8 behaviourlabel: 20OFF parameter1: LineDiscountPercent parameter2: '20' priority: 140 combinablepromo: false combinablecop: false commissiondiscountprice: false salience: 6567 Retail: description: > Promotion for a basket containing offer code = 2WS1, once the purchase is done, use the template EMAIL-FOODTHAI-VOUCHER to email a single-use code of the campaign FOOD33PERCENT value: title: Promotion - Send a coupon for 2WS1 promotionid: 0e173f52135f484a83f597f78332f87a tenantid: a6ca93d74c284a1bad47c04191af1188 voucherIdCode: a4490432ba52412e910c8da50bd08a84 startdate: '2019-10-31T23:00:00.000Z' enddate: '2020-05-30T16:19:00.000Z' status: Published rules: - description: YearlyPayment ruleID: 14e3b5ba-dff6-468a-9f6f-1b1d7db207de salience: 3467 conditions: - conditionid: 9744d16a-8885-4bd5-87bc-da07bc5f1424 conditionlabel: 2WS1 Offer parameter1: Offer parameter8: - attribute: offercode value: 2WS1 quantity: 1 behaviours: - behaviourid: e5aeff12-cf57-45a7-91be-fe4ec690a18e behaviourlabel: Send Coupon parameter1: DeferredEmailTemplate parameter2: FOOD33PERCENT parameter3: EMAIL-FOODTHAI-VOUCHER priority: 1 combinablepromo: true combinablecop: false commissiondiscountprice: false salience: 3467 schema: $ref: '#/components/schemas/Promotion' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /promotion/set: post: tags: - Promotion Service operationId: PromotionService_createNewPromotion description: | This service is used to create a new promotion. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Request query object content: application/json: examples: Telecom: description: > Promotion for any basket having an offer EPL-LIVETV, will get a 20% Off on this offer. value: title: EPL Early birds during ECL finals unicitykey: EPL Early birds usagelimit: Voucher startdate: '2020-05-14T22:00:00.000Z' enddate: '2020-06-30T21:59:00.000Z' status: Published rules: - description: EPLLive-Rule ruleID: 47df9560-49be-4185-812b-9025b4cf82d3 salience: 6567 conditions: - conditionid: 0d44bc4c-506a-43c1-bb68-019d5091f11a conditionlabel: EPL Live parameter1: Offer parameter8: - attribute: offercode value: EPL-LIVETV quantity: 1 behaviours: - behaviourid: 7715175a-fa2e-4360-adaf-40e74fc86cd8 behaviourlabel: 20OFF parameter1: LineDiscountPercent parameter2: '20' priority: 140 combinablepromo: false combinablecop: false commissiondiscountprice: false salience: 6567 Retail: description: > Promotion for a basket containing offer code = 2WS1, once the purchase is done, use the template EMAIL-FOODTHAI-VOUCHER to email a single-use code of the campaign FOOD33PERCENT value: title: Promotion - Send a coupon for 2WS1 startdate: '2019-10-31T23:00:00.000Z' enddate: '2020-05-30T16:19:00.000Z' status: Published rules: - description: YearlyPayment ruleID: 14e3b5ba-dff6-468a-9f6f-1b1d7db207de salience: 3467 conditions: - conditionid: 9744d16a-8885-4bd5-87bc-da07bc5f1424 conditionlabel: 2WS1 Offer parameter1: Offer parameter8: - attribute: offercode value: 2WS1 quantity: 1 behaviours: - behaviourid: e5aeff12-cf57-45a7-91be-fe4ec690a18e behaviourlabel: Send Coupon parameter1: DeferredEmailTemplate parameter2: FOOD33PERCENT parameter3: EMAIL-FOODTHAI-VOUCHER priority: 1 combinablepromo: true combinablecop: false commissiondiscountprice: false salience: 3467 schema: $ref: '#/components/schemas/PromotionCreate' required: true responses: '200': description: . content: application/json: examples: Telecom: description: > Promotion for any basket having an offer EPL-LIVETV, will get a 20% Off on this offer. value: title: EPL Early birds during ECL finals promotionid: d6489a5bcd4b4ae69b80a23ff2a1886e unicitykey: EPL Early birds usagelimit: Voucher startdate: '2020-05-14T22:00:00.000Z' enddate: '2020-06-30T21:59:00.000Z' status: Published rules: - description: EPLLive-Rule ruleID: 47df9560-49be-4185-812b-9025b4cf82d3 salience: 6567 conditions: - conditionid: 0d44bc4c-506a-43c1-bb68-019d5091f11a conditionlabel: EPL Live parameter1: Offer parameter8: - attribute: offercode value: EPL-LIVETV quantity: 1 behaviours: - behaviourid: 7715175a-fa2e-4360-adaf-40e74fc86cd8 behaviourlabel: 20OFF parameter1: LineDiscountPercent parameter2: '20' priority: 140 combinablepromo: false combinablecop: false commissiondiscountprice: false salience: 6567 Retail: description: > Promotion for a basket containing offer code = 2WS1, once the purchase is done, use the template EMAIL-FOODTHAI-VOUCHER to email a single-use code of the campaign FOOD33PERCENT value: title: Promotion - Send a coupon for 2WS1 promotionid: 0e173f52135f484a83f597f78332f87a tenantid: a6ca93d74c284a1bad47c04191af1188 voucherIdCode: a4490432ba52412e910c8da50bd08a84 startdate: '2019-10-31T23:00:00.000Z' enddate: '2020-05-30T16:19:00.000Z' status: Published rules: - description: YearlyPayment ruleID: 14e3b5ba-dff6-468a-9f6f-1b1d7db207de salience: 3467 conditions: - conditionid: 9744d16a-8885-4bd5-87bc-da07bc5f1424 conditionlabel: 2WS1 Offer parameter1: Offer parameter8: - attribute: offercode value: 2WS1 quantity: 1 behaviours: - behaviourid: e5aeff12-cf57-45a7-91be-fe4ec690a18e behaviourlabel: Send Coupon parameter1: DeferredEmailTemplate parameter2: FOOD33PERCENT parameter3: EMAIL-FOODTHAI-VOUCHER priority: 1 combinablepromo: true combinablecop: false commissiondiscountprice: false salience: 3467 schema: $ref: '#/components/schemas/Promotion' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /promotion/search: post: tags: - Promotion Service operationId: PromotionService_searchPromotions description: | This service is used to search promotions. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Request query object content: application/json: schema: $ref: '#/components/schemas/PromotionRequest' required: true responses: '200': description: . content: application/json: examples: Telecom: description: > Promotion for any basket having an offer EPL-LIVETV, will get a 20% Off on this offer. value: - title: EPL Early birds during ECL finals promotionid: d6489a5bcd4b4ae69b80a23ff2a1886e unicitykey: EPL Early birds usagelimit: Voucher startdate: '2020-05-14T22:00:00.000Z' enddate: '2020-06-30T21:59:00.000Z' status: Published rules: - description: EPLLive-Rule ruleID: 47df9560-49be-4185-812b-9025b4cf82d3 salience: 6567 conditions: - conditionid: 0d44bc4c-506a-43c1-bb68-019d5091f11a conditionlabel: EPL Live parameter1: Offer parameter8: - attribute: offercode value: EPL-LIVETV quantity: 1 behaviours: - behaviourid: 7715175a-fa2e-4360-adaf-40e74fc86cd8 behaviourlabel: 20OFF parameter1: LineDiscountPercent parameter2: '20' priority: 140 combinablepromo: false combinablecop: false commissiondiscountprice: false salience: 6567 Retail: description: > Promotion for a basket containing offer code = 2WS1, once the purchase is done, use the template EMAIL-FOODTHAI-VOUCHER to email a single-use code of the campaign FOOD33PERCENT value: - title: Promotion - Send a coupon for 2WS1 promotionid: 0e173f52135f484a83f597f78332f87a tenantid: a6ca93d74c284a1bad47c04191af1188 voucherIdCode: a4490432ba52412e910c8da50bd08a84 startdate: '2019-10-31T23:00:00.000Z' enddate: '2020-05-30T16:19:00.000Z' status: Published rules: - description: YearlyPayment ruleID: 14e3b5ba-dff6-468a-9f6f-1b1d7db207de salience: 3467 conditions: - conditionid: 9744d16a-8885-4bd5-87bc-da07bc5f1424 conditionlabel: 2WS1 Offer parameter1: Offer parameter8: - attribute: offercode value: 2WS1 quantity: 1 behaviours: - behaviourid: e5aeff12-cf57-45a7-91be-fe4ec690a18e behaviourlabel: Send Coupon parameter1: DeferredEmailTemplate parameter2: FOOD33PERCENT parameter3: EMAIL-FOODTHAI-VOUCHER priority: 1 combinablepromo: true combinablecop: false commissiondiscountprice: false salience: 3467 schema: $ref: '#/components/schemas/PromotionServiceSearchPromotionsResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /promotion/publish: post: tags: - Promotion Service operationId: PromotionService_informMerchantAboutPromotion description: > This service informs the merchant about promontions (conditions and actions). parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Request input content: application/json: examples: Offer Bundle: value: offercodes: - IQIYIVIP_0THB_TRIAL1M_NPN_RC_12M_ALA Product Bundle: value: productcodes: - ITVSNOW Business key: value: businesskeys: - OXFORD schema: $ref: '#/components/schemas/PromotionPublishRequest' required: true responses: '200': description: Response promotions list . content: application/json: examples: Bundle of Subscriptions: value: - title: - languagecode: en value: Bundle of Subscription Discount 1 promotionid: 14466c674f784ba7aaf7c509e74ce555 haspromocode: false startdate: '2022-08-09T14:51:00.000Z' enddate: '2023-01-31T15:51:00.000Z' rules: - conditions: subscriptions: - isinclusion: true attribute: OFFER code: IQIYIVIP_0THB_TRIAL1M_NPN_RC_12M_ALA subscriptiontype: NEW - attribute: OFFER code: TRUEIDPLUS_BPN_RC_REG subscriptiontype: ACTIVE behaviours: - discountname: SubscriptionPercent isreverseprice: false offers: - attribute: OFFER code: TRUEIDPLUS_BPN_RC_REG ispercent: true discountvalue: 5 - attribute: OFFER code: IQIYIVIP_0THB_TRIAL1M_NPN_RC_12M_ALA ispercent: true discountvalue: 10 combinablepromo: true discountsellingprice: false - title: - languagecode: en value: Promotion Bundle of Offers promotionid: 0548b48918864e22898da41725c9fd4b haspromocode: false startdate: '2020-12-27T15:08:00.000Z' enddate: '2023-04-07T14:08:00.000Z' rules: - conditions: offers: - offercode: IQIYIVIP_0THB_NPN_RC_EVG_ALA quantity: 1 - offercode: EPLMINI_NPN_RC_EVG_REG quantity: 1 behaviours: - discountname: OfferDiscountPercent isreverseprice: false offers: - attribute: IQIYIVIP_0THB_NPN_RC_EVG_ALA code: OFFER ispercent: true discountvalue: 20 combinablepromo: true discountsellingprice: false Bundle of Offers: value: - title: - languagecode: en value: Promotion Bundle of Offers promotionid: 0548b48918864e22898da41725c9fd4b haspromocode: false combinablepromo: true discountsellingprice: false startdate: '2020-12-27T15:08:00.000Z' enddate: '2023-04-07T14:08:00.000Z' rules: - conditions: - offers: - offercode: EPLMINI_NPN_RC_EVG_REG baseprice: 4900 quantity: 1 - offercode: IQIYIVIP_0THB_NPN_RC_EVG_ALA baseprice: 45000 quantity: 1 behaviours: - discountname: OfferDiscountPercent offers: - code: IQIYIVIP_0THB_NPN_RC_EVG_ALA value: OFFER ispercent: true discountvalue: 20 Bundle of Products: value: - title: - segment: FR languagecode: fr value: Composition de produits promotionid: 603e13757f33457990fd2b93ae681892 businesscode: OXFORD haspromocode: false combinablepromo: true discountsellingprice: false attributes: [] startdate: '2022-10-01T22:00:00.000Z' enddate: '2023-10-01T22:00:00.000Z' rules: - conditions: - products: - productcode: TVSNOW_TRIAL1M_BPN_RC_EVG_REG baseprice: 11900 quantity: 1 - productcode: ADKTVOD099_PNN_OC_30D_ALA baseprice: 0 quantity: 1 behaviours: - discountname: ProductDiscountAmount isreverseprice: false products: - datatype: PRODUCT code: TVSNOW ispercent: false quantity: 1 discountvalue: 4000 - datatype: PRODUCT code: TVOD ispercent: false quantity: 1 discountvalue: 3500 medias: - url: >- https://api-dev.gridbees.com/medias/get?id=GDIH6000000001S rank: 3 originalname: logo mediatype: image languagecode: th Mixed example: value: - title: en: Bundle of Subscription Discount 1 promotionid: 14466c674f784ba7aaf7c509e74ce555 haspromocode: false combinablepromo: true discountsellingprice: false startdate: '2022-08-09T14:51:00.000Z' enddate: '2023-01-31T15:51:00.000Z' rules: - conditions: - subscriptions: - isinclusion: true datatype: OFFER code: IQIYIVIP_0THB_TRIAL1M_NPN_RC_12M_ALA subscriptiontype: NEW baseprice: 0 - isinclusion: true datatype: OFFER code: TRUEIDPLUS_BPN_RC_REG subscriptiontype: ACTIVE baseprice: 9900 behaviours: - discountname: SubscriptionPercent offers: - code: OFFER value: TRUEIDPLUS_BPN_RC_REG ispercent: true discountvalue: 5 - code: OFFER value: IQIYIVIP_0THB_TRIAL1M_NPN_RC_12M_ALA ispercent: true discountvalue: 10 - title: en: Bundle of Offers For Streaming and specific vendors promotionid: 0548b48918864e22898da41725c9fd4b haspromocode: false combinablepromo: true discountsellingprice: false startdate: '2020-12-27T15:08:00.000Z' enddate: '2023-04-07T14:08:00.000Z' rules: - conditions: - vendorcodes: - 408TRCODE offertypes: - offercode: STREAMING quantity: 2 offers: - offercode: EPLMINI_NPN_RC_EVG_REG baseprice: 4900 quantity: 1 - offercode: IQIYIVIP_0THB_NPN_RC_EVG_ALA baseprice: 0 quantity: 1 behaviours: - discountname: OfferDiscountPercent offers: - code: IQIYIVIP_0THB_NPN_RC_EVG_ALA value: OFFER ispercent: true discountvalue: 20 medias: - url: >- https://api-dev.gridbees.com/medias/get?id=GDIH6000000001S rank: 0 originalname: '' mediatype: MOn nom languagecode: ru - title: fr: Composition de produits en: Bundle of offers promotionid: 603e13757f33457990fd2b93ae681892 businesskey: OXFORD haspromocode: false combinablepromo: true discountsellingprice: false startdate: '2022-10-01T22:00:00.000Z' enddate: '2023-10-01T22:00:00.000Z' rules: - conditions: - products: - productcode: TVSNOW_TRIAL1M_BPN_RC_EVG_REG quantity: 1 - productcode: ADKTVOD099_PNN_OC_30D_ALA quantity: 1 behaviours: - discountname: ProductDiscountAmount isreverseprice: false products: - datatype: PRODUCT code: TVSNOW ispercent: false quantity: 1 discountvalue: 4000 - datatype: PRODUCT code: TVOD ispercent: false quantity: 1 discountvalue: 3500 medias: - url: >- https://api-dev.gridbees.com/medias/get?id=GDIH6000000001S rank: 3 originalname: logo mediatype: image languagecode: th schema: $ref: >- #/components/schemas/PromotionServiceInformMerchantAboutPromotionResponse '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /promotion/delete/{promotionid}: get: tags: - Promotion Service operationId: PromotionService_deletePromotionById description: > This service is used to delete a promotion. If the promotion was already loaded, the pricing service will unload the deleted promotion. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string responses: '200': description: The request is correctly processed. content: application/json: schema: $ref: '#/components/schemas/ResultCode' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /valorization/valorize: post: tags: - Pricing Service operationId: PricingService_valorizeBasket description: > This service is used to calculate all prices of a basket. The service discards all input prices coming within the request and set all known prices inside the basket. If a price hasn’t been found, the service returns an error. The input basket is controlled before to be valorized. The checklist is: - existence of at least one basket line - each basket line must have a unique offer identifier, and the offer is published - the requested quantity is a positive value - if a vendor exists and not blocked - Check the validity of the promocode if given The service set the price: - for each offer of the basket - for each additionnal services attached to the offers If for a basket line, many prices exist due to for example a typology of price (National price, local, advertising price, …), the service applies the business logic to find the good price. Once all prices and all checks are OK, the service applies all active promotions on the basket. An active promotion, is published promotion such as the period include the submission date of the basket. Promotions are divided into: - a list of conditions (minimum of basket amount, a specific product, ..) - a list of benefits (discount in percentage, added offer, discount on delivery fees, …) If for a given active promotion, the basket satisfies all the conditions, then all the benefits are applied to the basket. At the end, the service calculates some hash control to guaranty the prices won’t be altered. The hash is stored in the amount node of the basket and each lines. If you use Gridbees Booking service, those hash will be recalculated by the booking service. The value of the hash in the request will be compared with the value obtained by the booking service. The service uses these fields to create the hash: - amount.grossamount - amount.netamount - amount.commissionamount - amount.totaltopay - amount.totaltorefund - amount.discountamount - amount.additionalserviceamount - amount.additionalassemblyamount - amount.additionalrecoveryamount - amount.feesdiscountamount - amount.discountamount - amount.adjustedamount - amount.fees - ordertracking .vendorcode - line.offerid - line.quantity - line.offerbookingdate - line.offerbookinghour The service uses the algorithm SHA-256 to generate the hash by adding a secret key.
Pricing Error Codes
Error Code Description
PROMONOTMARKET The promotion code doesn’t exist in the market
PROMOEXPIRED Promotion code expired
PROMONOTEXISTS Promotion code not exists
PROMONOTPUPLISHED Promotion not published
VOUCHEREXPIRED Coupon code is expired
VOUCHERUSED Coupon code is already burned
OFFERNOTEXIST Offer not exists
PRICENOTFOUND Offer exists but the price isn’t found
PROMOCODENOTSATISFIED Promotion code is valid, but not all the conditions are satisfied
PAYMENTMODECHANGED The merchant payment mode has changed
VENDORNOTEXIST Vendor not exists
VENDORBLOCKED Vendor is blocked
PAYMENTISPENDING Payment is pending
ORDERNOTFOUND Order not found for the cancellation
parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: Request basket content: application/json: examples: retail: value: identifier: structure: countrycode: th companycode: TDG ordertracking: orderchannel: TV amount: fees: 10 lines: - linenum: 1 offerid: 2b9e72d61cfe4d3387b445dba842cd60 quantity: 3 amount: fees: 10 offercodification: vendorcode: SW platformcode: OTT_APP options: - unicitykey: '15332' optiondetails: - unicitykey: '576' telecom: value: profile: usersubcriptions: - isactive: true startdate: '2021-12-13T16:03:33.646Z' offercode: TRUEIDPLUS_BPN_RC_REG productcode: TRUEIDPLUS identifier: structure: countrycode: TH lines: - linenum: 1 offerid: eeb9f4a6aa9348b48456ac55d3f1dc47 offercode: IQIYIVIP_0THB_TRIAL1M_NPN_RC_12M_ALA quantity: 1 schema: $ref: '#/components/schemas/BasketRequest' required: true responses: '200': description: >- You need to check basketdetails.status to know if your request is successful or not. content: application/json: examples: retail: value: identifier: structure: blcode: TDG countrycode: TH marketcode: BANGKOK ordertracking: emitterid: GUI orderchannel: CALLCENTER promotionenddate: - attribute: EndDateDeliveryFees value: '2023-01-01T14:04:00.000Z' - attribute: EndDateBasketLine value: '2023-01-01T14:46:00.000Z' basketrules: - linenum: 0 rulename: FeesDiscountPercent discountamount: 50 priorityrule: promotionid: b7d2a0714abf4758abb1b6b31acb9412 promotiontype: PROMO_FEES_LEVEL enddate: '2023-01-01T14:04:00.000Z' combinablepromo: true discountsellingprice: false haspromocode: false commissiondiscountprice: false promotionname: TDG - Free Shipping (basket > 410THB) isreverseprice: false isforwallet: false loyaltycode: '' startdate: '2022-01-01T14:04:00.000Z' - linenum: 0 rulename: FeesDiscountPercent discountamount: 50 priorityrule: promotionid: 7c21408780ea41f599105fa89a9319e3 promotiontype: PROMO_FEES_LEVEL enddate: '2023-10-09T12:36:00.000Z' combinablepromo: true discountsellingprice: false haspromocode: false commissiondiscountprice: false promotionname: TDG - Free shipping (shipping zone = BKK) isreverseprice: false isforwallet: false loyaltycode: '' startdate: '2021-09-03T12:36:00.000Z' - linenum: 0 rulename: BasketDiscountPercent discountamount: 60 priorityrule: promotionid: 961dc891bafa43bfa44e6c7803416848 promotiontype: PROMO_BASKET_LEVEL enddate: '2023-01-01T14:46:00.000Z' combinablepromo: true discountsellingprice: false haspromocode: false commissiondiscountprice: false promotionname: TDG - 10% off (basket > 300 THB) isreverseprice: false isforwallet: false loyaltycode: '' startdate: '2022-01-01T14:46:00.000Z' - linenum: 0 rulename: GlobalFeesAmount discountamount: 50 - linenum: 0 rulename: LineFeesAmount discountamount: 50 amount: currency: THB grossamount: 600 netamount: 540 totaltopay: 600 discountamount: 60 feesdiscountamount: 50 hashamount: >- 795e3acf78569f281981621c348470a7db250d30cd9487403184db39027c776e deliverydetail: deliverynetwork: BANGKOK deliveryaddress: usage: '' isactive: true city: Phra Khanong postalcode: '10260' shippingdetails: - code: 7646bfbc66614e06a38fa6d2751b48ca offerids: - 3efd3ccbe8e0454a9cd43fb55ea85f3b fees: method: EXPRESS price: 50 availablemethods: - method: EXPRESS price: 50 - method: OPTIMUM price: 45 lines: - linenum: 0 referencecode: HAA500 offercode: HAA500 offerid: 3efd3ccbe8e0454a9cd43fb55ea85f3b linestatus: 0 quantity: 5 amount: currency: THB grossamount: 600 netamount: 600 totaltopay: 600 additionalserviceamount: 0 additionalassemblyamount: 0 additionalrecoveryamount: 0 feesdiscountamount: 50 fees: 0 hashamount: >- 659d670fbd34a3448f163f1b3568d5001a2044acbc9dba32151237f8720acc51 crossedoutprice: 0 sellingprice: 120 promotionenddate: - attribute: EndDateDeliveryFees value: '2022-05-03T03:35:10.232Z' additionalservices: - servicetype: shipping code: EXPRESS reference: '' price: 50 quantity: 1 - servicetype: shipping code: OPTIMUM reference: '' price: 45 quantity: 0 parcel: code: 7646bfbc66614e06a38fa6d2751b48ca deliverymethod: EXPRESS productitems: - productcode: '200' itemnumid: '200' quantity: 1 - productcode: PACK_5G itemnumid: PACK_5G quantity: 0 basketdetails: status: OK suggestions: - promotionid: 258ba5adead546659c0d97b6c03ddfcc promotionname: TDG - Voucher discount - Serialized coupons conditionid: 21eda420-a63c-418e-a3e9-067c0f098b23 conditiontype: BasketAmount expected: '>= 1000.00' combinable: false priority: 8213 issuccess: false comment: '>= 1000.00' - promotionid: 22a4a8954c924ec6918e87ea1f9124eb promotionname: TDG - Free Drink Coca Cola for Birthday conditionid: c7b1dee9-0164-4f25-9101-d7f0be1d18e3 conditiontype: Birthday expected: Birthday=yyyy-MM-dd combinable: true priority: 8020 issuccess: false comment: Birthday=yyyy-MM-dd - promotionid: 098c9809bb0144f885f53c9444546c2f promotionname: TDG - BOGO conditionid: 76eeabd5-6bc5-48a2-a04b-791892de96f0 conditiontype: Offer expected: offercode=MARTDG combinable: true priority: 5754 issuccess: false comment: offercode=MARTDG - promotionid: 961dc891bafa43bfa44e6c7803416848 promotionname: TDG - 10% off (basket > 300 THB) combinable: true priority: 4934 issuccess: true - promotionid: 7c21408780ea41f599105fa89a9319e3 promotionname: TDG - Free shipping (shipping zone = BKK) combinable: true priority: 3753 issuccess: true - promotionid: 9d6e049da9cf44e38e8438e65c8a3db3 promotionname: TDG - Free delivery - (previous purchase) conditionid: 17943203-83d9-43b2-bce8-2b6c3d02b933 conditiontype: LastPurchase expected: LastPurchase <= 1 MONTH combinable: true priority: 2033 issuccess: false comment: LastPurchase <= 1 MONTH - promotionid: b7d2a0714abf4758abb1b6b31acb9412 promotionname: TDG - Free Shipping (basket > 410THB) combinable: true priority: 1170 issuccess: true telecom: value: profile: usersubcriptions: - startdate: '2021-12-13T16:03:33.646Z' isactive: true offercode: TRUEIDPLUS_BPN_RC_REG productcode: TRUEIDPLUS identifier: structure: countrycode: TH basketrules: - linenum: 1 offerid: eeb9f4a6aa9348b48456ac55d3f1dc47 rulename: SubscriptionPercent discountamount: 4500 priorityrule: promotionid: 14466c674f784ba7aaf7c509e74ce555 promotiontype: PROMO_LINE_LEVEL enddate: '2023-01-31T15:51:00.000Z' combinablepromo: true discountsellingprice: true haspromocode: false commissiondiscountprice: false promotionname: Bundle of Subscription Discount 1 isreverseprice: false isforwallet: false loyaltycode: '' startdate: '2022-08-09T14:51:00.000Z' - linenum: 0 rulename: SubscriptionPercent discountamount: 0 priorityrule: promotionid: 14466c674f784ba7aaf7c509e74ce555 promotiontype: PROMO_LINE_LEVEL enddate: '2023-01-31T15:51:00.000Z' combinablepromo: true discountsellingprice: true haspromocode: false commissiondiscountprice: false promotionname: Bundle of Subscription Discount 1 isreverseprice: false isforwallet: false loyaltycode: '' startdate: '2022-08-09T14:51:00.000Z' - linenum: 0 rulename: GlobalFeesAmount discountamount: 0 amount: currency: EUR grossamount: 45000 netamount: 40500 totaltopay: 40500 hashamount: >- c13173c9f4a6d4cd4d10da79e5005c213fe2bfd5afc9e50e95e66b4109ea2739 lines: - linenum: 1 referencecode: IQIYIVIP_0THB_TRIAL1M_NPN_RC_12M_ALA offercode: IQIYIVIP_0THB_TRIAL1M_NPN_RC_12M_ALA offerid: eeb9f4a6aa9348b48456ac55d3f1dc47 quantity: 1 amount: currency: EUR grossamount: 45000 netamount: 40500 totaltopay: 40500 discountamount: 4500 additionalserviceamount: 0 additionalassemblyamount: 0 additionalrecoveryamount: 0 hashamount: >- b9b61cb5733516d23acd6ab74658e4e784c293cf7f1a058d81ab8e0e1ad5141a crossedoutprice: 0 sellingprice: 45000 promotionenddate: - attribute: EndDateBasketLine value: '2023-01-31T15:51:00.000Z' additionalservices: [] basketdetails: status: OK suggestions: - promotionid: 0548b48918864e22898da41725c9fd4b promotionname: Promotion Bundle of Offers conditionid: 75721a64-4eaf-4009-9ae8-d5126981d75c conditiontype: Offer expected: >- offercode=IQIYIVIP_0THB_NPN_RC_EVG_ALA, offercode=EPLMINI_NPN_RC_EVG_REG combinable: true priority: 5001 issuccess: false comment: >- offercode=IQIYIVIP_0THB_NPN_RC_EVG_ALA, offercode=EPLMINI_NPN_RC_EVG_REG schema: $ref: '#/components/schemas/BasketResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /booking/availabilities: post: tags: - Booking Service operationId: BookingService_refreshTheoreticalStocks description: > This service is used to refresh the theoretical stocks of the suppier for a given period parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: description: >- The period is defined by a stardate and an endate parameters. You an refine the request for a given list of offercode. content: application/json: examples: retail: value: {} schema: $ref: '#/components/schemas/AvailabilitiesRequest' required: true responses: '200': description: Availabilities response content: application/json: examples: retail: value: availabilitylines: - offerid: 1f3d07b1647144ce999d5b0ab31ee385 offercode: '369854' resupplyingdelay: 14 totalquantity: 10 - offerid: 71825be3a4d74cfe8d679d26c98980a8 offercode: '569874' totalquantity: 10 resupplyingdelay: 5 - offerid: 71825be3a4d74cfe8d679d26c98980a8 offercode: '3695236' totalquantity: 10 resupplyingdelay: 0 schema: $ref: '#/components/schemas/AvailabilitiesResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /booking/availability: post: tags: - Booking Service operationId: BookingService_checkAvailability description: > This method is used to know the actual quantity of a given offer with refined detail in the call such as the travel date. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: content: application/json: examples: retail: value: availability: origine: WEB_B2C availabilityline: - quantity: 5 product: code: '351135' - quantity: 3 product: code: '965863' availabilitycontext: shop: structure: shopcode: '649' typology: SHOP schema: $ref: '#/components/schemas/AvailabilityRequest' required: true responses: '200': description: Availability response content: application/json: examples: retail: value: availability: origine: F site: '649' isactual: true availabilityline: - quantity: 1 product: code: '351135' unitpricesell: 79.99 currency: THB canbeordered: false totalquantity: 15 exposedquantity: 0 createdate: '2020-05-11T14:38:41.292Z' availabilitycontext: shop: structure: shopcode: '649' typology: SHOP schema: $ref: '#/components/schemas/AvailabilityResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /booking/request: post: tags: - Booking Service operationId: BookingService_reserveOffers description: > This method is used to reserve some offers. This action will block the stock of the requested quantity for each offer. Most of the time, this request is done to guaranty to the client the reservation is blocked for a duration (configuration parameter). During this duration, the merchant application will have time to process the payment of the reservation. All amount information comes from a [pricing service](https://assets-global.website-files.com). If you use the Gridbees price valorization service, the list of data coming for this valorization service are: - All Amount nodes - Marketing information such as promotion code, - List of all rules applied to the orders - Hash control data to guaranty the quality of the data Once the payment has been made, the reservation must be confirmed, otherwise the system will un the reservation after the duration and unblock the stoks. The service applies some operations such as: - If a vendor is filled, some controls on the vendor conditions - All mandatory fields are present including passenger’s information - Calculation on hash amounts to guaranty the non-alteration The service returns: - in case of success (ordercontext.status = OK), the order reference (ordertracking.transactionnumber) of the reservation - otherwise (ordercontext.status = KO), the business error code (ordercontext.code)
Booking Error Codes
Error Code Description
HASHCONTROLERROR Hash control failed. Check the fields coming from Pricing service to fill in your request
VENDORNOTEXISTORBLOCKED Merchant code not found or blocked
ORDERNOTFOUND Order not found
MAXPAIDNOTALLOWED Total paid is not allowed for this payment mode
NOTIFICATIONNOTFOUND The terms of sales in the request have not been found
OFFERNOTEXIST Offer not exists
BOOKINGALREADYCONFIRMED this booking is already confirmed
BOOKINGNOTFOUND Booking not found
BOOKINGCANCELFAILED Failed to release the stock for this booking
ERRORCANCELLED Order not paid or already cancelled
NOTIFICATIONRETENTIONDELAYEXPIRED For cancellation request, if the delay to cancel is expired, this error code is sent
Order status
Status Type Status Code Description
Operational PENDING The order is not confirmed and is waiting for the confirmation. The stock isn’t blocked for a pending order.
Operational PROCESSED The order is confirmed. The stocks are reserved.
Operational CANCELLED The order is cancelledand the stocks are released
Payment PENDING The payment of this order isn’t completed
Payment PAID The payment of the order is completed
Payment CANCELLED The payment is cancelled
Refund PENDING Refund is pending
Refund REFUSED Reund is efused
Refund CANCELLED The payment is cancelled
Refund PAID Refuns is paid
FILTERING TOREPROCESS Technical error. The order must be reprocessed
parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/OrderRequest' examples: retail: value: order: identifier: contactid: ER740328727d8a009bbb7fc structure: companycode: TDG countrycode: TH ordertracking: orderchannel: TV externalbookingid: c41e3-3737-4230-a9c4-2278934d5e platformreferencenumber: c41e3536-3737-4280-a9c4-2278934da0ce user: admintelecom amount: currency: EUR grossamount: 2697 netamount: 2697 totaltopay: 2697 commissionamount: 0 fees: 0 hashamount: >- 5309fdc5e73b0fc2a5c905c3cdba5fddb54ba3553240332540bceed8eb440faa billingaddress: streetname: >- 159/37 Serm-mit Tower 23rd Floor, Room 2301 Sukhumvit 21 road district: Watthana postalcode: '10110' province: Bangkok countrycode: TH geoloc: x: 13.741394 'y': 100.5615539 deliverydetail: deliverymode: HOME deliverynetwork: D deliveryshop: '696' deliveryaddress: streetname: >- 159/37 Serm-mit Tower 23rd Floor, Room 2301 Sukhumvit 21 road district: Watthana postalcode: '10110' province: Bangkok countrycode: TH geoloc: x: 13.741394 'y': 100.5615539 customdata: - attribute: delivery_estimated_date value: '2022-06-24T05:33:42.800Z' - attribute: delivery_delivered_date value: '2022-06-24T05:28:42.800Z' email: emailvalue: bteplier@gridbees.com payment: processingmode: PREPAYMENT details: - movementtype: CASHING paymentmode: cod paymentcode: '123654' prepaidamount: 873.98 externalpaymentreference: chrg_xyjd7643386jfjgs lines: - linenum: 1 offercode: '1165' offerid: 7897d72f9a0d43c88a951644d87c0328 quantity: 3 amount: currency: BHT grossamount: 2697 netamount: 2697 totaltopay: 2697 fees: 0 hashamount: >- 0640acd8be117139c94991753955fffc2dd959b1ca5edc0cc57803c521b9a8c5 crossedoutprice: 899 sellingprice: 899 options: [] ordercontext: externalbookingid: c41e3536-3737-4230-a9c4-2278934d required: true responses: '200': description: Reservation response content: application/json: examples: retail: value: order: orderid: c49c5cac79da47a3bcf08202e54b65e0 identifier: contactid: 8d408f1e24d740328727d8a009bbb7fc structure: companycode: TDG countrycode: th codification: vendorcode: SW platformcode: OTT_APP ordertracking: orderchannel: TV user: admintelecom bookingid: 20452bc4e2a14d90bd8deb5fb8facd45 externalbookingid: c41e3536-3737-4230-a9c4-2278934da0ce transactionnumber: E6VER000000009 platformreferencenumber: c41e3536-3737-4280-a9c4-2278934da0ce ordertype: BOOKING amount: currency: THB grossamount: 2697 netamount: 2697 totaltopay: 2797 fees: 10 commissionamount: 0 hashamount: >- 5309fdc5e73b0fc2a5c905c3cdba5fddb54ba3553240332540bceed8eb440faa billingaddress: usage: '' uid: '22193033437384710' isactive: true deliverydetail: addressuid: '22193033437384710' payment: processingmode: UNDEFINED updatedate: '2022-07-06T08:04:03.134+02:00' businesscreationdate: '2022-07-06T08:04:03.133+02:00' lines: - orderlineid: c3b91c90c6674437b981115c24aa535d linenum: 1 offerid: 2b9e72d61cfe4d3387b445dba842cd60 quantity: 3 amount: currency: THB grossamount: 2697 netamount: 2697 fees: 10 totaltopay: 2797 additionalserviceamount: 0 additionalassemblyamount: 0 additionalrecoveryamount: 0 hashamount: >- 0640acd8be117139c94991753955fffc2dd959b1ca5edc0cc57803c521b9a8c5 crossedoutprice: 899 sellingprice: 899 statusdetail: order: - statustype: Operational code: PENDING date: '2022-07-06T08:04:14.725+02:00' user: admintelecom - statustype: PAYMENT code: PENDING date: '2022-07-06T08:04:14.726+02:00' user: admintelecom latest: - statustype: Operational code: PENDING date: '2022-07-06T08:04:14.725+02:00' user: admintelecom - statustype: PAYMENT code: PENDING date: '2022-07-06T08:04:14.726+02:00' user: admintelecom lines: [] createdate: '2022-07-06T08:04:14.737+02:00' ordercontext: bookingid: 20452bc4e2a14d90bd8deb5fb8facd45 externalbookingid: c41e3536-3737-4230-a9c4-2278934da0ce status: OK message: '' endbookingdate: '2022-07-06T08:34:03.181+02:00' schema: $ref: '#/components/schemas/OrderResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /booking/confirm: post: tags: - Booking Service operationId: BookingService_confirmOrder description: > This method is used to confirm an order done by a call to booking/request service. The request is the same than the booking request call, but complete by payment information. The service applies some operations such as: - The existence of the bookig in Gridbees database (search based on the orderid field) and make some coherence controls. - Overdue payment or not balanced payment - Burns “one shot used” promotional vouchers - Sends email to the customer in some conditions (deferred promotion detected, email template detected, ...) - Stores and controls different payment modes used to pay the order parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/OrderConfirm' examples: retail: value: order: orderid: 2fd50e8ee47e4d08a2fea592fda35cb0 ordertracking: transactionnumber: 3AQHQ000000032 required: true responses: '200': description: Booking Confirmation response content: application/json: examples: retail: value: order: orderid: c49c5cac79da47a3bcf08202e54b65e0 identifier: contactid: 8d408f1e24d740328727d8a009bbb7fc structure: companycode: TDG countrycode: th codification: vendorcode: SW platformcode: OTT_APP ordertracking: orderchannel: TV user: admintelecom bookingid: 20452bc4e2a14d90bd8deb5fb8facd45 externalbookingid: c41e3536-3737-4230-a9c4-2278934da0ce transactionnumber: E6VER000000009 platformreferencenumber: c41e3536-3737-4280-a9c4-2278934da0ce ordertype: ORDER amount: currency: THB grossamount: 2697 netamount: 2697 fees: 10 totaltopay: 2797 commissionamount: 0 hashamount: >- 5309fdc5e73b0fc2a5c905c3cdba5fddb54ba3553240332540bceed8eb440faa billingaddress: usage: '' uid: '22193033437384710' isactive: true deliverydetail: addressuid: '22193033437384710' payment: details: - paymentmode: CASH paymentcode: CREDITNOTE totalpaid: 2797 externalpaymentreference: aa1e6ba23ff7414ab283e9d8ee5cd50a paymentdate: '2022-07-05T17:50:23.488Z' businesscreationdate: '2022-07-06T06:04:03.133Z' lines: - orderlineid: c3b91c90c6674437b981115c24aa535d linenum: 1 offerid: 2b9e72d61cfe4d3387b445dba842cd60 quantity: 3 amount: currency: THB grossamount: 2697 netamount: 2697 fees: 10 totaltopay: 2797 additionalserviceamount: 0 additionalassemblyamount: 0 additionalrecoveryamount: 0 hashamount: >- 0640acd8be117139c94991753955fffc2dd959b1ca5edc0cc57803c521b9a8c5 crossedoutprice: 899 sellingprice: 899 statusdetail: order: - statustype: Operational code: PROCESSED date: '2022-07-06T20:12:02.482Z' user: admintelecom - statustype: PAYMENT code: PAID date: '2022-07-06T20:12:02.480Z' user: admintelecom - statustype: Operational code: PENDING date: '2022-07-06T06:04:14.725Z' user: admintelecom - statustype: PAYMENT code: PENDING date: '2022-07-06T06:04:14.726Z' user: admintelecom latest: - statustype: Operational code: PROCESSED date: '2022-07-06T20:12:02.482Z' user: admintelecom - statustype: PAYMENT code: PAID date: '2022-07-06T20:12:02.480Z' user: admintelecom createdate: '2022-07-06T06:04:14.737Z' updatedate: '2022-07-06T20:12:02.487Z' ordercontext: externalbookingid: c41e3536-3737-4230-a9c4-2278934da0ce5 status: OK schema: $ref: '#/components/schemas/OrderResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /booking/cancel: post: tags: - Booking Service operationId: BookingService_cancelOrder description: > This service is used to cancel an order and release if needed the stock. An order can be cancelled if it has been already paid or not already cancelled. The service searches for the order and calculates the cancellation fees according to the terms of sales. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/CancellationRequest' required: true responses: '200': description: Booking Cancellation response content: application/json: schema: $ref: '#/components/schemas/CancellationBookingResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /booking/update: post: tags: - Booking Service operationId: BookingService_updateOrder description: > This method is used to updat an existing pending or confirmed order. Depending of the configuration, some changes are considered major and others minor. The list of major fields must be set during the configuration of a new client. For an input request, if there are major changes: - The order is reavaluated by the pricing service to check the new balance - The stock availability of the original order is released if the availability of the new order is confirmed. - The original order is replaced by the new order This service doesn't merge data from the original order with the new order. So you need to fill all necessary fields in the new order. If the original oder was already confirmed and paid, the requested changes may generate some cancellation fees depending of the cancellation terms. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: content: application/json: examples: retail: value: order: orderid: 6a768ded47334925a9f67a4721273884 identifier: contactid: b6e8fb8c6cc6430f854eaa64e17305dc legalentityid: LegalEntity1 structure: blcode: B2T countrycode: ES languagecode: es marketcode: CANARIES ordertracking: emitterid: '00001' orderchannel: W site: '007' bookingid: f31UW9KGekcJ orderrules: - linenum: 0 rulename: GlobalFeesAmount discountamount: 19 - linenum: 1 rulename: LineFeesAmount discountamount: 19 amount: currency: EUR grossamount: 329 netamount: 329 discountamount: 0 additionalserviceamount: 0 additionalassemblyamount: 0 additionalrecoveryamount: 0 feesdiscountamount: 0 fees: 0 billingaddress: usage: BIL actioncode: 0 isnormalized: false isactive: true streetnumber: '' streetname: Calle 56, piso 8 city: Poligon postalcode: '36918' province: Palmas De Gran Canaria, Las countrycode: ES name: civility: MRS lastname: B2T firstname: Gridbees identitydocuments: - usage: NIF numid: '00000999' deliverydetail: deliverymode: PICKUP deliverynetwork: SHOP pickupshop: '007' deliveryshop: '563' email: usage: BIL isprincipal: true emailvalue: gridbees@gmail.com businesscreationdate: '2020-05-11T15:24:08.148Z' lines: - linenum: 1 referencecode: ESESCAN000000396791PUB00690 deliverycode: '0' processingmode: SYNCH offerid: e7743586ff8d480bbc5f003003c875d5 quantity: 1 amount: currency: EUR grossamount: 329 netamount: 329 discountamount: 750 additionalserviceamount: 0 additionalassemblyamount: 0 additionalrecoveryamount: 0 feesdiscountamount: 0 fees: 0 vatrates: [] crossedoutprice: 1079 sellingprice: 329 additionalservices: [] productitems: - productid: a350b63dc6c84a66a1ca0fa98aedcf39 itemnumid: '396791' quantity: 1 promisedavailability: '2020-06-02' vatcode: '02' vatrate: 0 category: '42' family: medias subfamily: '7' productgroup: '1' shippingrate: '1' ordercontext: shop: structure: shopcode: '007' typology: Warehouse bookid: f31UW9KGekcJ contactid: b6e8fb8c6cc6430f854eaa64e17385dc schema: $ref: '#/components/schemas/OrderUpdateRequest' required: true responses: '200': description: Booking Confirmation response content: application/json: examples: retail: value: order: order: orderid: c33c2fb801234f21bdc8df28636ed43d identifier: contactid: b6e8fb8c6cc6430f854eaa64e17305dc legalentityid: LegalEntity1 structure: blcode: B2T countrycode: ES languagecode: es marketcode: CANARIES ordertracking: emitterid: '00001' orderchannel: W site: '007' bookingid: f31UW9KGekcJ orderrules: - linenum: 0 rulename: GlobalFeesAmount discountamount: 19 - linenum: 1 rulename: LineFeesAmount discountamount: 19 amount: currency: EUR grossamount: 329 netamount: 329 discountamount: 0 additionalserviceamount: 0 additionalassemblyamount: 0 additionalrecoveryamount: 0 feesdiscountamount: 0 fees: 0 billingaddress: usage: BIL actioncode: 0 isnormalized: false isactive: true streetnumber: '' streetname: Calle 56, piso 8 city: Poligon postalcode: '36918' province: Palmas De Gran Canaria, Las countrycode: ES name: civility: MRS lastname: B2T firstname: Gridbees identitydocuments: - usage: NIF numid: '00000999' deliverydetail: deliverymode: PICKUP deliverynetwork: SHOP pickupshop: '007' deliveryshop: '563' email: usage: BIL isprincipal: true emailvalue: gridbees@gmail.com businesscreationdate: '2020-05-11T15:24:08.148Z' statusdetail: order: - statustype: Operational code: PENDING date: '2020-05-11T15:24:08.511Z' - statustype: PAYMENT code: PENDING date: '2020-05-11T15:24:08.511Z' latest: - statustype: Operational code: PENDING date: '2020-05-11T15:24:08.511Z' - statustype: PAYMENT code: PENDING date: '2020-05-11T15:24:08.511Z' lines: - linenum: 1 referencecode: ESESCAN000000396791PUB00690 deliverycode: '0' processingmode: SYNCH offerid: e7743586ff8d480bbc5f003003c875d5 quantity: 1 amount: currency: EUR grossamount: 329 netamount: 329 discountamount: 750 additionalserviceamount: 0 additionalassemblyamount: 0 additionalrecoveryamount: 0 feesdiscountamount: 0 fees: 0 vatrates: [] crossedoutprice: 1079 sellingprice: 329 additionalservices: [] productitems: - productid: a350b63dc6c84a66a1ca0fa98aedcf39 itemnumid: '396791' quantity: 1 promisedavailability: '2020-06-02' vatcode: '02' vatrate: 0 category: '42' family: medias subfamily: '7' productgroup: '1' shippingrate: '1' ordercontext: status: OK shop: structure: shopcode: '007' typology: Warehouse bookid: f31UW9KGekcJ contactid: b6e8fb8c6cc6430f854eaa64e17385dc schema: $ref: '#/components/schemas/OrderResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /booking/paymentconfirmation: post: tags: - Booking Service operationId: BookingService_confirmPayment description: > This method is to confirm a payment based on a payment reference. The payment could be for one or many orders. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: content: application/json: examples: retail: value: payment: details: paymentmode: cod paymentcode: '123654' totalpaid: 2697 externalpaymentreference: chrg_xyjd7643386jfjgs schema: $ref: '#/components/schemas/PaymentConfirmationRequest' required: true responses: '200': description: Booking Confirmation response content: application/json: examples: retail: value: orders: - order: orderid: c49c5cac79da47a3bcf08202e54b65e0 identifier: contactid: 8d408f1e24d740328727d8a009bbb7fc structure: companycode: TDG countrycode: th codification: vendorcode: SW platformcode: OTT_APP ordertracking: orderchannel: TV user: admintelecom bookingid: 20452bc4e2a14d90bd8deb5fb8facd45 externalbookingid: c41e3536-3737-4230-a9c4-2278934da0ce transactionnumber: E6VER000000009 platformreferencenumber: c41e3536-3737-4280-a9c4-2278934da0ce ordertype: ORDER amount: currency: THB grossamount: 2697 netamount: 2697 fees: 10 totaltopay: 2797 commissionamount: 0 hashamount: >- 5309fdc5e73b0fc2a5c905c3cdba5fddb54ba3553240332540bceed8eb440faa billingaddress: usage: '' uid: '22193033437384710' isactive: true deliverydetail: addressuid: '22193033437384710' payment: details: - paymentmode: CASH paymentcode: CREDITNOTE status: PAID totalpaid: 2797 externalpaymentreference: aa1e6ba23ff7414ab283e9d8ee5cd50a paymentdate: '2022-07-05T17:50:23.488Z' businesscreationdate: '2022-07-06T06:04:03.133Z' lines: - orderlineid: c3b91c90c6674437b981115c24aa535d linenum: 1 offerid: 2b9e72d61cfe4d3387b445dba842cd60 quantity: 3 amount: currency: THB grossamount: 2697 netamount: 2697 fees: 10 totaltopay: 2797 additionalserviceamount: 0 additionalassemblyamount: 0 additionalrecoveryamount: 0 hashamount: >- 0640acd8be117139c94991753955fffc2dd959b1ca5edc0cc57803c521b9a8c5 crossedoutprice: 899 sellingprice: 899 statusdetail: order: - statustype: Operational code: PROCESSED date: '2022-07-06T20:12:02.482Z' user: admintelecom - statustype: PAYMENT code: PAID date: '2022-07-06T20:12:02.480Z' user: admintelecom - statustype: Operational code: PENDING date: '2022-07-06T06:04:14.725Z' user: admintelecom - statustype: PAYMENT code: PENDING date: '2022-07-06T06:04:14.726Z' user: admintelecom latest: - statustype: Operational code: PROCESSED date: '2022-07-06T20:12:02.482Z' user: admintelecom - statustype: PAYMENT code: PAID date: '2022-07-06T20:12:02.480Z' user: admintelecom createdate: '2022-07-06T06:04:14.737Z' updatedate: '2022-07-06T20:12:02.487Z' ordercontext: externalbookingid: c41e3536-3737-4230-a9c4-2278934da0ce5 status: OK reprocessingcontext: externalbookingid: 2492443457b343a0a1414656e1a77881 code: OK user: s.lopez schema: $ref: '#/components/schemas/PaymentConfirmationResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /booking/paymentcancellation: post: tags: - Booking Service operationId: BookingService_cancelPayment description: > This method is to cancel a payment based on payment references. The payment could be for one or many orders. The system tries to find related orders by querying on these filters : - movementtype = CASHING - payment status = PENDING - paymentmode if filled - paymentcode if filled - externalpaymentreference if filled - paymentdetailid if filled - vendorcode if filled - accountid if filled parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: content: application/json: examples: Payment detail identifier: value: isrefused: true syncorderstatus: true details: cancellationdate: '2023-01-07T16:55:31.665Z' paymentmode: card paymentdetailid: 2278934da0ce556712 cause: Refused by PSP user: system user schema: $ref: '#/components/schemas/PaymentCancellation' required: true responses: '200': description: Booking Cancellation response content: application/json: examples: Streaming: value: orders: - orderid: 4b7340903a66421283c4140a4821606a tenantid: aab5a2af8ad44b5d8f4e0f9b2bd2b663 codification: platformcodes: - OTT_APP identifier: contactid: '22015750' structure: companycode: TDG countrycode: TH ordertracking: vendorcode: TDG bookingid: b01ff82d6cb84027b8f01c6f616c02f2 externalbookingid: c41536-3737-4230-a9c4-2278934da0ce55672e transactionnumber: Hyl6cv2Uvttfg78e platformreferencenumber: c41e3536-3737-4280-a9c4-2278934d2a0cee ordertype: BOOKING amount: currency: THB grossamount: 5900 netamount: 5900 totaltopay: 5900 commissionamount: 0 hashamount: >- e10ecb96b6b004d1c5ed4cfe57f2a56a1b627c48123fd0c1b9deca5249e35975 billingaddress: streetnumber: 257, Charoen Nakhon Rd, Samre district: Thonburi postalcode: '10600' province: Bangkok geoloc: x: 13.704964637756348 'y': 100.4890365600586 deliverydetail: deliveryaddress: streetnumber: 257, Charoen Nakhon Rd, Samre district: Thonburi postalcode: '10600' province: Bangkok geoloc: x: 13.704964637756348 'y': 100.4890365600586 addressuid: '1235' payment: processingmode: PREPAYMENT paymentdate: '2023-01-08T18:47:04.561Z' details: - paymentdetailid: 2278934da0ce556712 movementtype: CASHING status: REFUSED paymentmode: card prepaidamount: 5900 paymentdate: '2023-01-08T18:47:04.606Z' updatedate: '2023-01-08T18:47:04.606Z' updatedate: '2023-01-08T18:47:04.561Z' businesscreationdate: '2023-01-08T18:46:13.740Z' lines: - orderlineid: f17f008da53c461587f444705aad3cba linenum: 1 referencecode: TIDPLUS2_BPN_RC_EVG_REG offerid: adc71155179c4dd4bcb8c80a2a7d6c9f offercodification: typology: STREAMING quantity: 1 amount: currency: THB grossamount: 5900 netamount: 5900 totaltopay: 5900 additionalserviceamount: 0 additionalassemblyamount: 0 additionalrecoveryamount: 0 hashamount: >- dc09cabd150f65568e05f234c5ade0d640a5fea5580b800812e2ec6382e822b2 sellingprice: 5900 productitems: - productcode: TIDPLUS quantity: 1 productgroup: TIDPLUS statusdetail: order: - statustype: PAYMENT code: REFUSED cause: Refused by PSP date: '2023-01-08T18:47:04.606Z' - statustype: Operational code: CANCELLED date: '2023-01-08T18:47:04.607Z' - statustype: Operational code: PENDING date: '2023-01-08T18:46:14.593Z' - statustype: PAYMENT code: PENDING date: '2023-01-08T18:46:14.593Z' latest: - statustype: PAYMENT code: REFUSED cause: Refused by PSP date: '2023-01-08T18:47:04.606Z' - statustype: Operational code: CANCELLED date: '2023-01-08T18:47:04.607Z' createdate: '2023-01-08T18:46:14.608Z' reprocessingcontext: status: OK schema: $ref: '#/components/schemas/PaymentConfirmationResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /order/search: post: tags: - Booking Service operationId: BookingService_searchBookings description: > This method is used to search bookings. The total results of bookings in the response is limited by a parameter (default 100 results). You must refine your search criteria if you didn't find your order. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/OrderSearchRequest' required: true responses: '200': description: Order Search response content: application/json: schema: $ref: '#/components/schemas/BookingServiceSearchBookingsResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /order/purchase: post: tags: - Booking Service operationId: BookingService_directConfirmPurchase description: > This method is used to directly confirm a purchase without having to call booking/request. This means that inventory management is unnecessary with this method since no stock will be blocked. The input request is supposed to be reliable, and the order will be stored as-is. If the order reference isn't filled (ordertracking.transactionnumber), the service will set this field with a unique internal reference. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/OrderRequest' examples: retail: value: order: identifier: contactid: 8d408f1e24d740328727d8a009bbb7fc structure: companycode: TDG countrycode: th codification: vendorcode: SW platformcode: OTT_APP ordertracking: orderchannel: TV externalbookingid: c41e3536-3737-4230-a9c4-2278934da0ce platformreferencenumber: c41e3536-3737-4280-a9c4-2278934da0ce user: admintelecom amount: currency: THB grossamount: 2697 netamount: 2697 totaltopay: 2797 fees: 10 commissionamount: 0 hashamount: >- 5309fdc5e73b0fc2a5c905c3cdba5fddb54ba3553240332540bceed8eb440faa billingaddress: uid: '22193033437384710' deliverydetail: addressuid: '22193033437384710' lines: - linenum: 1 offercode: '1164' offerid: 2b9e72d61cfe4d3387b445dba842cd60 quantity: 3 amount: currency: THB grossamount: 2697 netamount: 2697 totaltopay: 2797 fees: 10 additionalserviceamount: 0 additionalassemblyamount: 0 additionalrecoveryamount: 0 hashamount: >- 0640acd8be117139c94991753955fffc2dd959b1ca5edc0cc57803c521b9a8c5 crossedoutprice: 899 sellingprice: 899 options: - unicitykey: '15332' optiondetails: - unicitykey: '576' ordercontext: externalbookingid: c41e3536-3737-4230-a9c4-2278934da0ce required: true responses: '200': description: Order response content: application/json: examples: retail: value: order: orderid: c49c5cac79da47a3bcf08202e54b65e0 identifier: contactid: 8d408f1e24d740328727d8a009bbb7fc structure: companycode: TDG countrycode: th codification: vendorcode: SW platformcode: OTT_APP ordertracking: orderchannel: TV user: admintelecom bookingid: 20452bc4e2a14d90bd8deb5fb8facd45 externalbookingid: c41e3536-3737-4230-a9c4-2278934da0ce transactionnumber: E6VER000000009 platformreferencenumber: c41e3536-3737-4280-a9c4-2278934da0ce ordertype: ORDER amount: currency: THB grossamount: 2697 netamount: 2697 fees: 10 totaltopay: 2797 commissionamount: 0 hashamount: >- 5309fdc5e73b0fc2a5c905c3cdba5fddb54ba3553240332540bceed8eb440faa billingaddress: usage: '' uid: '22193033437384710' isactive: true deliverydetail: addressuid: '22193033437384710' payment: details: - paymentmode: CASH paymentcode: CREDITNOTE totalpaid: 2797 externalpaymentreference: aa1e6ba23ff7414ab283e9d8ee5cd50a paymentdate: '2022-07-05T17:50:23.488Z' businesscreationdate: '2022-07-06T06:04:03.133Z' lines: - orderlineid: c3b91c90c6674437b981115c24aa535d linenum: 1 offerid: 2b9e72d61cfe4d3387b445dba842cd60 quantity: 3 amount: currency: THB grossamount: 2697 netamount: 2697 fees: 10 totaltopay: 2797 additionalserviceamount: 0 additionalassemblyamount: 0 additionalrecoveryamount: 0 hashamount: >- 0640acd8be117139c94991753955fffc2dd959b1ca5edc0cc57803c521b9a8c5 crossedoutprice: 899 sellingprice: 899 statusdetail: order: - statustype: Operational code: PROCESSED date: '2022-07-06T20:12:02.482Z' user: admintelecom - statustype: PAYMENT code: PAID date: '2022-07-06T20:12:02.480Z' user: admintelecom - statustype: Operational code: PENDING date: '2022-07-06T06:04:14.725Z' user: admintelecom - statustype: PAYMENT code: PENDING date: '2022-07-06T06:04:14.726Z' user: admintelecom latest: - statustype: Operational code: PROCESSED date: '2022-07-06T20:12:02.482Z' user: admintelecom - statustype: PAYMENT code: PAID date: '2022-07-06T20:12:02.480Z' user: admintelecom createdate: '2022-07-06T06:04:14.737Z' updatedate: '2022-07-06T20:12:02.487Z' ordercontext: externalbookingid: c41e3536-3737-4230-a9c4-2278934da0ce5 status: OK schema: $ref: '#/components/schemas/OrderResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /order/updatestatus: post: tags: - Booking Service operationId: BookingService_updateOrderStatus description: | This method is used to update the order statuses. parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: content: application/json: examples: retail: value: orderid: f6f1ba232fd34efba355a3020c72bd4b transactionnumber: QZYRY000000014 latest: - statustype: Delivery code: PENDING date: '2022-07-07T06:24:24.273+02:00' user: CallCenter schema: $ref: '#/components/schemas/OrderStatusListUpdate' required: true responses: '200': description: Update Status response content: application/json: examples: retail: value: orderid: f6f1ba232fd34efba355a3020c72bd4b tenantid: 134beb0f25ed41ca9d963973b3aea8ae identifier: contactid: 8d408f1e24d740328727d8a009bbb7fc structure: blcode: TDG companycode: SW countrycode: TH marketcode: FOOD ordertracking: orderchannel: TV user: admintelecom bookingid: 2a3b31b089a54cf4a04e9194b72d266d externalbookingid: c41e3536-3737-4230-a9c4-2278934da0c5e transactionnumber: QZYRY000000014 platformreferencenumber: c41e3536-3737-4280-a9c4-2278934da0ce ordertype: ORDER amount: currency: EUR grossamount: 2697 netamount: 2697 totaltopay: 2697 commissionamount: 0 hashamount: >- 5309fdc5e73b0fc2a5c905c3cdba5fddb54ba3553240332540bceed8eb440faa billingaddress: usage: '' uid: '22193033437384710' isactive: true payment: details: - paymentmode: CASH paymentcode: CREDITNOTE totalpaid: 2697 externalpaymentreference: aa1e6ba23ff7414ab283e9d8ee5cd50a paymentdate: '2022-07-05T19:50:23.488+02:00' businesscreationdate: '2022-07-07T06:22:30.764+02:00' lines: - orderlineid: 2b6269aef4d444909fcec3ca15f372d9 linenum: 1 offerid: 2b9e72d61cfe4d3387b445dba842cd60 quantity: 3 amount: currency: EUR grossamount: 2697 netamount: 2697 totaltopay: 2697 additionalserviceamount: 0 additionalassemblyamount: 0 additionalrecoveryamount: 0 hashamount: >- 0640acd8be117139c94991753955fffc2dd959b1ca5edc0cc57803c521b9a8c5 crossedoutprice: 899 sellingprice: 899 additionalservices: [] statusdetail: order: - statustype: Delivery code: PENDING date: '2022-07-07T06:24:24.273+02:00' user: CallCenter - statustype: Operational code: PROCESSED date: '2022-07-07T06:24:24.273+02:00' user: admintelecom - statustype: PAYMENT code: PAID date: '2022-07-07T06:24:24.272+02:00' user: admintelecom - statustype: Operational code: PENDING date: '2022-07-07T06:22:31.129+02:00' user: admintelecom - statustype: PAYMENT code: PENDING date: '2022-07-07T06:22:31.129+02:00' user: admintelecom latest: - statustype: Delivery code: PENDING date: '2022-07-07T06:24:24.273+02:00' user: CallCenter - statustype: Operational code: PROCESSED date: '2022-07-07T06:24:24.273+02:00' user: admintelecom - statustype: PAYMENT code: PAID date: '2022-07-07T06:24:24.272+02:00' user: admintelecom createdate: '2022-07-07T06:22:31.142+02:00' updatedate: '2022-07-07T06:32:04.395+02:00' schema: $ref: '#/components/schemas/BookingServiceUpdateOrderStatusResponse' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /masterdata/upsert: post: tags: - MasterData Service operationId: MasterDataService_upsertMasterData description: | This method is used to create or updata a master data parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: content: application/json: examples: retail: value: mdobject: Minor mdtype: ATTRIBUTE mdaxis: Brand code: '22' value: Food Republic genericcode: FR translations: - name: title languagecode: en value: Food Republic - name: title languagecode: th value: ฟู้ดรีพับลิค backend: backendtype: String url: >- https://1112.minorcdn.com/1112one/public/images/noimage.gif schema: $ref: '#/components/schemas/MasterData' required: true responses: '200': description: The master data created or updated content: application/json: schema: $ref: '#/components/schemas/MasterData' examples: retail: value: masterdataid: 4d80fdd63d8a4e77bd2c67e16f21ae21 tenantid: 134beb0f25ed41ca9d963973b3aea8ae mdobject: Minor mdtype: ATTRIBUTE mdaxis: Brand code: '22' value: Food Republic genericcode: FR translations: - name: title languagecode: en value: Food Republic - name: title languagecode: th value: ฟู้ดรีพับลิค backend: backendtype: String url: >- https://1112.minorcdn.com/1112one/public/images/noimage.gif updatedate: '2022-07-07T05:36:11.521Z' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /masterdata/search: post: tags: - MasterData Service operationId: MasterDataService_searchMasterData description: | This method is used to search master data parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: content: application/json: examples: retail: value: mdobject: Minor schema: $ref: '#/components/schemas/MasterDataRequest' required: true responses: '200': description: Master data list content: application/json: schema: $ref: '#/components/schemas/MasterDataServiceSearchMasterDataResponse' examples: retail: value: - masterdataid: 4d80fdd63d8a4e77bd2c67e16f21ae21 tenantid: 134beb0f25ed41ca9d963973b3aea8ae mdobject: Minor mdtype: ATTRIBUTE mdaxis: Brand code: '22' value: Food Republic genericcode: FR translations: - name: title languagecode: en value: Food Republic - name: title languagecode: th value: ฟู้ดรีพับลิค backend: backendtype: String url: >- https://1112.minorcdn.com/1112one/public/images/noimage.gif updatedate: '2022-07-07T05:36:11.521Z' - masterdataid: c23f25709c7348c9baaab1479b240c30 tenantid: 134beb0f25ed41ca9d963973b3aea8ae mdobject: Minor mdtype: ATTRIBUTE mdaxis: Brand code: '18' value: John Bill genericcode: JB translations: - name: title languagecode: en value: John Bill - name: title languagecode: th value: จอห์น บิล backend: backendtype: String url: >- https://1112.minorcdn.com/1112one/public/images/noimage.gif publishable: false updatedate: '2022-07-05T08:32:15.631Z' - masterdataid: a442278180f040c2b4b068b4c321f922 tenantid: 134beb0f25ed41ca9d963973b3aea8ae mdobject: Minor mdtype: ATTRIBUTE mdaxis: Brand code: '19' value: Urban Pizza genericcode: UB translations: - name: title languagecode: en value: Urban Pizza - name: title languagecode: th value: เออร์เบิน พิซซ่า backend: backendtype: String url: >- https://1112.minorcdn.com/1112one/public/images/noimage.gif publishable: true updatedate: '2022-07-05T08:32:15.631Z' - masterdataid: 5e098973a82b40e9bba6887978e028fb tenantid: 134beb0f25ed41ca9d963973b3aea8ae mdobject: Minor mdtype: ATTRIBUTE mdaxis: Brand code: '3' value: Swensen's genericcode: SW translations: - name: title languagecode: en value: Swensen's - name: title languagecode: th value: สเวนเซ่นส์ backend: backendtype: String url: >- https://1112.minorcdn.com/1112one/public/images/brand_logo/MAR2019-2/SW.jpg publishable: true updatedate: '2022-07-05T08:32:15.633Z' - masterdataid: 574020ca0e824980913a3c1ae9b51170 tenantid: 134beb0f25ed41ca9d963973b3aea8ae mdobject: Minor mdtype: ATTRIBUTE mdaxis: Brand code: '12' value: Basil Thai Kitchen genericcode: TE translations: - name: title languagecode: en value: Basil Thai Kitchen - name: title languagecode: th value: เบซิล ไทยคิทเช่น backend: backendtype: String url: >- https://1112.minorcdn.com/1112one/public/images/noimage.gif publishable: true updatedate: '2022-07-05T08:32:15.632Z' - description: Strawberry Icy masterdataid: 557d246fad9d4fd0a1dd867361bc803f tenantid: 134beb0f25ed41ca9d963973b3aea8ae mdobject: Minor mdtype: ATTRIBUTE mdaxis: category parentcode: '2' code: '12' value: Small Bites Ice Cream priority: 8 translations: - name: title languagecode: en value: Small Bites Ice Cream - name: title languagecode: th value: ไอศกรีมสมอลไบทส์ backend: backendtype: String publishable: true updatedate: '2022-07-05T08:32:16.217Z' - description: ' ' masterdataid: 46552f1db27b4604b7cc4c477441fdab tenantid: 134beb0f25ed41ca9d963973b3aea8ae mdobject: Minor mdtype: ATTRIBUTE mdaxis: category parentcode: '2' code: '7' value: Ice Cream Bar priority: 6 translations: - name: title languagecode: en value: Ice Cream Bar - name: title languagecode: th value: ไอศกรีมบาร์ backend: backendtype: String publishable: true updatedate: '2022-07-05T08:32:16.187Z' - description: ' ' masterdataid: 63fb88ee6eeb4d588bb5aec184d8df48 tenantid: 134beb0f25ed41ca9d963973b3aea8ae mdobject: Minor mdtype: ATTRIBUTE mdaxis: category parentcode: '2' code: '9' value: Topping priority: 9 translations: - name: title languagecode: en value: Topping - name: title languagecode: th value: ท้อปปิ้ง backend: backendtype: String publishable: true updatedate: '2022-07-05T08:32:16.217Z' - description: ' ' masterdataid: ecf46bcee9b6408d9601e6b6f1362f06 tenantid: 134beb0f25ed41ca9d963973b3aea8ae mdobject: Minor mdtype: ATTRIBUTE mdaxis: category parentcode: '2' code: '8' value: Ice Cream Scoop priority: 7 translations: - name: title languagecode: en value: Ice Cream Scoop - name: title languagecode: th value: ไอศกรีมสกู๊ป backend: backendtype: String publishable: true updatedate: '2022-07-05T08:32:16.217Z' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /display/upsert: post: tags: - MasterData Service operationId: MasterDataService_upsertDataModel description: | This method is used to create or updata a data model parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: content: application/json: examples: retail: value: mdobject: GROUP displaytabs: - tabcode: GENERAL tabindex: 0 label: GENERAL - tabcode: MEDIAS tabindex: 1 label: MEDIAS mdtype: OBJECT code: GROUP genericcode: PRODUCT label: Product Group script: '' backend: backendtype: String attributes: - entity: Constant code: codification.typology value: grouped - entity: mdobject code: mdobject value: GROUP idname: productid updatedate: '2022-12-26T20:05:37.035+01:00' schema: $ref: '#/components/schemas/Display' required: true responses: '200': description: The data model created or updated content: application/json: schema: $ref: '#/components/schemas/Display' examples: retail: value: displayid: 6e4bfc533ce84fc585ea4b692227f7b9 tenantid: 134beb0f25ed41ca9d963973b3aea8ae mdobject: GROUP displaytabs: - tabcode: GENERAL tabindex: 0 label: GENERAL - tabcode: MEDIAS tabindex: 1 label: MEDIAS mdtype: OBJECT code: GROUP genericcode: PRODUCT label: Product Group script: '' backend: backendtype: String attributes: - entity: Constant code: codification.typology value: grouped - entity: mdobject code: mdobject value: GROUP idname: productid updatedate: '2022-12-26T20:05:37.035+01:00' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request /display/search: post: tags: - MasterData Service operationId: MasterDataService_searchMasterData description: | This method is used to search master data parameters: - description: Access ID name: X-Access-ID in: header required: true schema: type: string requestBody: content: application/json: examples: retail: value: mdtype: OBJECT schema: $ref: '#/components/schemas/DisplayRequest' required: true responses: '200': description: Data model list content: application/json: schema: $ref: >- #/components/schemas/MasterDataServiceSearchMasterData200Response examples: retail: value: - displayid: ba60b1fb398f4904a123ba734da5206c tenantid: 134beb0f25ed41ca9d963973b3aea8ae mdobject: OFFER_PRODUCT displaytabs: - tabcode: GENERAL tabindex: 0 label: GENERAL mdtype: OBJECT code: OFFER_PRODUCT backend: backendtype: String attributes: - entity: mdobject code: mdobject value: OFFER_PRODUCT idname: offer_productid updatedate: '2022-12-26T20:05:36.925+01:00' - displayid: daa27e0df70f42c5b4d833235aa4967a tenantid: 134beb0f25ed41ca9d963973b3aea8ae mdobject: CONTRACT_PERIOD displaytabs: - tabcode: GENERAL tabindex: 0 label: GENERAL mdtype: OBJECT code: CONTRACT_PERIOD script: ' ' backend: backendtype: String attributes: - entity: mdobject code: mdobject value: CONTRACT_PERIOD idname: contract_periodid updatedate: '2022-12-26T20:05:36.951+01:00' - displayid: 4402d0a979e54406b755f07804e1d1c3 tenantid: 134beb0f25ed41ca9d963973b3aea8ae mdobject: PRODUCT_RETAIL displaytabs: - tabcode: GENERAL tabindex: 0 label: GENERAL mdtype: OBJECT code: PRODUCT_RETAIL backend: backendtype: String attributes: - entity: mdobject code: mdobject value: PRODUCT_RETAIL idname: product_retailid updatedate: '2022-12-26T20:05:36.830+01:00' '401': description: >- The resource requires authentication, which was not supplied with the request content: {} x-codegen-request-body-name: request components: schemas: Address: description: Address object type: object required: - streetname - city - postalcode properties: uid: description: unique identifier type: string format: uuid usage: description: Usage of this address type: string enum: - DLV - BIL - DROPOFF - PICKUP Isnormalized: description: Is Normalized ? type: boolean qualitycode: description: Quality code type: boolean isative: description: Is active ? type: boolean streetnumber: description: Street number type: string streetname: description: Street name type: string streettype: description: Street type type: string district: description: District type: string building: description: Building type: string city: description: City type: string postalcode: description: Postal code type: string province: description: Province type: string countrycode: description: Country code type: string additionalinfo: description: Additional info type: array items: $ref: '#/components/schemas/MetaData' name: $ref: '#/components/schemas/Person' legalentity: $ref: '#/components/schemas/LegalEntity' geoloc: $ref: '#/components/schemas/Geoloc' createdate: description: creation date type: string format: date-time updatedate: description: update date type: string format: date-time AdditionalService: type: object required: - servicetype - code - quantity properties: servicetype: description: Type of additionnal service type: string example: NIGHT, GUARANTEE, RECOVERY, ASSEMBLY, ... code: description: additionnal service code type: string quantity: type: number pricing: description: Prices of the additional service type: array items: $ref: '#/components/schemas/MasterData' Amount: description: Basket valorized amounts type: object required: - currency properties: currency: type: string grossamount: description: the public price of an offer type: number format: double netamount: description: >- the amount resulting from the difference of the gross amount and the different prices to reduce or to add type: number format: double totaltorefund: description: the amount to refund to the customer type: number format: double totaltopay: description: the amount to pay by the customer type: number format: double adjustedamount: description: >- The amount to add to the gross amount. Could come from promotion rules type: number format: double discountamount: description: >- the amount to be reduced to the gross amount. Could come from promotion rules type: number format: double commisionamount: description: the commission amount to be returned to the merchant type: number format: double fees: description: the delivery fees amount. Calculated by valorize service type: number format: double feesdiscountamount: description: The fees discount amount to reduce to the fees type: number format: double additionalserviceamount: description: additional services amount to add to the gross amount. type: number format: double additionalassemblyamount: description: The amount of the assembly fees type: number format: double additionalrecoveryamount: description: The amount of the recovery fees type: number format: double hashamount: type: string ApplicableDay: type: object properties: fromhour: type: string tohour: type: string weekdays: description: opening days type: array items: type: integer Availability: type: object properties: version: type: string availabilityline: description: Availability lines type: array items: $ref: '#/components/schemas/AvailabilityLine' isactual: description: Actual or theoretical availability type: boolean messagetype: type: string revision: type: string channelcode: type: string site: type: string AvailabilityLine: type: object required: - offerid properties: offerid: description: offer technical identifier type: string offercode: description: Offer business code type: string quantity: description: Requested quantity type: integer date: description: date in UTC type: string format: date-time hour: description: hour in format HH:MM type: string lang: description: two digits language code (iso -639-1) type: string vendorcode: description: vendor code type: string totalquantity: description: actual total quantity returned type: integer freesales: description: means the stock is infinite type: boolean quantitydetails: description: optionnaly used to give details aboout the returned availability items: $ref: '#/components/schemas/MasterData' canbeordered: description: >- if this flag is set to FALSE, that means this offer cannot be purchased type: boolean currency: type: string unitpriceselling: type: number resupplyingdelay: description: resupplying delay, in case of shortage type: integer retrocessiondelay: description: Retrocession delay type: integer AvailabilitiesRequest: type: object properties: startdate: type: string format: date-time enddate: type: string format: date-time availabilitylines: type: array items: $ref: '#/components/schemas/OfferCode' example: startdate: '2020-04-01T23:00:00.000Z' enddate: '2020-04-02T22:59:59.000Z' AvailabilitiesResponse: type: object properties: startdate: type: string format: date-time enddate: type: string format: date-time availabilitylines: type: array items: $ref: '#/components/schemas/OfferCode' example: startdate: '2020-04-01T22:00:00.000Z' enddate: '2020-04-03T21:59:59.000Z' availabilitylines: - offerid: 1f3d07b1647144ce999d5b0ab31ee385 offercode: TDS1 date: '2020-04-02T00:00:00.000+02:00' hour: '09:00' totalquantity: 10 - offerid: 71825be3a4d74cfe8d679d26c98980a8 offercode: VTP8 date: '2020-04-02T00:00:00.000+02:00' hour: '08:00' lang: en totalquantity: 10 - offerid: 71825be3a4d74cfe8d679d26c98980a8 offercode: VTP8 date: '2020-04-02T00:00:00.000+02:00' hour: '08:00' lang: fr totalquantity: 10 AvailabilityRequest: type: object properties: availability: $ref: '#/components/schemas/Availability' availabilitycontext: $ref: '#/components/schemas/ContextDetails' example: availability: availabilityline: - offerid: 1f3d07b1647144ce999d5b0ab31ee385 date: '2020-04-02T00:00:00.000Z' hour: '09:00' quantity: 7 lang: en quantitydetails: - mdobject: INDIVIDUAL code: ADULT value: '4' - mdobject: INDIVIDUAL code: CHILD value: '3' - mdobject: INDIVIDUAL code: INFANT value: '0' AvailabilityResponse: type: object properties: availability: $ref: '#/components/schemas/Availability' availabilitycontext: $ref: '#/components/schemas/ContextDetails' Backend: type: object properties: backendtype: description: type of the master data type: string ismandatory: type: boolean isvisible: type: boolean publishable: type: boolean url: type: string keyindex: type: integer BackendDisplay: type: object properties: backendtype: description: type of the master data type: string keyindex: type: integer objectname: type: string idname: type: string islocalizable: type: boolean ismandatory: type: boolean isautocompleted: type: boolean isactive: type: boolean isvisible: type: boolean publishable: type: boolean isinternal: type: boolean isexportable: type: boolean guioption: $ref: '#/components/schemas/DisplayGUI' urls: $ref: '#/components/schemas/DisplayURL' DisplayGUI: type: object properties: searchresultindex: type: integer searchindex: type: integer searchfields: type: string returnfield: type: string displayfields: type: string mdimport: type: array items: $ref: '#/components/schemas/DisplayImport' DisplayImport: type: object properties: code: type: string label: type: string translations: type: array items: $ref: '#/components/schemas/Translation' dataseparator: type: string mapping: type: string helper: description: for tooltip type: string DisplayURL: type: object properties: searchurl: type: string seturl: type: string updateurl: type: string deleteurl: type: string streamurl: type: string upserturl: type: string BankAccount: type: object properties: bankname: description: Bank name type: string bic: description: BIC/ SWIFT Code type: string banknumber: description: Bank number type: string bankaccount: description: Bank acount number type: string customername: description: Customer name type: string BankAuthorization: type: object properties: authorizationcode: description: authorization code type: string rumcode: description: RUM Code type: string rumvaliditydate: description: RUM validity date type: string format: date-time cardtransactionid: type: string validydate: description: validity date type: string format: date-time debitauthid: type: string debitauthdate: description: Debit validity date type: string format: date-time BasketAddedProduct: type: object properties: reference: description: offer busyness reference type: string offerid: description: offer technical key type: string crossedoutPrice: description: crossed-out price type: number format: double sellingPrice: description: selling price type: number format: double discount: description: discount price type: number format: double productItem: $ref: '#/components/schemas/ProductItem' BasketProfile: type: object properties: usersubcriptions: $ref: '#/components/schemas/UserSubscription' trackingdata: $ref: '#/components/schemas/TrackingData' person: $ref: '#/components/schemas/Person' customdata: description: To use to store key/value list type: array items: $ref: '#/components/schemas/MetaData' BasketRequest: required: - identifier - lines - ordertracking type: object properties: profile: $ref: '#/components/schemas/BasketProfile' identifier: $ref: '#/components/schemas/Identifier' ordertracking: $ref: '#/components/schemas/TrackingData' comtracking: $ref: '#/components/schemas/CommercialTracking' businesscreationdate: description: Business creation date type: string format: date-time lines: description: Cart lines type: array items: $ref: '#/components/schemas/BasketLine' BasketLine: required: - linenum - offerid - quantity type: object properties: linenum: description: Line number type: integer referencecode: description: Reference code type: string offercode: type: string offerid: description: Technical identifier type: string linestatus: description: Status of the line. type: string example: 1 - Productadded 2 - offer refused by customer offercodification: description: Codification type: string quantity: description: Quantity type: integer amount: $ref: '#/components/schemas/Amount' crossedoutprice: description: Crossed out price type: number format: double sellingprice: description: Selling price type: number format: double promotionenddate: description: Info on expiration of the promotion type: string format: date-time options: description: Offer Options $ref: '#/components/schemas/OptionOffer' taxdetails: description: Info on expiration of the promotion type: array items: $ref: '#/components/schemas/TaxDetail' additionalservices: description: Additional service type: array items: $ref: '#/components/schemas/AdditionalService' offerbookingdate: description: Date of the booking type: string offerbookinghour: description: Hour of the booking type: string offerlang: description: Lang of the booking type: string group: description: Group number type: string groupcode: description: Group code type: string pricing: description: Additional info on prices items: $ref: '#/components/schemas/MasterData' BasketResponse: type: object properties: profile: $ref: '#/components/schemas/BasketProfile' identifier: $ref: '#/components/schemas/Identifier' ordertracking: $ref: '#/components/schemas/TrackingData' comtracking: $ref: '#/components/schemas/CommercialTracking' businesscreationdate: description: Business creation date type: string format: date-time lines: type: array items: $ref: '#/components/schemas/BasketLine' basketdetails: $ref: '#/components/schemas/ContextDetails' amount: $ref: '#/components/schemas/Amount' basketrules: description: Applied rules type: array items: $ref: '#/components/schemas/BasketRule' suggestions: type: array items: $ref: '#/components/schemas/SuggestPromotion' BasketRule: type: object properties: linenum: type: integer rulename: type: string initialamount: type: number format: double discountamount: type: number format: double adjustedamount: type: number format: double walletamount: type: number format: double priorityrule: items: $ref: '#/components/schemas/PriorityRule' BillingInfo: type: object properties: groupcode: description: Billing group code type: string paymentmode: description: Payment mode type: string paymentdelay: description: Delay to pay the invoice type: string prepaymentmode: description: Pre payment information. Possible values are BILLING, NET, GROSS type: string pricecode1: description: First price code to access to the commission grid type: string pricecode2: description: Second price code to access to the commission grid type: string receipttopassenger: description: If the payment receipt must be sent to the customer type: boolean vouchertopassenger: description: If the voucher document must be sent to the customer type: boolean BookingOffer: type: object properties: offercode: description: Code of the offer type: string quantity: description: quantity type: integer baseprice: description: Initial price type: number BookingProduct: type: object properties: productcode: description: Code of the Product type: string quantity: description: quantity type: integer baseprice: description: Initial price type: number BookingSubscription: type: object properties: isinclusion: description: the offer must belong to the customer type: boolean ispercent: type: boolean datatype: type: string enum: - OFFER - PRODUCT code: description: Produc or Offer code type: string quantity: description: quantity type: integer discountvalue: type: number baseprice: description: Initial price type: number BookingCondition: type: object properties: basketamount: description: Basket amount type: number format: double basketlineamount: description: Basket line amount type: number format: double operator: description: Operator type: string channelcodes: description: Channel conditions type: array items: type: string applications: description: Allowed applications list type: array items: type: string offers: type: array items: $ref: '#/components/schemas/BookingOffer' products: type: array items: $ref: '#/components/schemas/BookingProduct' subscription: type: array items: $ref: '#/components/schemas/BookingSubscription' productfilter: description: Filter to restrict the discount type: array items: $ref: '#/components/schemas/MetaData' productexception: description: Filter to exclude some offers in the discount type: array items: $ref: '#/components/schemas/MetaData' BookingDiscount: type: object properties: discountname: type: string enum: - Enumeration - BasketDiscountPercent - BasketDiscountAmount - LineDiscountAmount - LineDiscountPercent - OfferDiscountAmount - OfferDiscountPercent - ProductDiscountAmount - ProductDiscountPercent - SubscriptionDiscountAmount - SubscriptionDiscountPercent - FeeDiscountPercent - TheCheapestPercent - TheMostExpensive - PaxDiscountPercent - PaxDiscountAmount - FeeDiscountAmount - SetDiscountLine - SetFees quantity: description: Quantity type: integer discounttype: description: Type of discount enum: - PERCENT - FIXED type: string discountvalue: description: Discount value type: number format: double isreverseprice: type: boolean isforwallet: type: boolean perpurchase: description: Per purchase type: number format: double perquantity: description: Per quantity type: integer format: double productfilter: description: Filter to restrict the discount type: array items: $ref: '#/components/schemas/MetaData' productexception: description: Filter to exclude some offers in the discount type: array items: $ref: '#/components/schemas/MetaData' offers: type: array items: $ref: '#/components/schemas/BookingOffer' products: type: array items: $ref: '#/components/schemas/BookingProduct' BookingPassenger: type: object properties: reservationtype: description: Reservation type type: string example: INDIVIDUAL, PRIVATIZATION passengertype: description: Passenger type type: string example: ADULT, CHILD, INFANT quantity: description: quantity type: integer BookingRule: type: object properties: conditions: description: Conditions list type: array items: $ref: '#/components/schemas/BookingCondition' behaviours: description: Discounts list type: array items: $ref: '#/components/schemas/BookingDiscount' BookingRequest: type: object properties: externaltransactionnumber: type: string destinationcode: type: string offercode: type: string offercodes: description: list of offer codes to query type: array items: type: string typologies: description: list of offer typologies to query type: array items: type: string startdate: type: string format: date-time enddate: type: string format: date-time requestcontext: $ref: '#/components/schemas/RequestContext' OptionOfferDetail: type: object properties: title: description: name of this option type: string unicitykey: description: unicitykey reference for lookup type: string unicitycode: description: unicitycode reference for lookup type: string rank: type: integer adjustedprice: description: additional price for this option type: number format: double OptionOffer: type: object properties: title: description: name of this option type: string rank: description: rank of this option type: integer minquantity: description: Minimum quantity type: integer maxquantity: description: Maximum quantity type: integer optiondetails: description: Describe each option details type: array items: $ref: '#/components/schemas/OptionOfferDetail' Cancellation: type: object properties: minday: description: Minimum day before cancellation date type: integer maxday: description: Maximum day before cancellation date type: integer rate: description: Rate to apply type: number format: double CancellationDetail: type: object properties: creditnote: description: Credit note amount type: string cancellationfees: description: Cancellation fees amount type: number format: double cancellationdate: description: Cancellation date amount type: string format: date-time commissionamount: description: Commission amount after the cancellation type: number format: double CancellationRequest: type: object required: - orderid properties: orderid: description: Order primary key type: integer vendorcode: description: Vendor code type: string cancellationdate: type: string format: date-time ordernumid: description: Order transaction number type: string comment: description: Comment to store on the cancellation type: string example: orderid: 9ed8c8fb5f034ffda61a4b81a3bce42d ordernumid: LZI3Y00000895 CancellationBookingResponse: type: object properties: order: $ref: '#/components/schemas/Order' ordercontext: $ref: '#/components/schemas/ContextDetails' example: order: orderid: 82bf4511e2d74876ad12bebac9a2f3df ordertracking: user: s.lavenant platformreferencenumber: 2003WS4895 transactionnumber: L1IRC000010047 vendorcode: '003298' orderchannel: CALLCENTER emitterid: GUI bookingid: 7ccb7b1fe8a2473dac86bf73994f2dde cancellationdetail: cancellationfees: 0 notification: eventcode: STANDARD eventtype: CANCELLATION cancellationdate: '2020-03-12T23:00:00.000Z' commissionamount: 0 creditnote: 829 identifier: contactid: 4423af5e37264a87917b43e392ecdeed structure: countrycode: FR marketcode: FR blcode: PCV businesscreationdate: '2020-03-13T13:17:03.684Z' statusdetail: latest: - statustype: Operational user: Api USer code: CANCELLED date: '2020-03-13T13:19:08.089Z' - user: Api USer code: PAID date: '2020-03-13T13:17:48.206Z' statustype: PAYMENT order: - user: Api USer code: CANCELLED date: '2020-03-13T13:19:08.089Z' statustype: Operational - user: Api USer code: PROCESSED date: '2020-03-13T13:17:48.815Z' statustype: Operational - statustype: PAYMENT user: Api USer code: PAID date: '2020-03-13T13:17:48.206Z' - statustype: Operational user: merchant user code: PENDING date: '2020-03-13T13:17:04.106Z' - user: merchant user code: PENDING date: '2020-03-13T13:17:04.106Z' statustype: PAYMENT deliverydetail: email: usage: BIL isprincipal: true emailvalue: s.wolf@gridbees.com customdata: - attribute: pickuphour value: '2020-03-20T09:00:00.000Z' - attribute: dropoffhour value: '2020-03-20T13:00:00.000Z' amount: currency: EUR hashamount: b80f7b95d4456a2208528f02c1d3e58a9f2dcc596c156d973d2bc43647d9997c grossamount: 830 totaltorefund: 828 totaltopay: 830 netamount: 830 payment: isprepaid: true groupedpayment: orderids: - 82bf4511e2d74876ad12bebac9a2f3df totalpaid: 830 paymentdate: '2020-03-13T13:17:48.206Z' prepaidamount: 830 details: - paymentmode: CASH paymentdate: '2020-03-13T13:17:48.206Z' paymentcode: DISCOUNT status: PAID totalpaid: 430 updatedate: '2020-03-13T13:17:48.206Z' externalpaymentreference: 548d49696d544dcb86263524c5ca8c27 movementtype: CASHING - paymentmode: CASH paymentdate: '2020-03-13T13:17:48.206Z' paymentcode: EURO status: PAID totalpaid: 400 updatedate: '2020-03-13T13:17:48.206Z' externalpaymentreference: 548d49696d544dcb86263524c5ca8c27 movementtype: CASHING totalpaid: 830 processingmode: PREPAYMENT updatedate: '2020-03-13T13:17:48.354Z' externalpaymentreference: '93195671' updatedate: '2020-03-13T13:19:08.089Z' comtracking: isgift: false isquotation: false tickets: - media: url: >- http://api-uat.gridbees.com/medias/tickets/3776/715a/3776715a9dfe6f91b02a37ac263b79092a47a.pdf size: 29489 languagecode: fr mediatype: PDF suppliercode: PCV formattype: BARCODE value: L1IRC000010047 categories: ADULT: 10 businesstype: VOUCHER subformattype: QR reservationdate: '2020-03-20T09:00:00.000Z' transactionnumber: L1IRC000010047 languagecode: fr documents: - media: mediatype: PDF url: >- http://api-uat.gridbees.com/medias/docs/7931/b7ef/79310f1000f2a2f499e35d512ea6912cc0c2.pdf size: 1263 languagecode: fr-FR businesstype: RECEIPT_CC_PAYMENT documentnumid: D548d49696d544dcb86263524c5ca8c27 linkedtransactionnumbers: - L1IRC000010047 createdate: '2020-03-13T13:17:48.280Z' amount: 32 billingaddress: isactive: true isnormalized: false usage: BIL name: lastname: Loustria civility: MR firstname: Solange createdate: '2020-03-13T13:17:04.106Z' ordertype: ORDER lines: - bookinglang: fr quantity: 10 linenum: 1 offerdestinations: - destinationcode: CITYTOUR offercancellations: - minday: 2 maxday: 2 rate: 50 - minday: 0 maxday: 1 rate: 100 productitems: - quantity: 1 productcode: HISTOV-HISTO suppliers: [] - productcode: BP-CROI suppliers: [] quantity: 1 - suppliers: [] quantity: 1 productcode: TE-VIS-2E - productcode: VIS-TDV suppliers: [] quantity: 1 amount: currency: EUR hashamount: >- a0a965586ea81c2f30f189a286ce2cf0d18047d19660ae180a340cadffe1df8a additionalassemblyamount: 0 additionalserviceamount: 0 additionalrecoveryamount: 0 grossamount: 830 totaltopay: 830 totaltorefund: 829 netamount: 830 bookingdate: '2020-03-19T23:00:00.000Z' sellingprice: 83 bookinghour: '10:00' offerid: 93dd2ab917ab4746901aac6f4a5f3930 referencecode: PS cancellationdetail: creditnote: 829 commissionamount: 0 cancellationfees: 0 pricing: - price: 83 mdobject: INDIVIDUAL quantity: 10 code: ADULT ordercontext: status: OK CancellationValorizationResponse: type: object properties: order: $ref: '#/components/schemas/OrderCancel' ordercontext: $ref: '#/components/schemas/ContextDetails' example: order: orderid: 9ed8c8fb5f034ffda61a4b81a3bce42d amount: currency: THB grossamount: 69 netamount: 62.1 totaltopay: 62.1 totaltorefund: 9 commissionamount: 6.9 hashamount: 08271aece4aa37b6e81728a7bc5f9e536460967ebaba0d009d8e8871b6b7c56e cancellationdetail: creditnote: 47.1 cancellationfees: 0 commissionamount: 6.9 ordercontext: status: OK message: PAYMENTMODECHANGED ClaimDetail: type: object properties: typology: description: Typology type: string channel: description: Channel code type: string emitterid: description: Emitter of the claim type: string origin: description: Origin type: string detailcontent: description: Content of the detail type: string createdate: description: Creation date type: string format: date-time Card: type: object properties: cardaliasid: description: card alias ID type: string validitydate: description: validity date type: string format: date-time cardtype: description: card type type: string partner: type: string portal: type: string ClaimTrack: type: object properties: codification: description: Codification of the claim items: $ref: '#/components/schemas/Codification' identifier: description: Identifier items: $ref: '#/components/schemas/Identifier' structure: description: Structure items: $ref: '#/components/schemas/Structure' claimtype: description: Claim type type: string claimcode: description: Claim code type: string claimjuscode: description: Claim proof code type: string topic: description: Topic of the claim type: string details: description: Details list type: array items: $ref: '#/components/schemas/ClaimDetail' status: description: Status of the claim type: string satisfaction: description: Comment on the claim type: string Commission: type: object properties: commissionid: description: Unique technical key type: string unicitykey: description: Business key type: string offercode: description: Offer code concerned by this commission type: string pricecode: description: Price code of the commission type: string departmentcode: description: Department code of the commission type: string prices: description: List of commission prices type: array items: $ref: '#/components/schemas/Price' createdate: description: Creation date type: string format: date-time updatedate: description: Modification date type: string format: date-time Codification: type: object properties: code: description: Code type: string numid: description: Identifier number type: string typology: description: Typology type: string statecode: description: State code type: string eancode: description: EAN code type: string label: description: Label type: string externalcode: description: External code type: string externalref: description: External reference type: string vendorcode: description: Vendor code type: string programcode1: description: Custom code 1 type: string programcode2: description: Custom code 2 type: string programref: description: Custom reference type: string categorycode: type: string Comment: type: object properties: user: description: User creating the comment type: string message: description: The message of the comment type: string createdate: description: Creation date type: string format: date-time updatedate: description: Modification date type: string format: date-time Conflict: type: object properties: includedcodes: items: $ref: '#/components/schemas/ConflictCode' excludedcodes: items: $ref: '#/components/schemas/ConflictCode' ConflictCode: type: object properties: offercodes: type: array items: type: string productcodes: type: array items: type: string Contact: type: object properties: contactid: description: unique technical key of the contact type: string unicitykey: description: unique business key of the contact type: string typology: description: Type of the client type: string person: $ref: '#/components/schemas/Person' legalentity: $ref: '#/components/schemas/LegalEntity' structure: $ref: '#/components/schemas/Structure' identifier: $ref: '#/components/schemas/Identifier' identitydocuments: type: array items: $ref: '#/components/schemas/IdentityDocument' emails: description: Email contact type: array items: $ref: '#/components/schemas/Email' phones: description: Phone contact type: array items: $ref: '#/components/schemas/Phone' addresses: type: array items: $ref: '#/components/schemas/Address' paymentdata: $ref: '#/components/schemas/PaymentData' loyaltycards: type: array items: $ref: '#/components/schemas/LoyaltyCard' trackingdata: $ref: '#/components/schemas/TrackingData' customdata: description: To use to store key/value list type: array items: $ref: '#/components/schemas/MetaData' statusdetail: $ref: '#/components/schemas/ContactStatusDetail' businesscreationdate: description: creation date type: string format: date-time createdate: description: creation date type: string format: date-time updatedate: description: update date type: string format: date-time ContactStatus: type: object required: - statustype - code properties: statustype: description: Status type (Operational, Payment, Filtering) type: string code: description: Code of the type (PENDING, PROCESSED, ..) type: string cause: description: Cause of the error type: string message: description: Status message type: string source: description: Status source type: string user: description: User type: string date: description: date type: string format: date-time ContactStatusDetail: type: object properties: latest: description: lastest status per statustype $ref: '#/components/schemas/ContactStatus' order: type: array items: description: contact status history $ref: '#/components/schemas/ContactStatus' ContactRequest: type: object properties: contactids: type: array items: type: string unicitykeys: type: array items: type: string emails: type: array items: type: string phones: type: array items: type: string addresses: type: array items: type: string typology: description: Type of the client type: string countrycode: type: string postalcode: type: string walletnumid: type: string externalnumid: type: string marketcode: type: string shopcode: type: string companyname: type: string attribute: type: string attributevalue: type: string startbirthdate: description: birthdate start date type: string format: date-time endbirthdate: description: birthdate end date type: string format: date-time startlastpurchasedate: description: last purchase start date type: string format: date-time endlastpurchasedate: description: last purchase end date type: string format: date-time lastupdatedate: description: consider entries such as updatedate greater than lastupdatedate type: string format: date-time showstatusdetails: description: include status details ? type: boolean showdeletedaddresses: description: include deleted addresses ? type: boolean requestcontext: description: and restricted fields to return $ref: '#/components/schemas/RequestContext' ContactAttributeRequest: type: object properties: unicitykey: type: string customdata: description: Custom attributes definitions type: array items: $ref: '#/components/schemas/MetaData' Exclusion: type: object properties: vendorcodes: description: Vendor codes type: string offercodes: description: Offer codes type: string cancellations: description: Cancellation definitions type: array items: $ref: '#/components/schemas/Cancellation' WebaccountRequest: type: object properties: login: description: User login handle type: string structure: $ref: '#/components/schemas/Structure' WebaccountDeleteRequest: type: object properties: webaccountid: description: Web account ID type: string contactid: description: Contact ID type: string WebaccountLoginRequest: type: object properties: login: description: User login handle type: string password: description: Password type: string WebaccountResetPasswordRequest: type: object properties: login: description: User login handle type: string password: description: Password type: string SupplierRequest: type: object properties: supplierid: description: Supplier ID type: string MailDeleteRequest: type: object properties: mailid: description: Mail ID type: string contactids: description: contact IDs of recipients type: array items: type: string MailGetRequest: type: object properties: mailid: description: Mail ID type: string MailRequest: type: object properties: mailid: description: Mail ID type: string mailids: type: array items: type: string tenantid: description: Tenant ID type: string structure: $ref: '#/components/schemas/Structure' contactids: type: array items: type: string ordernums: type: array items: type: string from: description: Sender type: string to: description: Receiver type: string cc: description: Carbon Copy type: string bcc: description: Blind Carbon Copy type: string subject: description: Title of the mail type: string status: description: Status type: string statuses: type: array items: type: string withwords: description: With words type: string withoutwords: description: Without words type: string user: description: Status type: string isreserved: description: is reserved ? type: boolean startdate: description: Date query (from startdate to enddate) type: string format: date-time enddate: description: Date query (from startdate to enddate) type: string format: date-time requestcontext: $ref: '#/components/schemas/RequestContext' Mail: type: object properties: mailid: description: Mail ID type: string tenantid: description: Tenant ID type: string contactid: description: Contact ID type: string trackingdata: $ref: '#/components/schemas/TrackingData' trackings: type: array items: $ref: '#/components/schemas/TrackingData' person: $ref: '#/components/schemas/Person' properties: $ref: '#/components/schemas/MailProperties' comments: type: array items: $ref: '#/components/schemas/Comment' status: description: Status type: string customdata: type: array items: $ref: '#/components/schemas/MetaData' createdate: description: creation date type: string format: date-time updatedate: description: last update date type: string format: date-time sentdate: description: sent date type: string format: date-time user: description: User type: string isreserved: description: is reserved ? type: boolean reservationdate: description: reservation date type: string format: date-time sendandarchive: description: is sent and archived ? type: boolean lang: description: Langage code type: string MailProperties: type: object properties: from: description: From type: string to: description: To type: string cc: description: Cc type: string bcc: description: Bcc type: string subject: description: Subject type: string message: description: Message type: string attachments: type: array items: $ref: '#/components/schemas/Attachment' Attachment: type: object properties: description: description: Description type: string filename: description: Filename type: string uploadref: description: Upload reference type: string content: description: Content type: string contenttype: description: Content type type: string MailTemplate: type: object properties: description: description: description type: string mailtemplateid: description: mail template id type: string code: description: template code type: string tenantid: description: tenant id type: string structure: $ref: '#/components/schemas/Structure' typology: description: typology type: string maildata: type: array items: $ref: '#/components/schemas/MailData' startdate: description: start date type: string format: date-time endate: description: end date type: string format: date-time campaigncode: description: campaign code type: string customdata: type: array items: $ref: '#/components/schemas/MetaData' createdate: description: creation date type: string format: date-time updatedate: description: update date type: string format: date-time MailData: type: object properties: lang: description: langage code type: string subject: description: subject type: string body: description: body type: string updatedate: description: update date type: string format: date-time MailTemplateRequest: type: object properties: description: description: description type: string mailtemplateid: description: mail template id type: string structure: $ref: '#/components/schemas/Structure' typology: description: typology type: string lang: description: langage code type: string tenantid: description: tenant id type: string code: description: template code type: string subject: description: subject type: string body: description: body type: string startdate: description: start date type: string format: date-time endate: description: end date type: string format: date-time requestcontext: $ref: '#/components/schemas/RequestContext' Notification: type: object properties: notificationid: description: notification id type: string unicitykey: description: notification unicity key type: string identifier: $ref: '#/components/schemas/Identifier' eventtype: description: event type type: string eventcode: description: event code (event type specialization) type: string topic: description: topic type: string justificationcode: description: justification code type: string retentiondelay: description: retention delay type: integer retentionunit: description: retention unit type: integer trackingdata: $ref: '#/components/schemas/TrackingData' emitterid: description: emitter id type: string channel: description: channel type: string user: description: user type: string status: description: status type: string claims: type: array items: $ref: '#/components/schemas/ClaimTrack' cancellations: type: array items: $ref: '#/components/schemas/Cancellation' exclusions: type: array items: $ref: '#/components/schemas/Exclusion' attributes: type: array items: $ref: '#/components/schemas/MasterData' updatedate: description: update date type: string format: date-time createdate: description: create date type: string format: date-time NotificationRequest: type: object properties: notificationid: description: notification id type: string unicitykey: description: notification unicity key type: string contactid: description: contact id type: string eventtype: description: event type type: string eventcode: description: event code (event type specialization) type: string justificationcode: description: justification code type: string ordernum: description: order number type: string invoicenumber: description: invoice number type: string paymentbookingid: description: payment booking id type: string emitterid: description: emitter id type: string channel: description: channel type: string user: description: user type: string status: description: status type: string claimtype: description: claim type type: string claimcode: description: claim code type: string claimjuscode: description: claim justification code type: string startdate: description: start date type: string format: date-time endate: description: end date type: string format: date-time requestcontext: $ref: '#/components/schemas/RequestContext' CommercialTracking: type: object properties: promocode: description: >- Promo code used to fire some promotions. This information comes from the Gridbees prices valorization service type: string externalpromocode: description: >- If the promotion comes another prices valorization service, the code is stored in this field type: string vouchernumid: description: >- Promotion voucher codes are unique codes available only one time. This information comes from the Gridbees prices valorization service. type: string isupselled: type: boolean ContentProperties: type: object properties: ispublic: type: string isonshelf: description: is an advertising product ? type: string platformcodes: type: array items: type: string allowedwatchplatforms: type: array items: type: string resolutions: type: array items: type: string subscriptiontiers: type: array items: type: string tvodtiers: type: array items: type: string studios: type: array items: type: string audio: type: array items: type: string subtitles: description: List of offer Id type: array items: type: string sequence: type: integer contentid: type: string contenttype: type: string contentcode: type: string maxccu: type: integer servicetype: type: string highlightshelfid: type: string displaychannelcontent_d: type: string privacypolicyid: type: string ContextDetails: type: object properties: externalbookingid: type: string user: type: string example: testuser status: type: string code: type: string message: type: string DeliveryDetail: type: object properties: deliverymode: description: Delivery mode type: string instruction: description: Delivery instruction type: array items: $ref: '#/components/schemas/MetaData' deliveryaddress: description: Delivery address $ref: '#/components/schemas/Address' otheraddresses: description: Other addresses type: array items: $ref: '#/components/schemas/Address' passengers: description: Passengers list type: array items: $ref: '#/components/schemas/Person' email: items: description: Email contact $ref: '#/components/schemas/Email' phone: items: description: Phone contact $ref: '#/components/schemas/Phone' DeliveryTime: type: object properties: applicabledays: description: Applicable days type: array items: $ref: '#/components/schemas/ApplicableDay' Email: type: object properties: uid: description: unique identifier type: string format: uuid Usage: description: Usage for this email type: string example: PRINCIPAL, PROFESIONNAL Isprincipal: description: Is principal? type: boolean emailvalue: description: Email value type: string quality: description: email quality type: boolean ExclusionDate: type: object properties: date: description: Exclusion Date type: string format: date-time departuretime: description: Exclusion Departure time type: string languages: description: Exclusion Languages type: array items: type: string Geoloc: type: object required: - x - 'y' properties: x: type: number 'y': type: number h: type: number sector: type: string GroupedPayment: type: object properties: usage: description: usage type: string totalpaid: description: Total paid for this group type: number format: double orderids: description: List of orderid (primary keys) concerned by this group type: array items: type: string Identifier: description: structure required: - structure type: object properties: contactid: type: string externalnumid: description: external identifier type: string sponsorid: type: string structure: $ref: '#/components/schemas/Structure' IdentityDocument: type: object properties: uid: description: unique identifier type: string numid: description: identifier number type: string emittercitylocation: description: issuer city type: string emittercountrylocation: description: issuer country type: string isvalidated: description: Is validated ? type: string isexternal: description: Is internal use ? type: string issueddate: description: date of issue type: string format: date-time expirydate: description: expiration date type: string format: date-time createdate: description: creation date type: string format: date-time updatedate: description: update date type: string format: date-time Item: type: object required: - productcode properties: title: description: Product title (offerdescription/title should be used first) type: string productcode: description: Product code type: string productgroup: type: string producttype: type: string size: type: string quantity: type: integer default: 1 Display: type: object required: - mdobject - mdaxis properties: displayid: type: string tenantid: type: string mdobject: type: string tabcode: type: string status: type: string mdtype: type: string parentcode: type: string code: type: string genericcode: type: string label: type: string priority: type: integer script: type: string backend: $ref: '#/components/schemas/BackendDisplay' displaytabs: type: array items: $ref: '#/components/schemas/DisplayTabs' translations: type: array items: $ref: '#/components/schemas/Translation' updatedate: type: string format: date-time DisplayRequest: type: object properties: displayid: type: string mdobject: type: string tabcode: type: string status: type: string mdtype: type: string parentcode: type: string code: type: string codes: type: array items: type: string genericcode: type: string requestcontext: description: pagination and restricted fields to return $ref: '#/components/schemas/RequestContext' Loyalty: type: object properties: loyaltyid: description: technical key type: string unicitykey: description: business key type: string externalnumid: description: external number ID type: string structure: $ref: '#/components/schemas/Structure' codification: $ref: '#/components/schemas/Codification' status: description: status type: string enum: - Created - Published - Unpublished - Active label: description: label type: string tiers: type: array items: $ref: '#/components/schemas/LoyaltyTier' tierduration: description: Is tier upgrade or downgrade automatic ? type: boolean isautomatic: description: status type: string welcometemplate: description: welcome template name type: string balancetemplate: description: balance template name type: string createdate: description: creation date type: string format: date-time updatedate: description: update date type: string format: date-time LoyaltyCard: type: object properties: externalnumid: description: external number ID type: string loyalties: type: array items: $ref: '#/components/schemas/Loyalty' points: type: array items: $ref: '#/components/schemas/WalletDetail' createdate: description: creation date type: string format: date-time updatedate: description: update date type: string format: date-time LoyaltyTier: type: object properties: uid: description: technical key type: string code: description: business code type: string label: description: label type: string level: description: Tier level type: string minvalue: description: minimum value to validate for this level type: number format: double maxvalue: description: maximum value before next upgrade type: number format: double startdate: description: Start publication date type: string format: date-time enddate: description: End publication date type: string format: date-time LegalEntity: type: object properties: legalentityid: description: technical key type: string languagecode: description: language code type: string countrycode: description: country code type: string legalstatus: description: legal status type: string commercialname: description: Commercial name type: string companyname: description: company name type: string vatcode: description: VAT code type: string vatidintracom: description: VAT Intracom code type: string siretcode: description: siret code type: string businesssector: description: Business sector type: string companytype: description: Company type type: string createdate: description: creation date type: string format: date-time updatedate: description: update date type: string format: date-time MasterData: type: object required: - mdobject - mdaxis properties: masterdataid: type: string mdobject: type: string mddatatype: type: string mdaxis: type: string mdtype: type: string parentcode: type: string code: type: string value: type: string genericcode: type: string externalref: type: string price: type: number backend: $ref: '#/components/schemas/Backend' translations: type: array items: $ref: '#/components/schemas/Translation' updatedate: type: string format: date-time MasterDataRequest: type: object properties: masterdataid: type: string mdobject: type: string mddatatype: type: string mdaxis: type: string mdtype: type: string parentcode: type: string code: type: string value: type: string genericcode: type: string externalref: type: string requestcontext: description: restrict fields to return in the response $ref: '#/components/schemas/RequestContext' Media: type: object required: - url properties: code: description: media code type: string url: description: Url to download the media type: string mediatype: description: media type type: string rank: description: media rank type: integer islocalisable: description: This media is related to a language type: boolean hashcode: description: media hascode type: string languagecode: description: If localizable, the field stores the language code type: string MetaData: type: object required: - attribute properties: attribute: type: string value: type: string MetaDataQuantityPercent: type: object required: - attribute properties: attribute: type: string value: type: string quantity: type: integer default: 1 percent: type: number MetaDataCategorization: type: object required: - attribute properties: datatype: type: string attribute: type: string category: type: string quantity: type: integer default: 1 ispercent: type: boolean value: type: number OrderLineProperties: type: object properties: canbecancelled: type: boolean canberefunded: type: boolean canopenincident: type: boolean canbeevaluated: type: boolean hasincident: type: boolean hascustomermessages: type: boolean hasinvoice: type: boolean options: type: array items: $ref: '#/components/schemas/OptionOffer' Offer: type: object properties: title: description: Offer title type: string offerid: description: Technical key (generated after an offer/set ) type: string unicitykey: description: Unique business key type: string unicitycode: description: Offer code type: string offertype: description: Offer type type: string enum: - Published - Unpublished - Created offerdescription: description: Offer description type: string structure: description: Offer structure, mainly used for promotional purposes $ref: '#/components/schemas/Structure' codification: description: Offer codification items: $ref: '#/components/schemas/Codification' products: description: Product's list type: array items: $ref: '#/components/schemas/OfferProduct' subscription: description: Offer subsription details $ref: '#/components/schemas/OfferSubscription' properties: description: Offer properties $ref: '#/components/schemas/OfferProperty' pricing: description: Pricing $ref: '#/components/schemas/Pricing' medias: description: Images list type: array items: $ref: '#/components/schemas/Media' status: description: Offer status type: string startdate: description: Start publication date type: string format: date-time enddate: description: End publication date type: string format: date-time attributes: description: Additional attributes data type: array items: $ref: '#/components/schemas/MasterData' createdate: description: Technical creation date type: string format: date-time createdby: type: string updatedate: description: Technical modification date type: string format: date-time updatedby: type: string OfferBenefit: type: object properties: benefit1: $ref: '#/components/schemas/OfferBenefitLine' benefit2: $ref: '#/components/schemas/OfferBenefitLine' benefit3: $ref: '#/components/schemas/OfferBenefitLine' OfferBenefitLine: type: object properties: line1: type: string line2: type: string OfferCode: type: object required: - offercode properties: offerid: description: technical key type: string offercode: description: Unique business key type: string enddate: type: string format: date-time hour: description: Activity hour type: string totalquantity: description: total available quantity type: integer OfferContractPeriod: type: object properties: period: type: string type: type: string effectivedate: type: string format: date-time expiredate: type: string OfferEligibility: type: object properties: ischeckneeded: type: boolean condition: type: string OfferProduct: type: object properties: items: description: List of items $ref: '#/components/schemas/Item' OfferProperty: type: object properties: deliverytime: description: Opening days and hours type: array items: $ref: '#/components/schemas/DeliveryTime' customdata: description: To use to store key/value list type: array items: $ref: '#/components/schemas/MetaData' options: description: Offer Options $ref: '#/components/schemas/OptionOffer' conflict: description: Conflict Options $ref: '#/components/schemas/Conflict' channels: description: Channel list type: array items: type: string OfferRequest: type: object properties: offerid: description: technical offer Identifier type: string offerids: description: List of offer Id type: array items: type: string unicitykeys: description: List unicity keys type: array items: type: string unicitycodes: description: List offer codes type: array items: type: string offertype: type: string productcode: type: string productgroupcode: type: string blcode: type: string companycode: type: string countrycode: type: string platformcode: type: string vendorcode: type: string marketcode: type: string customdata: type: array items: $ref: '#/components/schemas/MetaData' startdate: description: Start date of the publication type: string format: date-time enddate: description: End date of the publication type: string format: date-time lastupdatedate: description: Retrieve offers updated since lastupdatedate type: string format: date-time requestcontext: description: restrict fields to return in the response $ref: '#/components/schemas/RequestContext' OfferService: type: object properties: servicetype: description: Service type type: string serviceincluded: description: Mandatory or not type: boolean servicecapacity: description: Capacity type: integer productcode: description: Product code type: string quantity: description: Quantity type: integer prices: description: Price List type: array items: $ref: '#/components/schemas/Price' OfferSubscription: type: object properties: ispublic: type: string isactive: type: string isaddon: type: string unicitykey: type: string eligibility: $ref: '#/components/schemas/OfferEligibility' autorenew: type: boolean renewplan: type: integer benefit: $ref: '#/components/schemas/OfferBenefit' contractperiod: $ref: '#/components/schemas/OfferContractPeriod' mincontractperiod: $ref: '#/components/schemas/OfferContractPeriod' trialperiod: $ref: '#/components/schemas/OfferContractPeriod' renewperiod: $ref: '#/components/schemas/OfferContractPeriod' accountingcode: description: SAP Code type: string sequence: description: Sequence Display type: integer allowedplatforms: type: array items: type: string applicationcodes: type: array items: type: string groupcode: type: string groupname: type: string partnercode: type: string contenttype: type: string contentid: type: string partnerproductcode: type: string maxtickets: type: integer serviceperiod: description: A service period of each the offer for accounting calculations type: integer billingperiod: type: integer waytowatch: type: string Order: required: - amount - ordertracking - billingaddress - lines type: object properties: orderid: description: Internal Order Identifier type: string orderrules: description: Applied rules type: array items: $ref: '#/components/schemas/BasketRule' identifier: $ref: '#/components/schemas/Identifier' ordertracking: description: Order Tracking $ref: '#/components/schemas/TrackingData' comtracking: description: Commercial Tracking $ref: '#/components/schemas/CommercialTracking' ordertype: description: Order type type: string amount: $ref: '#/components/schemas/Amount' billingaddress: description: Billing address $ref: '#/components/schemas/Address' deliverydetail: description: Delivery details $ref: '#/components/schemas/DeliveryDetail' payment: description: Payment details $ref: '#/components/schemas/Payment' cancellationdetail: description: Details on the cancellation $ref: '#/components/schemas/CancellationDetail' customdata: type: array items: $ref: '#/components/schemas/MetaData' lines: description: order lines type: array items: $ref: '#/components/schemas/OrderLine' statusdetail: description: Order status $ref: '#/components/schemas/OrderStatusDetail' businesscreationdate: description: Business creation date type: string format: date-time createdate: description: Technical creation date type: string format: date-time updatedate: description: Technical modification date type: string format: date-time OrderConfirm: required: - orderid - ordertracking type: object properties: orderid: description: technical Identifier type: string ordertracking: $ref: '#/components/schemas/TrackingData' payment: description: Payment details $ref: '#/components/schemas/Payment' OrderReservation: required: - amount - ordertracking - billingaddress - lines type: object properties: contact: $ref: '#/components/schemas/Contact' identifier: $ref: '#/components/schemas/Identifier' codification: description: Offer codification items: $ref: '#/components/schemas/Codification' ordertracking: description: Order Tracking $ref: '#/components/schemas/TrackingData' comtracking: description: Commercial Tracking $ref: '#/components/schemas/CommercialTracking' basketrules: description: promotion rules applied on this order type: array items: description: >- WARNING: Missing items property in array schema. Missing items property has been filled with this AnyType schema. amount: $ref: '#/components/schemas/Amount' billingaddress: description: Billing address $ref: '#/components/schemas/Address' deliverydetail: description: Delivery details $ref: '#/components/schemas/DeliveryDetail' payment: description: Payment details $ref: '#/components/schemas/Payment' customdata: type: array items: $ref: '#/components/schemas/MetaData' lines: description: order lines type: array items: $ref: '#/components/schemas/OrderLine' businesscreationdate: description: Business creation date type: string format: date-time OrderRequest: type: object properties: order: $ref: '#/components/schemas/OrderReservation' ordercontext: description: Order Context $ref: '#/components/schemas/ContextDetails' OrderResponse: type: object properties: order: $ref: '#/components/schemas/Order' ordercontext: description: Order Context $ref: '#/components/schemas/ContextDetails' OrderCancel: type: object properties: orderid: description: Internal Order Identifier type: string amount: $ref: '#/components/schemas/Amount' cancellationdetail: description: Details on the cancellation $ref: '#/components/schemas/CancellationDetail' OrderLine: type: object properties: orderlineid: description: order line identifier type: string linenum: description: Line number type: integer referencecode: description: Offer code type: string processingmode: description: Processing mode type: string offerid: description: Offer Identifier type: string offercodification: description: Offer codification $ref: '#/components/schemas/Codification' quantity: description: Line quantity type: integer amount: $ref: '#/components/schemas/Amount' crossedoutprice: description: Crossed out price type: number format: double sellingprice: description: Selling price type: number format: double pricing: description: Additional info on prices $ref: '#/components/schemas/MasterData' productitems: type: array items: $ref: '#/components/schemas/ProductItem' taxdetails: type: array items: $ref: '#/components/schemas/TaxDetail' additionalservices: description: Additional services type: array items: $ref: '#/components/schemas/AdditionalService' offercancellations: type: array items: $ref: '#/components/schemas/Cancellation' properties: $ref: '#/components/schemas/OrderLineProperties' parcels: type: array items: $ref: '#/components/schemas/Parcel' tracking: type: array items: $ref: '#/components/schemas/TrackingData' cancellationdetail: $ref: '#/components/schemas/CancellationDetail' subscription: $ref: '#/components/schemas/UserSubscription' OrderStatus: type: object required: - statustype - code properties: statustype: description: Status type (Operational, Payment, Filtering) type: string code: description: Code of the type (PENDING, PROCESSED, ..) type: string cause: description: Cause of the error type: string message: description: Status message type: string source: description: Status source type: string user: description: User type: string OrderStatusDetail: type: object properties: latest: description: lastest status per statustype $ref: '#/components/schemas/OrderStatus' order: type: array items: description: order status history $ref: '#/components/schemas/OrderStatus' OrderStatusListUpdate: required: - orderid - transactionnumber type: object properties: orderid: description: technical identifier type: string latest: description: lastest status per statustype $ref: '#/components/schemas/OrderStatus' OrderUpdateRequest: type: object properties: order: $ref: '#/components/schemas/UpdateRequest' ordercontext: description: Order Context $ref: '#/components/schemas/ContextDetails' PaymentCancellation: type: object properties: accountid: type: string vendorcode: type: string isrefused: description: if true then payment status equals to REFUSED else CANCELLED type: boolean syncorderstatus: description: if true then order status equals to CANCELLED else not modified type: boolean cause: description: optional description of this payment cancellation type: string details: $ref: '#/components/schemas/PaymentCancellationDetail' user: description: User type: string PaymentConfirmation: type: object required: - totalpaid properties: accountid: type: string contactid: type: string vendorcode: type: string externalpaymentreference: type: string externaltransactionnumber: type: string details: $ref: '#/components/schemas/PaymentDetail' paymentdate: type: string format: date-time user: description: User type: string PaymentConfirmationRequest: type: object properties: payment: $ref: '#/components/schemas/PaymentConfirmation' paymentcontext: description: Order Context $ref: '#/components/schemas/ContextDetails' PaymentConfirmationResponse: type: object properties: orders: type: array items: $ref: '#/components/schemas/Order' reprocessingcontext: description: Order Context $ref: '#/components/schemas/ContextDetails' PaymentData: type: object properties: bank: $ref: '#/components/schemas/BankAccount' card: $ref: '#/components/schemas/Card' auth: $ref: '#/components/schemas/BankAuthorization' wallet: $ref: '#/components/schemas/Wallet' createdate: description: Creation date type: string format: date-time Parcel: type: object properties: code: description: parcel code type: string addressuid: type: string externaltransactionnumber: type: string deliverymode: type: string deliverymethod: type: string shopcode: type: string carriercode: type: string deliverydate: type: string format: date-time Payment: type: object properties: processingmode: description: Processing mode type: string enum: - BILLING - PREPAYMENT isprepaid: description: Is pre-paid ? type: boolean groupedpayment: description: orders list concerned by this payment $ref: '#/components/schemas/GroupedPayment' totalpaid: description: Amount paid by the customer type: number format: double totalrefunded: description: Last date of the payment type: number format: double details: description: Details on the payment type: array items: $ref: '#/components/schemas/PaymentDetail' customdata: type: array items: $ref: '#/components/schemas/MetaData' refunddate: description: Refunded date type: string format: date-time paymentdate: description: payment date type: string format: date-time createdate: description: Creation date type: string format: date-time updatedate: description: modification date type: string format: date-time PaymentCancellationDetail: type: object properties: paymentdetailid: type: string paymentmode: description: payment mode type: string example: BILLING, CHECK, CC, CASH paymentcode: description: payment code type: string externalpaymentreference: description: external payment reference type: string paymentdate: description: Last date of the payment type: string format: date-time PaymentDetail: type: object properties: paymentdetailid: type: string movementtype: type: string enum: - CASHING - REFUND status: description: Status of this payment type: string cause: description: Cause type: string paymenttype: type: string paymentmode: description: payment mode type: string example: BILLING, CHECK, CC, CASH paymentcode: description: payment code type: string Isprepaid: description: Is pre-paid ? type: boolean totalpaid: description: Total paid for this payment mode type: number format: double externalpaymentreference: description: external payment reference type: string externaltransactionnumber: description: external payment reference type: string paymentdate: description: Last date of the payment type: string format: date-time customdata: type: array items: $ref: '#/components/schemas/MetaData' Person: type: object required: - attribute properties: persontype: type: string countrycode: description: country code type: string languagecode: description: language code type: string civility: type: string firstname: type: string lastname: type: string sex: type: string patronym: type: string birthdate: type: string familysituation: type: string numberofchildren: type: integer identitydocuments: type: array items: $ref: '#/components/schemas/IdentityDocument' createdate: description: creation date type: string format: date-time updatedate: description: update date type: string format: date-time Phone: type: object properties: uid: description: unique identifier type: string format: uuid Usage: description: Usage for this phone type: string example: HOME, BUSINESS Isprincipal: description: Is principal? type: boolean phonevalue: description: phone value type: string quality: description: phone quality type: boolean Price: type: object properties: currencycode: description: Currency code type: string openingforsale: description: >- If this price is opened for sales. If true, this price can be published type: boolean startdate: type: string format: date-time enddate: type: string format: date-time crossedoutprice: description: Crossed-out price type: number format: double sellingprice: description: Selling price type: number format: double paymentcode: description: Currency code type: string paymentmode: description: Currency code type: string platformcode: description: Currency code type: string DiscountPrice: type: object properties: startdate: description: Start date of the publication type: string format: date-time enddate: description: End date of the publication type: string format: date-time crossedoutprice: description: The crossed-out price type: number format: double sellingprice: description: The selling price type: number format: double promotionids: description: List of all eligle promotions type: array items: type: string Pricing: type: object properties: currencycode: description: Currency code type: string crossedoutprice: type: number format: double sellingprice: type: number format: double prices: type: array items: $ref: '#/components/schemas/Price' PriorityRule: type: object properties: promotionid: type: string promotiontype: type: string promotionname: type: string startdate: type: string format: date-time enddate: type: string format: date-time combinablepromo: type: boolean haspromocode: type: boolean commissiondiscountprice: type: boolean isreverseprice: type: boolean isforwallet: type: boolean ProcessingMessage: type: object properties: processingtype: description: Processing message type type: string code: description: Code of the processing message type: string justification: description: Justification of the processing message type: string linenum: description: The basket line concerned by this message type: integer offerid: description: The offer concerned by this processing message type: string Product: type: object properties: title: description: Product title type: string description: description: Description type: string productid: description: Technical primary key type: string unicitykey: description: Unique business key type: string unicitycode: description: Product code type: string startdate: description: Start publication date type: string format: date-time enddate: description: End publication date type: string format: date-time status: type: string enum: - Published - Unpublished - Created structure: $ref: '#/components/schemas/Structure' codification: $ref: '#/components/schemas/Codification' items: description: Items list type: array items: $ref: '#/components/schemas/Item' content: description: Content details $ref: '#/components/schemas/ContentProperties' properties: description: Product properties $ref: '#/components/schemas/ProductProperties' medias: description: Images list type: array items: $ref: '#/components/schemas/Media' customdata: type: array items: $ref: '#/components/schemas/MetaData' attributes: description: Additional attributes data type: array items: $ref: '#/components/schemas/MasterData' variants: $ref: '#/components/schemas/ProductVariant' createdate: description: Technical creation date type: string format: date-time updatedate: description: Technical modification date type: string format: date-time ProductProperties: type: object properties: category: type: string family: type: string subfamily: type: string model: type: string design: type: string brand: type: string catalog: type: string collection: type: string vatnumcode: type: string shippingcode: type: string sequence: type: integer ranking: type: integer groupcode: type: string conflict: description: Conflict Options $ref: '#/components/schemas/Conflict' ProductRequest: type: object properties: productid: description: technical product Identifier type: string productids: description: List of product Id type: array items: type: string unicitykeys: type: array items: type: string typology: description: technical product Identifier type: string enum: - grouped - simple countrycode: type: string groupcode: type: string groupcodes: description: List of group codes type: array items: type: string requestcontext: description: restrict fields to return in the response $ref: '#/components/schemas/RequestContext' platformcodes: type: array items: type: string contentids: type: array items: type: string contenttypes: type: array items: type: string servicetypes: type: array items: type: string categories: type: array items: type: string studios: type: array items: type: string tvodtiers: type: array items: type: string subscriptiontiers: type: array items: type: string startupdatedate: type: string format: date-time endupdatedate: type: string format: date-time customdata: type: array items: $ref: '#/components/schemas/MetaData' attributes: type: array items: $ref: '#/components/schemas/MasterData' ProductVariant: type: object properties: code: type: string level: type: string values: type: array items: $ref: '#/components/schemas/MasterData' Promotion: type: object properties: title: description: short title of the promotion type: string description: description: promotion description type: string promotionid: description: technical key type: string unicitykey: description: business key type: string structure: $ref: '#/components/schemas/Structure' usagelimit: description: type of the promotion type: string enum: - LimitedNumber - NoLimit - Voucher usagelimitDetails: description: >- mandatory if usagelimit set to LimitedNumber. Define in this case the max quantity used for this limit. type: integer promotioncodes: description: Optional promotion codes with semicolon separator type: array items: type: string startdate: description: start date of the promotion to be actived type: string format: date-time enddate: description: end date of the promotion. type: string format: date-time status: description: status of the promotion type: string enum: - Created - Published - Unpublished rules: description: rules list. type: array items: $ref: '#/components/schemas/Rule' medias: type: array items: $ref: '#/components/schemas/Media' combinablepromo: description: >- If set to TRUE, that means, if no exclusive promotion is already applied to the input basket, this promotion can be applied. Otherwise, this promotion can't be applied. type: boolean default: true commissiondiscountprice: description: >- if set to TRUE, the calculation of the commission is done of the discounted price, otherise the calculation is done on the gross price. type: boolean default: false createdate: description: creation date set by the service type: string format: date-time updatedate: description: modification date set by the service type: string format: date-time example: title: promo of the year promotionid: b6939432d0494e588866ff89514a78e7 structure: blcode: GRIDBEES promotioncodes: - SUMMER2021;SPRING2021 startdate: '2021-04-01T14:27:00.000Z' enddate: '2020-09-30T14:27:00.000Z' status: Created rules: - description: My little promotion ruleID: 3062f860-f071-4242-893e-139d8d86106d conditions: - conditionid: 125473a9-cc66-4804-8f3e-8217109333b3 conditionlabel: '10' parameter1: BasketLine parameter2: '>=' parameter3: '10' behaviours: - behaviourid: d8ca6f36-d919-488b-bef4-f9b452ceb501 behaviourlabel: '10' isreversedprice: false parameter1: BasketDiscountAmount parameter2: '10' parameter8: '' priority: 1000 combinablepromo: true commissiondiscountprice: false PromotionCreate: type: object properties: title: description: short title of the promotion type: string description: description: promotion description type: string unicitykey: description: business key type: string structure: $ref: '#/components/schemas/Structure' usagelimit: description: type of the promotion type: string enum: - LimitedNumber - NoLimit - Voucher usagelimitDetails: description: >- mandatory if usagelimit set to LimitedNumber. Define in this case the max quantity used for this limit. type: integer promotioncodes: description: Optional promotion codes with semicolon separator type: array items: type: string startdate: description: start date of the promotion to be actived type: string format: date-time enddate: description: end date of the promotion. type: string format: date-time status: description: status of the promotion type: string enum: - Created - Published - Unpublished medias: type: array items: $ref: '#/components/schemas/Media' rules: description: rules list. type: array items: $ref: '#/components/schemas/Rule' combinablepromo: description: >- If set to TRUE, that means, if no exclusive promotion is already applied to the input basket, this promotion can be applied. Otherwise, this promotion can't be applied. type: boolean default: true commissiondiscountprice: description: >- if set to TRUE, the calculation of the commission is done of the discounted price, otherise the calculation is done on the gross price. type: boolean default: false example: title: promo of the year structure: blcode: GRIDBEES promotioncodes: - SUMMER2021;SPRING2021 startdate: '2021-04-01T14:27:00.000Z' enddate: '2020-09-30T14:27:00.000Z' status: Created rules: - description: My little promotion ruleID: 3062f860-f071-4242-893e-139d8d86106d conditions: - conditionid: 125473a9-cc66-4804-8f3e-8217109333b3 conditionlabel: '10' parameter1: BasketLine parameter2: '>=' parameter3: '10' behaviours: - behaviourid: d8ca6f36-d919-488b-bef4-f9b452ceb501 behaviourlabel: '10' isreversedprice: false parameter1: BasketDiscountAmount parameter2: '10' parameter8: '' priority: 1000 combinablepromo: true commissiondiscountprice: false PromotionRequest: type: object properties: promotionid: description: technical key type: string promotionids: description: technical identifiers type: array items: type: string businesslinecode: description: Business line code type: string countrycode: description: Country code type: string languagecode: description: Language code type: string haspromocode: description: The promotion has a promocode type: boolean marketcode: description: Market code type: string usagelimit: description: type of the promotion type: string enum: - LimitedNumber - NoLimit - Voucher startdate: description: start date date of the promotion. type: string format: date-time enddate: description: end date of the promotion. type: string format: date-time status: description: status of the promotion type: string enum: - Created - Published - Unpublished PromotionPublishRequest: type: object properties: businesslinecode: description: Business line code type: string countrycode: description: Country code type: string promotionid: description: technical identifier type: string haspromocode: description: The promotion has a promocode type: boolean marketcode: description: Market code type: string startdate: description: start date date of the promotion. type: string format: date-time enddate: description: end date of the promotion. type: string format: date-time conditionnames: description: list of condition's names type: array items: type: string enum: - Application - BasketAmount - BasketLine - Offer - Product - CustomData on Offers and Customers - Subscription (offers and/or products) - Vendor - Channel discountnames: description: list of discount's names type: array items: type: string enum: - BasketDiscountAmount - BasketDiscountPercent - LineDiscountAmount - LineDiscountPercent - SetDiscountLine - OfferDiscountAmount - OfferDiscountPercent - ProductDiscountAmount - ProductDiscountPercent - TheMostExpensive - TheCheapestPercent - FeeDiscountAmount - FeeDiscountPercent - SetFees - SetOffer - SubscriptionAmount - SubscriptionPercent businesskeys: description: list of business keys type: array items: type: string offertypes: description: list of offer types type: array items: type: string offercodes: description: list of offer codes type: array items: type: string productcodes: description: list of offer codes type: array items: type: string channelcodes: description: list of channel codes type: array items: type: string vendorcodes: description: list of vendor codes type: array items: type: string SuggestPromotion: type: object properties: promotionid: description: Technical identifier of the promotion type: string promotionname: type: string conditionid: type: integer conditiontype: description: List of condition type (Enum) type: string expected: description: additional condition to satisfy type: string combinable: description: If this promotion can combine with the others type: boolean priority: description: The highest priority is first applied type: integer issuccess: description: If true, already applied, if false, it is suggestion type: boolean comment: type: string PublishedPromotion: type: object properties: title: description: Title type: string description: description: Description type: string promotionid: description: Technical identifier of the promotion type: string businesscode: description: Business Code type: string haspromocode: description: Promotion has a promocode type: boolean discountsellingprice: description: Is discount applied on intial selling price ? type: boolean combinablepromo: description: Is this promo combinable with others ? type: boolean startdate: description: Promotion start date type: string format: date-time enddate: description: Promotion end date type: string format: date-time structure: $ref: '#/components/schemas/Structure' attributes: description: Additional attributes data type: array items: $ref: '#/components/schemas/MasterData' salience: description: Priority of the promotion type: integer medias: type: array items: $ref: '#/components/schemas/Media' rules: description: Promotion rules list type: array items: $ref: '#/components/schemas/BookingRule' createdate: description: Technical creation date type: string format: date-time updatedate: description: Technical modification date type: string format: date-time ProductItem: type: object properties: productid: type: string productcode: type: string itemnumid: type: string quantity: type: integer itemlabel: type: string promisedavailability: type: string format: date-time customdata: $ref: '#/components/schemas/MetaData' vatcode: type: string vatrate: type: string category: type: string family: type: string subfamily: type: string productgroup: type: string shippingrate: type: string segment1: type: string segment2: type: string Reservation: type: object properties: minquantity: description: Minimum quantity type: integer maxquantity: description: Maximum quantity type: integer reservationtype: description: Reservation type type: string ReservationType: type: object properties: minquantity: description: Minimum quantity type: integer maxquantity: description: Maximum quantity type: integer code: description: Code type: string value: description: Value type: string ResultCode: type: object properties: result: description: Boolean return code type: string example: result: true RequestContext: type: object properties: queryprojection: description: list of fields to filter in the response type: array items: type: string limit: description: for pagination, total results to return type: integer skip: description: for pagination, total entries to skip type: integer withcount: description: >- parameter in the request header to inform the service to return in the response header the totalcount property. Available only for publish endpoints. type: integer islogicaloperation: description: >- future use, for now used for logical deletion. Set the status = Deleted, instead of a hard DB deletion. type: boolean Rule: type: object properties: description: description: promotion description type: string ruleID: description: auto-generated by the service type: string salience: description: >- all eligible promotions are applied to the input basket. This priority property defines the order to apply the eligible promotions. From the highest to the lowest. type: integer conditions: type: array items: $ref: '#/components/schemas/RuleCondition' behaviours: type: array items: $ref: '#/components/schemas/RuleBehaviour' RuleCondition: type: object properties: conditionid: description: auto-generated by the service type: string conditionlabel: description: description type: string parameter1: type: string oneOf: - enum: - BasketAmount - BasketLine - ProdID - ProdCategory - ProdFamily - ProdSubFamily - PaymentDetail - DeliveryDetail - ProdCustomParam1 - ProductFilters - BundleProductQuantity - OfferQuantity - Frequency - Shop - SynchronizeProduct - Canal - Reservation - Lang - Vendor - OfferType - PassengerType - ProductGroup - Offer - Application - SubscriptionPreference - SubscriptionType - CommissionAmount - CommissionPercent type: string RuleBehaviour: type: object properties: behaviourid: description: auto-generated by the service type: string behaviourlabel: description: description type: string isreversedprice: type: boolean parameter1: type: string oneOf: - enum: - BasketDiscountPercent - BasketDiscountAmount - LineDiscountPercent - LineDiscountAmount - AddProd - SetFees - FeeDiscountAmount - FeeDiscountPercent - DeferredVoucher - DeferredEmailTemplate - CommissionAmount - CommissionPercent - TheCheapestPercent - GroupDiscountPercent - AddSynchronizedProduct - PaxDiscountAmount - PaxDiscountPercent - SubscriptionAmount - SubscriptionPercent - OfferDiscountPercent - OfferDiscountAmount type: string parameter2: type: string paramter3: type: string paramter4: $ref: '#/components/schemas/BasketAddedProduct' paramter5: $ref: '#/components/schemas/MetaData' paramter6: $ref: '#/components/schemas/MetaData' parameter7: type: string paramter8: type: string paramter9: $ref: '#/components/schemas/MetaDataQuantityPercent' paramter10: $ref: '#/components/schemas/MetaDataCategorization' OrderSearchRequest: type: object properties: orderid: description: Order Identifier type: string contactid: description: Contact Identifier type: string orderids: description: Order Identifiers type: array items: type: string paymentmode: description: Payment mode type: string invoicenumber: description: Invoice number type: string ordertype: description: order type type: string example: BOOKING, ORDER, QUOTATION codification: description: only on fields vendorcode, platformcode, categorycode $ref: '#/components/schemas/Codification' structure: description: only on fields marketcode, countrycode, shopcode $ref: '#/components/schemas/Structure' user: description: The user assigned to the booking type: string booking: description: External references $ref: '#/components/schemas/BookingRequest' transactionnumber: description: Business booking reference type: string lastname: description: Billing adrress lastname type: string firstname: description: billing address first name paymentstatus: description: Booking payment status type: string example: PAID, PENDING orderstatus: description: Booking status type: string example: PROCESSED, PENDING startdate: description: Start creation date type: string format: date-time enddate: description: End creation date type: string format: date-time startexpirationdate: description: If it is a quotation, start date of the expired delay type: string format: date-time endexpirationdate: description: If it is a quotation, end date of the expired delay type: string format: date-time requestcontext: description: restrict fields to return in the response $ref: '#/components/schemas/RequestContext' ShippingFees: type: object properties: zone: description: name of the delivery zone type: string method: description: name of the delivery method type: string offerids: description: Offer Identifiers type: array items: type: string mindeliverytime: description: Min delivery time type: integer maxdeliverytime: description: Max delivery time type: integer price: description: price of this shipping method type: number Structure: type: object properties: blcode: description: Business line code type: string companycode: description: Company code type: string countrycode: description: Country code type: string marketcode: description: Market code type: string partnercode: description: Partner code type: string merchantcode: description: Merchant code type: string departmentcode: description: Department code type: string provincecode: description: Province code type: string languagecode: description: Language code type: string networkcode: description: Network code type: string networktype: description: Network type type: string shopcode: description: Shop code type: string TaxDetail: type: object properties: taxtype: type: string code: type: string reference: type: string label: type: string vatcode: type: string vatrate: type: number format: double price: type: number format: double quantity: type: integer Ticket: type: object properties: businesstype: description: Type of ticket (VOUCHER or TICKET) type: string transactionnumber: description: Reference of the reservation type: string categories: description: category type concerned by the ticket/voucher. type: string reservationdate: description: Reservation date type: string format: date-time formattype: description: The format of the the ticket type: string example: BARCODE, QROCODE subformattype: description: The sub type of the format type: string example: EAN128 media: description: Info about the media $ref: '#/components/schemas/Media' example: businesstype: VOUCHER suppliercode: '' transactionnumber: CJGD0000008538 supplierbookingreference: '' categories: {} reservationdate: '2020-02-18T13:00:00.000Z' languagecode: en formattype: BARCODE subformattype: QR media: url: >- http://api-uat.gridbees.com/medias/tickets/02ba/68ac/02ba68ac5b8fc17bebdf4675e55dc0826d3a.pdf mediatype: PDF size: 15144 languagecode: en TicketRequest: type: object properties: orderid: description: Order Identifier type: string orderids: description: Order Identifiers type: array items: type: string startdate: description: Start creation date type: string format: date-time enddate: description: End creation date type: string format: date-time UpdateRequest: type: object required: - orderid - ordertracking - billingaddress - lines properties: orderid: description: Internal Order Identifier type: string identifier: $ref: '#/components/schemas/Identifier' ordertracking: description: Order Tracking $ref: '#/components/schemas/TrackingDataUpdate' comtracking: description: Commercial Tracking $ref: '#/components/schemas/CommercialTracking' amount: $ref: '#/components/schemas/Amount' billingaddress: description: Billing address $ref: '#/components/schemas/Address' deliverydetail: description: Delivery details $ref: '#/components/schemas/DeliveryDetail' payment: description: Payment details $ref: '#/components/schemas/Payment' customdata: description: To use to store key/value list $ref: '#/components/schemas/MetaData' lines: description: order lines type: array items: $ref: '#/components/schemas/OrderLine' UserSubscription: type: object required: - unicitykey properties: title: description: Title type: string subscriptionid: description: Subscription Identifier type: string subscriptiontype: description: Subscription type (RECCURING, ONESHOT, FREE,...) type: string unicitykey: description: business key Identifier type: string offerid: description: original offer ID subscription type: string offercode: description: original offer code subscription type: string productcode: description: original product code subscription type: string orderid: description: original order ID subscription type: string amount: $ref: '#/components/schemas/Amount' dunninglevel: description: Dunning level type: string billingcycletype: description: Billing cycle type type: string interval: description: Interval type: number startdate: type: string format: date-time isactive: description: Is active ? type: boolean issupended: description: Is suspended ? type: boolean isblocked: description: Is blocked ? type: boolean isterminated: description: Is terminated ? type: boolean enddatesuspended: type: string format: date-time TrackingData: type: object properties: vendorcode: description: vendor Identifier type: string orderchannel: description: Order Channel type: string contactchannel: description: Contact channel type: string site: description: Client site code type: string agency: description: Client agency code type: string user: description: User to assign the operation type: string externalbookingid: description: Client booking reference type: string bookingid: description: Gridbees Booking identifier type: string externaltransactionnumber: description: Client External business reference type: string transactionnumber: description: Gridbees business reference type: string platformreferencenumber: description: Other platform business reference type: string supplierreferencenumber: description: Other supplier business reference type: string invoicenumber: description: Invoice reference type: string comments: description: List of comments type: array items: $ref: '#/components/schemas/Comment' TrackingDataUpdate: required: - transactionnumber type: object properties: vendorcode: description: vendor Identifier type: string orderchannel: description: Order Channel type: string contactchannel: description: Contact channel type: string site: description: Client site code type: string agency: description: Client agency code type: string user: description: User to assign the operation type: string externalbookingid: description: Client booking reference type: string bookingid: description: Gridbees Booking identifier type: string externaltransactionnumber: description: Client External business reference type: string transactionnumber: description: Gridbees business reference type: string platformreferencenumber: description: Other platform business reference type: string supplierreferencenumber: description: Other supplier business reference type: string invoicenumber: description: Invoice reference type: string comments: description: List of comments type: array items: $ref: '#/components/schemas/Comment' Translation: type: object properties: name: description: property name to translate type: string languagecode: description: language code type: string value: description: property name translated type: string segment: description: categorisation (use for example to store the country code) type: string DisplayTabs: type: object properties: tabcode: type: string tabindex: type: integer tabcolor: description: future use type: string label: type: string translations: type: array items: $ref: '#/components/schemas/Translation' Wallet: type: object properties: unicitykey: description: unicity key type: string externalreference: description: external reference type: string loyalties: $ref: '#/components/schemas/WalletLoyalty' details: $ref: '#/components/schemas/WalletDetail' customdata: $ref: '#/components/schemas/MetaData' subscriptiondate: description: subscription date type: string format: date-time renewaldate: description: renewal date type: string createdate: description: creation date type: string format: date-time updatedate: description: update date type: string format: date-time WalletDetail: type: object properties: walletid: description: technical key type: string contactid: description: Contact identifier type: string wallettype: description: Wallet type type: string enum: - LOYALTY - VOUCHER - REFERRAL code: type: string operationtype: description: operation type type: string enum: - CREDIT - DEBIT groupname: description: group name type: string vouchernumid: description: voucher numid type: string promotionid: description: promotion ID type: string isused: description: Is used ? type: boolean ordernums: description: List of order number type: array items: type: string amount: description: amount type: number format: double amountdetail: $ref: '#/components/schemas/WalletDetailAmount' properties: $ref: '#/components/schemas/WalletDetailProperties' user: type: string createdate: description: creation date type: string format: date-time updatedate: description: update date type: string format: date-time WalletDetailRequest: type: object properties: walletid: description: technical key type: string contactid: description: Contact identifier type: string walletids: description: List of wallet technical keys type: array items: type: string contactids: description: List of contact identifiers type: array items: type: string wallettype: description: Wallet type type: string enum: - LOYALTY - VOUCHER - REFERRAL loyaltycode: description: loyalty code type: string operationtype: description: Operation type type: string enum: - CREDIT - DEBIT status: description: status type: string ordernum: description: order number type: string ordernums: description: List of order numbers type: array items: type: string startdate: description: start date type: string format: date-time enddate: description: end date type: string format: date-time requestcontext: $ref: '#/components/schemas/RequestContext' WalletDetailAmount: type: object properties: currency: description: currency code type: string wallettype: description: Wallet type type: string isused: description: Is used ? type: boolean used: description: used amount type: number format: double expired: description: expired amount type: number format: double expiringsoon: description: expiringsoon amount type: number format: double validitydate: description: validitydate date type: string format: date-time WalletDetailProperties: type: object properties: cause: description: cause type: string burneddate: description: burned date type: string format: date-time validitydate: description: validitydate date type: string format: date-time businesscreationdate: description: business creation date type: string format: date-time customdata: description: To use to store key/value list type: array items: $ref: '#/components/schemas/MetaData' WalletLoyalty: type: object properties: loyaltycode: description: loyalty code type: string tiercode: description: tier code type: string tierduration: description: tier duration type: integer qualifiedamount: description: qualified amount type: number format: double createdate: description: creation date type: string format: date-time updatedate: description: update date type: string format: date-time WebAccount: type: object properties: webaccountid: description: technical key type: string identifier: $ref: '#/components/schemas/Identifier' login: description: Login type: string password: description: password type: string blocked: description: Is blocked ? type: boolean isactivated: description: Is isactivated ? type: boolean nickname: description: nick name type: string firstname: description: first name type: string lastname: description: last name type: string optinphone: description: optin phone type: boolean optinmail: description: optin mail type: boolean optinemail: description: optin email type: boolean partneroptinphone: description: partner optin phone type: boolean partneroptinmail: description: partner optin mail type: boolean partneroptinemail: description: partner optin email type: boolean createdate: description: creation date type: string format: date-time updatedate: description: update date type: string format: date-time WeekHour: type: object properties: date: description: Date type: string format: date-time departuretime: description: Departure time type: string languages: description: Languages type: array items: type: string Supplier: type: object properties: supplierid: description: technical key type: string tenantid: description: tenant id type: string unicitykey: description: unicity key type: string name: $ref: '#/components/schemas/Person' displayname: description: name to display type: string typology: description: typology of supplier type: string legalentity: $ref: '#/components/schemas/LegalEntity' identifier: $ref: '#/components/schemas/Identifier' blocked: description: is blocked ? type: boolean isconnected: description: is connected ? type: boolean emails: description: Email contact type: array items: $ref: '#/components/schemas/Email' phones: description: Phones contact type: array items: $ref: '#/components/schemas/Phone' addresses: description: Adress contact type: array items: $ref: '#/components/schemas/Address' products: description: LIst of products type: array items: $ref: '#/components/schemas/SupplierProduct' attributes: description: Custom attributes type: array items: $ref: '#/components/schemas/MasterData' createdate: description: creation date type: string format: date-time updatedate: description: update date type: string format: date-time SupplierProduct: type: object properties: productcode: description: product code type: string externalcode: description: external product code type: string isconnected: description: is connected ? type: boolean details: description: details type: string CustomerServiceGetContactsStreamResponse: type: array items: $ref: '#/components/schemas/Contact' CustomerServiceSearchWebAccountResponse: type: array items: $ref: '#/components/schemas/WebAccount' CustomerServiceCreateWebAccountResponse: type: object properties: {} example: {} CustomerServiceGetWebAccountsStreamResponse: type: array items: $ref: '#/components/schemas/WebAccount' CustomerServiceUpdateWebAccountResponse: type: array items: $ref: '#/components/schemas/WebAccount' CustomerServiceSearchSuppliersResponse: type: array items: $ref: '#/components/schemas/Supplier' CustomerServiceGetSuppliersStreamResponse: type: array items: $ref: '#/components/schemas/Supplier' CustomerServiceReceiveMailResponse: type: array items: $ref: '#/components/schemas/Mail' CustomerServiceReprocessMailResponse: type: array items: $ref: '#/components/schemas/Mail' CustomerServiceMailSearchResponse: type: array items: $ref: '#/components/schemas/Mail' CustomerServiceGetMailStreamResponse: type: array items: $ref: '#/components/schemas/Mail' CustomerServiceSearchMailTemplateResponse: type: array items: $ref: '#/components/schemas/MailTemplate' CustomerServiceGetMailTemplateStreamResponse: type: array items: $ref: '#/components/schemas/MailTemplate' CustomerServiceSearchNotificationByCriteriaResponse: type: array items: $ref: '#/components/schemas/Notification' CustomerServiceGetNotificationsStreamResponse: type: array items: $ref: '#/components/schemas/Notification' CustomerServiceSearchWalletByCriteriaResponse: type: array items: $ref: '#/components/schemas/WalletDetail' CustomerServiceGetWalletStreamResponse: type: array items: $ref: '#/components/schemas/WalletDetail' OfferServiceCreateNewOfferResponse: type: array items: $ref: '#/components/schemas/Offer' OfferServiceCreateOrUpdateOfferResponse: type: array items: $ref: '#/components/schemas/Offer' OfferServicePullPublishOfferResponse: type: array items: $ref: '#/components/schemas/Offer' ProductServicePullPublishProductResponse: type: array items: $ref: '#/components/schemas/Product' PromotionServiceSearchPromotionsResponse: type: array items: $ref: '#/components/schemas/Promotion' PromotionServiceInformMerchantAboutPromotionResponse: type: array items: $ref: '#/components/schemas/PublishedPromotion' BookingServiceSearchBookingsResponse: type: array items: $ref: '#/components/schemas/Order' BookingServiceUpdateOrderStatusResponse: type: array items: $ref: '#/components/schemas/Order' MasterDataServiceSearchMasterDataResponse: type: array items: $ref: '#/components/schemas/MasterData' MasterDataServiceSearchMasterData200Response: type: array items: $ref: '#/components/schemas/Display'