``` json
{
	"info": {
		"_postman_id": "d777992c-9bc6-41a5-8459-0527cfb1453a",
		"name": "Post a basic Billing Account workflow",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "1242925"
	},
	"item": [
		{
			"name": "Post a basic Billing Account workflow",
			"item": [
				{
					"name": "Post a a basic Billing Account workflow",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{flueretailer_tokennt.retailer.current.token}}",
									"type": "string"
								}
							]
						},
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"retailerId\": \"1\",\n    \"version\": \"1.0\",\n    \"entityType\": \"BILLING_ACCOUNT\",\n    \"entitySubtype\": \"CUSTOMER\",\n    \"description\": \"Basic Billing Account workflow template\",\n    \"name\": \"BILLING_ACCOUNT::CUSTOMER\",\n    \"rulesets\": [\n        {\n            \"name\": \"CREATE\",\n            \"description\": \"CREATE BILLING_ACCOUNT\",\n            \"type\": \"BILLING_ACCOUNT\",\n            \"subtype\": \"CUSTOMER\",\n            \"eventType\": \"NORMAL\",\n            \"rules\": [\n                {\n                    \"name\": \"[[account.id]].core.SetState\",\n                    \"props\": {\n                        \"status\": \"ACTIVE\"\n                    }\n                }\n            ],\n            \"triggers\": [\n                {\n                    \"status\": \"CREATED\"\n                }\n            ],\n            \"userActions\": []\n        },\n        {\n            \"name\": \"ProcessCredit\",\n            \"description\": \"ProcessCredit\",\n            \"type\": \"BILLING_ACCOUNT\",\n            \"subtype\": \"CUSTOMER\",\n            \"eventType\": \"NORMAL\",\n            \"rules\": [\n                {\n                    \"name\": \"FLUENTRETAIL.base.CreateCreditMemoFromReturnOrder\",\n                    \"props\": {\n                        \"creditMemoType\": \"TYPE_MEMO\",\n                        \"creditMemoItemType\": \"TYPE_MEMO_ITEM\"\n                    }\n                }\n            ],\n            \"triggers\": [\n                {\n                    \"status\": \"ACTIVE\"\n                }\n            ],\n            \"userActions\": []\n        },\n        {\n            \"name\": \"CREATE\",\n            \"description\": \"CREATE CREDIT MEMO\",\n            \"type\": \"CREDIT_MEMO\",\n            \"eventType\": \"NORMAL\",\n            \"rules\": [\n                {\n                    \"name\": \"[[account.id]].core.SetState\",\n                    \"props\": {\n                        \"status\": \"PENDING_REFUND\"\n                    }\n                }\n            ],\n            \"triggers\": [\n                {\n                    \"status\": \"CREATED\"\n                }\n            ],\n            \"userActions\": []\n        },\n        {\n            \"name\": \"PaymentFailed\",\n            \"description\": \"PaymentFailed\",\n            \"type\": \"CREDIT_MEMO\",\n            \"subtype\": \"DEFAULT\",\n            \"eventType\": \"NORMAL\",\n            \"rules\": [\n                {\n                    \"name\": \"[[account.id]].core.SetState\",\n                    \"props\": {\n                        \"status\": \"REFUND_FAILED\"\n                    }\n                },\n                {\n                    \"name\": \"FLUENTRETAIL.base.SendEventForCreditMemoToReturn\",\n                    \"props\": {\n                        \"eventName\": \"RefundRejected\"\n                    }\n                }\n            ],\n            \"triggers\": [\n                {\n                    \"status\": \"PENDING_REFUND\"\n                },\n                {\n                    \"status\": \"CREATED\"\n                }\n            ],\n            \"userActions\": []\n        },\n        {\n            \"name\": \"PaymentComplete\",\n            \"description\": \"PaymentComplete\",\n            \"type\": \"CREDIT_MEMO\",\n            \"subtype\": \"DEFAULT\",\n            \"eventType\": \"NORMAL\",\n            \"rules\": [\n                {\n                    \"name\": \"[[account.id]].core.SetState\",\n                    \"props\": {\n                        \"status\": \"REFUND_COMPLETE\"\n                    }\n                },\n                {\n                    \"name\": \"FLUENTRETAIL.base.SendEventForCreditMemoToReturn\",\n                    \"props\": {\n                        \"eventName\": \"RefundComplete\"\n                    }\n                }\n            ],\n            \"triggers\": [\n                {\n                    \"status\": \"PENDING_REFUND\"\n                },\n                {\n                    \"status\": \"CREATED\"\n                }\n            ],\n            \"userActions\": []\n        },\n        {\n            \"name\": \"ProcessCreditForRevisedOrder\",\n            \"description\": \"Start the processing of the creditMemo\",\n            \"type\": \"BILLING_ACCOUNT\",\n            \"subtype\": \"CUSTOMER\",\n            \"eventType\": \"NORMAL\",\n            \"rules\": [\n                {\n                    \"name\": \"FLUENTRETAIL.base.CreateCreditMemoForRevisedOrder\",\n                    \"props\": {\n                        \"creditMemoType\": \"EXCHANGE\",\n                        \"creditMemoItemType\": \"EXCHANGE_ITEM\"\n                    }\n                }\n            ],\n            \"triggers\": [\n                {\n                    \"status\": \"ACTIVE\"\n                }\n            ],\n            \"userActions\": []\n        }\n    ],\n    \"statuses\": [\n        {\n            \"name\": \"CREATED\",\n            \"entityType\": \"BILLING_ACCOUNT\",\n            \"category\": \"BOOKING\"\n        },\n        {\n            \"name\": \"ACTIVE\",\n            \"entityType\": \"BILLING_ACCOUNT\",\n            \"category\": \"BOOKING\"\n        },\n        {\n            \"name\": \"REFUND_COMPLETE\",\n            \"entityType\": \"CREDIT_MEMO\",\n            \"category\": \"DONE\"\n        },\n        {\n            \"name\": \"REFUND_FAILED\",\n            \"entityType\": \"CREDIT_MEMO\",\n            \"category\": \"DONE\"\n        },\n        {\n            \"name\": \"CREATED\",\n            \"entityType\": \"CREDIT_MEMO\",\n            \"category\": \"BOOKING\"\n        },\n        {\n            \"name\": \"PENDING_REFUND\",\n            \"entityType\": \"CREDIT_MEMO\",\n            \"category\": \"BOOKING\"\n        }\n    ]\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{fluent.account.host}}/api/v4.1/workflow",
							"host": [
								"{{fluent.account.host}}"
							],
							"path": [
								"api",
								"v4.1",
								"workflow"
							]
						}
					},
					"response": []
				}
			],
			"description": "This Authentication Request is set to authenticate the FC FASHION Retailer Admin User.\n\nThis request will set the `fluent.retailer.current.token` which is used by the following requests.\n\nThis effectively activates the current Retailer for the given Lab steps to be executed."
		}
	]
}
```