{"openapi":"3.0.1","info":{"title":"Commerce workflow","description":"Provide generic manage of workflow\n <b><h1>Deprecated endpoints:</h1></b><table border=\"1px;\"><tr><th style=\"text-align: center; vertical-align: middle;\"><b><h3>Uri</b></h3></th><th><b>Method</b></th><th><b><h3>Since</h3></b></th><th><b><h3>End of life</h3></b></th></tr></table>","version":"1-apps"},"servers":[{"url":"api.test.bluestonepim.com/commerce-workflow"}],"tags":[{"name":"Technical","description":"To get technical information."},{"name":"Fields","description":"To manage field configurations."},{"name":"Migrate","description":"To migrate the data."},{"name":"Orders","description":"To manage the order."},{"name":"Process definition","description":"To manage process definitions."},{"name":"Process event","description":"To handle the process event."},{"name":"Process","description":"To manage the process."},{"name":"Process step","description":"To manage process step."},{"name":"processStepTimeout","description":"To manage process step timeout."},{"name":"Report","description":"To manage report."},{"name":"Logs","description":"To manage service logs."},{"name":"Settings","description":"To manage settings."},{"name":"Syncs","description":"To sync data to ElasticSearch."}],"paths":{"/technical/version":{"get":{"tags":["Technical"],"summary":"Show service version.","operationId":"presentVersion","responses":{"200":{"description":"Show service version."},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/fields":{"get":{"tags":["Fields"],"summary":"Get fields configuration.","operationId":"getFields","responses":{"200":{"description":"Get fields configuration success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetFieldResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Cannot get fields configuration"}},"security":[{"oauth2":[]}]}},"/fields/report":{"get":{"tags":["Fields"],"summary":"Get order report fields configuration.","operationId":"getReportFields","responses":{"200":{"description":"Get order report fields configuration success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldConfigurationResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Cannot get fields configuration"}},"security":[{"oauth2":[]}]},"put":{"tags":["Fields"],"summary":"Upsert order report fields configuration.","operationId":"upsertReportFields","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportFieldConfigurationRequest"}}},"required":true},"responses":{"200":{"description":"Upsert order report fields configuration success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldConfigurationResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Cannot upsert fields configuration"}},"security":[{"oauth2":[]}]}},"/migrate/quickSearch":{"post":{"tags":["Migrate"],"summary":"Migrate quick search field.","operationId":"migrateQuickSearch","responses":{"202":{"description":"Accepted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized"},"500":{"description":"Migrate quickSearch failed"}},"security":[{"oauth2":[]}]}},"/orders/count":{"post":{"tags":["Orders"],"summary":"Count search processes.","operationId":"countSearchOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountSearchOrderRequest"}}},"required":true},"responses":{"200":{"description":"Successfully count searched processes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountOrderResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/orders/search":{"post":{"tags":["Orders"],"summary":"Search processes.","operationId":"searchOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchOrderRequest"}}},"required":true},"responses":{"200":{"description":"Successfully searched processes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOrderResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/orders/scroll/search":{"post":{"tags":["Orders"],"summary":"Search process from Elasticsearch using scroll to allow users find orders more than 10K.","operationId":"searchOrderWithScroll","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchOrderWithScrollRequest"}}},"required":true},"responses":{"200":{"description":"Successfully searched processes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOrderWithScrollResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Endpoint unavailable. Requires 'elasticsearch' as order source"}},"security":[{"oauth2":[]}]}},"/processDefinition":{"get":{"tags":["Process definition"],"summary":"List of process definition.","operationId":"listProcessDefinition","parameters":[{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"archived","in":"query","description":"Is archived.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Process definition listed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProcessDefinitionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Cannot list process definition"}},"security":[{"oauth2":[]}]},"post":{"tags":["Process definition"],"summary":"Create process definition.","operationId":"createProcessDefinition","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessDefinitionRequest"}}},"required":true},"responses":{"201":{"description":"Process Definition created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessDefinitionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Missing required parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonError"}}}}},"security":[{"oauth2":[]}]}},"/processDefinition/{id}":{"get":{"tags":["Process definition"],"summary":"Get process definition by Id.","operationId":"getProcessDefinitionById","parameters":[{"name":"id","in":"path","description":"Definition Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Process definition is listed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessDefinitionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process definition not found"},"500":{"description":"Cannot get process definition"}},"security":[{"oauth2":[]}]},"put":{"tags":["Process definition"],"summary":"Update process definition by Id.","operationId":"updateProcessDefinition","parameters":[{"name":"id","in":"path","description":"Definition Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessDefinitionRequest"}}},"required":true},"responses":{"200":{"description":"Process definition is updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessDefinitionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process definition not found"},"500":{"description":"Cannot update process definition."}},"security":[{"oauth2":[]}]},"delete":{"tags":["Process definition"],"summary":"Delete process definition by Id.","operationId":"deleteProcessDefinition","parameters":[{"name":"id","in":"path","description":"Definition Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Process definition is deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessDefinitionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process definition not found"},"500":{"description":"Cannot deleted"}},"security":[{"oauth2":[]}]}},"/process/{id}/approve":{"post":{"tags":["Process event"],"summary":"Approve step.","operationId":"approveStep","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualApprovalRequest"}}}},"responses":{"200":{"description":"Approved"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/events":{"get":{"tags":["Process event"],"summary":"Get process events from process Id.","operationId":"getProcessEvents","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}},{"name":"groupDuplicate","in":"query","description":"Flag to group the same retry event into one event.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Process Events are listed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProcessEventResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process Id not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/reject":{"post":{"tags":["Process event"],"summary":"Reject step.","operationId":"rejectStep","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}},{"name":"logAction","in":"query","description":"Action.","schema":{"type":"string","enum":["APPROVE","REJECT","RETRY","SKIP","CANCEL","REJECT","CANCEL"]}}],"requestBody":{"description":"Manual approval request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualApprovalRequest"}}}},"responses":{"200":{"description":"Rejected"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/events/{eventIdx}/retry":{"post":{"tags":["Process event"],"summary":"Retry aborted step.","operationId":"retryEvent","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}},{"name":"eventIdx","in":"path","description":"Event Id.","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualApprovalRequest"}}}},"responses":{"200":{"description":"Process event has been retried"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/process/{id}/send-cancellation-email":{"post":{"tags":["Process event"],"summary":"Manually send order cancellation email.","operationId":"sendOrderCancellationEmailProcessStep","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}},{"name":"force","in":"query","description":"Flag to force send an email without validation.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Send cancel email success"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/send-confirmation-email":{"post":{"tags":["Process event"],"summary":"Manually send order confirmation email.","operationId":"sendOrderConfirmationEmailProcessStep","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}},{"name":"force","in":"query","description":"Flag to force send an email without validation.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Send confirmation email success"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/send-delivery-email":{"post":{"tags":["Process event"],"summary":"Manually send order delivery email.","operationId":"sendOrderDeliveryEmailProcessStep","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}},{"name":"force","in":"query","description":"Flag to force send an email without validation.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Send delivery email success"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/send-receipt-email":{"post":{"tags":["Process event"],"summary":"Manually send order receipt email.","operationId":"sendOrderReceiptEmailProcessStep","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}},{"name":"force","in":"query","description":"Flag to force send an email without validation.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Send receipt email success"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/skip":{"post":{"tags":["Process event"],"summary":"Skip step.","operationId":"skipStep","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Manual approval request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualApprovalRequest"}}}},"responses":{"200":{"description":"Skipped"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/comments":{"post":{"tags":["Process"],"summary":"Add user comment in manual approve tab.","operationId":"addComment","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentRequest"}}},"required":true},"responses":{"200":{"description":"Comment added","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/eventLog":{"post":{"tags":["Process"],"summary":"Add event log to process.","operationId":"addEventLog","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddEventRequest"}}},"required":true},"responses":{"200":{"description":"Event log added"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/lineitems":{"post":{"tags":["Process"],"summary":"Add an item to line items.","description":"This endpoint always add new line item even a given product already existed. Allow action for process status in [Temporary,Created] only.","operationId":"addLineItemInProcessData","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineItemRequest"}}},"required":true},"responses":{"201":{"description":"Successfully add line item in process data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/copy":{"post":{"tags":["Process"],"summary":"Copy all data from the given process id as a new process.","description":"Allow to copy process with status in [Temporary,Created] only.","operationId":"copyProcessData","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Successfully add line item in process data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"},"500":{"description":"Internal server error"}},"security":[{"oauth2":[]}]}},"/process":{"post":{"tags":["Process"],"summary":"Create a process.","operationId":"createProcess","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessRequest"}}},"required":true},"responses":{"201":{"description":"Process is created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The resource already exists."},"422":{"description":"Missing required parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonError"}}}}},"security":[{"oauth2":[]}]}},"/process/{id}/comments/{commentId}":{"put":{"tags":["Process"],"summary":"Update user comment in manual approve tab.","operationId":"updateComment","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","description":"Comment Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentRequest"}}},"required":true},"responses":{"200":{"description":"Comment updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Process"],"summary":"Delete user comment in manual approve tab.","operationId":"deleteComment","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","description":"Comment Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Comment deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/deliveries/{reference}":{"delete":{"tags":["Process"],"summary":"Delete reference on delivery line item","operationId":"deleteDeliveryByReference","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}},{"name":"reference","in":"path","description":"Delivery reference Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Delete delivery successfully"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Delivery not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/lineitems/{lineItemId}":{"put":{"tags":["Process"],"summary":"Update existing line item.","description":"Allow action for process status in [Temporary,Created] only.","operationId":"updateLineItemInProcessData","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}},{"name":"lineItemId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineItemRequest"}}}},"responses":{"202":{"description":"Successfully Update existing line item","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Process"],"summary":"Delete existing line item.","description":"Allow action for process status in [Temporary,Created] only.","operationId":"deleteLineItemInProcessData","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}},{"name":"lineItemId","in":"path","description":"Line item Id.","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Successfully delete existing line item","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/deliveries":{"get":{"tags":["Process"],"summary":"Get deliveries line item.","operationId":"getDeliveries","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deliveries are listed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProcessDeliveriesResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Data not found"}},"security":[{"oauth2":[]}]},"post":{"tags":["Process"],"summary":"Upsert delivery line item.","operationId":"upsertDelivery","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertDeliveryRequest"}}},"required":true},"responses":{"200":{"description":"Upsert delivery successful"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process is not found"},"500":{"description":"Internal server error"}},"security":[{"oauth2":[]}]}},"/process/{id}/lineitems/{lineItemId}/imei":{"get":{"tags":["Process"],"summary":"Get imei line item.","operationId":"getImeiLineItem","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}},{"name":"lineItemId","in":"path","description":"Line item Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Imei listed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLineItemImeiResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Line item not found"}},"security":[{"oauth2":[]}]},"post":{"tags":["Process"],"summary":"Upsert imei line item.","operationId":"upsertImeiLigsneItem","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}},{"name":"lineItemId","in":"path","description":"Line item Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateImeiRequest"}}},"required":true},"responses":{"200":{"description":"Upsert imei successful"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Line item not found"}},"security":[{"oauth2":[]}]}},"/process/{id}":{"get":{"tags":["Process"],"summary":"Get process by Id.","operationId":"getProcess","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"pattern":"[a-f\\d]{24}$","type":"string"}}],"responses":{"200":{"description":"Process is listed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process is not found"}},"security":[{"oauth2":[]}]}},"/process/statuses":{"get":{"tags":["Process"],"summary":"Get process status.","operationId":"getProcessStatusList","responses":{"200":{"description":"Process status is listed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessStatusResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/process/list/by-ids":{"post":{"tags":["Process"],"summary":"Listing processes by IDs.","operationId":"listProcessByIds","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessListByIdsRequest"}}},"required":true},"responses":{"200":{"description":"List processes by IDs successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProcessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/process/list/by-numbers":{"post":{"tags":["Process"],"summary":"Listing processes by numbers.","operationId":"listProcessByNumbers","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessListByNumbersRequest"}}},"required":true},"responses":{"200":{"description":"List processes by numbers successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProcessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/process/{id}/status/created":{"put":{"tags":["Process"],"summary":"Moving status from temporary to created state.","operationId":"moveProcessToCreatedState","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully moved process state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/data":{"put":{"tags":["Process"],"summary":"Update process data.","description":"Update initial data for process status in [Temporary,Created] or updating order data by adding event process data; No validation is performed at this stage and each update acts as a patch to specific data fields; partial data is supported. Any custom/additional fields will not show in API document.","operationId":"updateInitialProcessData","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}},{"name":"updateByCustomerUserId","in":"query","description":"Update by customer user Id.","schema":{"type":"string"}},{"name":"updateByCustomerName","in":"query","description":"Update by customer name.","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataRequest"}}},"required":true},"responses":{"200":{"description":"Successfully updated data in the process","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/returns":{"put":{"tags":["Process"],"summary":"Set order return.","operationId":"updateOrderReturn","parameters":[{"name":"id","in":"path","description":"Process id.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReturnOrderRequest"}}},"required":true},"responses":{"200":{"description":"Order returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/definitionName":{"put":{"tags":["Process"],"summary":"Update process definition name of process.","operationId":"updateProcessDefinitionName","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDefinitionNameRequest"}}},"required":true},"responses":{"200":{"description":"Successfully moved process state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/shipment":{"put":{"tags":["Process"],"summary":"Update shipment.","operationId":"updateShipment","parameters":[{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateShipmentRequest"}}},"required":true},"responses":{"200":{"description":"Shipment updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/process/{id}/status/validated":{"put":{"tags":["Process"],"summary":"Moving status to created or validated.","operationId":"validateProcess","parameters":[{"name":"validateProcessData","in":"query","description":"Allows for turning off process data validation. It can be useful in internal services where it is not possible to inform end user about potential errors in process","schema":{"type":"boolean","default":true}},{"name":"id","in":"path","description":"Process Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully move state of a process","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Process not found"}},"security":[{"oauth2":[]}]}},"/processStepTimeout":{"delete":{"tags":["processStepTimeout"],"summary":"Delete process step timeout.","operationId":"removeProcessStepTimeout","parameters":[{"name":"originalProcessReference","in":"query","description":"Original process refs.","schema":{"type":"string"}},{"name":"stepName","in":"query","description":"Step name.","schema":{"type":"string"}}],"responses":{"202":{"description":"Process step timeout delete request sent"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/report/{id}":{"delete":{"tags":["Report"],"summary":"Remove order report.","operationId":"deleteReport","parameters":[{"name":"id","in":"path","description":"Report Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Remove order report success"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Cannot remove order report"}},"security":[{"oauth2":[]}]}},"/report/download/{id}":{"get":{"tags":["Report"],"summary":"Download order report.","operationId":"downloadReport","parameters":[{"name":"id","in":"path","description":"Report Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Download order report success"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/report/generate":{"post":{"tags":["Report"],"summary":"Generate processes by search.","operationId":"generateReport","parameters":[{"name":"debug","in":"query","description":"Is debug.","schema":{"type":"boolean"}},{"name":"pagesize","in":"query","description":"Page size.","schema":{"type":"string"}},{"name":"orderPerThread","in":"query","description":"Order amount for a worker thread.","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LambdaReportRequest"}}},"required":true},"responses":{"201":{"description":"Successfully creating a report generating process","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/report":{"get":{"tags":["Report"],"summary":"Get order report.","operationId":"getReport","parameters":[{"name":"filterId","in":"query","description":"Filter Id.","schema":{"type":"string"}},{"name":"page","in":"query","description":"Number of page.","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","description":"Size of page.","schema":{"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"Get report success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Cannot get order report"}},"security":[{"oauth2":[]}]}},"/settings":{"get":{"tags":["Settings"],"summary":"Get settings.","operationId":"getSettings","responses":{"200":{"description":"Successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingDataResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]},"put":{"tags":["Settings"],"summary":"Setup/Update settings.","operationId":"updateSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingDataRequest"}}},"required":true},"responses":{"200":{"description":"Update settings successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingDataResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]},"delete":{"tags":["Settings"],"summary":"Delete all setting.","operationId":"deleteSettings","responses":{"200":{"description":"Delete settings successfully"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}}},"components":{"schemas":{"ErrorResponse":{"type":"object","properties":{"status":{"title":"Error status code.","type":"integer","format":"int32"},"error":{"title":"General error description.","type":"string"},"errorDetails":{"title":"List of errors details.","type":"array","items":{"$ref":"#/components/schemas/ErrorDetails"}},"requestId":{"title":"Request ID used for logging.","type":"string"},"timestamp":{"title":"Error timestamp.","type":"integer","format":"int64"},"quotaLimitExceededDetails":{"title":"Additional entity id list related to error","type":"array","items":{"$ref":"#/components/schemas/QuotaLimitExceededDetails"}}}},"ErrorDetails":{"type":"object","properties":{"message":{"title":"Error message.","type":"string"},"field":{"title":"Error related field.","type":"string"},"rejectedValue":{"title":"Invalid value causing error.","type":"string"}}},"QuotaLimitExceededDetails":{"type":"object","properties":{"quota":{"title":"Quota name.","type":"string"},"message":{"title":"Quota limit message.","type":"string"},"limit":{"title":"Quota limit.","type":"integer","format":"int32"},"entityId":{"title":"Id of the entity that caused the quota limit to be exceeded.","type":"string","nullable":true},"entityType":{"title":"Type of the entity that caused the quota limit to be exceeded.","type":"string","nullable":true}}},"FieldResponse":{"type":"object","properties":{"name":{"title":"Field name.","type":"string"},"title":{"title":"Field title.","type":"string"},"group":{"title":"Group.","type":"string"},"paths":{"title":"Field paths.","type":"array","items":{"type":"string"}},"searchable":{"title":"Searchable.","type":"boolean"},"filterable":{"title":"Filterable.","type":"boolean"},"type":{"title":"Field type.","type":"string"},"stepName":{"title":"Step name.","type":"string"},"values":{"title":"Field values.","type":"array","items":{"type":"string"}},"showOnGrid":{"title":"Show on grid.","type":"boolean"},"showOnFilter":{"title":"Show on filter.","type":"boolean"},"sortable":{"title":"Sortable.","type":"boolean"},"capitalizeFirstOnDisplay":{"title":"Capitalize first on display.","type":"boolean"}}},"GetFieldResponse":{"type":"object","properties":{"fields":{"title":"List of fields.","type":"array","items":{"$ref":"#/components/schemas/FieldResponse"}}}},"Field":{"title":"Field.","type":"object","properties":{"name":{"title":"Name.","type":"string"},"paths":{"title":"List of path.","type":"array","items":{"title":"List of path.","type":"string"}},"fieldType":{"title":"Field type.","type":"string","enum":["TEXT","DATE","DATETIME","PRICE","BOOLEAN","LIST","MAP","LIST_MAP","FORMULA","WEEKNUM","YEAR","MONTH","INVERSE_BOOLEAN"]},"sectionType":{"title":"Section type.","type":"string","enum":["HEAD","LINE","LINE_RETURN"]},"separator":{"title":"Separator.","type":"string","enum":["NEW_LINE","COMMA","COMMA_WITH_SPACE","SPACE","COLON","SEMI_COLON"]},"listMapSetting":{"$ref":"#/components/schemas/ListMapSetting"}}},"FieldConfigurationResponse":{"type":"object","properties":{"id":{"title":"ID.","type":"string"},"createdAt":{"title":"Created at (ISO-8601, UTC).","type":"string","format":"date-time"},"modifiedAt":{"title":"Modified at (ISO-8601, UTC).","type":"string","format":"date-time"},"createdBy":{"title":"Created by.","type":"string"},"modifiedBy":{"title":"Modified by.","type":"string"},"fields":{"title":"Fields.","type":"array","items":{"$ref":"#/components/schemas/Field"}}}},"ListMapSetting":{"title":"List of map setting.","type":"object","properties":{"keyField":{"type":"string"},"valueField":{"type":"string"}}},"ReportFieldConfigurationRequest":{"type":"object","properties":{"fields":{"title":"List of fields.","type":"array","items":{"$ref":"#/components/schemas/Field"}}}},"CountOrderResponse":{"type":"object","properties":{"count":{"type":"integer","format":"int64"}}},"CountSearchOrderRequest":{"type":"object","properties":{"visible":{"title":"Visible flag.","type":"boolean","default":true},"criteria":{"title":"List of search criteria request.","type":"array","items":{"$ref":"#/components/schemas/SearchCriteriaRequest"}}}},"SearchConditionType":{"title":"Search operation. Defaults to EQUAL if value is empty or invalid.","type":"string","enum":["CONTAINS","CONTAINS_IGNORE_CASE","STARTS_WITH","STARTS_WITH_IGNORE_CASE","ENDS_WITH","ENDS_WITH_IGNORE_CASE","EQUAL","EQUAL_IGNORE_CASE","NOT_EQUAL","IN","NOT_IN","EXIST","DOES_NOT_EXIST"]},"SearchCriteriaRequest":{"required":["key"],"type":"object","properties":{"key":{"title":"Search key.","type":"string"},"operation":{"$ref":"#/components/schemas/SearchConditionType"},"values":{"title":"Search values.","type":"array","items":{"type":"string"}}}},"ListOrderResponse":{"type":"object","properties":{"data":{"title":"List of orders.","type":"array","items":{"$ref":"#/components/schemas/OrderResponse"}}}},"OrderResponse":{"required":["id"],"type":"object","properties":{"id":{"title":"Process id.","type":"string","example":"a0f356f7-7896-5thc-v478-bef3ae20a66y"}}},"SearchOrderRequest":{"required":["page","pageSize"],"type":"object","properties":{"page":{"title":"Page number.","type":"integer","format":"int32","example":0},"pageSize":{"title":"Page size.","maximum":1000,"minimum":1,"type":"integer","format":"int32","example":100},"sortField":{"title":"Configuration field name. (Allowable fields include 'id', 'createdAt', 'modifiedAt', plus any 'sortable' fields identified in the GET: /fields endpoint.","type":"string","default":"id"},"sortDirection":{"title":"Soring order of the field.","type":"string","default":"asc","enum":["asc","desc"]},"visible":{"title":"Visible flag.","type":"boolean","default":true},"criteria":{"title":"List of search criteria request.","type":"array","items":{"$ref":"#/components/schemas/SearchCriteriaRequest"}}}},"ListOrderWithScrollResponse":{"type":"object","properties":{"data":{"title":"List of orders.","type":"array","items":{"$ref":"#/components/schemas/OrderResponse"}},"scrollId":{"type":"string"}}},"SearchOrderWithScrollRequest":{"required":["pageSize"],"type":"object","properties":{"pageSize":{"title":"Page size.","maximum":1000,"minimum":1,"type":"integer","format":"int32","example":100},"scrollId":{"title":"Scroll ID.","type":"string"},"sortField":{"title":"Configuration field name.","type":"string","default":"id"},"sortDirection":{"title":"Soring order of the field.","type":"string","default":"asc","enum":["asc","desc"]},"visible":{"title":"Visible flag.","type":"boolean","default":true},"criteria":{"title":"List of search criteria request.","type":"array","items":{"$ref":"#/components/schemas/SearchCriteriaRequest"}}}},"CancellationStepResponse":{"required":["allowManualRetry","allowManualSkip","continueOnFailure","name","processor","retryOnFailure"],"type":"object","properties":{"name":{"title":"Step name. Should be a valid, processable by a processor.","type":"string"},"processor":{"title":"Step processor. Should be a valid, available to the process service.","type":"string"},"retryOnFailure":{"$ref":"#/components/schemas/FailureRetry"},"continueOnFailure":{"title":"True if should continue on failure.","type":"boolean"},"allowManualRetry":{"title":"True if allows retry of last failed step.","type":"boolean"},"allowManualSkip":{"title":"True if allows manual skip of the current step.","type":"boolean"},"manualApproval":{"title":"True if need to be approved before continuing to the next step.","type":"boolean","example":false},"timeout":{"title":"Timeout of this step; The formats accepted are based on the ISO-8601 duration format.","type":"string","example":"PT10H"},"failureDisplayStatus":{"title":"Failure status that will display when StepAborted.","type":"string"},"exclusion":{"title":"Exclusion condition.","type":"string"}}},"FailureRetry":{"title":"Contains configuration of the retries that are used when a step failure is detected.","type":"object","properties":{"numberOfRetries":{"title":"number of retries before process is cancelled, the value MUST be dividable by 3 since each delayed retry occurs on third retry; default 0.","minimum":0,"type":"integer","format":"int32"},"delayInSeconds":{"title":"Retry messages with a positive delay value in SECOND become available for processing after the delay period is finished; default 0.","minimum":0,"type":"integer","format":"int32"},"delayInDays":{"title":"Retry messages with a positive delay value in DAY become available for processing after the delay period is finished; default 0.","minimum":0,"type":"integer","format":"int32"},"exceededMessage":{"type":"string"},"exceededMessageDisplayMode":{"type":"string","enum":["append","replace"]}}},"ProcessDefinitionResponse":{"title":"Associated definition object.","required":["archived","cancellationSteps","createdAt","createdBy","id","modifiedAt","modifiedBy","name","organizationId","steps"],"type":"object","properties":{"id":{"title":"Process definition id - used internally.","type":"string","example":"123"},"name":{"title":"Name to reference when creating new process.","type":"string"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/StepResponse"}},"cancellationSteps":{"type":"array","items":{"$ref":"#/components/schemas/CancellationStepResponse"}},"organizationId":{"title":"Infinity organization id associated with that process.","type":"string","example":"1234"},"archived":{"title":"Indicator to show if a definition had been removed.","type":"boolean","example":false},"createdAt":{"title":"Creation date (ISO-8601, UTC).","type":"string","example":"2017-11-23T10:13:30.000Z"},"createdBy":{"title":"Infinity used to create definition.","type":"string","example":"john"},"modifiedAt":{"title":"Modification date (ISO-8601, UTC).","type":"string","example":"2017-11-23T10:13:30.000Z"},"modifiedBy":{"title":"Infinity used to modify definition.","type":"string","example":"john"}}},"StepResponse":{"required":["allowManualRetry","allowManualSkip","continueOnFailure","name","processor","retryOnFailure"],"type":"object","properties":{"name":{"title":"Step name. Should be a valid, processable by a processor.","type":"string"},"processor":{"title":"Step processor. Should be a valid, available to the process service.","type":"string"},"continueOnFailure":{"title":"True if should continue on failure.","type":"boolean"},"allowManualRetry":{"title":"True if allows retry of last failed step,","type":"boolean"},"allowManualSkip":{"title":"True if allows manual skip of the current step,","type":"boolean"},"manualApproval":{"title":"True if need to be approved before continuing to the next step.","type":"boolean","example":false},"timeout":{"title":"Timeout of this step; The formats accepted are based on the ISO-8601 duration format.","type":"string","example":"PT10H"},"failureDisplayStatus":{"title":"Failure status that will display when StepAborted.","type":"string"},"retryOnFailure":{"$ref":"#/components/schemas/FailureRetry"},"exclusion":{"title":"Exclusion condition.","type":"string"},"manualCancel":{"title":"True if allows cancel order.","type":"boolean","example":false}}},"JsonError":{"type":"object","properties":{"errors":{"title":"List of error messages","type":"array","items":{"type":"string"}}}},"CancellationStepRequest":{"required":["allowManualRetry","allowManualSkip","continueOnFailure","name","processor","retryOnFailure"],"type":"object","properties":{"name":{"title":"Step name. Should be a valid, processable by a processor.","type":"string"},"processor":{"title":"Step processor. Should be a valid, available to the process service.","type":"string"},"continueOnFailure":{"title":"True if should continue on failure.","type":"boolean"},"allowManualRetry":{"title":"True if allows retry of last failed step,","type":"boolean"},"allowManualSkip":{"title":"True if allows manual skip of the current step,","type":"boolean"},"manualApproval":{"title":"True if need to be approved before continuing to the next step.","type":"boolean","example":false},"timeout":{"title":"Timeout of this step; The formats accepted are based on the ISO-8601 duration format.","type":"string","example":"PT10H"},"failureDisplayStatus":{"title":"Failure status that will display when StepAborted.","type":"string"},"retryOnFailure":{"$ref":"#/components/schemas/FailureRetry"},"exclusion":{"title":"Exclusion condition.","type":"string"}}},"ProcessDefinitionRequest":{"title":"Process definition request.","required":["cancellationSteps","name","steps"],"type":"object","properties":{"name":{"title":"Name to reference when creating new process.","type":"string"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/StepRequest"}},"cancellationSteps":{"type":"array","items":{"$ref":"#/components/schemas/CancellationStepRequest"}}}},"StepRequest":{"required":["allowManualRetry","allowManualSkip","continueOnFailure","name","processor","retryOnFailure"],"type":"object","properties":{"name":{"title":"Step name. Should be a valid, processable by a processor.","type":"string"},"processor":{"title":"Step processor. Should be a valid, available to the process service.","type":"string"},"continueOnFailure":{"title":"True if should continue on failure.","type":"boolean"},"allowManualRetry":{"title":"True if allows retry of last failed step,","type":"boolean"},"allowManualSkip":{"title":"True if allows manual skip of the current step,","type":"boolean"},"manualApproval":{"title":"True if need to be approved before continuing to the next step.","type":"boolean","example":false},"timeout":{"title":"Timeout of this step; The formats accepted are based on the ISO-8601 duration format.","type":"string","example":"PT10H"},"failureDisplayStatus":{"title":"Failure status that will display when StepAborted.","type":"string"},"retryOnFailure":{"$ref":"#/components/schemas/FailureRetry"},"exclusion":{"title":"Exclusion condition.","type":"string"},"manualCancel":{"title":"True if allows cancel order.","type":"boolean","example":false}}},"SearchProcessDefinitionResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProcessDefinitionResponse"}},"total":{"title":"Total number.","type":"integer","format":"int64"}}},"ManualApprovalRequest":{"title":"Manual approval request.","type":"object","properties":{"customerUserId":{"title":"Customer user Id.","type":"string"},"name":{"title":"Approval name.","type":"string"}}},"ListProcessEventResponse":{"type":"object","properties":{"data":{"title":"List of process events.","type":"array","items":{"$ref":"#/components/schemas/ProcessEventResponse"}},"total":{"title":"Number of total records.","type":"integer","format":"int64"}}},"ProcessEventResponse":{"type":"object","properties":{"eventId":{"title":"Event ID.","type":"string"},"eventIndex":{"title":"Event index.","type":"integer","format":"int32"},"type":{"title":"Type.","type":"string"},"step":{"title":"Step.","type":"string"},"data":{"title":"Data.","type":"object","additionalProperties":{"title":"Data.","type":"object"}},"receivedAt":{"title":"Received at (ISO-8601, UTC).","type":"string","format":"date-time"},"message":{"title":"Message.","type":"string"},"allowRetried":{"title":"Allow retried.","type":"boolean"},"manualApproval":{"title":"Manual approval.","type":"boolean"},"hasServiceLog":{"title":"Has service log.","type":"boolean"},"serviceLogService":{"title":"Service log service.","type":"string"},"createdAt":{"title":"Created at (ISO-8601, UTC).","type":"string","format":"date-time"}}},"AdditionalCheckbox":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"checked":{"type":"boolean"},"required":{"type":"boolean"}}},"AddressResponse":{"title":"Address information.","required":["country","flavor","postalCode","streetAddress1","town"],"type":"object","properties":{"state":{"title":"Reference to a state.","type":"string","example":"state"},"country":{"title":"Reference to a country.","type":"string","example":"country"},"streetAddress1":{"title":"Reference to a street address1.","type":"string","example":"street address1"},"streetAddress2":{"title":"Reference to a street address2.","type":"string","example":"street address2"},"postalCode":{"title":"Reference to a postcode.","type":"string","example":"code"},"town":{"title":"Reference to a town.","type":"string","example":"town"},"flavor":{"type":"string"}}},"Attachment":{"required":["flavor","name","url"],"type":"object","properties":{"name":{"title":"Reference to a file name.","type":"string","example":"Mona_Lisa.jpg"},"url":{"title":"Reference to a file url.","type":"string","example":"https://commons.wikimedia.org/wiki/File:Mona_Lisa.jpg"},"flavor":{"type":"string"}}},"AttestResponse":{"title":"Order attestation information used by Order attest processors.","required":["required"],"type":"object","properties":{"required":{"title":"Required.","type":"boolean"},"notifyAttestUserId":{"title":"Notify attest user id.","type":"string"},"notifyAttestUserDetail":{"$ref":"#/components/schemas/Attestant"},"notifyAttestUserDateTime":{"title":"Notify attest user date time (ISO-8601, UTC).","type":"string","format":"date-time"},"attestationUserId":{"title":"Attestation user id.","type":"string"},"attestationUserDetail":{"$ref":"#/components/schemas/Attestant"},"attestationDateTime":{"title":"Attestation date time (ISO-8601, UTC).","type":"string","format":"date-time"},"attestStatus":{"title":"Attest status.","type":"string","enum":["Initialized","Waiting","Accept","Deny"]}}},"Attestant":{"title":"Attestation user detail.","type":"object","properties":{"userName":{"title":"User name.","type":"string"},"firstName":{"title":"First name.","type":"string"},"lastName":{"title":"Last name.","type":"string"},"email":{"title":"Email.","type":"string"}}},"BankIdResponse":{"title":"BankId information.","type":"object","properties":{"required":{"type":"boolean"},"auth":{"type":"string"},"authUrl":{"type":"string"},"token":{"type":"string"},"redirectUrl":{"type":"string"},"authorizationCode":{"type":"string"},"authenticatedAt":{"type":"string","format":"date-time"},"userInformation":{"$ref":"#/components/schemas/BankIdUserInformation"},"status":{"type":"string","enum":["Initialized","Finalized","Canceled"]}}},"BankIdUserInformation":{"type":"object","properties":{"sub":{"title":"Sub.","type":"string"},"name":{"title":"Name.","type":"string"},"locale":{"title":"Locale.","type":"string"},"birthDate":{"title":"Birth date.","type":"string"},"givenName":{"title":"Given name.","type":"string"},"familyName":{"title":"Family name.","type":"string"},"certificateBank":{"title":"Certificate bank.","type":"string"},"certificateNotAfter":{"title":"Certificate not after.","type":"string"},"certificateIssuerDn":{"title":"Certificate issuer DN.","type":"string"},"certificateNotBefore":{"title":"Certificate not before.","type":"string"},"certificateDn":{"title":"Certificate DN.","type":"string"},"certificateOriginator":{"title":"Certificate originator.","type":"string"},"certificateSerialNumber":{"title":"Certificate serial number.","type":"string"},"certificatePolicies":{"title":"Certificate policies.","type":"string"},"certificateUniqueId":{"title":"Certificate unique ID.","type":"string"}}},"BillingAddress":{"type":"object","properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"coAddress":{"type":"string"},"address":{"type":"string"},"address2":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"}}},"BusinessCustomer":{"type":"object","properties":{"companyName":{"type":"string"},"organizationNumber":{"type":"string"},"invoiceReference":{"type":"string"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"mobilePhoneNumber":{"type":"string"},"invoiceAddress":{"$ref":"#/components/schemas/InvoiceAddress"},"deliveryAddress":{"$ref":"#/components/schemas/DeliveryAddress"}}},"CarrierProduct":{"type":"object","properties":{"name":{"type":"string"},"identifier":{"type":"string"}}},"CollectorBankResponse":{"title":"Collector Bank information.","type":"object","properties":{"privateId":{"type":"string"},"publicToken":{"type":"string"},"expiresAt":{"type":"string"},"customerType":{"type":"string"},"customer":{"$ref":"#/components/schemas/Customer"},"businessCustomer":{"$ref":"#/components/schemas/BusinessCustomer"},"countryCode":{"type":"string"},"status":{"type":"string"},"paymentName":{"type":"string"},"reference":{"type":"string"},"purchase":{"$ref":"#/components/schemas/Purchase"},"order":{"$ref":"#/components/schemas/Order"}}},"CommunicationStepSetting":{"title":"Communication information.","type":"object","properties":{"from":{"type":"string"},"bcc":{"type":"string"},"to":{"type":"string"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"}}}},"CompanyCredit":{"title":"Company credit information by Order Company credit processors.","required":["creditAmountUsed","creditUsed","creditUsedWithVat","policy"],"type":"object","properties":{"policy":{"$ref":"#/components/schemas/CompanyCreditPolicy"},"creditAmountUsed":{"title":"Credit amount used.","type":"object","additionalProperties":{"$ref":"#/components/schemas/CompanyCreditAmountUsed"}},"creditUsed":{"title":"Credit used.","minimum":0,"type":"number","format":"double"},"creditUsedWithVat":{"title":"Credit used with VAT.","minimum":0,"type":"number","format":"double"},"creditOrderId":{"title":"Credit order ID.","type":"string"},"status":{"title":"Status.","type":"string"}}},"CompanyCreditAmount":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"entityType":{"type":"string"},"entityIds":{"type":"array","items":{"type":"string"}},"creditLimit":{"type":"number","format":"double"},"remainingCredit":{"type":"number","format":"double"},"maxAmountPerItem":{"type":"number","format":"double"}}},"CompanyCreditAmountUsed":{"title":"Credit amount used.","type":"object","properties":{"amount":{"type":"number","format":"double"},"amountWithVat":{"type":"number","format":"double"}}},"CompanyCreditPolicy":{"title":"Company credit policy.","required":["id","name"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"creditLimit":{"type":"number","format":"double"},"remainingCredit":{"type":"number","format":"double"},"creditAmounts":{"type":"array","items":{"$ref":"#/components/schemas/CompanyCreditAmount"}},"type":{"type":"string"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"}}},"ContextRequest":{"type":"object","properties":{"contextId":{"title":"Context.","type":"string"},"locale":{"title":"Locale.","type":"string"}}},"ContextResponse":{"title":"context","type":"object","allOf":[{"$ref":"#/components/schemas/ContextRequest"}]},"CreditAmount":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"entityType":{"type":"string"},"entityIds":{"type":"array","items":{"type":"string"}},"creditLimit":{"type":"number","format":"double"},"remainingCredit":{"type":"number","format":"double"},"environmentalBonus":{"type":"number","format":"double"},"remainingEnvironmentalBonus":{"type":"number","format":"double"}}},"CreditAmountUsed":{"title":"Credit amount used.","type":"object","properties":{"amount":{"type":"number","format":"double"},"amountWithVat":{"type":"number","format":"double"},"environmentalBonus":{"type":"number","format":"double"},"environmentalBonusWithVat":{"type":"number","format":"double"}}},"CreditPolicy":{"title":"Credit Policy.","required":["durationInMonths","id","name","startDate"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"creditLimit":{"type":"number","format":"double"},"remainingCredit":{"type":"number","format":"double"},"environmentalBonusLimit":{"type":"number","format":"double"},"remainingEnvironmentalBonus":{"type":"number","format":"double"},"creditAmounts":{"type":"array","items":{"$ref":"#/components/schemas/CreditAmount"}},"startDate":{"type":"string","format":"date-time"},"durationInMonths":{"type":"integer","format":"int32"},"type":{"type":"string"}}},"Customer":{"type":"object","properties":{"email":{"type":"string"},"mobilePhoneNumber":{"type":"string"},"deliveryAddress":{"$ref":"#/components/schemas/DeliveryAddress"},"billingAddress":{"$ref":"#/components/schemas/BillingAddress"},"deliveryContactInformation":{"$ref":"#/components/schemas/DeliveryContactInformation"}}},"CustomerResponse":{"title":"Customer/buyer information used by various processor.","required":["clientIPAddress","customerEmailAddress","customerName","customerNumber","customerTelephoneNumber","emailAddress","externalReference","firstName","flavor","groupName","groupReference","lastName","name","organizationNumber","reference","sessionReference","telephoneNumber","userAgent","userReference"],"type":"object","properties":{"name":{"title":"Reference to a customer name.","type":"string","example":"John Doe"},"reference":{"title":"Reference to a customer identifier.","type":"string","example":"975959252"},"organizationNumber":{"title":"Number of the organization associated with a customer; usually should refer to customer profile number.","type":"string","example":"1234"},"firstName":{"title":"Reference to a customer first name.","type":"string","example":"John"},"middleName":{"title":"Reference to a customer middle name.","type":"string","example":"Smith"},"lastName":{"title":"Reference to a customer last name.","type":"string","example":"Doe"},"customerName":{"title":"Reference to a customer profile name.","type":"string","example":"Profile"},"emailAddress":{"title":"KlarnaCustomer contact email address.","type":"string","example":"john.doe@example.com"},"telephoneNumber":{"title":"KlarnaCustomer contact phone address.","type":"string","example":"123"},"clientIPAddress":{"title":"IP address used by the customer used to place a process.","type":"string","example":"1.2.3.4"},"userReference":{"title":"User reference id.","type":"string","example":"1234"},"groupReference":{"title":"Customer group reference id.","type":"string","example":"1234"},"externalReference":{"title":"Customer external reference id.","type":"string","example":"1234"},"sessionReference":{"title":"Session reference.","type":"string","example":"1234"},"customerEmailAddress":{"title":"Customer email address.","type":"string","example":"customergroupname@bluestonepim.com"},"customerTelephoneNumber":{"title":"Customer telephone number.","type":"string","example":"40123456"},"customerType":{"title":"Customer type.","type":"string","example":"B2C","enum":["B2C","B2B"]},"groupName":{"title":"Group name.","type":"string","example":"Default"},"username":{"title":"Username.","type":"string"},"userAgent":{"title":"User agent of the browser which the customer used to place a process.","type":"string","example":"IE"},"customerNumber":{"title":"Reference to a customer profile number.","type":"string","example":"117677784"},"flavor":{"type":"string"}}},"CustomerResponsible":{"title":"Customer responsible.","type":"object","properties":{"userId":{"title":"User id.","type":"string"},"userFirstName":{"title":"User first name.","type":"string"},"userLastName":{"title":"User last name.","type":"string"},"userEmail":{"title":"User email.","type":"string"},"customerProfileId":{"title":"Customer profile id.","type":"string"},"customerProfileName":{"title":"Customer profile name.","type":"string"},"customerGroupId":{"title":"Customer group id.","type":"string"},"customerGroupName":{"title":"Customer group name.","type":"string"}}},"DataResponse":{"title":"Data.","required":["billingAddress","customer","deliveryAddress","lineItems","payment","process","purchase"],"type":"object","properties":{"payment":{"$ref":"#/components/schemas/PaymentResponse"},"customer":{"$ref":"#/components/schemas/CustomerResponse"},"purchase":{"$ref":"#/components/schemas/PurchaseResponse"},"process":{"$ref":"#/components/schemas/Information"},"lineItems":{"title":"List of process line items.","type":"array","items":{"$ref":"#/components/schemas/LineItemResponse"}},"voucher":{"title":"List of voucher information.","type":"array","items":{"$ref":"#/components/schemas/Voucher"}},"billingAddress":{"$ref":"#/components/schemas/AddressResponse"},"deliveryAddress":{"$ref":"#/components/schemas/AddressResponse"},"shipment":{"$ref":"#/components/schemas/ShipmentResponse"},"deliveries":{"title":"List of deliveries.","type":"array","items":{"$ref":"#/components/schemas/Delivery"}},"relatedEntities":{"title":"List of related entities.","type":"array","items":{"type":"object","additionalProperties":{"type":"object"}}},"attest":{"$ref":"#/components/schemas/AttestResponse"},"employeeCredit":{"$ref":"#/components/schemas/EmployeeCredit"},"companyCredit":{"$ref":"#/components/schemas/CompanyCredit"},"communication":{"title":"Communication information.","type":"object","additionalProperties":{"$ref":"#/components/schemas/CommunicationStepSetting"}},"collectorBank":{"$ref":"#/components/schemas/CollectorBankResponse"},"klarna":{"$ref":"#/components/schemas/KlarnaOrderResponse"},"payPal":{"$ref":"#/components/schemas/PayPalOrderResponse"},"svea":{"$ref":"#/components/schemas/SveaOrderResponse"},"dintero":{"$ref":"#/components/schemas/DinteroOrderResponse"},"bankId":{"$ref":"#/components/schemas/BankIdResponse"},"orderMoneySources":{"title":"List of order money sources.","type":"array","items":{"$ref":"#/components/schemas/OrderMoneySourceResponse"}},"inventory":{"$ref":"#/components/schemas/Inventory"},"salesRepresentative":{"$ref":"#/components/schemas/SalesRepresentative"},"customerResponsible":{"$ref":"#/components/schemas/CustomerResponsible"},"mailchimp":{"$ref":"#/components/schemas/MailchimpResponse"},"context":{"$ref":"#/components/schemas/ContextResponse"},"retry":{"title":"Number of retry.","type":"integer","format":"int32"},"errors":{"title":"List of process data errors.","type":"array","items":{"$ref":"#/components/schemas/ProcessDataError"}},"externalOrderTracking":{"$ref":"#/components/schemas/ExternalOrderTracking"},"shopify":{"$ref":"#/components/schemas/Shopify"},"getnShift":{"$ref":"#/components/schemas/NShift"},"tradeIn":{"$ref":"#/components/schemas/TradeIn"},"scrive":{"$ref":"#/components/schemas/Scrive"},"loyaltyPoints":{"$ref":"#/components/schemas/LoyaltyPoints"},"sparkle":{"$ref":"#/components/schemas/Sparkle"},"erates":{"title":"Erate.","type":"array","items":{"$ref":"#/components/schemas/Erate"}},"additionalData":{"title":"Additional data.","type":"object","additionalProperties":{"title":"Additional data.","type":"object"}}}},"Delivery":{"required":["reference"],"type":"object","properties":{"reference":{"title":"Reference to a deliveries no.","type":"string","example":"82858372"},"deliveredAt":{"title":"Delivered date time (ISO-8601, UTC).","type":"string","format":"date-time","example":"2024-10-01T12:52:00Z"},"packageNumbers":{"title":"Package no.","type":"array","example":["40170726203564981776","40170726203564981777"],"items":{"type":"string"}}}},"DeliveryAddress":{"type":"object","properties":{"companyName":{"type":"string"},"coAddress":{"type":"string"},"address":{"type":"string"},"address2":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"}}},"DeliveryContactInformation":{"type":"object","properties":{"email":{"type":"string"},"mobilePhoneNumber":{"type":"string"}}},"DeliveryDetail":{"type":"object","properties":{"carrier":{"type":"string"},"shippingClass":{"type":"string"},"carrierProduct":{"$ref":"#/components/schemas/CarrierProduct"},"pickUpLocation":{"$ref":"#/components/schemas/PickUpLocation"},"timeSlot":{"$ref":"#/components/schemas/TimeSlot"}}},"DinteroAddress":{"title":"Dintero address information.","type":"object","properties":{"email":{"title":"Email.","type":"string"},"country":{"title":"Country.","type":"string"},"lastName":{"title":"Last name.","type":"string"},"firstName":{"title":"First name.","type":"string"},"postalCode":{"title":"Postal code.","type":"string"},"addressLine":{"title":"Address line.","type":"string"},"addressLine2":{"title":"Address line 2.","type":"string"},"coAddress":{"title":"Co address.","type":"string"},"businessName":{"title":"Business name.","type":"string"},"organizationNumber":{"title":"Organization number.","type":"string"},"organizationType":{"title":"Organization type.","type":"string"},"customerReference":{"title":"Customer reference.","type":"string"},"phoneNumber":{"title":"Phone number.","type":"string"},"postalPlace":{"title":"Postal place.","type":"string"}}},"DinteroOrderResponse":{"title":"Dintero order information.","type":"object","properties":{"id":{"title":"Id.","type":"string"},"sessionId":{"title":"Session Id.","type":"string"},"accountId":{"title":"Account Id.","type":"string"},"version":{"title":"Version.","type":"integer","format":"int32"},"channel":{"title":"Channel.","type":"string"},"paymentProduct":{"title":"Payment product.","type":"string"},"amount":{"title":"Amount.","type":"integer","format":"int64"},"currency":{"title":"Currency.","type":"string"},"merchantReference":{"title":"Merchant reference.","type":"string"},"customerIp":{"title":"Customer IP.","type":"string"},"userAgent":{"title":"User agent.","type":"string"},"paymentProductType":{"title":"Payment product type.","type":"string"},"shippingAddress":{"$ref":"#/components/schemas/DinteroAddress"},"billingAddress":{"$ref":"#/components/schemas/DinteroAddress"},"status":{"title":"Status.","type":"string"},"createdAt":{"title":"Created at.","type":"string"},"updatedAt":{"title":"Updated at.","type":"string"}}},"Discount":{"title":"Discount.","required":["type","valueOff"],"type":"object","properties":{"type":{"title":"Type of discount.","type":"string"},"valueOff":{"title":"Value that will be taken off.","minimum":1,"type":"number"},"minimumOrderAmount":{"title":"Minimum amount of order that can use voucher.","minimum":0,"type":"number"},"maxAmountOff":{"title":"Maximum amount can be discounted.","minimum":0,"type":"number"},"applyAfterTax":{"title":"Discount price included tax.","type":"boolean"}}},"Distribution":{"type":"object","properties":{"sessionId":{"type":"string"},"distributedAt":{"type":"string","format":"date-time"},"method":{"type":"string"},"to":{"type":"string"}}},"EmployeeCredit":{"title":"Employee credit information by Order Employee credit processors.","required":["creditAmountUsed","creditUsed","creditUsedWithVat","policy"],"type":"object","properties":{"policy":{"$ref":"#/components/schemas/CreditPolicy"},"creditAmountUsed":{"title":"Credit amount used.","type":"object","additionalProperties":{"$ref":"#/components/schemas/CreditAmountUsed"}},"creditUsed":{"title":"Credit used.","minimum":1,"type":"number","format":"double"},"creditUsedWithVat":{"title":"Credit used with VAT.","minimum":1,"type":"number","format":"double"},"creditOrderId":{"title":"Credit order ID.","type":"string"},"creditPeriodId":{"title":"Credit period ID.","type":"string"},"status":{"title":"Status.","type":"string"},"invoicePaymentTypeCode":{"title":"Invoice payment type code.","type":"string"},"environmentalBonusUsed":{"title":"Used environmental bonus.","type":"number","format":"double"},"environmentalBonusUsedWithVat":{"title":"Used environmental bonus with vat.","type":"number","format":"double"}}},"Erate":{"title":"Erate.","type":"object","properties":{"customerAccountId":{"title":"Erate customer account id.","type":"string"},"userId":{"title":"Erate user id.","type":"string"},"signupNumber":{"$ref":"#/components/schemas/ErateSignupNumber"}}},"ErateSignupNumber":{"title":"Erate sign up number detail.","type":"object","properties":{"id":{"title":"Erate sign up number id.","type":"string"},"ratePlanId":{"title":"Erate rate plan id.","type":"string"},"statusId":{"title":"Erate status id.","type":"string"},"phoneNumber":{"title":"Erate sign up phone number.","type":"string"},"ownerId":{"title":"Erate owner id.","type":"string"},"startDate":{"title":"Erate sign up date.","type":"string"},"productId":{"title":"Erate sign up product id.","type":"string"},"serviceId":{"title":"Erate sign up service id.","type":"string"}}},"ExternalOrderTracking":{"title":"External order tracking.","type":"object","properties":{"type":{"title":"Type.","type":"string"},"reference":{"title":"Reference.","type":"string"}}},"Information":{"title":"Process information used by various processors; the object is immutable.","required":["externalRef","number","organizationId","processId"],"type":"object","properties":{"processId":{"title":"Process id.","type":"string","example":"123"},"organizationId":{"title":"Infinity organization ID associated with that process.","type":"string","example":"1234"},"number":{"title":"Auto-generated process number unique per organization.","type":"string","example":"1"},"externalRef":{"title":"External process reference.","type":"string","example":"ref/1234"},"modifiedDate":{"title":"Modify date update when add new event.","type":"string"},"createdDate":{"title":"Create date update when initial process.","type":"string"}}},"Inventory":{"title":"Inventory.","type":"object","properties":{"deducted":{"title":"Deducted.","type":"boolean","example":false}}},"InvoiceAddress":{"type":"object","properties":{"companyName":{"type":"string"},"coAddress":{"type":"string"},"address":{"type":"string"},"address2":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"}}},"Items":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"string"},"unitPrice":{"type":"number","format":"double"},"quantity":{"type":"integer","format":"int32"},"vat":{"type":"number","format":"double"}}},"KlarnaAddress":{"type":"object","properties":{"organizationName":{"type":"string"},"reference":{"type":"string"},"attention":{"type":"string"},"givenName":{"type":"string"},"familyName":{"type":"string"},"title":{"type":"string"},"streetAddress":{"type":"string"},"streetAddress2":{"type":"string"},"streetName":{"type":"string"},"streetNumber":{"type":"string"},"houseExtension":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"country":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"careOf":{"type":"string"}}},"KlarnaAttachment":{"type":"object","properties":{"contentType":{"type":"string"},"body":{"type":"string"}}},"KlarnaCustomer":{"type":"object","properties":{"dateOfBirth":{"type":"string"},"type":{"type":"string"},"gender":{"type":"string"},"organizationRegistrationId":{"type":"string"},"nationalIdentificationNumber":{"type":"string"}}},"KlarnaGUI":{"type":"object","properties":{"options":{"type":"array","items":{"type":"string"}}}},"KlarnaMerchantRequest":{"type":"object","properties":{"additionalCheckbox":{"type":"boolean"},"additionalCheckboxes":{"type":"array","items":{"$ref":"#/components/schemas/AdditionalCheckbox"}}}},"KlarnaMerchantUrls":{"type":"object","properties":{"terms":{"type":"string"},"cancellationTerms":{"type":"string"},"checkout":{"type":"string"},"confirmation":{"type":"string"},"push":{"type":"string"},"validation":{"type":"string"},"shippingOptionUpdate":{"type":"string"},"addressUpdate":{"type":"string"},"notification":{"type":"string"},"countryChange":{"type":"string"}}},"KlarnaOptions":{"type":"object","properties":{"acquiringChannel":{"type":"string"},"allowSeparateShippingAddress":{"type":"boolean"},"colorButton":{"type":"string"},"colorButtonText":{"type":"string"},"colorCheckbox":{"type":"string"},"colorCheckboxCheckMark":{"type":"string"},"colorHeader":{"type":"string"},"colorLink":{"type":"string"},"dateOfBirthMandatory":{"type":"boolean"},"shippingDetails":{"type":"string"},"titleMandatory":{"type":"boolean"},"additionalCheckbox":{"$ref":"#/components/schemas/AdditionalCheckbox"},"nationalIdentificationNumberMandatory":{"type":"boolean"},"additionalMerchantTerms":{"type":"string"},"phoneMandatory":{"type":"boolean"},"radiusBorder":{"type":"string"},"allowedCustomerTypes":{"type":"array","items":{"type":"string"}},"showSubtotalDetail":{"type":"boolean"},"additionalCheckboxes":{"type":"array","items":{"$ref":"#/components/schemas/AdditionalCheckbox"}},"requireValidateCallbackSuccess":{"type":"boolean"},"vatRemoved":{"type":"string"},"verifyNationalIdentificationNumber":{"type":"boolean"},"showVatRegistrationNumberField":{"type":"boolean"}}},"KlarnaOrderResponse":{"title":"Klarna order information.","type":"object","properties":{"orderId":{"type":"string"},"name":{"type":"string"},"purchaseCountry":{"type":"string"},"purchaseCurrency":{"type":"string"},"locale":{"type":"string"},"status":{"type":"string"},"billingAddress":{"$ref":"#/components/schemas/KlarnaAddress"},"shippingAddress":{"$ref":"#/components/schemas/KlarnaAddress"},"orderAmount":{"type":"integer","format":"int32"},"orderTaxAmount":{"type":"integer","format":"int32"},"orderLines":{"type":"array","items":{"$ref":"#/components/schemas/OrderLine"}},"customer":{"$ref":"#/components/schemas/KlarnaCustomer"},"merchantUrls":{"$ref":"#/components/schemas/KlarnaMerchantUrls"},"merchantReference1":{"type":"string"},"merchantReference2":{"type":"string"},"startedAt":{"type":"string"},"completedAt":{"type":"string"},"lastModifiedAt":{"type":"string"},"options":{"$ref":"#/components/schemas/KlarnaOptions"},"attachment":{"$ref":"#/components/schemas/KlarnaAttachment"},"externalPaymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/KlarnaPaymentMethod"}},"externalCheckouts":{"type":"array","items":{"$ref":"#/components/schemas/KlarnaPaymentMethod"}},"shippingCountries":{"type":"array","items":{"type":"string"}},"shippingOptions":{"type":"array","items":{"$ref":"#/components/schemas/ShippingOption"}},"merchantData":{"type":"string"},"gui":{"$ref":"#/components/schemas/KlarnaGUI"},"merchantRequested":{"$ref":"#/components/schemas/KlarnaMerchantRequest"},"selectedShippingOption":{"$ref":"#/components/schemas/ShippingOption"},"recurring":{"type":"boolean"},"recurringToken":{"type":"string"},"recurringDescription":{"type":"string"},"billingCountries":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"distributions":{"type":"array","items":{"$ref":"#/components/schemas/Distribution"}}}},"KlarnaPaymentMethod":{"type":"object","properties":{"name":{"type":"string"},"redirectUrl":{"type":"string"},"imageUrl":{"type":"string"},"fee":{"type":"integer","format":"int32"},"description":{"type":"string"},"countries":{"type":"array","items":{"type":"string"}},"label":{"type":"string"}}},"LineItemResponse":{"required":["description","flavor","id","name","number","price","productId","productNumber","quantity"],"type":"object","properties":{"name":{"title":"Name.","type":"string","example":"Samsung Galaxy S12 gold"},"id":{"title":"Line no, automatically assigned with unique ObjectId value.","type":"string","example":"66d529792a72633b53fe04a7"},"type":{"title":"Reference type of line item.","type":"string"},"number":{"title":"Line number, automatically assigned based on pace in a list when not set.","type":"string","example":"1"},"description":{"title":"Description.","type":"string","example":"Next generation smartphone"},"quantity":{"title":"Quantity.","minimum":0,"type":"integer","format":"int64","example":2},"url":{"title":"For product sef URL.","type":"string"},"canceled":{"title":"Canceled.","type":"boolean"},"canceledReason":{"title":"Canceled reason.","type":"string"},"additionalAttributes":{"title":"Additional attributes.","type":"object","additionalProperties":{"title":"Additional attributes.","type":"object"}},"nested":{"title":"Nested line items.","type":"array","items":{"$ref":"#/components/schemas/LineItemResponse"}},"preconfig":{"title":"Pre-config.","type":"array","items":{"$ref":"#/components/schemas/PreconfigResponse"}},"productId":{"title":"Product id.","pattern":"^infinity-pim/.*","type":"string","example":"infinity-pim/27asd-gt3ec-s2se2d-12esq8"},"productNumber":{"title":"Product number.","type":"string","example":"AS23442DF2"},"price":{"title":"Price.","minimum":0,"type":"number","format":"double","example":99.99},"basePrice":{"title":"Base price.","minimum":0,"type":"number","format":"double","example":199.98},"priceWithoutQuantity":{"title":"Price without quantity.","minimum":0,"type":"number","format":"double","example":199.98},"originalPrice":{"title":"Original price.","minimum":0,"type":"number","format":"double","example":199.98},"originalPriceWithoutQuantity":{"title":"Original price without quantity.","minimum":0,"type":"number","format":"double","example":199.98},"priceWithVat":{"title":"Price with VAT.","minimum":0,"type":"number","format":"double","example":199.98},"priceWithoutQuantityWithVat":{"title":"Price without quantity with VAT.","minimum":0,"type":"number","format":"double","example":199.98},"originalPriceWithVat":{"title":"Original price with VAT.","minimum":0,"type":"number","format":"double","example":199.98},"originalPriceWithoutQuantityWithVat":{"title":"Original price without quantity with VAT.","minimum":0,"type":"number","format":"double","example":199.98},"campaign":{"title":"Campaign.","type":"string","example":"Campaign name"},"campaignId":{"title":"Campaign id.","type":"string","example":"Campaign ID"},"relatedEntities":{"title":"Related entities associated with a line item.","type":"array","items":{"title":"Related entities associated with a line item.","type":"object","additionalProperties":{"title":"Related entities associated with a line item.","type":"object"}}},"relatedLineIds":{"title":"ID reference to line item.","type":"array","items":{"title":"ID reference to line item.","type":"string"}},"taxLines":{"title":"Tax lines.","type":"array","items":{"$ref":"#/components/schemas/TaxLineResponse"}},"lineTotal":{"title":"Line total.","minimum":0,"type":"number","format":"double","example":199.98},"lineTotalWithVat":{"title":"Line total with VAT.","minimum":0,"type":"number","format":"double","example":199.98},"preconfigType":{"title":"Reference type of preconfig item.","type":"string"},"categoryPaths":{"title":"For set product category paths.","type":"array","items":{"title":"For set product category paths.","type":"string"}},"flavor":{"type":"string"}}},"LoyaltyPoints":{"title":"Loyalty points.","type":"object","properties":{"pointsUsed":{"title":"Points used.","type":"number"},"usedPointsValue":{"title":"Amount of money converted from point (if 1 point = 1.5 NOK and use 4 points, usedPointsValue = 6).","type":"number"},"orderTotal":{"title":"Order total calculated with all discounts except loyalty points.","type":"number"},"status":{"title":"Status of loyalty points transaction.","type":"string"},"pointsToEarn":{"title":"Points to earn for this order.","type":"number"},"pointsDeductionTransactionId":{"title":"Transaction ID for points deduction.","type":"string"},"pointsAdditionTransactionId":{"title":"Transaction ID for points addition.","type":"string"}}},"MailchimpResponse":{"title":"Mailchimp.","type":"object","properties":{"listId":{"title":"List id.","type":"string"},"memberTags":{"title":"Member tags.","type":"array","items":{"type":"string"}},"memberId":{"type":"string"},"registeredAt":{"type":"string","format":"date-time"}}},"NShift":{"title":"nShift.","type":"object","properties":{"currency":{"title":"Currency.","type":"string"},"language":{"title":"Language.","type":"string"},"tocountry":{"title":"To country.","type":"string"},"tozipcode":{"title":"To zipcode.","type":"string"},"widgetResult":{"$ref":"#/components/schemas/NShiftWidgetResult"},"shipment":{"$ref":"#/components/schemas/NShiftShipment"},"errorCode":{"title":"Error code.","type":"string"}}},"NShiftAddon":{"type":"object","properties":{"id":{"title":"Addon id.","type":"string"},"fields":{"title":"Addon fields.","type":"array","items":{"$ref":"#/components/schemas/NShiftField"}}}},"NShiftField":{"type":"object","properties":{"id":{"title":"Field id.","type":"string"},"description":{"title":"Field description.","type":"string"},"type":{"title":"Field type.","type":"string"},"value":{"title":"Field value.","type":"string"}}},"NShiftShipment":{"title":"NShift shipment.","type":"object","properties":{"sourceSystem":{"title":"Source system.","type":"string"},"serviceId":{"title":"Service ID.","type":"string"},"serviceCaption":{"title":"Service caption.","type":"string"},"optionTitle":{"title":"Option title.","type":"string"},"orderNo":{"title":"Order number.","type":"string"}}},"NShiftWidgetResult":{"title":"NShift widget result.","type":"object","properties":{"agent":{"title":"Agent.","type":"string"},"price":{"title":"Price.","type":"number","format":"double"},"taxRate":{"title":"Tax rate.","type":"number","format":"double"},"deliveryCheckoutId":{"title":"Delivery checkout id.","type":"string"},"selectedOptionId":{"title":"Selected option id.","type":"string"},"optionIds":{"title":"Option ids.","type":"array","items":{"type":"string"}},"valid":{"title":"Valid.","type":"boolean"},"fields":{"title":"NShift fields.","type":"array","items":{"$ref":"#/components/schemas/NShiftField"}},"selectedAddons":{"title":"Selected addons.","type":"array","items":{"$ref":"#/components/schemas/NShiftAddon"}}}},"Order":{"type":"object","properties":{"totalAmount":{"type":"integer","format":"int32"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Items"}}}},"OrderLine":{"type":"object","properties":{"reference":{"type":"string"},"type":{"type":"string"},"quantity":{"type":"integer","format":"int32"},"quantityUnit":{"type":"string"},"name":{"type":"string"},"totalAmount":{"type":"integer","format":"int32"},"unitPrice":{"type":"integer","format":"int32"},"totalDiscountAmount":{"type":"integer","format":"int32"},"taxRate":{"type":"integer","format":"int32"},"totalTaxAmount":{"type":"integer","format":"int32"},"merchantData":{"type":"string"},"productUrl":{"type":"string"},"imageUrl":{"type":"string"},"productIdentifiers":{"$ref":"#/components/schemas/ProductIdentifiers"}}},"OrderMoneySourceResponse":{"required":["flavor"],"type":"object","properties":{"source":{"title":"Payment source.","type":"string","example":"PAYEX"},"totalWithVat":{"title":"Total paid by the payment source with tax.","type":"number","format":"double","example":325},"total":{"title":"Total paid by the payment source.","type":"number","format":"double","example":250},"flavor":{"type":"string"}}},"PayPalAddress":{"type":"object","properties":{"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"adminArea1":{"type":"string"},"adminArea2":{"type":"string"},"postalCode":{"type":"string"},"countryCode":{"type":"string"}}},"PayPalAmount":{"type":"object","properties":{"currencyCode":{"type":"string"},"value":{"type":"number","format":"double"},"breakdown":{"$ref":"#/components/schemas/PayPalBreakdown"}}},"PayPalAuthorization":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"amount":{"$ref":"#/components/schemas/PayPalItemAmount"},"expirationTime":{"type":"string","format":"date-time"},"createTime":{"type":"string","format":"date-time"},"updateTime":{"type":"string","format":"date-time"}}},"PayPalBreakdown":{"type":"object","properties":{"lineTotal":{"$ref":"#/components/schemas/PayPalItemAmount"},"discount":{"$ref":"#/components/schemas/PayPalItemAmount"}}},"PayPalCapture":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"amount":{"$ref":"#/components/schemas/PayPalItemAmount"},"expirationTime":{"type":"string","format":"date-time"},"createTime":{"type":"string","format":"date-time"},"updateTime":{"type":"string","format":"date-time"}}},"PayPalItem":{"type":"object","properties":{"sku":{"type":"string"},"name":{"type":"string"},"unitAmount":{"$ref":"#/components/schemas/PayPalItemAmount"},"quantity":{"type":"integer","format":"int64"}}},"PayPalItemAmount":{"type":"object","properties":{"currencyCode":{"type":"string"},"value":{"type":"number","format":"double"}}},"PayPalLink":{"type":"object","properties":{"href":{"type":"string"},"ref":{"type":"string"},"method":{"type":"string"}}},"PayPalName":{"type":"object","properties":{"givenName":{"type":"string"},"surname":{"type":"string"},"fullName":{"type":"string"}}},"PayPalOrderResponse":{"title":"PayPal order information.","type":"object","properties":{"id":{"type":"string"},"intent":{"type":"string"},"status":{"type":"string"},"purchaseUnits":{"type":"array","items":{"$ref":"#/components/schemas/PayPalPurchaseUnit"}},"payer":{"$ref":"#/components/schemas/PayPalPayer"},"links":{"type":"array","items":{"$ref":"#/components/schemas/PayPalLink"}},"createTime":{"type":"string","format":"date-time"},"updateTime":{"type":"string","format":"date-time"}}},"PayPalPayer":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/PayPalName"},"emailAddress":{"type":"string"},"payerId":{"type":"string"},"address":{"$ref":"#/components/schemas/PayPalAddress"}}},"PayPalPayments":{"type":"object","properties":{"authorizations":{"type":"array","items":{"$ref":"#/components/schemas/PayPalAuthorization"}},"captures":{"type":"array","items":{"$ref":"#/components/schemas/PayPalCapture"}},"refunds":{"type":"array","items":{"$ref":"#/components/schemas/PayPalRefund"}}}},"PayPalPurchaseUnit":{"type":"object","properties":{"referenceId":{"type":"string"},"amount":{"$ref":"#/components/schemas/PayPalAmount"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PayPalItem"}},"payments":{"$ref":"#/components/schemas/PayPalPayments"},"shipping":{"$ref":"#/components/schemas/PayPalShipping"}}},"PayPalRefund":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"amount":{"$ref":"#/components/schemas/PayPalItemAmount"}}},"PayPalShipping":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/PayPalName"},"address":{"$ref":"#/components/schemas/PayPalAddress"}}},"PaymentResponse":{"title":"Payment information used by payment processors.","required":["cancelUrl","completeUrl","description","flavor","purchasedAt"],"type":"object","properties":{"authorizationId":{"title":"Authorization id in external system.","type":"string","example":"123"},"captureId":{"title":"Capture id in external system.","type":"string","example":"123"},"hostedView":{"title":"URL or token for generating the hosted view.","type":"string","example":"https://payment-gateway.com/client.js?token=cfb9e24832d56f"},"externalTransactionRef":{"title":"Reference to successful transaction in external system.","type":"string","example":"4321"},"internalStatus":{"title":"A payment internal status.","type":"string","enum":["Initialized","Failed","Finalized","Captured","Canceled"]},"externalPaymentRefId":{"title":"Payment reference id in external system.","type":"string","example":"/psp/creditcard/payments/5adc265f-f87f-4313-577e-08d3dca1a26c"},"externalPaymentRef":{"title":"Reference to payment in external system.","type":"string","example":"123"},"registeredAt":{"title":"Time when a transaction was registered in an external system.","type":"string","format":"date-time","example":"2017-11-23T10:13:30Z"},"completedAt":{"title":"Time when transaction was completed.","type":"string","format":"date-time","example":"2017-11-23T10:13:30Z"},"redirectUrl":{"title":"URL for redirection for frontend.","type":"string","example":"https://payment-gateway/payment-for-123"},"expiresAt":{"title":"Time when transaction is expired.","type":"string","format":"date-time","example":"2017-11-23T10:13:30Z"},"language":{"title":"Language from PayEx setting.","type":"string"},"provider":{"title":"Payment provider.","type":"string","example":"PayEx | CollectorBank-B2B | CollectorBank-B2C"},"paymentName":{"title":"Name of payment","type":"string","example":"PayEx | CollectorBank B2B | CollectorBank B2C"},"consumerProfileRef":{"title":"Reference to consumer profile of PayEx Checkout.","type":"string","example":"4321"},"hostUrls":{"title":"URLs for embedding of PayEx checkout hosted views.","type":"array","items":{"title":"URLs for embedding of PayEx checkout hosted views.","type":"string"}},"cancelUrl":{"title":"An e-commerce site URL used for payment processor to redirect to when a payment is unsuccessful.","type":"string","example":"https://ecommece/cancel-payment"},"completeUrl":{"title":"An e-commerce site URL used for payment processor to redirect to when a payment is successful.","type":"string","example":"https://ecommece/complete-payment"},"checkoutUrl":{"title":"Checkout URL.","type":"string","example":"https://ecommece/checkout-payment"},"paymentUrl":{"title":"An e-commerce site URL used for payment processor to redirect back for some payment providers.","type":"string","example":"https://ecommece/redirect-payment"},"termsOfServiceUrl":{"title":"Term of service URL.","type":"string","example":"https://example.com/termsandconditoons.pdf"},"purchasedAt":{"title":"Purchase time.","type":"string","example":"2017-11-23T10:13:30Z"},"storeId":{"title":"A store id of Collector Bank.","type":"string","example":"1301"},"countryCode":{"title":"The two-letter code for the country where the payment will be processed.","type":"string","example":"NO","enum":["NO","SE","FI","DK","DE"]},"orderTotal":{"title":"Order total to be paid by MAIN payment.","type":"number","format":"double"},"orderTotalWithVat":{"title":"Order total to be paid by MAIN payment with tax.","type":"number","format":"double"},"orderTotalVatAmount":{"title":"Order total tax.","type":"number","format":"double"},"overrideBrandName":{"title":"Language from PayEx setting.","type":"string"},"enableCheckIn":{"title":"Enable Check In for PayEx Checkout.","type":"boolean"},"enableFlowSelection":{"title":"Enable flow selection.","type":"boolean"},"flow":{"title":"Payment flow.","type":"string"},"useKlarnaHostedPaymentPage":{"title":"Use Klarna Hosted Payment Page.","type":"boolean"},"subsite":{"title":"PayEx subsite.","type":"string"},"providerName":{"title":"Name of payment provider.","type":"string","example":"PayEx | CollectorBank B2B | CollectorBank B2C"},"description":{"title":"Quick description of the process to the payment.","type":"string","example":"Sample process"},"sessionId":{"title":"Session id.","type":"string"},"mode":{"title":"Mode of payment.","type":"string","enum":["AutoCapture","Authorization"]},"errorCode":{"title":"Payment error code.","type":"string"},"autoCapture":{"title":"Payment auto capture.","type":"string","enum":["MANUAL","ON_ACCEPTED","ON_COMPLETED"]},"pending":{"title":"Payment status.","type":"boolean"},"errorMsg":{"title":"Payment error message.","type":"string"},"flavor":{"type":"string"}}},"PickUpLocation":{"type":"object","properties":{"id":{"type":"string"},"locationName":{"type":"string"},"locationAddress":{"$ref":"#/components/schemas/KlarnaAddress"}}},"PreconfigResponse":{"title":"Pre-config.","type":"object","properties":{"ruleId":{"type":"string"},"mandatory":{"type":"boolean"},"items":{"type":"array","items":{"$ref":"#/components/schemas/LineItemResponse"}}}},"ProcessDataError":{"type":"object","properties":{"id":{"title":"Id.","type":"string"},"title":{"title":"Title.","type":"string"},"reference":{"title":"Reference.","type":"string"}}},"ProcessResponse":{"required":["attempt","createdAt","createdBy","displayStatus","id","modifiedAt","modifiedBy","number","organizationId","rawStatus","status"],"type":"object","properties":{"id":{"title":"Process id.","type":"string","example":"a0f356f7-7896-5thc-v478-bef3ae20a66y"},"organizationId":{"title":"Organization Id.","type":"string","description":"Infinity organization id associated with that process.","example":"1234"},"number":{"title":"Process number.","type":"string","description":"auto-generated process number unique per Infinity organization.","example":"1"},"status":{"title":"Status.","type":"string","example":"Temporary, Not visible, Waiting for attest, Attest denied, In progress, Completed, Canceled"},"displayStatus":{"title":"Display status. (Same value with status)","type":"string","example":"Temporary, Not visible, Waiting for attest, Attest denied, In progress, Completed, Canceled"},"attempt":{"title":"Number of attempted.","type":"integer","format":"int32"},"rawStatus":{"title":"rawStatus","type":"string","example":"Temporary, Created, Validated, Initiated, Processed: <step name>, Cancellation step processed: <step name>, Cancelled, Finished, Failed"},"externalRef":{"title":"External process reference.","type":"string","example":"ref/1234"},"originalProcessReference":{"title":"Original process reference.","type":"string","example":"ref/1234"},"definition":{"$ref":"#/components/schemas/ProcessDefinitionResponse"},"data":{"$ref":"#/components/schemas/DataResponse"},"stepName":{"title":"Current process step name.","type":"string"},"createdAt":{"title":"Created date (ISO-8601, UTC).","type":"string","example":"2017-11-23T10:13:30.000Z"},"createdBy":{"title":"Created by.","type":"string","description":"Infinity used to create definition.","example":"john"},"modifiedAt":{"title":"Modified date (ISO-8601, UTC).","type":"string","example":"2017-11-23T10:13:30.000Z"},"modifiedBy":{"title":"Modified by.","type":"string","description":"Infinity used to modify definition.","example":"john"}}},"ProductIdentifiers":{"type":"object","properties":{"categoryPath":{"type":"string"},"globalTradeItemNumber":{"type":"string"},"manufacturerPartNumber":{"type":"string"},"brand":{"type":"string"}}},"Purchase":{"type":"object","properties":{"amountToPay":{"type":"string"},"paymentName":{"type":"string"},"invoiceDeliveryMethod":{"type":"string"},"purchaseIdentifier":{"type":"string"},"result":{"type":"string"}}},"PurchaseResponse":{"title":"Purchase information used by various processors.","required":["currency","currencySymbol","currencySymbolPlacement","flavor","linesTotal","linesTotalAppliedCompanyCredit","linesTotalAppliedCompanyCreditWithVat","linesTotalAppliedVoucher","linesTotalAppliedVoucherWithVat","linesTotalWithVat","originalTotalPrice","originalTotalPriceWithVat","totalPrice","totalPriceAppliedCompanyCredit","totalPriceAppliedCompanyCreditWithVat","totalPriceAppliedEmployeeCredit","totalPriceAppliedEmployeeCreditWithVat","totalPriceAppliedVoucher","totalPriceAppliedVoucherWithVat","totalPriceWithVat","totalVatAmount"],"type":"object","properties":{"currency":{"title":"Payment currency.","type":"string","example":"NOK"},"currencySymbol":{"title":"Payment currency symbol.","type":"string","example":"$"},"currencySymbolPlacement":{"title":"Payment currency symbol placement.","type":"string","example":"right"},"linesTotalAppliedVoucherWithVat":{"title":"Amount to pay applied voucher discount without shipping cost with tax.","minimum":0,"type":"number","format":"double","example":275},"linesTotalAppliedCompanyCredit":{"title":"Amount to pay applied company credit without shipping cost.","minimum":0,"type":"number","format":"double","example":200},"linesTotalAppliedCompanyCreditWithVat":{"title":"Amount to pay applied company credit discount without shipping cost with tax.","minimum":0,"type":"number","format":"double","example":275},"monthlyDownPayment":{"title":"Monthly down payment.","minimum":0,"type":"number","format":"double"},"monthlyDownPaymentWithVat":{"title":"Monthly down payment with vat.","minimum":0,"type":"number","format":"double"},"linesTotalAppliedSalesDiscount":{"title":"Amount applied sales discount without shipping cost.","minimum":0,"type":"number","format":"double"},"linesTotalAppliedSalesDiscountWithVat":{"title":"Amount applied sales discount without shipping cost with tax.","minimum":0,"type":"number","format":"double"},"totalPriceAppliedSalesDiscount":{"title":"Order amount applied sales discount.","minimum":0,"type":"number","format":"double"},"totalPriceAppliedSalesDiscountWithVat":{"title":"Order amount applied sales discount with tax.","minimum":0,"type":"number","format":"double"},"totalPriceAppliedLoyaltyPoints":{"title":"Order amount applied loyalty points without shipping cost.","minimum":0,"type":"number","format":"double"},"totalPriceAppliedLoyaltyPointsWithVat":{"title":"Order amount applied loyalty points without shipping cost with tax.","minimum":0,"type":"number","format":"double"},"originalTotalPriceWithVat":{"title":"Order amount without discount with tax.","minimum":0,"type":"number","format":"double","example":1250},"totalPriceAppliedVoucher":{"title":"Order amount applied voucher discount.","minimum":0,"type":"number","format":"double","example":800},"totalPriceAppliedVoucherWithVat":{"title":"Order amount applied voucher discount with tax.","minimum":0,"type":"number","format":"double","example":1000},"totalPriceAppliedEmployeeCredit":{"title":"Order amount applied employee credit.","minimum":0,"type":"number","format":"double","example":300},"totalPriceAppliedEmployeeCreditWithVat":{"title":"Order amount applied employee credit with tax.","minimum":0,"type":"number","format":"double","example":375},"totalPriceAppliedCompanyCredit":{"title":"Order amount applied company credit.","minimum":0,"type":"number","format":"double","example":300},"totalPriceAppliedCompanyCreditWithVat":{"title":"Order amount applied company credit with tax.","minimum":0,"type":"number","format":"double","example":375},"totalPrice":{"title":"Amount to pay.","minimum":0,"type":"number","format":"double","example":300},"totalPriceWithVat":{"title":"Amount to pay with tax.","minimum":0,"type":"number","format":"double","example":375},"totalPriceWithTradeIn":{"title":"Amount to pay with trade-in discount.","type":"number","format":"double","example":325},"totalVatAmount":{"title":"Amount of tax.","minimum":0,"type":"number","format":"double","example":75},"totalVatAdvanceMode":{"title":"Total VAT advance mode.","type":"number","format":"double"},"linesTotal":{"title":"Amount to pay without shipping cost.","minimum":0,"type":"number","format":"double","example":250},"linesTotalWithVat":{"title":"Amount to pay without shipping cost with tax.","minimum":0,"type":"number","format":"double","example":325},"linesTotalAppliedVoucher":{"title":"Amount to pay applied voucher discount without shipping cost.","minimum":0,"type":"number","format":"double","example":200},"downPaymentLength":{"title":"Down payment length.","minimum":0,"type":"integer","format":"int32"},"originalTotalPrice":{"title":"Order amount without discount.","minimum":0,"type":"number","format":"double","example":1000},"flavor":{"type":"string"}}},"SalesRepresentative":{"title":"Sales representative.","type":"object","properties":{"userId":{"title":"User id.","type":"string"},"userName":{"title":"User name.","type":"string"},"userEmail":{"title":"User email.","type":"string"},"customerProfileId":{"title":"Customer profile id.","type":"string"},"customerProfileName":{"title":"Customer profile name.","type":"string"},"originalDiscountAmount":{"title":"Original discount amount.","type":"number","format":"double"},"discountComment":{"title":"Discount comment.","type":"string"},"discountAmount":{"title":"Discount amount.","type":"number","format":"double"},"discountAmountWithVat":{"title":"Discount amount with VAT.","type":"number","format":"double"}}},"Scrive":{"title":"Scrive.","type":"object","properties":{"required":{"title":"Is required Scrive.","type":"boolean"},"templateId":{"title":"Template id.","type":"string"},"documentId":{"title":"Document id.","type":"string"},"redirectUrl":{"title":"Redirect URL.","type":"string"},"completeUrl":{"title":"Complete URL.","type":"string"},"status":{"title":"Status.","type":"string"},"internalStatus":{"title":"Internal status.","type":"string","enum":["Initialized","Finalized","Canceled"]}}},"ShipmentResponse":{"title":"Shipment information used by shipment processors.","required":["carrier","cost","flavor","method","weight"],"type":"object","properties":{"method":{"title":"Reference to a method.","type":"string","example":"Bedriftspakke 5kg"},"costWithVat":{"title":"Reference to shipping cost with vat.","type":"number","format":"double"},"tracingNumber":{"title":"Reference to a tracing number.","type":"string","example":"89273857"},"shippedAt":{"title":"Reference to a shipped date.","type":"string","example":"2017-11-23T10:13:30Z"},"expectedDeliveryAt":{"title":"Reference to an expected delivery date.","type":"string","example":"2017-11-23T10:13:30Z"},"deliveryType":{"title":"Delivery type.","type":"string","example":"PRIVATE"},"carrier":{"title":"Reference to a carrier.","type":"string","example":"Bring"},"cost":{"title":"Reference to cost.","type":"number","format":"double","example":49.99},"status":{"title":"Reference to a status.","type":"string","example":"sent"},"weight":{"title":"Reference to weight.","type":"number","format":"double","example":3.12},"taxLines":{"title":"Reference to list of tax lines.","type":"array","items":{"$ref":"#/components/schemas/TaxLineResponse"}},"flavor":{"type":"string"}}},"ShippingOption":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"promo":{"type":"string"},"price":{"type":"integer","format":"int32"},"taxAmount":{"type":"integer","format":"int32"},"taxRate":{"type":"integer","format":"int32"},"preselected":{"type":"boolean"},"shippingMethod":{"type":"string"},"deliveryDetails":{"$ref":"#/components/schemas/DeliveryDetail"},"tmsReference":{"type":"string"}}},"Shopify":{"title":"Shopify.","type":"object","properties":{"orderId":{"title":"Shopify order id.","type":"string"},"orderName":{"title":"Shopify order name.","type":"string"},"orderNumber":{"title":"Shopify order number.","type":"string"},"paymentId":{"title":"Payment id.","type":"string"},"shippingLines":{"title":"Shipping lines.","type":"array","items":{"$ref":"#/components/schemas/ShopifyShippingLine"}},"noteAttributes":{"title":"Note attributes.","type":"array","items":{"$ref":"#/components/schemas/ShopifyNoteAttribute"}},"discountCodes":{"title":"Discount codes.","type":"array","items":{"$ref":"#/components/schemas/ShopifyDiscountCode"}},"tags":{"title":"Tags.","type":"string"},"sourceName":{"title":"Source name.","type":"string"}}},"ShopifyDiscountAllocation":{"type":"object","properties":{"amount":{"type":"string"}}},"ShopifyDiscountCode":{"type":"object","properties":{"code":{"type":"string"},"amount":{"type":"string"},"type":{"type":"string"}}},"ShopifyNoteAttribute":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}}},"ShopifyShippingLine":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"source":{"type":"string"},"title":{"type":"string"},"code":{"type":"string"},"price":{"type":"string"},"discountAllocations":{"type":"array","items":{"$ref":"#/components/schemas/ShopifyDiscountAllocation"}}}},"Sparkle":{"title":"Sparkle.","type":"object","properties":{"orderIds":{"title":"Order IDs.","type":"array","items":{"title":"Order IDs.","type":"string"}}}},"SveaAddress":{"type":"object","properties":{"fullName":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"streetAddress":{"type":"string"},"coAddress":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"countryCode":{"type":"string"},"generic":{"type":"boolean"},"addressLines":{"type":"array","items":{"type":"string"}}}},"SveaCustomer":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"nationalId":{"type":"string"},"countryCode":{"type":"string"},"company":{"type":"boolean"},"verified":{"type":"boolean"}}},"SveaIdentityFlags":{"type":"object","properties":{"hideNotYou":{"type":"boolean"},"hideChangeAddress":{"type":"boolean"},"hideAnonymous":{"type":"boolean"}}},"SveaOrderResponse":{"title":"Svea order information.","type":"object","properties":{"customer":{"$ref":"#/components/schemas/SveaCustomer"},"shippingAddress":{"$ref":"#/components/schemas/SveaAddress"},"billingAddress":{"$ref":"#/components/schemas/SveaAddress"},"locale":{"type":"string"},"currency":{"type":"string"},"countryCode":{"type":"string"},"clientOrderNumber":{"type":"string"},"orderId":{"type":"integer","format":"int64"},"emailAddress":{"type":"string"},"phoneNumber":{"type":"string"},"paymentType":{"type":"string"},"payment":{"$ref":"#/components/schemas/SveaPayment"},"status":{"type":"string"},"sveaWillBuyOrder":{"type":"boolean"},"identityFlags":{"$ref":"#/components/schemas/SveaIdentityFlags"}}},"SveaPayment":{"type":"object","properties":{"paymentMethodType":{"type":"string"}}},"TaxLineResponse":{"title":"Reference to list of tax lines.","required":["amount","flavor","name","rate"],"type":"object","properties":{"name":{"title":"Name.","type":"string","example":"VAT"},"amount":{"title":"Amount.","type":"number","format":"double","example":2190.78},"rate":{"title":"Rate.","type":"number","format":"double"},"flavor":{"type":"string"}}},"TimeSlot":{"type":"object","properties":{"id":{"type":"string"},"start":{"type":"string"},"end":{"type":"string"},"cutOff":{"type":"string"},"price":{"type":"integer","format":"int32"}}},"TradeIn":{"title":"Trade-in.","type":"object","properties":{"imei":{"title":"Device IMEI.","type":"string"},"deviceInfo":{"$ref":"#/components/schemas/TradeInDevice"},"dealerId":{"title":"Dealer id.","type":"string"},"transactionType":{"title":"Transaction type.","type":"string"},"deviceActivitiesCodes":{"title":"Device activities codes.","type":"string"},"estimatedPriceWithoutInsurance":{"title":"Estimated price without insurance.","type":"number","format":"double"},"placeOrderStatus":{"title":"Place order status.","type":"string"},"placeOrderTransactionId":{"title":"Place order transaction id.","type":"string"},"discountUsed":{"title":"Discount used.","type":"number","format":"double"}}},"TradeInDevice":{"title":"Device info.","type":"object","properties":{"imei":{"title":"Device IMEI.","type":"string"},"manufacturer":{"title":"Device manufacturer.","type":"string"},"model":{"title":"Device model.","type":"string"},"memorySize":{"title":"Device memory size.","type":"string"}}},"Voucher":{"required":["code","id"],"type":"object","properties":{"id":{"title":"Voucher Id.","type":"string"},"code":{"title":"Voucher Code.","type":"string"},"type":{"title":"Voucher Type.","type":"string"},"name":{"title":"Voucher Name.","type":"string"},"description":{"title":"Description.","type":"string"},"discount":{"$ref":"#/components/schemas/Discount"},"discountAmount":{"title":"Discount amount.","type":"number","format":"double"},"discountAmountWithVat":{"title":"Discount amount with VAT.","type":"number","format":"double"},"redemptionId":{"title":"Redemption ID.","type":"string"},"startDate":{"title":"Start date (ISO-8601, UTC).","type":"string","format":"date-time"},"expirationDate":{"title":"Expiration date (ISO-8601, UTC).","type":"string","format":"date-time"}}},"CommentRequest":{"type":"object","properties":{"comment":{"title":"Comment.","type":"string"}}},"AddEventRequest":{"required":["step"],"type":"object","properties":{"step":{"title":"Step.","type":"string"},"message":{"title":"Message.","type":"string"}}},"LineItemRequest":{"required":["description","flavor","name","price","productId","productNumber","quantity"],"type":"object","properties":{"name":{"title":"Name of product.","type":"string","example":"Samsung Galaxy S12 gold"},"id":{"title":"Line no, automatically assigned with unique ObjectId value.","type":"string","example":"66d529792a72633b53fe04a7"},"type":{"title":"Type of line item.","type":"string"},"number":{"title":"Line number, automatically assigned based on pace in a list when not set.","type":"string","example":"1"},"description":{"title":"Description.","type":"string","example":"Next generation smartphone"},"quantity":{"title":"Quantity.","minimum":0,"type":"integer","format":"int64","example":2},"url":{"title":"Product URL.","type":"string"},"additionalAttributes":{"title":"Additional attributes associated with a line item.","type":"object","additionalProperties":{"title":"Additional attributes associated with a line item.","type":"object"}},"nested":{"title":"Nested line items","type":"array","items":{"$ref":"#/components/schemas/LineItemRequest"}},"preconfig":{"title":"Pre-config.","type":"array","items":{"$ref":"#/components/schemas/PreconfigRequest"}},"productId":{"title":"Id of product.","pattern":"^infinity-pim/.*","type":"string","example":"infinity-pim/27asd-gt3ec-s2se2d-12esq8"},"productNumber":{"title":"Number of product.","type":"string","example":"AS23442DF2"},"price":{"title":"Price.","minimum":0,"type":"number","format":"double","example":99.99},"basePrice":{"title":"Base price.","minimum":0,"type":"number","format":"double","example":199.98},"priceWithoutQuantity":{"title":"Price without quantity.","minimum":0,"type":"number","format":"double","example":199.98},"originalPrice":{"title":"Original price.","minimum":0,"type":"number","format":"double","example":199.98},"originalPriceWithoutQuantity":{"title":"Original price without quantity.","minimum":0,"type":"number","format":"double","example":199.98},"priceWithVat":{"title":"Price with vat.","minimum":0,"type":"number","format":"double","example":199.98},"priceWithoutQuantityWithVat":{"title":"Price without quantity with vat.","minimum":0,"type":"number","format":"double","example":199.98},"originalPriceWithVat":{"title":"Original price with vat.","minimum":0,"type":"number","format":"double","example":199.98},"originalPriceWithoutQuantityWithVat":{"title":"Original price without quantity with VAT.","minimum":0,"type":"number","format":"double","example":199.98},"campaign":{"title":"Campaign.","type":"string","example":"Campaign name"},"campaignId":{"title":"Campaign ID.","type":"string","example":"Campaign ID"},"relatedEntities":{"title":"Related entities associated with a line item.","type":"array","items":{"title":"Related entities associated with a line item.","type":"object","additionalProperties":{"title":"Related entities associated with a line item.","type":"object"}}},"relatedLineIds":{"title":"Related line ids.","type":"array","items":{"title":"Related line ids.","type":"string"}},"taxLines":{"title":"Tax lines.","type":"array","items":{"$ref":"#/components/schemas/TaxLineRequest"}},"lineTotal":{"title":"Line total,","minimum":0,"type":"number","format":"double","example":199.98},"lineTotalWithVat":{"title":"Line total with vat.","minimum":0,"type":"number","format":"double","example":199.98},"preconfigType":{"title":"Type of preconfig item.","type":"string"},"categoryPaths":{"title":"Product category paths.","type":"array","items":{"title":"Product category paths.","type":"string"}},"flavor":{"type":"string"}}},"PreconfigRequest":{"title":"Pre-config.","type":"object","properties":{"ruleId":{"title":"Pre-config rule id.","type":"string"},"mandatory":{"title":"Mandatory flag.","type":"boolean"},"items":{"type":"array","items":{"$ref":"#/components/schemas/LineItemRequest"}}}},"TaxLineRequest":{"title":"Tax lines.","required":["amount","flavor","name","rate"],"type":"object","properties":{"name":{"title":"Name.","type":"string","example":"VAT"},"amount":{"title":"Amount.","type":"number","format":"double","example":2190.78},"rate":{"title":"Rate.","type":"number","format":"double"},"flavor":{"type":"string"}}},"AddressRequest":{"title":"Address information.","required":["country","flavor","postalCode","streetAddress1","town"],"type":"object","properties":{"state":{"title":"Reference to a state.","type":"string","example":"state"},"country":{"title":"Reference to a country.","type":"string","example":"country"},"streetAddress1":{"title":"Reference to a street address1.","type":"string","example":"street address1"},"streetAddress2":{"title":"Reference to a street address2.","type":"string","example":"street address2"},"postalCode":{"title":"Reference to a postcode.","type":"string","example":"code"},"town":{"title":"Reference to a town.","type":"string","example":"town"},"flavor":{"type":"string"}}},"AttestRequest":{"title":"Order attestation information used by Order attest processors.","type":"object","properties":{"required":{"title":"Flag for order that required an attest.","type":"boolean"},"notifyAttestUserId":{"title":"Notify attest user id.","type":"string"},"notifyAttestUserDetail":{"$ref":"#/components/schemas/Attestant"},"notifyAttestUserDateTime":{"title":"Notify attest user date time (ISO-8601, UTC).","type":"string","example":"2019-05-21T10:13:30Z"},"attestationUserId":{"title":"Attestation user id.","type":"string"},"attestationUserDetail":{"$ref":"#/components/schemas/Attestant"},"attestationDateTime":{"title":"Attestation date time (ISO-8601, UTC).","type":"string","example":"2019-05-21T10:13:30Z"},"attestStatus":{"$ref":"#/components/schemas/AttestStatus"}}},"AttestStatus":{"title":"Status of attest.","type":"string","enum":["Initialized","Waiting","Accept","Deny"]},"BankIdRequest":{"title":"BankId.","type":"object","properties":{"required":{"title":"Is required BankId.","type":"boolean"},"auth":{"title":"Auth.","type":"string"},"authUrl":{"title":"Auth URL.","type":"string"},"token":{"title":"Token.","type":"string"},"redirectUrl":{"title":"Redirect URL.","type":"string"},"authorizationCode":{"title":"Authorization code.","type":"string"},"authenticatedAt":{"title":"Authenticated at (ISO-8601, UTC).","type":"string","format":"date-time"},"userInformation":{"$ref":"#/components/schemas/BankIdUserInformation"},"status":{"$ref":"#/components/schemas/BankIdStatus"}}},"BankIdStatus":{"title":"Status.","type":"string","enum":["Initialized","Finalized","Canceled"]},"CustomerRequest":{"title":"Customer/buyer information used by various processors.","required":["clientIPAddress","customerEmailAddress","customerName","customerNumber","customerTelephoneNumber","emailAddress","externalReference","firstName","flavor","groupName","groupReference","lastName","name","organizationNumber","reference","sessionReference","telephoneNumber","userAgent","userReference"],"type":"object","properties":{"name":{"title":"Reference to a customer name.","type":"string","example":"John Doe"},"reference":{"title":"Reference to a customer identifier.","type":"string","example":"975959252"},"organizationNumber":{"title":"Number of the organization associated with a customer; usually should refer to customer profile number.","type":"string","example":"1234"},"firstName":{"title":"Reference to a customer first name.","type":"string","example":"John"},"middleName":{"title":"Reference to a customer middle name.","type":"string","example":"Smith"},"lastName":{"title":"Reference to a customer last name.","type":"string","example":"Doe"},"customerName":{"title":"Reference to a customer profile name.","type":"string","example":"Profile"},"emailAddress":{"title":"KlarnaCustomer contact email address.","type":"string","example":"john.doe@example.com"},"telephoneNumber":{"title":"KlarnaCustomer contact phone address.","type":"string","example":"123"},"clientIPAddress":{"title":"IP address used by the customer used to place a process.","type":"string","example":"1.2.3.4"},"userReference":{"title":"User reference id.","type":"string","example":"1234"},"groupReference":{"title":"Customer group reference id.","type":"string","example":"1234"},"externalReference":{"title":"Customer external reference id.","type":"string","example":"1234"},"sessionReference":{"title":"Session reference.","type":"string","example":"1234"},"customerEmailAddress":{"title":"Customer email address.","type":"string","example":"customergroupname@bluestonepim.com"},"customerTelephoneNumber":{"title":"Customer telephone number.","type":"string","example":"40123456"},"customerType":{"title":"Customer type.","type":"string","example":"B2C","enum":["B2C","B2B"]},"groupName":{"title":"Group name.","type":"string","example":"Default"},"username":{"title":"Username.","type":"string"},"userAgent":{"title":"User agent of the browser which the customer used to place a process.","type":"string","example":"IE"},"customerNumber":{"title":"Reference to a customer profile number.","type":"string","example":"117677784"},"flavor":{"type":"string"}}},"DataRequest":{"required":["billingAddress","context","customer","deliveryAddress","lineItems","payment","purchase"],"type":"object","properties":{"payment":{"$ref":"#/components/schemas/PaymentRequest"},"customer":{"$ref":"#/components/schemas/CustomerRequest"},"purchase":{"$ref":"#/components/schemas/PurchaseRequest"},"lineItems":{"maxItems":1000,"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/LineItemRequest"}},"voucher":{"title":"List of voucher information.","type":"array","items":{"$ref":"#/components/schemas/Voucher"}},"billingAddress":{"$ref":"#/components/schemas/AddressRequest"},"deliveryAddress":{"$ref":"#/components/schemas/AddressRequest"},"shipment":{"$ref":"#/components/schemas/ShipmentRequest"},"deliveries":{"title":"List of deliveries.","type":"array","items":{"$ref":"#/components/schemas/Delivery"}},"relatedEntities":{"title":"List of related entities.","type":"array","items":{"type":"object","additionalProperties":{"type":"object"}}},"attest":{"$ref":"#/components/schemas/AttestRequest"},"communication":{"title":"Communication information.","type":"object","additionalProperties":{"$ref":"#/components/schemas/CommunicationStepSetting"}},"employeeCredit":{"$ref":"#/components/schemas/EmployeeCredit"},"companyCredit":{"$ref":"#/components/schemas/CompanyCredit"},"bankId":{"$ref":"#/components/schemas/BankIdRequest"},"orderMoneySources":{"title":"List of order money sources.","type":"array","items":{"$ref":"#/components/schemas/OrderMoneySourceRequest"}},"inventory":{"$ref":"#/components/schemas/Inventory"},"context":{"$ref":"#/components/schemas/ContextRequest"},"salesRepresentative":{"$ref":"#/components/schemas/SalesRepresentative"},"customerResponsible":{"$ref":"#/components/schemas/CustomerResponsible"},"mailchimp":{"$ref":"#/components/schemas/MailchimpRequest"},"errors":{"title":"List of process data errors.","type":"array","items":{"$ref":"#/components/schemas/ProcessDataError"}},"externalOrderTracking":{"$ref":"#/components/schemas/ExternalOrderTracking"},"shopify":{"$ref":"#/components/schemas/Shopify"},"getnShift":{"$ref":"#/components/schemas/NShift"},"tradeIn":{"$ref":"#/components/schemas/TradeIn"},"scrive":{"$ref":"#/components/schemas/Scrive"},"loyaltyPoints":{"$ref":"#/components/schemas/LoyaltyPoints"},"sparkle":{"$ref":"#/components/schemas/Sparkle"},"erates":{"title":"Erate.","type":"array","items":{"$ref":"#/components/schemas/Erate"}},"additionalData":{"title":"Additional data.","type":"object","additionalProperties":{"title":"Additional data.","type":"object"}}}},"MailchimpRequest":{"title":"Mailchimp.","type":"object","properties":{"listId":{"title":"List id.","type":"string"},"memberTags":{"title":"Member tags.","type":"array","items":{"type":"string"}}}},"OrderMoneySourceRequest":{"required":["flavor"],"type":"object","properties":{"source":{"title":"Payment source.","type":"string","example":"PAYEX"},"totalWithVat":{"title":"Total paid by the payment source with tax.","type":"number","format":"double","example":325},"total":{"title":"Total paid by the payment source.","type":"number","format":"double","example":250},"flavor":{"type":"string"}}},"PaymentRequest":{"title":"Payment information used by payment processors.","required":["cancelUrl","completeUrl","description","flavor","purchasedAt"],"type":"object","properties":{"language":{"title":"Language from PayEx setting.","type":"string"},"provider":{"title":"Payment provider.","type":"string","example":"PayEx | CollectorBank-B2B | CollectorBank-B2C"},"paymentName":{"title":"Name of payment","type":"string","example":"PayEx | CollectorBank B2B | CollectorBank B2C"},"consumerProfileRef":{"title":"Reference to consumer profile of PayEx Checkout.","type":"string","example":"4321"},"hostUrls":{"title":"URLs for embedding of PayEx checkout hosted views.","type":"array","items":{"title":"URLs for embedding of PayEx checkout hosted views.","type":"string"}},"cancelUrl":{"title":"An e-commerce site URL used for payment processor to redirect to when a payment is unsuccessful.","type":"string","example":"https://ecommece/cancel-payment"},"completeUrl":{"title":"An e-commerce site URL used for payment processor to redirect to when a payment is successful.","type":"string","example":"https://ecommece/complete-payment"},"checkoutUrl":{"title":"Checkout URL.","type":"string","example":"https://ecommece/checkout-payment"},"paymentUrl":{"title":"An e-commerce site URL used for payment processor to redirect back for some payment providers.","type":"string","example":"https://ecommece/redirect-payment"},"termsOfServiceUrl":{"title":"Term of service URL.","type":"string","example":"https://example.com/termsandconditoons.pdf"},"purchasedAt":{"title":"Purchase time.","type":"string","example":"2017-11-23T10:13:30Z"},"storeId":{"title":"A store id of Collector Bank.","type":"string","example":"1301"},"countryCode":{"title":"The two-letter code for the country where the payment will be processed.","type":"string","example":"NO","enum":["NO","SE","FI","DK","DE"]},"orderTotal":{"title":"Order total to be paid by MAIN payment.","type":"number","format":"double"},"orderTotalWithVat":{"title":"Order total to be paid by MAIN payment with tax.","type":"number","format":"double"},"orderTotalVatAmount":{"title":"Order total tax.","type":"number","format":"double"},"overrideBrandName":{"title":"Language from PayEx setting.","type":"string"},"enableCheckIn":{"title":"Enable Check In for PayEx Checkout.","type":"boolean"},"enableFlowSelection":{"title":"Enable flow selection.","type":"boolean"},"flow":{"title":"Payment flow.","type":"string"},"useKlarnaHostedPaymentPage":{"title":"Use Klarna Hosted Payment Page.","type":"boolean"},"subsite":{"title":"PayEx subsite.","type":"string"},"providerName":{"title":"Name of payment provider.","type":"string","example":"PayEx | CollectorBank B2B | CollectorBank B2C"},"description":{"title":"Quick description of the process to the payment.","type":"string","example":"Sample process"},"sessionId":{"title":"Session id.","type":"string"},"mode":{"title":"Mode of payment.","type":"string","enum":["AutoCapture","Authorization"]},"errorCode":{"title":"Payment error code.","type":"string"},"autoCapture":{"title":"Payment auto capture.","type":"string","enum":["MANUAL","ON_ACCEPTED","ON_COMPLETED"]},"pending":{"title":"Payment status.","type":"boolean"},"errorMsg":{"title":"Payment error message.","type":"string"},"flavor":{"type":"string"}}},"ProcessRequest":{"required":["data","status"],"type":"object","properties":{"externalRef":{"title":"External reference.","type":"string","example":"ref/1234"},"originalProcessReference":{"title":"Original process reference.","type":"string","example":"5d0c63c66be757244fa988f7"},"definitionName":{"title":"Definition name.","type":"string","description":"Associated definition name; if it is not provided, process processing will not be invoked"},"data":{"$ref":"#/components/schemas/DataRequest"},"status":{"title":"One of three possible states in which a process can be to initially gather data; processes by default are in created state.","type":"string","example":"Created","enum":["TEMPORARY","CREATED"]}}},"PurchaseRequest":{"title":"Purchase information used by various processors.","required":["currency","currencySymbol","currencySymbolPlacement","flavor","linesTotal","linesTotalAppliedCompanyCredit","linesTotalAppliedCompanyCreditWithVat","linesTotalAppliedVoucher","linesTotalAppliedVoucherWithVat","linesTotalWithVat","originalTotalPrice","originalTotalPriceWithVat","totalPrice","totalPriceAppliedCompanyCredit","totalPriceAppliedCompanyCreditWithVat","totalPriceAppliedEmployeeCredit","totalPriceAppliedEmployeeCreditWithVat","totalPriceAppliedVoucher","totalPriceAppliedVoucherWithVat","totalPriceWithVat","totalVatAmount"],"type":"object","properties":{"currency":{"title":"Payment currency.","type":"string","example":"NOK"},"currencySymbol":{"title":"Payment currency symbol.","type":"string","example":"$"},"currencySymbolPlacement":{"title":"Payment currency symbol placement.","type":"string","example":"right"},"linesTotalAppliedVoucherWithVat":{"title":"Amount to pay applied voucher discount without shipping cost with tax.","minimum":0,"type":"number","format":"double","example":275},"linesTotalAppliedCompanyCredit":{"title":"Amount to pay applied company credit without shipping cost.","minimum":0,"type":"number","format":"double","example":200},"linesTotalAppliedCompanyCreditWithVat":{"title":"Amount to pay applied company credit discount without shipping cost with tax.","minimum":0,"type":"number","format":"double","example":275},"monthlyDownPayment":{"title":"Monthly down payment.","minimum":0,"type":"number","format":"double"},"monthlyDownPaymentWithVat":{"title":"Monthly down payment with vat.","minimum":0,"type":"number","format":"double"},"linesTotalAppliedSalesDiscount":{"title":"Amount applied sales discount without shipping cost.","minimum":0,"type":"number","format":"double"},"linesTotalAppliedSalesDiscountWithVat":{"title":"Amount applied sales discount without shipping cost with tax.","minimum":0,"type":"number","format":"double"},"totalPriceAppliedSalesDiscount":{"title":"Order amount applied sales discount.","minimum":0,"type":"number","format":"double"},"totalPriceAppliedSalesDiscountWithVat":{"title":"Order amount applied sales discount with tax.","minimum":0,"type":"number","format":"double"},"totalPriceAppliedLoyaltyPoints":{"title":"Order amount applied loyalty points without shipping cost.","minimum":0,"type":"number","format":"double"},"totalPriceAppliedLoyaltyPointsWithVat":{"title":"Order amount applied loyalty points without shipping cost with tax.","minimum":0,"type":"number","format":"double"},"originalTotalPriceWithVat":{"title":"Order amount without discount with tax.","minimum":0,"type":"number","format":"double","example":1250},"totalPriceAppliedVoucher":{"title":"Order amount applied voucher discount.","minimum":0,"type":"number","format":"double","example":800},"totalPriceAppliedVoucherWithVat":{"title":"Order amount applied voucher discount with tax.","minimum":0,"type":"number","format":"double","example":1000},"totalPriceAppliedEmployeeCredit":{"title":"Order amount applied employee credit.","minimum":0,"type":"number","format":"double","example":300},"totalPriceAppliedEmployeeCreditWithVat":{"title":"Order amount applied employee credit with tax.","minimum":0,"type":"number","format":"double","example":375},"totalPriceAppliedCompanyCredit":{"title":"Order amount applied company credit.","minimum":0,"type":"number","format":"double","example":300},"totalPriceAppliedCompanyCreditWithVat":{"title":"Order amount applied company credit with tax.","minimum":0,"type":"number","format":"double","example":375},"totalPrice":{"title":"Amount to pay.","minimum":0,"type":"number","format":"double","example":300},"totalPriceWithVat":{"title":"Amount to pay with tax.","minimum":0,"type":"number","format":"double","example":375},"totalPriceWithTradeIn":{"title":"Amount to pay with trade-in discount.","type":"number","format":"double","example":325},"totalVatAmount":{"title":"Amount of tax.","minimum":0,"type":"number","format":"double","example":75},"totalVatAdvanceMode":{"title":"Total VAT advance mode.","type":"number","format":"double"},"linesTotal":{"title":"Amount to pay without shipping cost.","minimum":0,"type":"number","format":"double","example":250},"linesTotalWithVat":{"title":"Amount to pay without shipping cost with tax.","minimum":0,"type":"number","format":"double","example":325},"linesTotalAppliedVoucher":{"title":"Amount to pay applied voucher discount without shipping cost.","minimum":0,"type":"number","format":"double","example":200},"downPaymentLength":{"title":"Down payment length.","minimum":0,"type":"integer","format":"int32"},"originalTotalPrice":{"title":"Order amount without discount.","minimum":0,"type":"number","format":"double","example":1000},"flavor":{"type":"string"}}},"ShipmentRequest":{"title":"Shipment information used by shipment processors.","required":["carrier","cost","flavor","method","weight"],"type":"object","properties":{"method":{"title":"Reference to a method.","type":"string","example":"Bedriftspakke 5kg"},"costWithVat":{"title":"Reference to shipping coList<TaxLineRequest> getTaxLines()st with vat.","type":"number","format":"double"},"deliveryType":{"title":"Delivery type.","type":"string","example":"PRIVATE"},"carrier":{"title":"Reference to a carrier.","type":"string","example":"Bring"},"cost":{"title":"Reference to cost.","type":"number","format":"double","example":49.99},"weight":{"title":"Reference to weight.","type":"number","format":"double","example":3.12},"taxLines":{"title":"Reference to list of tax lines.","type":"array","items":{"$ref":"#/components/schemas/TaxLineRequest"}},"flavor":{"type":"string"}}},"GetProcessDeliveriesResponse":{"type":"object","properties":{"deliveries":{"type":"array","items":{"$ref":"#/components/schemas/Delivery"}}}},"GetLineItemImeiResponse":{"type":"object","properties":{"imei":{"type":"array","items":{"type":"string"}}}},"ProcessStatusResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}}}},"SearchProcessResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProcessResponse"}},"total":{"title":"Total number.","type":"integer","format":"int64"}}},"ProcessListByIdsRequest":{"required":["ids"],"type":"object","properties":{"ids":{"title":"Process IDs.","maxItems":100,"minItems":1,"type":"array","items":{"type":"string"}},"order":{"title":" Order in which processes are presented. Default is NATURAL. NATURAL(order by mongo) SPECIFIED(order based on process ids list order)","type":"string","enum":["NATURAL","SPECIFIED"]}}},"ProcessListByNumbersRequest":{"required":["numbers","page","pageSize"],"type":"object","properties":{"numbers":{"title":"Process numbers.","maxItems":100,"minItems":1,"type":"array","items":{"type":"string"}},"page":{"title":"Page number.","type":"integer","format":"int32","example":0},"pageSize":{"title":"Page size.","maximum":100,"minimum":1,"type":"integer","format":"int32","example":100},"isShoppingCart":{"title":"Shopping cart flag.","type":"boolean"},"isOrder":{"title":"Order flag.","type":"boolean"}}},"ReturnOrderRequest":{"type":"object","properties":{"itemNumber":{"title":"Item number.","type":"string"},"lineNo":{"title":"Line No.","type":"string"},"returnLineNo":{"title":"Return line No.","type":"string"},"returnQuantity":{"title":"Return quantity.","type":"integer","format":"int32"},"returnOrderNumber":{"title":"Return order number.","type":"string"},"returnId":{"title":"Return Id.","type":"string"},"returnReason":{"title":"Return reason.","type":"string"},"returnDate":{"title":"Return date","type":"string","example":"2020-05-19T00:00:00Z"},"imei":{"title":"List of IMEI.","type":"array","items":{"title":"List of IMEI.","type":"string"}}}},"UpdateDefinitionNameRequest":{"type":"object","properties":{"value":{"title":"Definition name.","type":"string"}}},"UpdateShipmentRequest":{"type":"object","properties":{"id":{"title":"Shipment Id.","type":"string"},"code":{"title":"Shipment code.","type":"string"},"name":{"title":"Shipment name.","type":"string"},"description":{"title":"Shipment description.","type":"string"},"orderTrackingUrl":{"title":"Order tracking url.","type":"string"}}},"UpsertDeliveryRequest":{"required":["reference"],"type":"object","properties":{"reference":{"title":"Reference to a deliveries no.","type":"string","example":"82858372"},"deliveredAt":{"title":"Delivered at (ISO-8601, UTC).","type":"string","format":"date-time","example":"2024-10-01T12:52:00Z"},"packageNumbers":{"title":"Package no.","type":"array","example":["40170726203564981776","40170726203564981777"],"items":{"type":"string"}}}},"UpdateImeiRequest":{"required":["imei"],"type":"object","properties":{"imei":{"type":"array","items":{"type":"string"}}}},"ReportResponse":{"type":"object","properties":{"id":{"title":"ID.","type":"string"},"createdAt":{"title":"Created at (ISO-8601, UTC).","type":"string","format":"date-time"},"modifiedAt":{"title":"Modified at (ISO-8601, UTC).","type":"string","format":"date-time"},"createdBy":{"title":"Created by.","type":"string"},"modifiedBy":{"title":"Modified by.","type":"string"},"status":{"title":"Status.","type":"string","enum":["INIT","START","IN_PROGRESS","COMPLETE","FAIL"]},"filename":{"title":"Filename.","type":"string"},"reportName":{"title":"Report name.","type":"string"}}},"LambdaReportRequest":{"type":"object","properties":{"sortField":{"title":"Sort field.","type":"string"},"sortDirection":{"title":"Sort direction.","type":"string","enum":["asc","desc"]},"isOrder":{"title":"Is order.","type":"boolean"},"criterias":{"title":"Criterias.","type":"array","items":{"$ref":"#/components/schemas/SearchCriteriaRequest"}},"reportName":{"type":"string"}}},"SettingDataResponse":{"type":"object","properties":{"prefix":{"title":"Setting data prefix.","type":"string"},"modifiedAt":{"type":"string","description":"Modified at (ISO-8601, UTC)."},"modifiedBy":{"type":"string","description":"Modified by."}}},"SettingDataRequest":{"required":["prefix"],"type":"object","properties":{"prefix":{"title":"Setting data prefix.","pattern":"^[/\\w-]{0,20}$","type":"string"}}}},"securitySchemes":{"oauth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://idp.test.bluestonepim.com/op/token","scopes":{"openid profile systemRoles permissions organization email name nickname":"All needed scopes."}}}}}},"x-amazon-apigateway-api-key-source":"AUTHORIZER"}