-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinsomnia.json
1 lines (1 loc) · 22.9 KB
/
insomnia.json
1
{"_type":"export","__export_format":4,"__export_date":"2023-03-21T21:30:57.274Z","__export_source":"insomnia.desktop.app:v2023.1.0","resources":[{"_id":"req_88011a85212d46018ccf6601d20b55b5","parentId":"fld_4ac599e54e5740059f3f0dcbd0a0e7f2","modified":1679434243333,"created":1658560368225,"url":"{{urlApi}}/api/customer/","name":"Create","description":"### This route is responsible for creating a new customer and adding a new account with a zero balance.\n\n```response:200\n{\n \"message\": \"🎉 customer created successfully.\",\n \"data\": {\n \"id\": \"641908701a6b17102f3c3e2d\",\n \"name\": \"Milhouse Van Houten\",\n \"phone\": \"+1 215-878-3605\",\n \"createdAt\": \"2023-03-21T01:29:20.490Z\",\n \"updatedAt\": \"2023-03-21T01:29:20.490Z\",\n \"accountId\": \"641908701a6b17102f3c3e2c\",\n \"account\": {\n \"id\": \"641908701a6b17102f3c3e2c\",\n \"balance\": 0,\n \"createdAt\": \"2023-03-21T01:29:20.490Z\",\n \"updatedAt\": \"2023-03-21T01:29:20.490Z\"\n },\n \"transactions\": []\n }\n}\n\n```\n\n```response:406\n{\n \"error\": {\n \"name\": \"NOTACCEPTABLE\",\n \"message\": \"The customer name field cannot be null\",\n \"status\": 406\n }\n}\n```\n\n```response:406\n{\n \"error\": {\n \"name\": \"NOTACCEPTABLE\",\n \"message\": \"This customer already exists in our system\",\n \"status\": 406\n }\n}\n```\n","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"name\": \"string\",\n\t\"phone\": \"string\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_7ede2a6dea53401e99cb615da79e93a3"}],"authentication":{},"metaSortKey":-1658560397705,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_4ac599e54e5740059f3f0dcbd0a0e7f2","parentId":"wrk_2edd03fc19a74d6f94f4540d0c0fe481","modified":1658595685684,"created":1658560295943,"name":"Customer","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1658560295943,"_type":"request_group"},{"_id":"wrk_2edd03fc19a74d6f94f4540d0c0fe481","parentId":null,"modified":1658560281876,"created":1658560281876,"name":"Pokecenter","description":"","scope":"collection","_type":"workspace"},{"_id":"req_04d5cfdc4daa49939db30d4f41fab78d","parentId":"fld_4ac599e54e5740059f3f0dcbd0a0e7f2","modified":1679434094612,"created":1658560341307,"url":"{{urlApi}}/api/customer/{{customerId}}","name":"Get by id","description":"### This route is responsible for listing all of a customer's data, such as account and transactions.\n\n```response:200\n{\n \"message\": \"🎉 customer found successfully.\",\n \"data\": {\n \"id\": \"641908701a6b17102f3c3e2d\",\n \"name\": \"Milhouse Van Houten\",\n \"phone\": \"+1 215-878-3600\",\n \"createdAt\": \"2023-03-21T01:29:20.490Z\",\n \"updatedAt\": \"2023-03-21T01:35:53.803Z\",\n \"accountId\": \"641908701a6b17102f3c3e2c\",\n \"account\": {\n \"id\": \"641908701a6b17102f3c3e2c\",\n \"balance\": 12500,\n \"createdAt\": \"2023-03-21T01:29:20.490Z\",\n \"updatedAt\": \"2023-03-21T01:40:20.232Z\"\n },\n \"transactions\": [\n {\n \"id\": \"6419091b1a6b17102f3c3e30\",\n \"amount\": 10000,\n \"methodPayment\": \"PIX\",\n \"operation\": \"DEPOSIT\",\n \"createdAt\": \"2023-03-21T01:32:11.422Z\",\n \"updatedAt\": \"2023-03-21T01:32:11.422Z\",\n \"customerId\": \"641908701a6b17102f3c3e2d\"\n },\n {\n \"id\": \"6419095c1a6b17102f3c3e34\",\n \"amount\": 5000,\n \"methodPayment\": \"BOLETO\",\n \"operation\": \"DEPOSIT\",\n \"createdAt\": \"2023-03-21T01:33:16.831Z\",\n \"updatedAt\": \"2023-03-21T01:33:16.831Z\",\n \"customerId\": \"641908701a6b17102f3c3e2d\"\n },\n {\n \"id\": \"641909c21a6b17102f3c3e35\",\n \"amount\": 5000,\n \"methodPayment\": \"BOLETO\",\n \"operation\": \"DEPOSIT\",\n \"createdAt\": \"2023-03-21T01:34:58.590Z\",\n \"updatedAt\": \"2023-03-21T01:34:58.590Z\",\n \"customerId\": \"641908701a6b17102f3c3e2d\"\n },\n {\n \"id\": \"64190a6db242e324b10b2d6d\",\n \"amount\": 2500,\n \"methodPayment\": \"PIX\",\n \"operation\": \"WITHDRAW\",\n \"createdAt\": \"2023-03-21T01:37:49.813Z\",\n \"updatedAt\": \"2023-03-21T01:37:49.813Z\",\n \"customerId\": \"641908701a6b17102f3c3e2d\"\n },\n {\n \"id\": \"64190b04b242e324b10b2d6e\",\n \"amount\": 5000,\n \"methodPayment\": \"PIX\",\n \"operation\": \"WITHDRAW\",\n \"createdAt\": \"2023-03-21T01:40:20.530Z\",\n \"updatedAt\": \"2023-03-21T01:40:20.530Z\",\n \"customerId\": \"641908701a6b17102f3c3e2d\"\n }\n ]\n }\n}\n```\n\n```response:406\n{\n \"error\": {\n \"name\": \"NOTACCEPTABLE\",\n \"message\": \"Error, expected a valid object-id\",\n \"status\": 406\n }\n}\n```\n\n```response:404\n{\n \"error\": {\n \"name\": \"NOTFOUND\",\n \"message\": \"This customer does not exist in our system\",\n \"status\": 404\n }\n}\n```\n","method":"GET","body":{},"parameters":[{"description":"Customer reference parameter","name":"customerId","value":"string","id":"pair_5e6af3ca480b4a2fb3b8b7d098d0a67d","type":"text","multiline":false}],"headers":[],"authentication":{},"metaSortKey":-1658560341307,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_5bebd01819014270a70112fc46105669","parentId":"fld_4ac599e54e5740059f3f0dcbd0a0e7f2","modified":1679434100123,"created":1658560297845,"url":"{{urlApi}}/api/customers/","name":"Get all","description":"### This route is responsible for listing all data for all customers, such as account and transactions.\n\n```response:200\n{\n \"message\": \"🎉 customers found successfully.\",\n \"data\": [\n {\n \"id\": \"641908701a6b17102f3c3e2d\",\n \"name\": \"Milhouse Van Houten\",\n \"phone\": \"+1 215-878-3600\",\n \"createdAt\": \"2023-03-21T01:29:20.490Z\",\n \"updatedAt\": \"2023-03-21T01:35:53.803Z\",\n \"accountId\": \"641908701a6b17102f3c3e2c\",\n \"account\": {\n \"id\": \"641908701a6b17102f3c3e2c\",\n \"balance\": 12500,\n \"createdAt\": \"2023-03-21T01:29:20.490Z\",\n \"updatedAt\": \"2023-03-21T01:40:20.232Z\"\n },\n \"transactions\": [\n {\n \"id\": \"6419091b1a6b17102f3c3e30\",\n \"amount\": 10000,\n \"methodPayment\": \"PIX\",\n \"operation\": \"DEPOSIT\",\n \"createdAt\": \"2023-03-21T01:32:11.422Z\",\n \"updatedAt\": \"2023-03-21T01:32:11.422Z\",\n \"customerId\": \"641908701a6b17102f3c3e2d\"\n },\n {\n \"id\": \"6419095c1a6b17102f3c3e34\",\n \"amount\": 5000,\n \"methodPayment\": \"BOLETO\",\n \"operation\": \"DEPOSIT\",\n \"createdAt\": \"2023-03-21T01:33:16.831Z\",\n \"updatedAt\": \"2023-03-21T01:33:16.831Z\",\n \"customerId\": \"641908701a6b17102f3c3e2d\"\n },\n {\n \"id\": \"641909c21a6b17102f3c3e35\",\n \"amount\": 5000,\n \"methodPayment\": \"BOLETO\",\n \"operation\": \"DEPOSIT\",\n \"createdAt\": \"2023-03-21T01:34:58.590Z\",\n \"updatedAt\": \"2023-03-21T01:34:58.590Z\",\n \"customerId\": \"641908701a6b17102f3c3e2d\"\n },\n {\n \"id\": \"64190a6db242e324b10b2d6d\",\n \"amount\": 2500,\n \"methodPayment\": \"PIX\",\n \"operation\": \"WITHDRAW\",\n \"createdAt\": \"2023-03-21T01:37:49.813Z\",\n \"updatedAt\": \"2023-03-21T01:37:49.813Z\",\n \"customerId\": \"641908701a6b17102f3c3e2d\"\n },\n {\n \"id\": \"64190b04b242e324b10b2d6e\",\n \"amount\": 5000,\n \"methodPayment\": \"PIX\",\n \"operation\": \"WITHDRAW\",\n \"createdAt\": \"2023-03-21T01:40:20.530Z\",\n \"updatedAt\": \"2023-03-21T01:40:20.530Z\",\n \"customerId\": \"641908701a6b17102f3c3e2d\"\n }\n ]\n },\n {\n \"id\": \"641908e61a6b17102f3c3e2f\",\n \"name\": \"Homer Simpson\",\n \"phone\": \"+1 215-878-3605\",\n \"createdAt\": \"2023-03-21T01:31:18.233Z\",\n \"updatedAt\": \"2023-03-21T01:31:18.233Z\",\n \"accountId\": \"641908e61a6b17102f3c3e2e\",\n \"account\": {\n \"id\": \"641908e61a6b17102f3c3e2e\",\n \"balance\": 30000,\n \"createdAt\": \"2023-03-21T01:31:18.233Z\",\n \"updatedAt\": \"2023-03-21T01:40:21.178Z\"\n },\n \"transactions\": [\n {\n \"id\": \"6419093b1a6b17102f3c3e31\",\n \"amount\": 32000,\n \"methodPayment\": \"BOLETO\",\n \"operation\": \"DEPOSIT\",\n \"createdAt\": \"2023-03-21T01:32:43.191Z\",\n \"updatedAt\": \"2023-03-21T01:32:43.191Z\",\n \"customerId\": \"641908e61a6b17102f3c3e2f\"\n },\n {\n \"id\": \"641909481a6b17102f3c3e32\",\n \"amount\": 2000,\n \"methodPayment\": \"PIX\",\n \"operation\": \"WITHDRAW\",\n \"createdAt\": \"2023-03-21T01:32:56.486Z\",\n \"updatedAt\": \"2023-03-21T01:32:56.486Z\",\n \"customerId\": \"641908e61a6b17102f3c3e2f\"\n },\n {\n \"id\": \"6419095b1a6b17102f3c3e33\",\n \"amount\": 5000,\n \"methodPayment\": \"BOLETO\",\n \"operation\": \"WITHDRAW\",\n \"createdAt\": \"2023-03-21T01:33:15.855Z\",\n \"updatedAt\": \"2023-03-21T01:33:15.855Z\",\n \"customerId\": \"641908e61a6b17102f3c3e2f\"\n },\n {\n \"id\": \"64190b05b242e324b10b2d6f\",\n \"amount\": 5000,\n \"methodPayment\": \"PIX\",\n \"operation\": \"DEPOSIT\",\n \"createdAt\": \"2023-03-21T01:40:21.481Z\",\n \"updatedAt\": \"2023-03-21T01:40:21.481Z\",\n \"customerId\": \"641908e61a6b17102f3c3e2f\"\n }\n ]\n }\n ]\n}\n```\n","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1658560341257,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_b5381601f1174ae4bf5a76fddd0eeb66","parentId":"fld_4ac599e54e5740059f3f0dcbd0a0e7f2","modified":1679434104908,"created":1658560387668,"url":"{{urlApi}}/api/customer/{{customerId}}","name":"Update","description":"### This route is responsible for updating a customer's name and phone number.\n\n```response:200\n{\n \"message\": \"🎉 customer updated successfully.\",\n \"data\": {\n \"id\": \"641908701a6b17102f3c3e2d\",\n \"name\": \"Milhouse Van Houten\",\n \"phone\": \"+1 215-878-3600\",\n \"createdAt\": \"2023-03-21T01:29:20.490Z\",\n \"updatedAt\": \"2023-03-21T01:35:53.803Z\",\n \"accountId\": \"641908701a6b17102f3c3e2c\"\n }\n}\n```\n\n```response:406\n{\n \"error\": {\n \"name\": \"NOTACCEPTABLE\",\n \"message\": \"The customer name field cannot be null\",\n \"status\": 406\n }\n}\n```\n\n```response:406\n{\n \"error\": {\n \"name\": \"NOTACCEPTABLE\",\n \"message\": \"Error, expected a valid object-id\",\n \"status\": 406\n }\n}\n```\n\n```response:404\n{\n \"error\": {\n \"name\": \"NOTFOUND\",\n \"message\": \"This customer does not exist in our system\",\n \"status\": 404\n }\n}\n```","method":"PUT","body":{"mimeType":"application/json","text":"{\n\t\"name\": \"string\",\n\t\"phone\": \"string\"\n}"},"parameters":[{"description":"Customer reference parameter","name":"customerId","value":"string","id":"pair_c5ed7b89c752414db63678134f34530d"}],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_e974c204e6c04d0e8e5921f2dc4a5f0e"}],"authentication":{},"metaSortKey":-1658560341207,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_119af1670bca4aacb185a07ac66b8927","parentId":"fld_4ac599e54e5740059f3f0dcbd0a0e7f2","modified":1679434109861,"created":1658560397655,"url":"{{urlApi}}/api/customer/{{customerId}}","name":"Delete","description":"### This route is responsible for deleting a customer as long as they do not have a balance in their account.\n\n```response:200\n{\n \"message\": \"🎉 customer deleted successfully.\"\n}\n```\n\n```response:406\n{\n \"error\": {\n \"name\": \"NOTACCEPTABLE\",\n \"message\": \"Error, expected a valid object-id\",\n \"status\": 406\n }\n}\n```\n\n```response:404\n{\n \"error\": {\n \"name\": \"NOTFOUND\",\n \"message\": \"This customer does not exist in our system\",\n \"status\": 404\n }\n}\n```\n\n```response:406\n{\n \"error\": {\n \"name\": \"NOTACCEPTABLE\",\n \"message\": \"This customer still has a positive balance and cannot be deleted. Please transfer the remaining balance or close the account first.\",\n \"status\": 406\n }\n}\n```\n","method":"DELETE","body":{},"parameters":[{"description":"Customer reference parameter","name":"customerId","value":"string","id":"pair_302c61f93e4e4e6297a98c3b14c0c22b"}],"headers":[],"authentication":{},"metaSortKey":-1658560341157,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_98130c76e7b1448c945b2db75944d924","parentId":"fld_a257fab465704a0c821ac6ebd2a684ca","modified":1679434115559,"created":1658561240887,"url":"{{urlApi}}/api/balance/{{customerId}}","name":"Get balance","description":"### This route is responsible for picking up the customer's balance.\n\n```response:200\n{\n \"message\": \"🎉 balance retrieved successfully\",\n \"data\": {\n \"id\": \"641908701a6b17102f3c3e2c\",\n \"balance\": 0,\n \"createdAt\": \"2023-03-21T01:29:20.490Z\",\n \"updatedAt\": \"2023-03-21T01:29:20.490Z\"\n }\n}\n```\n\n```response:406\n{\n \"error\": {\n \"name\": \"NOTACCEPTABLE\",\n \"message\": \"Error, expected a valid object-id\",\n \"status\": 406\n }\n}\n```\n\n```response:404\n{\n \"error\": {\n \"name\": \"NOTFOUND\",\n \"message\": \"This customer does not exist in our system\",\n \"status\": 404\n }\n}\n```","method":"GET","body":{},"parameters":[{"description":"Customer reference parameter","name":"customerId","value":"string","id":"pair_9b10e9191a8645b9b567ab5c0e19be95"}],"headers":[],"authentication":{},"metaSortKey":-1658561240887,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_a257fab465704a0c821ac6ebd2a684ca","parentId":"wrk_2edd03fc19a74d6f94f4540d0c0fe481","modified":1658560292295,"created":1658560292295,"name":"Account","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1658560292295,"_type":"request_group"},{"_id":"req_3258e03b29764aa2a1891e0f4b377288","parentId":"fld_332e1314c86343d79ac864d446cb4b19","modified":1679434120625,"created":1658561567036,"url":"{{urlApi}}/api/transaction/deposit/{{customerId}}","name":"Deposit","description":"### This route is responsible for making deposits for the customer.\n\n```response:200\n{\n \"message\": \"🎉 deposit made successfully\",\n \"data\": {\n \"id\": \"641909c21a6b17102f3c3e35\",\n \"amount\": 5000,\n \"methodPayment\": \"BOLETO\",\n \"operation\": \"DEPOSIT\",\n \"createdAt\": \"2023-03-21T01:34:58.590Z\",\n \"updatedAt\": \"2023-03-21T01:34:58.590Z\",\n \"customerId\": \"641908701a6b17102f3c3e2d\"\n }\n}\n```\n\n```response:406\n{\n \"error\": {\n \"name\": \"NOTACCEPTABLE\",\n \"message\": \"Error, expected a valid object-id\",\n \"status\": 406\n }\n}\n```\n\n```response:406\n{\n \"error\": {\n \"name\": \"NOTACCEPTABLE\",\n \"message\": \"The amount must be greater than or equal to R$ 0.1 cent to effect a transaction\",\n \"status\": 406\n }\n}\n```\n","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"amount\": \"number\",\n\t\"methodPayment\": \"DEBIT | CREDIT | PIX | BOLETO\"\n}"},"parameters":[{"description":"Customer reference parameter","name":"customerId","value":"string","id":"pair_4fa89380f1944a0c8c6a6f8ccf84c781"}],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_6266042be7fa4ffea5e1d5734947fc3e"}],"authentication":{},"metaSortKey":-1658561567036,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_332e1314c86343d79ac864d446cb4b19","parentId":"wrk_2edd03fc19a74d6f94f4540d0c0fe481","modified":1658595697186,"created":1658560288345,"name":"Transaction","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1658560288345,"_type":"request_group"},{"_id":"req_b621e232b6b04e1d87ef1125c71bbeec","parentId":"fld_332e1314c86343d79ac864d446cb4b19","modified":1679434125906,"created":1658561577196,"url":"{{urlApi}}/api/transaction/withdraw/{{customerId}}","name":"Withdraw","description":"### This route is responsible for withdrawing money according to the customer's demand.\n\n```response:200\n{\n \"message\": \"🎉 withdrawal successful\",\n \"data\": {\n \"id\": \"64190a6db242e324b10b2d6d\",\n \"amount\": 2500,\n \"methodPayment\": \"PIX\",\n \"operation\": \"WITHDRAW\",\n \"createdAt\": \"2023-03-21T01:37:49.813Z\",\n \"updatedAt\": \"2023-03-21T01:37:49.813Z\",\n \"customerId\": \"641908701a6b17102f3c3e2d\"\n }\n}\n```\n\n```response:406\n{\n \"error\": {\n \"name\": \"NOTACCEPTABLE\",\n \"message\": \"Error, expected a valid object-id\",\n \"status\": 406\n }\n}\n```\n\n```response:406\n{\n \"error\": {\n \"name\": \"NOTACCEPTABLE\",\n \"message\": \"The amount must be greater than or equal to R$ 0.1 cent to effect a transaction\",\n \"status\": 406\n }\n}\n```\n\n```response:406\n{\n \"error\": {\n \"name\": \"NOTACCEPTABLE\",\n \"message\": \"The amount is greater than your account balance, please review your balance and redo the transaction\",\n \"status\": 406\n }\n}\n```\n","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"amount\": \"number\",\n\t\"methodPayment\": \"DEBIT | CREDIT | PIX | BOLETO\"\n}"},"parameters":[{"description":"Customer reference parameter","name":"customerId","value":"string","id":"pair_8b2c074fdb7b467981c472ad72c2a6ac"}],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_72a6baa101834392a8f1392ca63d0317"}],"authentication":{},"metaSortKey":-1658561567011,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_a21076c5d4704836842d4a405cdd4e75","parentId":"fld_332e1314c86343d79ac864d446cb4b19","modified":1679434131092,"created":1658561572214,"url":"{{urlApi}}/api/transaction/transfer/{{payerId}}/{{receiverId}}","name":"Transfer","description":"### This route is responsible for making transfers between clients.\n\n```response:200\n{\n \"message\": \"🎉 transfer successful\",\n \"data\": {\n \"payer\": {\n \"payerTransaction\": {\n \"id\": \"64190b04b242e324b10b2d6e\",\n \"amount\": 5000,\n \"methodPayment\": \"PIX\",\n \"operation\": \"WITHDRAW\",\n \"createdAt\": \"2023-03-21T01:40:20.530Z\",\n \"updatedAt\": \"2023-03-21T01:40:20.530Z\",\n \"customerId\": \"641908701a6b17102f3c3e2d\"\n },\n \"payerBalance\": {\n \"id\": \"641908701a6b17102f3c3e2c\",\n \"balance\": 12500,\n \"createdAt\": \"2023-03-21T01:29:20.490Z\",\n \"updatedAt\": \"2023-03-21T01:40:20.232Z\"\n }\n },\n \"beneficiary\": {\n \"beneficiaryTransaction\": {\n \"id\": \"64190b05b242e324b10b2d6f\",\n \"amount\": 5000,\n \"methodPayment\": \"PIX\",\n \"operation\": \"DEPOSIT\",\n \"createdAt\": \"2023-03-21T01:40:21.481Z\",\n \"updatedAt\": \"2023-03-21T01:40:21.481Z\",\n \"customerId\": \"641908e61a6b17102f3c3e2f\"\n },\n \"beneficiaryBalance\": {\n \"id\": \"641908e61a6b17102f3c3e2e\",\n \"balance\": 30000,\n \"createdAt\": \"2023-03-21T01:31:18.233Z\",\n \"updatedAt\": \"2023-03-21T01:40:21.178Z\"\n }\n }\n }\n}\n```\n\n```response:406\n{\n \"error\": {\n \"name\": \"NOTACCEPTABLE\",\n \"message\": \"Error, expected a valid object-id\",\n \"status\": 406\n }\n}\n```\n\n```response:406\n{\n \"error\": {\n \"name\": \"NOTACCEPTABLE\",\n \"message\": \"The amount must be greater than or equal to R$ 0.1 cent to effect a transaction\",\n \"status\": 406\n }\n}\n```\n\n```response:406\n{\n \"error\": {\n \"name\": \"NOTACCEPTABLE\",\n \"message\": \"The amount is greater than your account balance, please review your balance and redo the transaction\",\n \"status\": 406\n }\n}\n```\n","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"amount\": \"number\",\n\t\"methodPayment\": \"DEBIT | CREDIT | PIX | BOLETO\"\n}"},"parameters":[{"name":"payerId","description":"Payer reference path parameter","value":"string","id":"pair_c735fc72dcb14f459a6b0a07ebe0d551"},{"name":"receiverId","description":"Beneficiary reference path parameter","value":"string","id":"pair_a2fdf4e4e28844beb231f87bef7ce1f4"}],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_5a0d777a02424c8ba39bc10fe6dc984b"}],"authentication":{},"metaSortKey":-1658561566986,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_bf7fc1d4033f584e34c2fc9c378c5f2c1bf69bf9","parentId":"wrk_2edd03fc19a74d6f94f4540d0c0fe481","modified":1679434174014,"created":1658560281884,"name":"Base Environment","data":{"url":"http://localhost:8080"},"dataPropertyOrder":{"&":["url"]},"color":null,"isPrivate":false,"metaSortKey":1658560281884,"_type":"environment"},{"_id":"jar_bf7fc1d4033f584e34c2fc9c378c5f2c1bf69bf9","parentId":"wrk_2edd03fc19a74d6f94f4540d0c0fe481","modified":1658560281885,"created":1658560281885,"name":"Default Jar","cookies":[],"_type":"cookie_jar"},{"_id":"spc_329a163dcfd1419da708356243949ef1","parentId":"wrk_2edd03fc19a74d6f94f4540d0c0fe481","modified":1658560281880,"created":1658560281880,"fileName":"Pokecenter","contents":"","contentType":"yaml","_type":"api_spec"}]}