API ReferenceWorkflows
Path Parameters
token*string
workflowStepId*string
Format
uuidRequest Body
application/json
Create client offer
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PUT "http://localhost:8000/api/clients/string/workflow-steps/497f6eca-6276-4993-bfeb-53cbbbba6f08/offers" \ -H "Content-Type: application/json" \ -d '{ "lines": [ {} ] }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"workflowStepDataId": "d438a2ee-31c6-404f-9274-4fb2344234af",
"contractorId": "8e641c22-41f4-4818-ae43-d2cb9b53e3d7",
"projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
"routerId": "c3d4372d-3cfa-4618-a60e-50a4c920823d",
"performingRouterId": "bace478d-0ef2-4a4a-ba64-9e64e2b28cf1",
"orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
"updatedAt": "2019-08-24",
"createdAt": "2019-08-24",
"deletedAt": "2019-08-24",
"name": "string",
"payer": "client",
"status": "initial",
"payerTotalAmount": 0,
"platformPayerTotalAmount": 0,
"installerPayoutAmountExcludingVat": 0,
"workflowStepData": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"workflowId": "43c4fa9b-0cbc-4b57-a121-9d7d46a3eaa4",
"workflowStepId": "910ae244-d9b7-47aa-bbbd-fedca7553eff",
"status": "todo",
"actionReason": "string",
"dueAt": "2019-08-24",
"dueState": "todo",
"comment": "string",
"actor": "string",
"userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
"orgId": "25b2c2d5-a7fc-47d0-89e4-8709a1560bfa",
"updatedAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"deletedAt": "2019-08-24",
"booking": null,
"currentStatusLog": {
"comment": "string",
"createdAt": "2019-08-24",
"actor": "string"
},
"org": {
"id": "string",
"name": "string"
},
"step": {
"actor": "operator",
"stepActor": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"slug": "string",
"name": "string",
"workflowId": "43c4fa9b-0cbc-4b57-a121-9d7d46a3eaa4",
"type": "dispatched",
"source": "order_creator",
"activeRepresentativeId": "30df3691-d989-4adf-b59f-de3617255eaa",
"isMainInstaller": true,
"professions": [
"ELECTRICIAN"
],
"services": [
"AIR_CONDITIONING"
],
"activeRepresentative": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"routerId": "c3d4372d-3cfa-4618-a60e-50a4c920823d"
}
}
}
},
"currencyCode": "string",
"lines": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"description": "string",
"note": "string",
"externalId": "string",
"bundleId": "b7ec5420-07d5-4432-b1d4-988b3c8d3901",
"bundleItemId": "fbc51b9a-04f4-467a-9421-a6e505f6324d",
"groupKey": "string",
"imageUrl": "string",
"quantity": -2147483648,
"currencyCode": "str",
"isTaxInclusive": true,
"vatRate": -2147483648,
"isPaid": true,
"payerUnitAmount": -2147483648,
"payerTotalAmount": -2147483648,
"payerUnitTotalAmount": -2147483648,
"discountUnitAmount": -2147483648,
"discountAmount": -2147483648,
"discountSourceType": "string",
"totalAmountToPayout": -2147483648,
"installerPayoutUnitAmount": -2147483648,
"installerPayoutAmount": -2147483648,
"routerPayoutUnitAmount": -2147483648,
"routerPayoutAmount": -2147483648,
"platformFeeAmount": -2147483648,
"platformFeePercentage": -2147483648,
"position": -2147483648,
"type": "default",
"productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",
"paymentSource": "PLATFORM",
"isCredit": true,
"creditLineForId": "48989d55-8de3-4a14-9df3-1fb4383a2a11",
"createdByUserId": "4d2aef9a-17b0-44e6-902e-616812033620",
"createdByUser": {
"firstName": "string",
"lastName": "string"
},
"product": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"productType": "product",
"description": "string",
"payerUnitAmount": -2147483648,
"isEditable": true,
"routerId": "c3d4372d-3cfa-4618-a60e-50a4c920823d",
"images": [],
"attachments": []
},
"bundle": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"routerId": "c3d4372d-3cfa-4618-a60e-50a4c920823d",
"name": "string",
"description": "string",
"updatedAt": "2019-08-24",
"createdAt": "2019-08-24",
"deletedAt": "2019-08-24"
},
"bundleItem": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"position": -2147483648,
"type": "single-product",
"productBundleId": "ba2ada16-5179-4cd9-a265-c8fc70f48022",
"name": "string",
"defaultProductId": "0f6af53d-c9dd-4760-954a-a4e41c4d01bc",
"required": true,
"quantity": -2147483648,
"updatedAt": "2019-08-24",
"createdAt": "2019-08-24",
"deletedAt": "2019-08-24",
"bundleItemTags": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"productBundleItemId": "1cf478f1-597a-439a-b9e7-25a8a503a904",
"tagId": "f69eb9f1-ae9f-4086-b25c-c39758a43fb3",
"tag": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"routerId": "c3d4372d-3cfa-4618-a60e-50a4c920823d",
"name": "string"
}
}
]
}
}
]
}